@fluid-topics/ft-text-field 2.2.21 → 2.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var mc=Object.create;var jn=Object.defineProperty;var gc=Object.getOwnPropertyDescriptor;var yc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty;var Lt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var bc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yc(t))!vc.call(e,n)&&n!==r&&jn(e,n,{get:()=>t[n],enumerable:!(i=gc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?mc(xc(e)):{},bc(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e));var A=Lt((nd,Wn)=>{Wn.exports=ftGlobals.wcUtils});var V=Lt((sd,Kn)=>{Kn.exports=ftGlobals.lit});var J=Lt((od,Gn)=>{Gn.exports=ftGlobals.litDecorators});var Yn=Lt((ad,qn)=>{qn.exports=ftGlobals.litRepeat});var Nt=Lt((ld,Xn)=>{Xn.exports=ftGlobals.litClassMap});var Ys=Lt((pp,qs)=>{qs.exports=ftGlobals.litUnsafeHTML});var pc=f(A());var W=f(V()),P=f(J()),cc=f(Yn()),uc=f(Nt());var Fi=globalThis,Zn=e=>e,Tr=Fi.trustedTypes,Jn=Tr?Tr.createPolicy("lit-html",{createHTML:e=>e}):void 0,ns="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,ss="?"+Ke,Sc=`<${ss}>`,st=document,Or=()=>st.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Hi=Array.isArray,Ec=e=>Hi(e)||typeof e?.[Symbol.iterator]=="function",ki=`[
1
+ "use strict";(()=>{var fc=Object.create;var jn=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var Lt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var xc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mc(t))!yc.call(e,n)&&n!==r&&jn(e,n,{get:()=>t[n],enumerable:!(i=hc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?fc(gc(e)):{},xc(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e));var A=Lt((td,Wn)=>{Wn.exports=ftGlobals.wcUtils});var V=Lt((rd,Kn)=>{Kn.exports=ftGlobals.lit});var J=Lt((id,Gn)=>{Gn.exports=ftGlobals.litDecorators});var Yn=Lt((nd,qn)=>{qn.exports=ftGlobals.litRepeat});var Nt=Lt((sd,Xn)=>{Xn.exports=ftGlobals.litClassMap});var Ys=Lt((cp,qs)=>{qs.exports=ftGlobals.litUnsafeHTML});var uc=f(A());var W=f(V()),P=f(J()),ac=f(Yn()),lc=f(Nt());var Fi=globalThis,Zn=e=>e,Tr=Fi.trustedTypes,Jn=Tr?Tr.createPolicy("lit-html",{createHTML:e=>e}):void 0,ns="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,ss="?"+Ke,vc=`<${ss}>`,st=document,Or=()=>st.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Hi=Array.isArray,bc=e=>Hi(e)||typeof e?.[Symbol.iterator]=="function",ki=`[
2
2
  \f\r]`,Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qn=/-->/g,es=/>/g,it=RegExp(`>|${ki}(?:([^\\s"'>=/]+)(${ki}*=${ki}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ts=/'/g,rs=/"/g,os=/^(?:script|style|textarea|title)$/i,Vi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),as=Vi(1),ls=Vi(2),cs=Vi(3),Jt=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),is=new WeakMap,nt=st.createTreeWalker(st,129);function us(e,t){if(!Hi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jn!==void 0?Jn.createHTML(t):t}var Ac=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=Xt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Xt?u[1]==="!--"?o=Qn:u[1]!==void 0?o=es:u[2]!==void 0?(os.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=it):u[3]!==void 0&&(o=it):o===it?u[0]===">"?(o=n??Xt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?it:u[3]==='"'?rs:ts):o===rs||o===ts?o=it:o===Qn||o===es?o=Xt:(o=it,n=void 0);let g=o===it&&e[a+1].startsWith("/>")?" ":"";s+=o===Xt?l+Sc:d>=0?(i.push(c),l.slice(0,d)+ns+l.slice(d)+Ke+g):l+Ke+(d===-2?a:g)}return[us(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Qt=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Ac(t,r);if(this.el=e.createElement(c,i),nt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=nt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ns)){let p=u[o++],g=n.getAttribute(d).split(Ke),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:g,ctor:v[1]==="."?Ii:v[1]==="?"?$i:v[1]==="@"?Ui:kt}),n.removeAttribute(d)}else d.startsWith(Ke)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(os.test(n.tagName)){let d=n.textContent.split(Ke),p=d.length-1;if(p>0){n.textContent=Tr?Tr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Or()),nt.nextNode(),l.push({type:2,index:++s});n.append(d[p],Or())}}}else if(n.nodeType===8)if(n.data===ss)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(Ke,d+1))!==-1;)l.push({type:7,index:s}),d+=Ke.length-1}s++}}static createElement(t,r){let i=st.createElement("template");return i.innerHTML=t,i}};function Dt(e,t,r=e,i){if(t===Jt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Zt(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Dt(e,n._$AS(e,t.values),n,i)),t}var Mi=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:i}=this._$AD,n=(t?.creationScope??st).importNode(r,!0);nt.currentNode=n;let s=nt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Rr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Bi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=nt.nextNode(),o++)}return nt.currentNode=st,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Dt(this,t,r),Zt(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ec(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&Zt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qt.createElement(us(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Mi(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=is.get(t.strings);return r===void 0&&is.set(t.strings,r=new Qt(t)),r}k(t){Hi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Or()),this.O(Or()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=Zn(t).nextSibling;Zn(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},kt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Dt(this,t,r,0),o=!Zt(t)||t!==this._$AH&&t!==Jt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Dt(this,a[i+l],r,l),c===Jt&&(c=this._$AH[l]),o||=!Zt(c)||c!==this._$AH[l],c===K?t=K:t!==K&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ii=class extends kt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}},$i=class extends kt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},Ui=class extends kt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Dt(this,t,r,0)??K)===Jt)return;let i=this._$AH,n=t===K&&i!==K||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==K&&(i===K||n);n&&this.element.removeEventListener(this.name,this,i),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)}},Bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Dt(this,t)}};var _c=Fi.litHtmlPolyfillSupport;_c?.(Qt,Rr),(Fi.litHtmlVersions??=[]).push("3.3.3");var Le=e=>e??K;var le=f(A());var ps=Symbol.for(""),Cc=e=>{if(e?.r===ps)return e?._$litStatic$},zi=e=>({_$litStatic$:e,r:ps});var ds=new Map,ji=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=Cc(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=ds.get(d))===void 0&&(o.raw=o,ds.set(d,t=o)),r=a}return e(t,...r)},Wi=ji(as),md=ji(ls),gd=ji(cs);var Ki=f(J()),_s=f(A());var ye;(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"})(ye||(ye={}));var xe=f(V()),h=f(A()),fs=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Be=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Be,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",fs),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},at={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",fs),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},lt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ut={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},ce={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},dt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},hs=xe.css`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ts=/'/g,rs=/"/g,os=/^(?:script|style|textarea|title)$/i,Vi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),as=Vi(1),ls=Vi(2),cs=Vi(3),Jt=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),is=new WeakMap,nt=st.createTreeWalker(st,129);function us(e,t){if(!Hi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jn!==void 0?Jn.createHTML(t):t}var Ec=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=Xt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Xt?u[1]==="!--"?o=Qn:u[1]!==void 0?o=es:u[2]!==void 0?(os.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=it):u[3]!==void 0&&(o=it):o===it?u[0]===">"?(o=n??Xt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?it:u[3]==='"'?rs:ts):o===rs||o===ts?o=it:o===Qn||o===es?o=Xt:(o=it,n=void 0);let g=o===it&&e[a+1].startsWith("/>")?" ":"";s+=o===Xt?l+vc:d>=0?(i.push(c),l.slice(0,d)+ns+l.slice(d)+Ke+g):l+Ke+(d===-2?a:g)}return[us(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Qt=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Ec(t,r);if(this.el=e.createElement(c,i),nt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=nt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ns)){let p=u[o++],g=n.getAttribute(d).split(Ke),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:g,ctor:v[1]==="."?Ii:v[1]==="?"?$i:v[1]==="@"?Ui:kt}),n.removeAttribute(d)}else d.startsWith(Ke)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(os.test(n.tagName)){let d=n.textContent.split(Ke),p=d.length-1;if(p>0){n.textContent=Tr?Tr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Or()),nt.nextNode(),l.push({type:2,index:++s});n.append(d[p],Or())}}}else if(n.nodeType===8)if(n.data===ss)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(Ke,d+1))!==-1;)l.push({type:7,index:s}),d+=Ke.length-1}s++}}static createElement(t,r){let i=st.createElement("template");return i.innerHTML=t,i}};function Dt(e,t,r=e,i){if(t===Jt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Zt(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Dt(e,n._$AS(e,t.values),n,i)),t}var Mi=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:i}=this._$AD,n=(t?.creationScope??st).importNode(r,!0);nt.currentNode=n;let s=nt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Rr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Bi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=nt.nextNode(),o++)}return nt.currentNode=st,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Dt(this,t,r),Zt(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):bc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&Zt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qt.createElement(us(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Mi(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=is.get(t.strings);return r===void 0&&is.set(t.strings,r=new Qt(t)),r}k(t){Hi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Or()),this.O(Or()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=Zn(t).nextSibling;Zn(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},kt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Dt(this,t,r,0),o=!Zt(t)||t!==this._$AH&&t!==Jt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Dt(this,a[i+l],r,l),c===Jt&&(c=this._$AH[l]),o||=!Zt(c)||c!==this._$AH[l],c===K?t=K:t!==K&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ii=class extends kt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}},$i=class extends kt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},Ui=class extends kt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Dt(this,t,r,0)??K)===Jt)return;let i=this._$AH,n=t===K&&i!==K||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==K&&(i===K||n);n&&this.element.removeEventListener(this.name,this,i),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)}},Bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Dt(this,t)}};var Sc=Fi.litHtmlPolyfillSupport;Sc?.(Qt,Rr),(Fi.litHtmlVersions??=[]).push("3.3.3");var Le=e=>e??K;var le=f(A());var ps=Symbol.for(""),Ac=e=>{if(e?.r===ps)return e?._$litStatic$},zi=e=>({_$litStatic$:e,r:ps});var ds=new Map,ji=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=Ac(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=ds.get(d))===void 0&&(o.raw=o,ds.set(d,t=o)),r=a}return e(t,...r)},Wi=ji(as),pd=ji(ls),fd=ji(cs);var Ki=f(J()),_s=f(A());var ye;(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"})(ye||(ye={}));var xe=f(V()),h=f(A()),fs=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Be=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Be,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",fs),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},at={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",fs),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},lt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ut={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},ce={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},dt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},hs=xe.css`
4
4
  .ft-typography--title {
5
5
  font-family: ${ot.fontFamily};
6
6
  font-size: ${ot.fontSize};
@@ -91,7 +91,7 @@
91
91
  text-transform: ${pt.textTransform};
92
92
  text-decoration: ${pt.textDecoration};
93
93
  }
94
- `,Ss=xe.css`
94
+ `,Es=xe.css`
95
95
  .ft-typography--button {
96
96
  font-family: ${_e.fontFamily};
97
97
  font-size: ${_e.fontSize};
@@ -101,7 +101,7 @@
101
101
  text-transform: ${_e.textTransform};
102
102
  text-decoration: ${_e.textDecoration};
103
103
  }
104
- `,Es=xe.css`
104
+ `,Ss=xe.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
@@ -113,7 +113,7 @@
113
113
  </${zi(this.element)}>
114
114
  `:Wi`
115
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
116
- `}};ie.styles=[hs,ms,gs,ys,Pr,xs,Lr,vs,bs,Ss,Es];As([(0,Ki.property)()],ie.prototype,"element",void 0);As([(0,Ki.property)()],ie.prototype,"variant",void 0);var ws=f(A());var Cs={"ft-typography":ie};(0,ws.customElements)(Cs);var Nr=f(J());var Ts=f(V()),B=f(A());var k={fontSize:B.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:B.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:B.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:B.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:B.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:B.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:B.FtCssVariableFactory.extend("--ft-input-label-border-color","",B.designSystemVariables.colorOutline),textColor:B.FtCssVariableFactory.extend("--ft-input-label-text-color","",B.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:B.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",B.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:B.FtCssVariableFactory.extend("--ft-input-label-background-color","",B.designSystemVariables.colorSurface),borderRadius:B.FtCssVariableFactory.extend("--ft-input-label-border-radius","",B.designSystemVariables.borderRadiusS),colorError:B.FtCssVariableFactory.external(B.designSystemVariables.colorError,"Design system")},Os=Ts.css`
116
+ `}};ie.styles=[hs,ms,gs,ys,Pr,xs,Lr,vs,bs,Es,Ss];As([(0,Ki.property)()],ie.prototype,"element",void 0);As([(0,Ki.property)()],ie.prototype,"variant",void 0);var ws=f(A());var Cs={"ft-typography":ie};(0,ws.customElements)(Cs);var Nr=f(J());var Ts=f(V()),B=f(A());var k={fontSize:B.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:B.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:B.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:B.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:B.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:B.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:B.FtCssVariableFactory.extend("--ft-input-label-border-color","",B.designSystemVariables.colorOutline),textColor:B.FtCssVariableFactory.extend("--ft-input-label-text-color","",B.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:B.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",B.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:B.FtCssVariableFactory.extend("--ft-input-label-background-color","",B.designSystemVariables.colorSurface),borderRadius:B.FtCssVariableFactory.extend("--ft-input-label-border-radius","",B.designSystemVariables.borderRadiusS),colorError:B.FtCssVariableFactory.external(B.designSystemVariables.colorError,"Design system")},Os=Ts.css`
117
117
  .ft-input-label {
118
118
  position: absolute;
119
119
  inset: 0;
@@ -387,12 +387,12 @@
387
387
  .ft-icon--material {
388
388
  font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
389
389
  }
390
- `,we.noTextSelect];var Ge;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ge||(Ge={}));var tr=f(V()),qe=f(J()),Xs=f(A()),Zs=f(Ys());var Fe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Fe||(Fe={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var fp=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var hp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var rr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ee=class extends Xs.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tr.nothing}render(){let t=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,r=t!==Ge.material||!!this.value;return tr.html`
390
+ `,we.noTextSelect];var Ge;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ge||(Ge={}));var tr=f(V()),qe=f(J()),Xs=f(A()),Zs=f(Ys());var Fe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Fe||(Fe={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var up=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var dp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var rr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ee=class extends Xs.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tr.nothing}render(){let t=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,r=t!==Ge.material||!!this.value;return tr.html`
391
391
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
392
392
  ${(0,Zs.unsafeHTML)(this.resolvedIcon)}
393
393
  <slot ?hidden=${r}></slot>
394
394
  </i>
395
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case Ge.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Ge.material:this.resolvedIcon=this.value||tr.nothing;break;default:this.resolvedIcon=(r=Fe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Gs;rr([(0,qe.property)()],ee.prototype,"variant",void 0);rr([(0,qe.property)()],ee.prototype,"value",void 0);rr([(0,qe.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);rr([(0,qe.state)()],ee.prototype,"resolvedIcon",void 0);rr([(0,qe.query)("slot")],ee.prototype,"slottedContent",void 0);var Qs=f(A());var Js={"ft-icon":ee};(0,Qs.customElements)(Js);var eo=f(V()),S=f(A());var R={fontSize:S.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:S.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:S.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:S.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:S.FtCssVariableFactory.extend("--ft-text-field-helper-color","",S.designSystemVariables.colorOnSurfaceMedium),colorPrimary:S.FtCssVariableFactory.external(S.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:S.FtCssVariableFactory.external(S.designSystemVariables.borderRadiusS,"Design system"),colorError:S.FtCssVariableFactory.external(S.designSystemVariables.colorError,"Design system"),prefixColor:S.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",S.designSystemVariables.colorOnSurfaceMedium),iconColor:S.FtCssVariableFactory.extend("--ft-text-field-icon-color","",S.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:S.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:S.FtCssVariableFactory.extend("--ft-text-field-background-color","",S.designSystemVariables.colorSurface),colorOutline:S.FtCssVariableFactory.external(S.designSystemVariables.colorOutline,"Design system"),elevation02:S.FtCssVariableFactory.external(S.designSystemVariables.elevation02,"Design system"),suggestSize:S.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},to=eo.css`
395
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case Ge.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Ge.material:this.resolvedIcon=this.value||tr.nothing;break;default:this.resolvedIcon=(r=Fe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Gs;rr([(0,qe.property)()],ee.prototype,"variant",void 0);rr([(0,qe.property)()],ee.prototype,"value",void 0);rr([(0,qe.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);rr([(0,qe.state)()],ee.prototype,"resolvedIcon",void 0);rr([(0,qe.query)("slot")],ee.prototype,"slottedContent",void 0);var Qs=f(A());var Js={"ft-icon":ee};(0,Qs.customElements)(Js);var eo=f(V()),E=f(A());var R={fontSize:E.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:E.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:E.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:E.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:E.FtCssVariableFactory.extend("--ft-text-field-helper-color","",E.designSystemVariables.colorOnSurfaceMedium),colorPrimary:E.FtCssVariableFactory.external(E.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:E.FtCssVariableFactory.external(E.designSystemVariables.borderRadiusS,"Design system"),colorError:E.FtCssVariableFactory.external(E.designSystemVariables.colorError,"Design system"),prefixColor:E.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",E.designSystemVariables.colorOnSurfaceMedium),iconColor:E.FtCssVariableFactory.extend("--ft-text-field-icon-color","",E.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:E.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:E.FtCssVariableFactory.extend("--ft-text-field-background-color","",E.designSystemVariables.colorSurface),colorOutline:E.FtCssVariableFactory.external(E.designSystemVariables.colorOutline,"Design system"),elevation02:E.FtCssVariableFactory.external(E.designSystemVariables.elevation02,"Design system"),suggestSize:E.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},to=eo.css`
396
396
  *:focus {
397
397
  outline: none;
398
398
  }
@@ -406,11 +406,11 @@
406
406
  }
407
407
 
408
408
  ft-input-label {
409
- ${(0,S.setVariable)(k.fontSize,R.fontSize)};
410
- ${(0,S.setVariable)(k.raisedFontSize,R.labelSize)};
411
- ${(0,S.setVariable)(k.verticalSpacing,R.verticalSpacing)};
412
- ${(0,S.setVariable)(k.horizontalSpacing,R.horizontalSpacing)};
413
- ${(0,S.setVariable)(k.backgroundColor,R.backgroundColor)};
409
+ ${(0,E.setVariable)(k.fontSize,R.fontSize)};
410
+ ${(0,E.setVariable)(k.raisedFontSize,R.labelSize)};
411
+ ${(0,E.setVariable)(k.verticalSpacing,R.verticalSpacing)};
412
+ ${(0,E.setVariable)(k.horizontalSpacing,R.horizontalSpacing)};
413
+ ${(0,E.setVariable)(k.backgroundColor,R.backgroundColor)};
414
414
  }
415
415
 
416
416
  .ft-text-field--main-panel {
@@ -427,13 +427,13 @@
427
427
  overflow: hidden;
428
428
  padding: 0 ${R.horizontalSpacing};
429
429
 
430
- ${(0,S.setVariable)(Ne.fontSize,R.fontSize)};
431
- ${(0,S.setVariable)(Ne.lineHeight,R.fontSize)};
430
+ ${(0,E.setVariable)(Ne.fontSize,R.fontSize)};
431
+ ${(0,E.setVariable)(Ne.lineHeight,R.fontSize)};
432
432
  }
433
433
 
434
434
  .ft-text-field--input-panel ft-ripple {
435
- ${(0,S.setVariable)(ne.opacityContentOnSurfaceHover,"0.08")};
436
- ${(0,S.setVariable)(ne.opacityContentOnSurfacePressed,"0.04")};
435
+ ${(0,E.setVariable)(ne.opacityContentOnSurfaceHover,"0.08")};
436
+ ${(0,E.setVariable)(ne.opacityContentOnSurfacePressed,"0.04")};
437
437
  }
438
438
 
439
439
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -489,8 +489,8 @@
489
489
  }
490
490
 
491
491
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
492
- ${(0,S.setVariable)(k.borderColor,R.colorPrimary)};
493
- ${(0,S.setVariable)(k.textColor,R.colorPrimary)};
492
+ ${(0,E.setVariable)(k.borderColor,R.colorPrimary)};
493
+ ${(0,E.setVariable)(k.textColor,R.colorPrimary)};
494
494
  }
495
495
 
496
496
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -545,13 +545,13 @@
545
545
  }
546
546
 
547
547
  .ft-text-field--with-icon {
548
- ${(0,S.setVariable)(k.labelMaxWidth,`calc(100% - ${pe.size} - ${k.horizontalSpacing})`)};
548
+ ${(0,E.setVariable)(k.labelMaxWidth,`calc(100% - ${pe.size} - ${k.horizontalSpacing})`)};
549
549
  }
550
550
 
551
551
  .ft-text-field--with-password ft-icon:hover {
552
552
  cursor: pointer;
553
553
  }
554
- `;var ac=f(A()),Rt=f(V()),Ue=f(J());var ro=f(V());var io=ro.css`
554
+ `;var sc=f(A()),Rt=f(V()),Ue=f(J());var ro=f(V());var io=ro.css`
555
555
  .ft-text-field-suggestion--suggestion {
556
556
  position: relative;
557
557
  padding: 8px 16px;
@@ -597,7 +597,7 @@
597
597
  slot {
598
598
  pointer-events: none;
599
599
  }
600
- `;var lc=f(Nt());var $e=f(A());var Kl=f(V()),Ae=f(J()),Ee=f(A());var no=f(V()),Ye=f(A()),ir={distance:Ye.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ye.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ye.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ye.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ye.designSystemVariables.borderRadiusS),maxWidth:Ye.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},so=no.css`
600
+ `;var oc=f(Nt());var $e=f(A());var jl=f(V()),Ae=f(J()),Se=f(A());var no=f(V()),Ye=f(A()),ir={distance:Ye.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ye.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ye.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ye.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ye.designSystemVariables.borderRadiusS),maxWidth:Ye.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},so=no.css`
601
601
  .ft-tooltip--container {
602
602
  display: block;
603
603
  }
@@ -628,15 +628,15 @@
628
628
  position: relative;
629
629
  word-break: break-word;
630
630
  }
631
- `;var ao=["top","right","bottom","left"],oo=["start","end"],Zi=ao.reduce((e,t)=>e.concat(t,t+"-"+oo[0],t+"-"+oo[1]),[]),nr=Math.min,Xe=Math.max,sr=Math.round;var De=e=>({x:e,y:e}),wc={left:"right",right:"left",bottom:"top",top:"bottom"};function lo(e,t,r){return Xe(e,nr(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function Qi(e){return e==="y"?"height":"width"}function kr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function en(e){return Ji(kr(e))}function co(e,t,r){r===void 0&&(r=!1);let i=Ze(e),n=en(e),s=Qi(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Xi(o)),[o,Xi(o)]}function uo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Xi(e){let t=or(e);return wc[t]+e.slice(t.length)}function Tc(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function po(e){return typeof e!="number"?Tc(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function fo(e,t,r){let{reference:i,floating:n}=e,s=kr(t),o=en(t),a=Qi(o),l=or(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let v=Ze(t);return v&&(g[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),g}async function ho(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Dr(t,e),v=po(g),x=a[p?d==="floating"?"reference":"floating":d],C=ht(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),M=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},L=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:b,strategy:l}):M);return{top:(C.top-L.top+v.top)/O.y,bottom:(L.bottom-C.bottom+v.bottom)/O.y,left:(C.left-L.left+v.left)/O.x,right:(L.right-C.right+v.right)/O.x}}var Oc=50,mo=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ho},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=fo(c,i,l),p=i,g=0,v={};for(let E=0;E<s.length;E++){let x=s[E];if(!x)continue;let{name:C,fn:M}=x,{x:b,y:O,data:L,reset:z}=await M({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=O??d,v[C]={...v[C],...L},z&&g<Oc&&(g++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):z.rects),{x:u,y:d}=fo(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:v}};function Rc(e,t,r){return(e?[...r.filter(n=>Ze(n)===e),...r.filter(n=>Ze(n)!==e)]:r.filter(n=>or(n)===n)).filter(n=>e?Ze(n)===e||(t?uo(n)!==n:!1):!0)}var go=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Zi,autoAlignment:g=!0,...v}=Dr(e,t),E=d!==void 0||p===Zi?Rc(d||null,g,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,C=E[x];if(C==null)return{};if(a!==C)return{reset:{placement:E[0]}};let M=await l.detectOverflow(t,v),b=co(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[M[or(C)],M[b[0]],M[b[1]]],L=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:O}],z=E[x+1];if(z)return{data:{index:x+1,overflows:L},reset:{placement:z}};let U=L.map(ge=>{let rt=Ze(ge.placement);return[ge.placement,rt&&u?ge.overflows.slice(0,2).reduce((fc,hc)=>fc+hc,0):ge.overflows[0],ge.overflows]}).sort((ge,rt)=>ge[1]-rt[1]),Yt=((n=U.filter(ge=>ge[2].slice(0,Ze(ge[0])?2:3).every(rt=>rt<=0))[0])==null?void 0:n[0])||U[0][0];return Yt!==a?{data:{index:x+1,overflows:L},reset:{placement:Yt}}:{}}}};var yo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:M=>{let{x:b,y:O}=M;return{x:b,y:O}}},...c}=Dr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=kr(n),g=Ji(p),v=u[g],E=u[p],x=(M,b)=>lo(b+d[M==="y"?"top":"left"],b,b-d[M==="y"?"bottom":"right"]);o&&(v=x(g,v)),a&&(E=x(p,E));let C=l.fn({...t,[g]:v,[p]:E});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:o,[p]:a}}}}}};function Ir(){return typeof window<"u"}function gt(e){return vo(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=(vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vo(e){return Ir()?e instanceof Node||e instanceof de(e).Node:!1}function Te(e){return Ir()?e instanceof Element||e instanceof de(e).Element:!1}function Ve(e){return Ir()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function xo(e){return!Ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function ar(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function bo(e){return/^(table|td|th)$/.test(gt(e))}function lr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Pc=/transform|translate|scale|rotate|perspective|filter/,Lc=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none",tn;function Mt(e){let t=Te(e)?Oe(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!$r()&&(mt(t.backdropFilter)||mt(t.filter))||Pc.test(t.willChange||"")||Lc.test(t.contain||"")}function So(e){let t=Je(e);for(;Ve(t)&&!It(t);){if(Mt(t))return t;if(lr(t))return null;t=Je(t)}return null}function $r(){return tn==null&&(tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tn}function It(e){return/^(html|body|#document)$/.test(gt(e))}function Oe(e){return de(e).getComputedStyle(e)}function cr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xo(e)&&e.host||He(e);return xo(t)?t.host:t}function Eo(e){let t=Je(e);return It(t)?(e.ownerDocument||e).body:Ve(t)&&ar(t)?t:Eo(t)}function Mr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Eo(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=de(n);if(s){let a=Ur(o);return t.concat(o,o.visualViewport||[],ar(n)?n:[],a&&r?Mr(a):[])}else return t.concat(n,Mr(n,[],r))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Co(e){let t=Oe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Ve(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=sr(r)!==s||sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function wo(e){return Te(e)?e:e.contextElement}function $t(e){let t=wo(e);if(!Ve(t))return De(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=Co(t),o=(s?sr(r.width):r.width)/i,a=(s?sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Nc=De(0);function To(e){let t=de(e);return!$r()||!t.visualViewport?Nc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function ur(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=wo(e),o=De(1);t&&(i?Te(i)&&(o=$t(i)):o=$t(e));let a=Dc(s,r,i)?To(s):De(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=de(s),g=Te(i)?de(i):i,v=p,E=Ur(v);for(;E&&g!==v;){let x=$t(E),C=E.getBoundingClientRect(),M=Oe(E),b=C.left+(E.clientLeft+parseFloat(M.paddingLeft))*x.x,O=C.top+(E.clientTop+parseFloat(M.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=O,v=de(E),E=Ur(v)}}return ht({width:u,height:d,x:l,y:c})}function Br(e,t){let r=cr(e).scrollLeft;return t?t.left+r:ur(He(e)).left+r}function Oo(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Br(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function kc(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=He(i),a=t?lr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=De(1),u=De(0),d=Ve(i);if((d||!s)&&((gt(i)!=="body"||ar(o))&&(l=cr(i)),d)){let g=ur(i);c=$t(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=o&&!d&&!s?Oo(o,l):De(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Mc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ic(e){let t=cr(e),r=e.ownerDocument.body,i=Xe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Xe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Br(e),o=-t.scrollTop;return Oe(r).direction==="rtl"&&(s+=Xe(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var $c=25;function Uc(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=de(e),s=He(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!$r()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Br(s)<=0){let p=s.ownerDocument,g=p.body,v=getComputedStyle(g),E=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-E),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;C<=$c&&(a-=C)}return{width:a,height:l,x:c,y:u}}function Bc(e,t){let r=ur(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=$t(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ao(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=Uc(e,r,t);else if(t==="document")i=Ic(He(e));else if(Te(t))i=Bc(t,r);else{let n=To(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ht(i)}function Fc(e,t){let r=t.get(e);if(r)return r;let i=Mr(e,[],!1).filter(a=>Te(a)&&gt(a)!=="body"),n=null,s=Oe(e).position==="fixed",o=s?Je(e):e;for(;Te(o)&&!It(o);){let a=Oe(o),l=Mt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Je(o)}return t.set(e,i),i}function Hc(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?lr(t)?[]:Fc(t,this._c):[].concat(r),i],a=Ao(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let g=Ao(t,o[p],n);l=Xe(g.top,l),c=nr(g.right,c),u=nr(g.bottom,u),d=Xe(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Vc(e){let{width:t,height:r}=Co(e);return{width:t,height:r}}function zc(e,t,r){let i=Ve(t),n=He(t),s=r==="fixed",o=ur(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=De(0);if((i||!s)&&((gt(t)!=="body"||ar(n))&&(a=cr(t)),i)){let p=ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Br(n));let c=n&&!i&&!s?Oo(n,a):De(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function rn(e){return Oe(e).position==="static"}function _o(e,t){if(!Ve(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return He(e)===r&&(r=r.ownerDocument.body),r}function Ro(e,t){let r=de(e);if(lr(e))return r;if(!Ve(e)){let n=Je(e);for(;n&&!It(n);){if(Te(n)&&!rn(n))return n;n=Je(n)}return r}let i=_o(e,t);for(;i&&bo(i)&&rn(i);)i=_o(i,t);return i&&It(i)&&rn(i)&&!Mt(i)?r:i||So(e)||r}var jc=async function(e){let t=this.getOffsetParent||Ro,r=this.getDimensions,i=await r(e.floating);return{reference:zc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Wc(e){return Oe(e).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:kc,getDocumentElement:He,getClippingRect:Hc,getOffsetParent:Ro,getElementRects:jc,getClientRects:Mc,getDimensions:Vc,getScale:$t,isElement:Te,isRTL:Wc};var Po=go,Lo=yo;var No=(e,t,r)=>{let i=new Map,n=r??{},s={...Fr,...n.platform,_c:i};return mo(e,t,{...n,platform:s})};function Do(e){return Kc(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Kc(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Mt(r)||t.tagName==="BODY"))return t}return null}async function ko(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},No(e,t,{strategy:i.strategy,platform:{...Fr,getOffsetParent:n=>Fr.getOffsetParent(n,Do)},middleware:[Lo({crossAxis:!0}),Po({allowedPlacements:[i.placement]})]})}var Kt=f(A());var wn=f(J());var Mo=f(J(),1);var sn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Gc=e=>({fromAttribute:t=>{if(t==null)return dr(e);try{return JSON.parse(t)}catch{return dr(e)}},toAttribute:t=>JSON.stringify(t)});function Io(e,t){return(0,Mo.property)({type:Object,converter:Gc(e),hasChanged:pr,...t??{}})}function qc(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,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ut(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Ut(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Ut(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ut(e,t){try{return qc(e,t)}catch{return!1}}function pr(e,t){return!Ut(e,t)}function dr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Hr(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var $o=f(J(),1);var on=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:pr,attribute:!1,...t};(0,$o.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Vr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==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 yt=f(J(),1);var zr=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(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 i)try{await o()}catch(a){n(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 Bo=f(V(),1);var jr=globalThis,Yc=jr.ShadowRoot&&(jr.ShadyCSS===void 0||jr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Uo=(e,t)=>{if(Yc)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=jr.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Wr=class extends Bo.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},i=this.renderOptions.creationScope=this.attachShadow(r);return Uo(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){sn(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 Fo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ft=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},jo,Ho=Symbol("constructorPrototype"),Vo=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer"),zo=Symbol("dynamicDependenciesLoaded"),Bt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Bt.eventName="exportparts-updated";var ke=class extends Wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[jo]=new zr(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Wo].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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[Vo]=this.constructor.name,this[Ho]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vo]&&Object.setPrototypeOf(this,this[Ho])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[zo]||(r[zo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Bt.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 Bt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Fo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let g=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],v=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],E=[...g,...v].filter(l).map(x=>x.trim());for(let x of E)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};jo=Wo;Ft([(0,yt.property)()],ke.prototype,"exportpartsPrefix",void 0);Ft([Io([])],ke.prototype,"exportpartsPrefixes",void 0);Ft([(0,yt.property)({reflect:!0})],ke.prototype,"exportparts",void 0);Ft([(0,yt.property)()],ke.prototype,"customStylesheet",void 0);Ft([(0,yt.property)()],ke.prototype,"elementToFocus",void 0);Ft([(0,yt.state)()],ke.prototype,"useAdoptedStyleSheets",void 0);function Kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var fr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),xt=Symbol("internalStores"),Xc=Hr(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=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[xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[xt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[xt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Qe].has(o.store):this[Qe].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[Qe].set(o,a.subscribe(()=>this.updateFromStores())),this[fr].set(o,[]),Kr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[fr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qe].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Qe].has(o)&&this[Qe].get(o)(),this[Qe].delete(o),(a=this[fr].get(o))===null||a===void 0||a.forEach(l=>l()),this[fr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Qe,r=xt,i=fr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ko=class extends Xc(ke){};function te(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 Zc=typeof Symbol=="function"&&Symbol.observable||"@@observable",Go=Zc,an=()=>Math.random().toString(36).substring(7).split("").join("."),Jc={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},Gr=Jc;function qr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ln(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(ln)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,C)=>{o.set(C,x)}))}function u(){if(l)throw new Error(te(3));return n}function d(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let M=a++;return o.set(M,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),o.delete(M),s=null}}}function p(x){if(!qr(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(M=>{M()}),x}function g(x){if(typeof x!="function")throw new Error(te(10));i=x,p({type:Gr.REPLACE})}function v(){let x=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function M(){let O=C;O.next&&O.next(u())}return M(),{unsubscribe:x(M)}},[Go](){return this}}}return p({type:Gr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Go]:v}}function Qc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Gr.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function qo(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Qc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],v=a[p],E=g(v,l);if(typeof E>"u"){let x=l&&l.type;throw new Error(te(14))}u[p]=E,c=c||E!==v}return c=c||i.length!==Object.keys(a).length,c?u:a}}function hr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function Yo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(te(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=hr(...a)(n.dispatch),{...n,dispatch:s}}}function Xo(e){return qr(e)&&"type"in e&&typeof e.type=="string"}var sa=Symbol.for("immer-nothing"),Zo=Symbol.for("immer-draftable"),re=Symbol.for("immer-state");function Re(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fe=Object,Vt=fe.getPrototypeOf,Jr="constructor",ni="prototype",pn="configurable",Qr="enumerable",Xr="writable",mr="value",Me=e=>!!e&&!!e[re];function he(e){return e?oa(e)||oi(e)||!!e[Zo]||!!e[Jr]?.[Zo]||ai(e)||li(e):!1}var eu=fe[ni][Jr].toString(),Jo=new WeakMap;function oa(e){if(!e||!bn(e))return!1;let t=Vt(e);if(t===null||t===fe[ni])return!0;let r=fe.hasOwnProperty.call(t,Jr)&&t[Jr];if(r===Object)return!0;if(!Ht(r))return!1;let i=Jo.get(r);return i===void 0&&(i=Function.toString.call(r),Jo.set(r,i)),i===eu}function si(e,t,r=!0){xr(e)===0?(r?Reflect.ownKeys(e):fe.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function xr(e){let t=e[re];return t?t.type_:oi(e)?1:ai(e)?2:li(e)?3:0}var cn=(e,t,r=xr(e))=>r===2?e.has(t):fe[ni].hasOwnProperty.call(e,t),fn=(e,t,r=xr(e))=>r===2?e.get(t):e[t],ei=(e,t,r,i=xr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function tu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var oi=Array.isArray,ai=e=>e instanceof Map,li=e=>e instanceof Set,bn=e=>typeof e=="object",Ht=e=>typeof e=="function",un=e=>typeof e=="boolean";function ru(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ze=e=>e.copy_||e.base_;var Sn=e=>e.modified_?e.copy_:e.base_;function hn(e,t){if(ai(e))return new Map(e);if(li(e))return new Set(e);if(oi(e))return Array[ni].slice.call(e);let r=oa(e);if(t===!0||t==="class_only"&&!r){let i=fe.getOwnPropertyDescriptors(e);delete i[re];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Xr]===!1&&(a[Xr]=!0,a[pn]=!0),(a.get||a.set)&&(i[o]={[pn]:!0,[Xr]:!0,[Qr]:a[Qr],[mr]:e[o]})}return fe.create(Vt(e),i)}else{let i=Vt(e);if(i!==null&&r)return{...e};let n=fe.create(i);return fe.assign(n,e)}}function En(e,t=!1){return ci(e)||Me(e)||!he(e)||(xr(e)>1&&fe.defineProperties(e,{set:Yr,add:Yr,clear:Yr,delete:Yr}),fe.freeze(e),t&&si(e,(r,i)=>{En(i,!0)},!1)),e}function iu(){Re(2)}var Yr={[mr]:iu};function ci(e){return e===null||!bn(e)?!0:fe.isFrozen(e)}var ti="MapSet",mn="Patches",Qo="ArrayMethods",aa={};function vt(e){let t=aa[e];return t||Re(0,e),t}var ea=e=>!!aa[e];var gr,la=()=>gr,nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ea(ti)?vt(ti):void 0,arrayMethodsPlugin_:ea(Qo)?vt(Qo):void 0});function ta(e,t){t&&(e.patchPlugin_=vt(mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gn(e){yn(e),e.drafts_.forEach(su),e.drafts_=null}function yn(e){e===gr&&(gr=e.parent_)}var ra=e=>gr=nu(gr,e);function su(e){let t=e[re];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ia(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[re].modified_&&(gn(t),Re(4)),he(e)&&(e=na(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[re].base_,e,t)}else e=na(t,r);return ou(t,e,!0),gn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sa?e:void 0}function na(e,t){if(ci(t))return t;let r=t[re];if(!r)return ri(t,e.handledSet_,e);if(!ui(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);da(r,e)}return r.copy_}function ou(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&En(t,r)}function ca(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ui=(e,t)=>e.scope_===t,au=[];function ua(e,t,r,i){let n=ze(e),s=e.type_;if(i!==void 0&&fn(n,i,s)===t){ei(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;si(n,(l,c)=>{if(Me(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??au;for(let a of o)ei(n,a,r,s)}function lu(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ui(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=Sn(s);ua(e,s.draft_??s,o,r),da(s,n)})}function da(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}ca(e)}}function cu(e,t,r){let{scope_:i}=e;if(Me(r)){let n=r[re];ui(n,i)&&n.callbacks_.push(function(){Zr(e);let o=Sn(n);ua(e,r,o,t)})}else he(r)&&e.callbacks_.push(function(){let s=ze(e);e.type_===3?s.has(r)&&ri(r,i.handledSet_,i):fn(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ri(fn(e.copy_,t,e.type_),i.handledSet_,i)})}function ri(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Me(e)||t.has(e)||!he(e)||ci(e)||(t.add(e),si(e,(i,n)=>{if(Me(n)){let s=n[re];if(ui(s,r)){let o=Sn(s);ei(e,i,o,e.type_),ca(s)}}else he(n)&&ri(n,t,r)})),e}function uu(e,t){let r=oi(e),i={type_:r?1:0,scope_:t?t.scope_:la(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=ii;r&&(n=[i],s=yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var ii={get(e,t){if(t===re)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=ze(e);if(!cn(n,t,e.type_))return pu(e,n,t);let s=n[t];if(e.finalized_||!he(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ru(t))return s;if(s===dn(e.base_,t)||du(e,t,s)){Zr(e);let o=e.type_===1?+t:t,a=vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in ze(e)},ownKeys(e){return Reflect.ownKeys(ze(e))},set(e,t,r){let i=pa(ze(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=dn(ze(e),t),s=n?.[re];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(tu(r,n)&&(r!==void 0||cn(e.base_,t,e.type_)))return!0;Zr(e),xn(e)}return e.copy_[t]===r&&(r!==void 0||cn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),cu(e,t,r)),!0},deleteProperty(e,t){return Zr(e),dn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ze(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[Xr]:!0,[pn]:e.type_!==1||t!=="length",[Qr]:i[Qr],[mr]:r[t]}},defineProperty(){Re(11)},getPrototypeOf(e){return Vt(e.base_)},setPrototypeOf(){Re(12)}},yr={};for(let e in ii){let t=ii[e];yr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}yr.deleteProperty=function(e,t){return yr.set.call(this,e,t,void 0)};yr.set=function(e,t,r){return ii.set.call(this,e[0],t,r,e[0])};function dn(e,t){let r=e[re];return(r?ze(r):e)[t]}function du(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!he(r)||r[re]?!1:e.baseRefs_.has(r)}function pu(e,t,r){let i=pa(t,r);return i?mr in i?i[mr]:i.get?.call(e.draft_):void 0}function pa(e,t){if(!(t in e))return;let r=Vt(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Vt(r)}}function xn(e){e.modified_||(e.modified_=!0,e.parent_&&xn(e.parent_))}function Zr(e){e.copy_||(e.assigned_=new Map,e.copy_=hn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var fu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(Ht(t)&&!Ht(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Ht(r)||Re(6),i!==void 0&&!Ht(i)&&Re(7);let n;if(he(t)){let s=ra(this),o=vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?gn(s):yn(s)}return ta(s,i),ia(n,s)}else if(!t||!bn(t)){if(n=r(t),n===void 0&&(n=t),n===sa&&(n=void 0),this.autoFreeze_&&En(n,!0),i){let s=[],o=[];vt(mn).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Re(1,t)},this.produceWithPatches=(t,r)=>{if(Ht(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},un(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),un(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),un(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){he(e)||Re(8),Me(e)&&(e=fa(e));let t=ra(this),r=vn(t,e,void 0);return r[re].isManual_=!0,yn(t),r}finishDraft(e,t){let r=e&&e[re];(!r||!r.isManual_)&&Re(9);let{scope_:i}=r;return ta(i,t),ia(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=vt(mn).applyPatches_;return Me(e)?i(e,t):this.produce(e,n=>i(n,t))}};function vn(e,t,r,i){let[n,s]=ai(t)?vt(ti).proxyMap_(t,r):li(t)?vt(ti).proxySet_(t,r):uu(t,r);return(r?.scope_??la()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?lu(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function fa(e){return Me(e)||Re(10,e),ha(e)}function ha(e){if(!he(e)||ci(e))return e;let t=e[re],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=hn(e,!0);return si(r,(n,s)=>{ei(r,n,ha(s))},i),t&&(t.finalized_=!1),r}var hu=globalThis.Iterator,Mf=typeof hu?.from=="function";var mu=new fu,An=mu.produce;function ma(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ga=ma(),ya=ma;var gu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},Vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},yu=e=>e&&typeof e.match=="function";function et(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(je(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Xo(i)&&i.type===e,r}var Ea=class vr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vr.prototype)}static get[Symbol.species](){return vr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vr(...t[0].concat(this)):new vr(...t.concat(this))}};function xa(e){return he(e)?An(e,()=>{}):e}function di(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function xu(e){return typeof e=="boolean"}var vu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Ea;return r&&(xu(r)?o.push(ga):o.push(ya(r.extraArgument))),o},bu="RTK_autoBatch";var va=e=>t=>{setTimeout(t,e)},Su=(e,t)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(n),o=setTimeout(n,t)},Eu=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Su(window.requestAnimationFrame,100):va(10):e.type==="callback"?e.queueNotification:va(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[bu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Au=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Ea(e);return i&&n.push(Eu(typeof i=="object"?i:void 0)),n};function Aa(e){let t=vu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(qr(r))l=qo(r);else throw new Error(je(1));let c;typeof i=="function"?c=i(t):c=t();let u=hr;n&&(u=gu({trace:!1,...typeof n=="object"&&n}));let d=Yo(...c),p=Au(d),g=typeof a=="function"?a(p):p(),v=u(...g);return ln(l,o,v)}function _a(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(je(28));if(a in t)throw new Error(je(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function _u(e){return typeof e=="function"}function Cu(e,t){let[r,i,n]=_a(t),s;if(_u(e))s=()=>xa(e());else{let a=xa(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Me(u)){let g=d(u,l);return g===void 0?u:g}else{if(he(u))return An(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=s,o}var wu=(e,t)=>yu(e)?e.match(t):e(t);function Tu(...e){return t=>e.some(r=>wu(r,t))}var Ou="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ru=(e=21)=>{let t="",r=e;for(;r--;)t+=Ou[Math.random()*64|0];return t},Pu=["name","message","stack","code"],_n=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ba=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Lu=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Pu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Sa="External signal was aborted",Nu=(()=>{function e(t,r,i){let n=et(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=et(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=et(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||Lu)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):Ru(),v=new AbortController,E,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(Sa):c.addEventListener("abort",()=>C(Sa),{once:!0}));let M=(async function(){let b;try{let L=i?.condition?.(l,{getState:d,extra:p});if(ku(L)&&(L=await L),L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise((U,j)=>{E=()=>{j({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",E,{once:!0})});u(s(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),b=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:v.signal,abort:C,rejectWithValue:((U,j)=>new _n(U,j)),fulfillWithValue:((U,j)=>new ba(U,j))})).then(U=>{if(U instanceof _n)throw U;return U instanceof ba?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(L){b=L instanceof _n?o(null,g,l,L.payload,L.meta):o(L,g,l)}finally{E&&v.signal.removeEventListener("abort",E)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(M,{abort:C,requestId:g,arg:l,unwrap(){return M.then(Du)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Tu(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function Du(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ku(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ca=Symbol.for("rtk-slice-createasyncthunk"),jf={[Ca]:Nu};function Mu(e,t){return`${e}/${t}`}function Iu({creators:e}={}){let t=e?.asyncThunk?.[Ca];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(je(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(Uu()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,O){let L=typeof b=="string"?b:b.type;if(!L)throw new Error(je(12));if(L in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[L]=O,c},addMatcher(b,O){return l.sliceMatchers.push({matcher:b,reducer:O}),c},exposeAction(b,O){return l.actionCreators[b]=O,c},exposeCaseReducer(b,O){return l.sliceCaseReducersByName[b]=O,c}};a.forEach(b=>{let O=o[b],L={reducerName:b,type:Mu(n,b),createNotation:typeof i.reducers=="function"};Fu(O)?Vu(L,O,c,t):Bu(L,O,c)});function u(){let[b={},O=[],L=void 0]=typeof i.extraReducers=="function"?_a(i.extraReducers):[i.extraReducers],z={...b,...l.sliceCaseReducersByType};return Cu(i.initialState,U=>{for(let j in z)U.addCase(j,z[j]);for(let j of l.sliceMatchers)U.addMatcher(j.matcher,j.reducer);for(let j of O)U.addMatcher(j.matcher,j.reducer);L&&U.addDefaultCase(L)})}let d=b=>b,p=new Map,g=new WeakMap,v;function E(b,O){return v||(v=u()),v(b,O)}function x(){return v||(v=u()),v.getInitialState()}function C(b,O=!1){function L(U){let j=U[b];return typeof j>"u"&&O&&(j=di(g,L,x)),j}function z(U=d){let j=di(p,O,()=>new WeakMap);return di(j,U,()=>{let Yt={};for(let[ge,rt]of Object.entries(i.selectors??{}))Yt[ge]=$u(rt,U,()=>di(g,U,x),O);return Yt})}return{reducerPath:b,getSelectors:z,get selectors(){return z(L)},selectSlice:L}}let M={name:n,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(s),injectInto(b,{reducerPath:O,...L}={}){let z=O??s;return b.inject({reducerPath:z,reducer:E},L),{...M,...C(z,!0)}}};return M}}function $u(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var wa=Iu();function Uu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Bu({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Hu(i))throw new Error(je(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?et(e,o):et(e))}function Fu(e){return e._reducerDefinitionType==="asyncThunk"}function Hu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vu({type:e,reducerName:t},r,i,n){if(!n)throw new Error(je(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||pi,pending:a||pi,rejected:l||pi,settled:c||pi})}function pi(){}var Ta="listener",Oa="completed",Ra="cancelled",Wf=`task-${Ra}`,Kf=`task-${Oa}`,Gf=`${Ta}-${Ra}`,qf=`${Ta}-${Oa}`;var{assign:Pa}=Object;var Cn="listenerMiddleware";var zu=Pa(et(`${Cn}/add`),{withTypes:()=>zu}),Yf=et(`${Cn}/removeAll`),ju=Pa(et(`${Cn}/remove`),{withTypes:()=>ju});function je(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Wu=Hr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),fi=class extends Wu(Object){};window.ftReduxStores||(window.ftReduxStores={});var La=class e extends fi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(Kr(s))return s;if(n==null)return;let o=wa({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Aa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=dr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Ut(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var hi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var mi=f(A()),Ku="ft-app-info",bt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};bt.eventName="authentication-change";var br=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};br.eventName="ui-locale-changed";var Gu={session:(e,t)=>{(0,mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new bt(t.payload)),0))}},w=mi.FtReduxStore.get({name:Ku,reducers:Gu,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Na=f(A()),gi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ch=(0,Na.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>hi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gi([(0,wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),gi([(0,wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),gi([on({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),gi([on({store:w.name})],t.prototype,"uiLocale",void 0),t});var Da;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Da||(Da={}));var ka;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ka||(ka={}));var Ma;(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"})(Ma||(Ma={}));var Ia;(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"})(Ia||(Ia={}));var $a;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($a||($a={}));var Ua;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ua||(Ua={}));var Ba;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ba||(Ba={}));var Fa;(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"})(Fa||(Fa={}));var Ha;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ha||(Ha={}));var Va;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Va||(Va={}));var za;(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"})(za||(za={}));var ja;(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"})(ja||(ja={}));var Wa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Wa||(Wa={}));var Ka;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ka||(Ka={}));var Ga;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ga||(Ga={}));var qa;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(qa||(qa={}));var Ya;(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"})(Ya||(Ya={}));var Xa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Xa||(Xa={}));var Za;(function(e){e.ASC="ASC",e.DESC="DESC"})(Za||(Za={}));var Ja;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ja||(Ja={}));var Qa;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Qa||(Qa={}));var el;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(el||(el={}));var tl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var il;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(il||(il={}));var nl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nl||(nl={}));var sl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sl||(sl={}));var ol;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ol||(ol={}));var q;(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"})(q||(q={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var al;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(al||(al={}));var ll;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ll||(ll={}));var cl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(cl||(cl={}));var ul;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ul||(ul={}));var dl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(dl||(dl={}));var pl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(pl||(pl={}));var fl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(fl||(fl={}));var hl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(hl||(hl={}));var ml;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(ml||(ml={}));var gl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(gl||(gl={}));var yl;(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"})(yl||(yl={}));var xl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(xl||(xl={}));var qu={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN,q.BEHAVIOR_DATA_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};function vl(e,t){return e===t||(qu[e]??[]).some(r=>vl(r,t))}function Tn(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(i=>vl(i,t))}function bl(e,...t){return e==null?!1:t.some(r=>Tn(e,r))}var Si=f(A());var On=f(A());var St=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=w.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var me=class extends zt{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new On.CacheRegistry,this.cache=t?n.commonCache:new On.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var yi=class extends me{async listMySearches(){let{session:t}=w.getState();return Tn(t,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var xi=class extends me{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 vi=class extends me{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 bi=class extends me{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 Yu="ft-user-assets",Xu={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(ve).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:i,asset:n}=t.payload;Pn(e,r,[...Rn(e,r),n]),Sl(e,r,1,i),El(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Pn(e,r,Rn(e,r).map(n=>n.id===i.id?i:n)),El(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Pn(e,r,Rn(e,r).filter(s=>s.id!==n)),Sl(e,r,-1,i)}},Al={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},Rn=(e,t)=>{var r;let i=Al[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Pn=(e,t,r)=>{let i=Al[t];i&&(e[i]=r)},Sl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===ve.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},El=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},se=Si.FtReduxStore.get({name:Yu,reducers:Xu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ln=class{constructor(t=new vi,r=new bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xi,this.savedSearchesService=new yi,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Si.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(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.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;se.actions.bookmarks(r)}}},Zu=new Ln;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Zu);var Nn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Nn;var be=f(A());var _l,jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Ju=Symbol("clearAfterUnitTest"),Ei=class extends(0,be.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_l]=()=>{this.defaultMessages={},this.cache=new be.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 i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,be.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new jt({loadedContexts:t})),this.dispatchEvent(new jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new jt({loadedContexts:[t]})),this.dispatchEvent(new jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,be.delay)(0).then(()=>i()).catch(()=>null)))}};_l=Ju;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Sr=window.FluidTopicsI18nService,Dn=window.FluidTopicsCustomI18nService;var Cl=f(A()),kn=class{highlightHtml(t,r,i){(0,Cl.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new kn;var wl=f(A());var Mn=class{isDate(t){var r,i,n,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 i,n,s,o;if(t==null)return"";try{return wl.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!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 Mn;var Tl=f(A());var Er=class{static get(t,r){var i,n,s,o;let a=w.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Tl.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var In=class{urlToSearchRequest(t){return Er.get().parse(t)}searchRequestToUrl(t){return Er.get().serialize(t)}};window.FluidTopicsUrlService=new In;var We=f(A());var Et=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Et.eventName="before-location-change";var At=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};At.eventName="change";var $n=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))}},Ol=new $n;var Ai=class e extends We.WithEventBus{static build(){return new e(window.history,Ol,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,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(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,We.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new At(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new Et(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),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 i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(Et.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Et.eventName,t)}addHistoryChangeListener(t){this.addEventListener(At.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(At.eventName,t)}currentItem(){return(0,We.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,We.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,We.deepCopy)(r.find(i=>t(i)))}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,We.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 i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}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 i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ai.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),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Rl=f(V());var Pl=Rl.css`
632
- `;var Dl=f(V()),oe=f(J()),wt=f(A());var _t=f(A());function Ll(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var _i=class extends zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Un=class e extends _t.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new _t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new _i,this.cleanSessionDebouncer=new _t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new _t.Debouncer(500),this.apiProvider=r??(()=>St.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(bt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(bt.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",()=>Ll(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(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,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new br(i)))}).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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}userHasAnyRole(...t){return bl(w.getState().session,...t)}},Nl=Un.build();var Ct=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ar=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:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ct(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},H=class extends wt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Nl,this.contextRoot=new Ar}render(){return Dl.html`
631
+ `;var ao=["top","right","bottom","left"],oo=["start","end"],Zi=ao.reduce((e,t)=>e.concat(t,t+"-"+oo[0],t+"-"+oo[1]),[]),nr=Math.min,Xe=Math.max,sr=Math.round;var De=e=>({x:e,y:e}),_c={left:"right",right:"left",bottom:"top",top:"bottom"};function lo(e,t,r){return Xe(e,nr(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function Qi(e){return e==="y"?"height":"width"}function kr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function en(e){return Ji(kr(e))}function co(e,t,r){r===void 0&&(r=!1);let i=Ze(e),n=en(e),s=Qi(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Xi(o)),[o,Xi(o)]}function uo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Xi(e){let t=or(e);return _c[t]+e.slice(t.length)}function Cc(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function po(e){return typeof e!="number"?Cc(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function fo(e,t,r){let{reference:i,floating:n}=e,s=kr(t),o=en(t),a=Qi(o),l=or(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let v=Ze(t);return v&&(g[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),g}async function ho(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Dr(t,e),v=po(g),x=a[p?d==="floating"?"reference":"floating":d],C=ht(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),M=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},L=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:b,strategy:l}):M);return{top:(C.top-L.top+v.top)/O.y,bottom:(L.bottom-C.bottom+v.bottom)/O.y,left:(C.left-L.left+v.left)/O.x,right:(L.right-C.right+v.right)/O.x}}var wc=50,mo=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ho},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=fo(c,i,l),p=i,g=0,v={};for(let S=0;S<s.length;S++){let x=s[S];if(!x)continue;let{name:C,fn:M}=x,{x:b,y:O,data:L,reset:z}=await M({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=O??d,v[C]={...v[C],...L},z&&g<wc&&(g++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):z.rects),{x:u,y:d}=fo(c,p,l)),S=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:v}};function Tc(e,t,r){return(e?[...r.filter(n=>Ze(n)===e),...r.filter(n=>Ze(n)!==e)]:r.filter(n=>or(n)===n)).filter(n=>e?Ze(n)===e||(t?uo(n)!==n:!1):!0)}var go=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Zi,autoAlignment:g=!0,...v}=Dr(e,t),S=d!==void 0||p===Zi?Tc(d||null,g,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,C=S[x];if(C==null)return{};if(a!==C)return{reset:{placement:S[0]}};let M=await l.detectOverflow(t,v),b=co(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[M[or(C)],M[b[0]],M[b[1]]],L=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:O}],z=S[x+1];if(z)return{data:{index:x+1,overflows:L},reset:{placement:z}};let U=L.map(ge=>{let rt=Ze(ge.placement);return[ge.placement,rt&&u?ge.overflows.slice(0,2).reduce((dc,pc)=>dc+pc,0):ge.overflows[0],ge.overflows]}).sort((ge,rt)=>ge[1]-rt[1]),Yt=((n=U.filter(ge=>ge[2].slice(0,Ze(ge[0])?2:3).every(rt=>rt<=0))[0])==null?void 0:n[0])||U[0][0];return Yt!==a?{data:{index:x+1,overflows:L},reset:{placement:Yt}}:{}}}};var yo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:M=>{let{x:b,y:O}=M;return{x:b,y:O}}},...c}=Dr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=kr(n),g=Ji(p),v=u[g],S=u[p],x=(M,b)=>lo(b+d[M==="y"?"top":"left"],b,b-d[M==="y"?"bottom":"right"]);o&&(v=x(g,v)),a&&(S=x(p,S));let C=l.fn({...t,[g]:v,[p]:S});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:o,[p]:a}}}}}};function Ir(){return typeof window<"u"}function gt(e){return vo(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=(vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vo(e){return Ir()?e instanceof Node||e instanceof de(e).Node:!1}function Te(e){return Ir()?e instanceof Element||e instanceof de(e).Element:!1}function Ve(e){return Ir()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function xo(e){return!Ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function ar(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function bo(e){return/^(table|td|th)$/.test(gt(e))}function lr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Oc=/transform|translate|scale|rotate|perspective|filter/,Rc=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none",tn;function Mt(e){let t=Te(e)?Oe(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!$r()&&(mt(t.backdropFilter)||mt(t.filter))||Oc.test(t.willChange||"")||Rc.test(t.contain||"")}function Eo(e){let t=Je(e);for(;Ve(t)&&!It(t);){if(Mt(t))return t;if(lr(t))return null;t=Je(t)}return null}function $r(){return tn==null&&(tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tn}function It(e){return/^(html|body|#document)$/.test(gt(e))}function Oe(e){return de(e).getComputedStyle(e)}function cr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xo(e)&&e.host||He(e);return xo(t)?t.host:t}function So(e){let t=Je(e);return It(t)?(e.ownerDocument||e).body:Ve(t)&&ar(t)?t:So(t)}function Mr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=So(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=de(n);if(s){let a=Ur(o);return t.concat(o,o.visualViewport||[],ar(n)?n:[],a&&r?Mr(a):[])}else return t.concat(n,Mr(n,[],r))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Co(e){let t=Oe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Ve(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=sr(r)!==s||sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function wo(e){return Te(e)?e:e.contextElement}function $t(e){let t=wo(e);if(!Ve(t))return De(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=Co(t),o=(s?sr(r.width):r.width)/i,a=(s?sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Pc=De(0);function To(e){let t=de(e);return!$r()||!t.visualViewport?Pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function ur(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=wo(e),o=De(1);t&&(i?Te(i)&&(o=$t(i)):o=$t(e));let a=Lc(s,r,i)?To(s):De(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=de(s),g=Te(i)?de(i):i,v=p,S=Ur(v);for(;S&&g!==v;){let x=$t(S),C=S.getBoundingClientRect(),M=Oe(S),b=C.left+(S.clientLeft+parseFloat(M.paddingLeft))*x.x,O=C.top+(S.clientTop+parseFloat(M.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=O,v=de(S),S=Ur(v)}}return ht({width:u,height:d,x:l,y:c})}function Br(e,t){let r=cr(e).scrollLeft;return t?t.left+r:ur(He(e)).left+r}function Oo(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Br(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function Nc(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=He(i),a=t?lr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=De(1),u=De(0),d=Ve(i);if((d||!s)&&((gt(i)!=="body"||ar(o))&&(l=cr(i)),d)){let g=ur(i);c=$t(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=o&&!d&&!s?Oo(o,l):De(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Dc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function kc(e){let t=cr(e),r=e.ownerDocument.body,i=Xe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Xe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Br(e),o=-t.scrollTop;return Oe(r).direction==="rtl"&&(s+=Xe(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Mc=25;function Ic(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=de(e),s=He(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!$r()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Br(s)<=0){let p=s.ownerDocument,g=p.body,v=getComputedStyle(g),S=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-S),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;C<=Mc&&(a-=C)}return{width:a,height:l,x:c,y:u}}function $c(e,t){let r=ur(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=$t(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ao(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=Ic(e,r,t);else if(t==="document")i=kc(He(e));else if(Te(t))i=$c(t,r);else{let n=To(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ht(i)}function Uc(e,t){let r=t.get(e);if(r)return r;let i=Mr(e,[],!1).filter(a=>Te(a)&&gt(a)!=="body"),n=null,s=Oe(e).position==="fixed",o=s?Je(e):e;for(;Te(o)&&!It(o);){let a=Oe(o),l=Mt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Je(o)}return t.set(e,i),i}function Bc(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?lr(t)?[]:Uc(t,this._c):[].concat(r),i],a=Ao(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let g=Ao(t,o[p],n);l=Xe(g.top,l),c=nr(g.right,c),u=nr(g.bottom,u),d=Xe(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Fc(e){let{width:t,height:r}=Co(e);return{width:t,height:r}}function Hc(e,t,r){let i=Ve(t),n=He(t),s=r==="fixed",o=ur(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=De(0);if((i||!s)&&((gt(t)!=="body"||ar(n))&&(a=cr(t)),i)){let p=ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Br(n));let c=n&&!i&&!s?Oo(n,a):De(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function rn(e){return Oe(e).position==="static"}function _o(e,t){if(!Ve(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return He(e)===r&&(r=r.ownerDocument.body),r}function Ro(e,t){let r=de(e);if(lr(e))return r;if(!Ve(e)){let n=Je(e);for(;n&&!It(n);){if(Te(n)&&!rn(n))return n;n=Je(n)}return r}let i=_o(e,t);for(;i&&bo(i)&&rn(i);)i=_o(i,t);return i&&It(i)&&rn(i)&&!Mt(i)?r:i||Eo(e)||r}var Vc=async function(e){let t=this.getOffsetParent||Ro,r=this.getDimensions,i=await r(e.floating);return{reference:Hc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zc(e){return Oe(e).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:Nc,getDocumentElement:He,getClippingRect:Bc,getOffsetParent:Ro,getElementRects:Vc,getClientRects:Dc,getDimensions:Fc,getScale:$t,isElement:Te,isRTL:zc};var Po=go,Lo=yo;var No=(e,t,r)=>{let i=new Map,n=r??{},s={...Fr,...n.platform,_c:i};return mo(e,t,{...n,platform:s})};function Do(e){return jc(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function jc(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Mt(r)||t.tagName==="BODY"))return t}return null}async function ko(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},No(e,t,{strategy:i.strategy,platform:{...Fr,getOffsetParent:n=>Fr.getOffsetParent(n,Do)},middleware:[Lo({crossAxis:!0}),Po({allowedPlacements:[i.placement]})]})}var Kt=f(A());var wn=f(J());var Mo=f(J(),1);var sn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Wc=e=>({fromAttribute:t=>{if(t==null)return dr(e);try{return JSON.parse(t)}catch{return dr(e)}},toAttribute:t=>JSON.stringify(t)});function Io(e,t){return(0,Mo.property)({type:Object,converter:Wc(e),hasChanged:pr,...t??{}})}function Kc(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,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ut(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Ut(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Ut(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ut(e,t){try{return Kc(e,t)}catch{return!1}}function pr(e,t){return!Ut(e,t)}function dr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Hr(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var $o=f(J(),1);var on=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:pr,attribute:!1,...t};(0,$o.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Vr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==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 yt=f(J(),1);var zr=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(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 i)try{await o()}catch(a){n(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 Wr=f(V(),1);var jr=class extends Wr.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},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Wr.adoptStyles)(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){sn(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 Uo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ft=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Vo,Bo=Symbol("constructorPrototype"),Fo=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer"),Ho=Symbol("dynamicDependenciesLoaded"),Bt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Bt.eventName="exportparts-updated";var ke=class extends jr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vo]=new zr(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[zo].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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[Fo]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fo]&&Object.setPrototypeOf(this,this[Bo])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Ho]||(r[Ho]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Bt.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 Bt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Uo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let g=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],v=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],S=[...g,...v].filter(l).map(x=>x.trim());for(let x of S)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Vo=zo;Ft([(0,yt.property)()],ke.prototype,"exportpartsPrefix",void 0);Ft([Io([])],ke.prototype,"exportpartsPrefixes",void 0);Ft([(0,yt.property)({reflect:!0})],ke.prototype,"exportparts",void 0);Ft([(0,yt.property)()],ke.prototype,"customStylesheet",void 0);Ft([(0,yt.property)()],ke.prototype,"elementToFocus",void 0);Ft([(0,yt.state)()],ke.prototype,"useAdoptedStyleSheets",void 0);function Kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var fr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),xt=Symbol("internalStores"),Gc=Hr(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=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[xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[xt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[xt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Qe].has(o.store):this[Qe].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[Qe].set(o,a.subscribe(()=>this.updateFromStores())),this[fr].set(o,[]),Kr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[fr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qe].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Qe].has(o)&&this[Qe].get(o)(),this[Qe].delete(o),(a=this[fr].get(o))===null||a===void 0||a.forEach(l=>l()),this[fr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Qe,r=xt,i=fr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),jo=class extends Gc(ke){};function te(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 qc=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wo=qc,an=()=>Math.random().toString(36).substring(7).split("").join("."),Yc={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},Gr=Yc;function qr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ln(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(ln)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,C)=>{o.set(C,x)}))}function u(){if(l)throw new Error(te(3));return n}function d(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let M=a++;return o.set(M,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),o.delete(M),s=null}}}function p(x){if(!qr(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(M=>{M()}),x}function g(x){if(typeof x!="function")throw new Error(te(10));i=x,p({type:Gr.REPLACE})}function v(){let x=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function M(){let O=C;O.next&&O.next(u())}return M(),{unsubscribe:x(M)}},[Wo](){return this}}}return p({type:Gr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Wo]:v}}function Xc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Gr.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Ko(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Xc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],v=a[p],S=g(v,l);if(typeof S>"u"){let x=l&&l.type;throw new Error(te(14))}u[p]=S,c=c||S!==v}return c=c||i.length!==Object.keys(a).length,c?u:a}}function hr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function Go(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(te(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=hr(...a)(n.dispatch),{...n,dispatch:s}}}function qo(e){return qr(e)&&"type"in e&&typeof e.type=="string"}var ia=Symbol.for("immer-nothing"),Yo=Symbol.for("immer-draftable"),re=Symbol.for("immer-state");function Re(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fe=Object,Vt=fe.getPrototypeOf,Jr="constructor",ni="prototype",pn="configurable",Qr="enumerable",Xr="writable",mr="value",Me=e=>!!e&&!!e[re];function he(e){return e?na(e)||oi(e)||!!e[Yo]||!!e[Jr]?.[Yo]||ai(e)||li(e):!1}var Zc=fe[ni][Jr].toString(),Xo=new WeakMap;function na(e){if(!e||!bn(e))return!1;let t=Vt(e);if(t===null||t===fe[ni])return!0;let r=fe.hasOwnProperty.call(t,Jr)&&t[Jr];if(r===Object)return!0;if(!Ht(r))return!1;let i=Xo.get(r);return i===void 0&&(i=Function.toString.call(r),Xo.set(r,i)),i===Zc}function si(e,t,r=!0){xr(e)===0?(r?Reflect.ownKeys(e):fe.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function xr(e){let t=e[re];return t?t.type_:oi(e)?1:ai(e)?2:li(e)?3:0}var cn=(e,t,r=xr(e))=>r===2?e.has(t):fe[ni].hasOwnProperty.call(e,t),fn=(e,t,r=xr(e))=>r===2?e.get(t):e[t],ei=(e,t,r,i=xr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Jc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var oi=Array.isArray,ai=e=>e instanceof Map,li=e=>e instanceof Set,bn=e=>typeof e=="object",Ht=e=>typeof e=="function",un=e=>typeof e=="boolean";function Qc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ze=e=>e.copy_||e.base_;var En=e=>e.modified_?e.copy_:e.base_;function hn(e,t){if(ai(e))return new Map(e);if(li(e))return new Set(e);if(oi(e))return Array[ni].slice.call(e);let r=na(e);if(t===!0||t==="class_only"&&!r){let i=fe.getOwnPropertyDescriptors(e);delete i[re];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Xr]===!1&&(a[Xr]=!0,a[pn]=!0),(a.get||a.set)&&(i[o]={[pn]:!0,[Xr]:!0,[Qr]:a[Qr],[mr]:e[o]})}return fe.create(Vt(e),i)}else{let i=Vt(e);if(i!==null&&r)return{...e};let n=fe.create(i);return fe.assign(n,e)}}function Sn(e,t=!1){return ci(e)||Me(e)||!he(e)||(xr(e)>1&&fe.defineProperties(e,{set:Yr,add:Yr,clear:Yr,delete:Yr}),fe.freeze(e),t&&si(e,(r,i)=>{Sn(i,!0)},!1)),e}function eu(){Re(2)}var Yr={[mr]:eu};function ci(e){return e===null||!bn(e)?!0:fe.isFrozen(e)}var ti="MapSet",mn="Patches",Zo="ArrayMethods",sa={};function vt(e){let t=sa[e];return t||Re(0,e),t}var Jo=e=>!!sa[e];var gr,oa=()=>gr,tu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Jo(ti)?vt(ti):void 0,arrayMethodsPlugin_:Jo(Zo)?vt(Zo):void 0});function Qo(e,t){t&&(e.patchPlugin_=vt(mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gn(e){yn(e),e.drafts_.forEach(ru),e.drafts_=null}function yn(e){e===gr&&(gr=e.parent_)}var ea=e=>gr=tu(gr,e);function ru(e){let t=e[re];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ta(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[re].modified_&&(gn(t),Re(4)),he(e)&&(e=ra(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[re].base_,e,t)}else e=ra(t,r);return iu(t,e,!0),gn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ia?e:void 0}function ra(e,t){if(ci(t))return t;let r=t[re];if(!r)return ri(t,e.handledSet_,e);if(!ui(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);ca(r,e)}return r.copy_}function iu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Sn(t,r)}function aa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ui=(e,t)=>e.scope_===t,nu=[];function la(e,t,r,i){let n=ze(e),s=e.type_;if(i!==void 0&&fn(n,i,s)===t){ei(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;si(n,(l,c)=>{if(Me(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??nu;for(let a of o)ei(n,a,r,s)}function su(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ui(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=En(s);la(e,s.draft_??s,o,r),ca(s,n)})}function ca(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}aa(e)}}function ou(e,t,r){let{scope_:i}=e;if(Me(r)){let n=r[re];ui(n,i)&&n.callbacks_.push(function(){Zr(e);let o=En(n);la(e,r,o,t)})}else he(r)&&e.callbacks_.push(function(){let s=ze(e);e.type_===3?s.has(r)&&ri(r,i.handledSet_,i):fn(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ri(fn(e.copy_,t,e.type_),i.handledSet_,i)})}function ri(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Me(e)||t.has(e)||!he(e)||ci(e)||(t.add(e),si(e,(i,n)=>{if(Me(n)){let s=n[re];if(ui(s,r)){let o=En(s);ei(e,i,o,e.type_),aa(s)}}else he(n)&&ri(n,t,r)})),e}function au(e,t){let r=oi(e),i={type_:r?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=ii;r&&(n=[i],s=yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var ii={get(e,t){if(t===re)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=ze(e);if(!cn(n,t,e.type_))return cu(e,n,t);let s=n[t];if(e.finalized_||!he(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Qc(t))return s;if(s===dn(e.base_,t)||lu(e,t,s)){Zr(e);let o=e.type_===1?+t:t,a=vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in ze(e)},ownKeys(e){return Reflect.ownKeys(ze(e))},set(e,t,r){let i=ua(ze(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=dn(ze(e),t),s=n?.[re];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Jc(r,n)&&(r!==void 0||cn(e.base_,t,e.type_)))return!0;Zr(e),xn(e)}return e.copy_[t]===r&&(r!==void 0||cn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ou(e,t,r)),!0},deleteProperty(e,t){return Zr(e),dn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ze(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[Xr]:!0,[pn]:e.type_!==1||t!=="length",[Qr]:i[Qr],[mr]:r[t]}},defineProperty(){Re(11)},getPrototypeOf(e){return Vt(e.base_)},setPrototypeOf(){Re(12)}},yr={};for(let e in ii){let t=ii[e];yr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}yr.deleteProperty=function(e,t){return yr.set.call(this,e,t,void 0)};yr.set=function(e,t,r){return ii.set.call(this,e[0],t,r,e[0])};function dn(e,t){let r=e[re];return(r?ze(r):e)[t]}function lu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!he(r)||r[re]?!1:e.baseRefs_.has(r)}function cu(e,t,r){let i=ua(t,r);return i?mr in i?i[mr]:i.get?.call(e.draft_):void 0}function ua(e,t){if(!(t in e))return;let r=Vt(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Vt(r)}}function xn(e){e.modified_||(e.modified_=!0,e.parent_&&xn(e.parent_))}function Zr(e){e.copy_||(e.assigned_=new Map,e.copy_=hn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(Ht(t)&&!Ht(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Ht(r)||Re(6),i!==void 0&&!Ht(i)&&Re(7);let n;if(he(t)){let s=ea(this),o=vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?gn(s):yn(s)}return Qo(s,i),ta(n,s)}else if(!t||!bn(t)){if(n=r(t),n===void 0&&(n=t),n===ia&&(n=void 0),this.autoFreeze_&&Sn(n,!0),i){let s=[],o=[];vt(mn).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Re(1,t)},this.produceWithPatches=(t,r)=>{if(Ht(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},un(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),un(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),un(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){he(e)||Re(8),Me(e)&&(e=da(e));let t=ea(this),r=vn(t,e,void 0);return r[re].isManual_=!0,yn(t),r}finishDraft(e,t){let r=e&&e[re];(!r||!r.isManual_)&&Re(9);let{scope_:i}=r;return Qo(i,t),ta(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=vt(mn).applyPatches_;return Me(e)?i(e,t):this.produce(e,n=>i(n,t))}};function vn(e,t,r,i){let[n,s]=ai(t)?vt(ti).proxyMap_(t,r):li(t)?vt(ti).proxySet_(t,r):au(t,r);return(r?.scope_??oa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?su(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function da(e){return Me(e)||Re(10,e),pa(e)}function pa(e){if(!he(e)||ci(e))return e;let t=e[re],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=hn(e,!0);return si(r,(n,s)=>{ei(r,n,pa(s))},i),t&&(t.finalized_=!1),r}var du=globalThis.Iterator,Pf=typeof du?.from=="function";var pu=new uu,An=pu.produce;function fa(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ha=fa(),ma=fa;var fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},$f=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},hu=e=>e&&typeof e.match=="function";function et(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(je(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>qo(i)&&i.type===e,r}var ba=class vr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vr.prototype)}static get[Symbol.species](){return vr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vr(...t[0].concat(this)):new vr(...t.concat(this))}};function ga(e){return he(e)?An(e,()=>{}):e}function di(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function mu(e){return typeof e=="boolean"}var gu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new ba;return r&&(mu(r)?o.push(ha):o.push(ma(r.extraArgument))),o},yu="RTK_autoBatch";var ya=e=>t=>{setTimeout(t,e)},xu=(e,t)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(n),o=setTimeout(n,t)},vu=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?xu(window.requestAnimationFrame,100):ya(10):e.type==="callback"?e.queueNotification:ya(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[yu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},bu=e=>function(r){let{autoBatch:i=!0}=r??{},n=new ba(e);return i&&n.push(vu(typeof i=="object"?i:void 0)),n};function Ea(e){let t=gu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(qr(r))l=Ko(r);else throw new Error(je(1));let c;typeof i=="function"?c=i(t):c=t();let u=hr;n&&(u=fu({trace:!1,...typeof n=="object"&&n}));let d=Go(...c),p=bu(d),g=typeof a=="function"?a(p):p(),v=u(...g);return ln(l,o,v)}function Sa(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(je(28));if(a in t)throw new Error(je(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function Eu(e){return typeof e=="function"}function Su(e,t){let[r,i,n]=Sa(t),s;if(Eu(e))s=()=>ga(e());else{let a=ga(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Me(u)){let g=d(u,l);return g===void 0?u:g}else{if(he(u))return An(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=s,o}var Au=(e,t)=>hu(e)?e.match(t):e(t);function _u(...e){return t=>e.some(r=>Au(r,t))}var Cu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wu=(e=21)=>{let t="",r=e;for(;r--;)t+=Cu[Math.random()*64|0];return t},Tu=["name","message","stack","code"],_n=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},xa=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ou=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Tu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},va="External signal was aborted",Ru=(()=>{function e(t,r,i){let n=et(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=et(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=et(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||Ou)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):wu(),v=new AbortController,S,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(va):c.addEventListener("abort",()=>C(va),{once:!0}));let M=(async function(){let b;try{let L=i?.condition?.(l,{getState:d,extra:p});if(Lu(L)&&(L=await L),L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise((U,j)=>{S=()=>{j({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",S,{once:!0})});u(s(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),b=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:v.signal,abort:C,rejectWithValue:((U,j)=>new _n(U,j)),fulfillWithValue:((U,j)=>new xa(U,j))})).then(U=>{if(U instanceof _n)throw U;return U instanceof xa?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(L){b=L instanceof _n?o(null,g,l,L.payload,L.meta):o(L,g,l)}finally{S&&v.signal.removeEventListener("abort",S)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(M,{abort:C,requestId:g,arg:l,unwrap(){return M.then(Pu)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:_u(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function Pu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Lu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),Bf={[Aa]:Ru};function Nu(e,t){return`${e}/${t}`}function Du({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(je(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(Mu()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,O){let L=typeof b=="string"?b:b.type;if(!L)throw new Error(je(12));if(L in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[L]=O,c},addMatcher(b,O){return l.sliceMatchers.push({matcher:b,reducer:O}),c},exposeAction(b,O){return l.actionCreators[b]=O,c},exposeCaseReducer(b,O){return l.sliceCaseReducersByName[b]=O,c}};a.forEach(b=>{let O=o[b],L={reducerName:b,type:Nu(n,b),createNotation:typeof i.reducers=="function"};$u(O)?Bu(L,O,c,t):Iu(L,O,c)});function u(){let[b={},O=[],L=void 0]=typeof i.extraReducers=="function"?Sa(i.extraReducers):[i.extraReducers],z={...b,...l.sliceCaseReducersByType};return Su(i.initialState,U=>{for(let j in z)U.addCase(j,z[j]);for(let j of l.sliceMatchers)U.addMatcher(j.matcher,j.reducer);for(let j of O)U.addMatcher(j.matcher,j.reducer);L&&U.addDefaultCase(L)})}let d=b=>b,p=new Map,g=new WeakMap,v;function S(b,O){return v||(v=u()),v(b,O)}function x(){return v||(v=u()),v.getInitialState()}function C(b,O=!1){function L(U){let j=U[b];return typeof j>"u"&&O&&(j=di(g,L,x)),j}function z(U=d){let j=di(p,O,()=>new WeakMap);return di(j,U,()=>{let Yt={};for(let[ge,rt]of Object.entries(i.selectors??{}))Yt[ge]=ku(rt,U,()=>di(g,U,x),O);return Yt})}return{reducerPath:b,getSelectors:z,get selectors(){return z(L)},selectSlice:L}}let M={name:n,reducer:S,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(s),injectInto(b,{reducerPath:O,...L}={}){let z=O??s;return b.inject({reducerPath:z,reducer:S},L),{...M,...C(z,!0)}}};return M}}function ku(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var _a=Du();function Mu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Iu({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Uu(i))throw new Error(je(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?et(e,o):et(e))}function $u(e){return e._reducerDefinitionType==="asyncThunk"}function Uu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bu({type:e,reducerName:t},r,i,n){if(!n)throw new Error(je(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||pi,pending:a||pi,rejected:l||pi,settled:c||pi})}function pi(){}var Ca="listener",wa="completed",Ta="cancelled",Ff=`task-${Ta}`,Hf=`task-${wa}`,Vf=`${Ca}-${Ta}`,zf=`${Ca}-${wa}`;var{assign:Oa}=Object;var Cn="listenerMiddleware";var Fu=Oa(et(`${Cn}/add`),{withTypes:()=>Fu}),jf=et(`${Cn}/removeAll`),Hu=Oa(et(`${Cn}/remove`),{withTypes:()=>Hu});function je(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vu=Hr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),fi=class extends Vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ra=class e extends fi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(Kr(s))return s;if(n==null)return;let o=_a({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=dr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Ut(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var hi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var mi=f(A()),zu="ft-app-info",bt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};bt.eventName="authentication-change";var br=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};br.eventName="ui-locale-changed";var ju={session:(e,t)=>{(0,mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new bt(t.payload)),0))}},w=mi.FtReduxStore.get({name:zu,reducers:ju,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Pa=f(A()),gi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},bh=(0,Pa.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>hi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gi([(0,wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),gi([(0,wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),gi([on({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),gi([on({store:w.name})],t.prototype,"uiLocale",void 0),t});var La;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(La||(La={}));var Na;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Na||(Na={}));var Da;(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"})(Da||(Da={}));var ka;(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"})(ka||(ka={}));var Ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ma||(Ma={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var $a;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})($a||($a={}));var Ua;(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"})(Ua||(Ua={}));var Ba;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ba||(Ba={}));var Fa;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Fa||(Fa={}));var Ha;(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"})(Ha||(Ha={}));var Va;(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"})(Va||(Va={}));var za;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(za||(za={}));var ja;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ja||(ja={}));var Wa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Wa||(Wa={}));var Ka;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ka||(Ka={}));var Ga;(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"})(Ga||(Ga={}));var qa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qa||(qa={}));var Ya;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ya||(Ya={}));var Xa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Xa||(Xa={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Qa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Qa||(Qa={}));var el;(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"})(el||(el={}));var tl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tl||(tl={}));var rl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rl||(rl={}));var il;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(il||(il={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var q;(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"})(q||(q={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var sl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(sl||(sl={}));var ol;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ol||(ol={}));var al;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(pl||(pl={}));var fl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(fl||(fl={}));var hl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(hl||(hl={}));var ml;(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"})(ml||(ml={}));var gl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gl||(gl={}));var Wu={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN,q.BEHAVIOR_DATA_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Wu[e]??[]).some(r=>yl(r,t))}function Tn(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(i=>yl(i,t))}function xl(e,...t){return e==null?!1:t.some(r=>Tn(e,r))}var Ei=f(A());var On=f(A());var Et=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=w.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Et.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Et.await()}};var me=class extends zt{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new On.CacheRegistry,this.cache=t?n.commonCache:new On.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var yi=class extends me{async listMySearches(){let{session:t}=w.getState();return Tn(t,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var xi=class extends me{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 vi=class extends me{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 bi=class extends me{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 Ku="ft-user-assets",Gu={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(ve).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:i,asset:n}=t.payload;Pn(e,r,[...Rn(e,r),n]),vl(e,r,1,i),bl(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Pn(e,r,Rn(e,r).map(n=>n.id===i.id?i:n)),bl(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Pn(e,r,Rn(e,r).filter(s=>s.id!==n)),vl(e,r,-1,i)}},El={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},Rn=(e,t)=>{var r;let i=El[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Pn=(e,t,r)=>{let i=El[t];i&&(e[i]=r)},vl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===ve.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},bl=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},se=Ei.FtReduxStore.get({name:Ku,reducers:Gu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ln=class{constructor(t=new vi,r=new bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xi,this.savedSearchesService=new yi,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Ei.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(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.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;se.actions.bookmarks(r)}}},qu=new Ln;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qu);var Nn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Nn;var be=f(A());var Sl,jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yu=Symbol("clearAfterUnitTest"),Si=class extends(0,be.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sl]=()=>{this.defaultMessages={},this.cache=new be.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 i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,be.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new jt({loadedContexts:t})),this.dispatchEvent(new jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new jt({loadedContexts:[t]})),this.dispatchEvent(new jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,be.delay)(0).then(()=>i()).catch(()=>null)))}};Sl=Yu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Si{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Si{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Er=window.FluidTopicsI18nService,Dn=window.FluidTopicsCustomI18nService;var Al=f(A()),kn=class{highlightHtml(t,r,i){(0,Al.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new kn;var _l=f(A());var Mn=class{isDate(t){var r,i,n,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 i,n,s,o;if(t==null)return"";try{return _l.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!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 Mn;var Cl=f(A());var Sr=class{static get(t,r){var i,n,s,o;let a=w.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Cl.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var In=class{urlToSearchRequest(t){return Sr.get().parse(t)}searchRequestToUrl(t){return Sr.get().serialize(t)}};window.FluidTopicsUrlService=new In;var We=f(A());var St=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};St.eventName="before-location-change";var At=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};At.eventName="change";var $n=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))}},wl=new $n;var Ai=class e extends We.WithEventBus{static build(){return new e(window.history,wl,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,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(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,We.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new At(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new St(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),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 i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(St.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(St.eventName,t)}addHistoryChangeListener(t){this.addEventListener(At.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(At.eventName,t)}currentItem(){return(0,We.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,We.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,We.deepCopy)(r.find(i=>t(i)))}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,We.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 i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}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 i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ai.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),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Tl=f(V());var Ol=Tl.css`
632
+ `;var Ll=f(V()),oe=f(J()),wt=f(A());var _t=f(A());function Rl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var _i=class extends zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Un=class e extends _t.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new _t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new _i,this.cleanSessionDebouncer=new _t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new _t.Debouncer(500),this.apiProvider=r??(()=>Et.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(bt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(bt.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",()=>Rl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(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,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new br(i)))}).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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}userHasAnyRole(...t){return xl(w.getState().session,...t)}},Pl=Un.build();var Ct=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ar=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:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ct(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},H=class extends wt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Pl,this.contextRoot=new Ar}render(){return Ll.html`
633
633
  <slot></slot>
634
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Sr.addContext(i)),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())}};H.elementDefinitions={};H.styles=Pl;Z([(0,oe.property)()],H.prototype,"baseUrl",void 0);Z([(0,oe.property)()],H.prototype,"tenantId",void 0);Z([(0,oe.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Z([(0,oe.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Z([(0,oe.property)()],H.prototype,"uiLocale",void 0);Z([(0,wt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Z([(0,wt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"editorMode",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"noCustom",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Z([(0,wt.jsonProperty)([])],H.prototype,"messageContexts",void 0);Z([(0,wt.jsonProperty)(void 0)],H.prototype,"session",void 0);var Ml=f(A());var kl={"ft-app-context":H};(0,Ml.customElements)(kl);var Il=f(J());var Bn=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,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Wt=new Bn;var td=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Cr=Symbol("i18nAttributes"),$l=Symbol("i18nListAttributes"),Ul=Symbol("i18nProperties"),Ci=Symbol("i18nContexts"),_r=Symbol("i18nUnsubs"),Bl=(0,Kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Dn:Sr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Wt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Cr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[$l])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(s){var o;(o=this[Ul])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ci].set(l,{isCustomContext:a}),this[_r].has(l)||this[_r].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ci].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ci].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[_r].forEach(s=>s()),this[_r].clear()}}return t=Ci,r=_r,td([(0,Il.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wi=class extends Bl(Kt.FtLitElement){},Ti=class extends Bl(Kt.FtLitElementRedux){};var Fl=f(A());var Fn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Wt.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},rd=new Fn;var Hl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Fl.hasChanged,converter:Wt,...t}),r[Cr]=(n=r[Cr])!==null&&n!==void 0?n:new Map,r[Cr].set(i,e??{})};var Vl=f(V());var zl=Vl.css`
635
- `;var Oi=f(V()),qt=f(J()),Ri=f(A());var Gt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Se=class extends Ti{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Oi.nothing:Oi.html`
634
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Er.addContext(i)),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())}};H.elementDefinitions={};H.styles=Ol;Z([(0,oe.property)()],H.prototype,"baseUrl",void 0);Z([(0,oe.property)()],H.prototype,"tenantId",void 0);Z([(0,oe.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Z([(0,oe.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Z([(0,oe.property)()],H.prototype,"uiLocale",void 0);Z([(0,wt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Z([(0,wt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"editorMode",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"noCustom",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Z([(0,oe.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Z([(0,wt.jsonProperty)([])],H.prototype,"messageContexts",void 0);Z([(0,wt.jsonProperty)(void 0)],H.prototype,"session",void 0);var Dl=f(A());var Nl={"ft-app-context":H};(0,Dl.customElements)(Nl);var kl=f(J());var Bn=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,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Wt=new Bn;var Ju=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Cr=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),Il=Symbol("i18nProperties"),Ci=Symbol("i18nContexts"),_r=Symbol("i18nUnsubs"),$l=(0,Kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Dn:Er}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Wt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Cr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ml])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(s){var o;(o=this[Il])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ci].set(l,{isCustomContext:a}),this[_r].has(l)||this[_r].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ci].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ci].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[_r].forEach(s=>s()),this[_r].clear()}}return t=Ci,r=_r,Ju([(0,kl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wi=class extends $l(Kt.FtLitElement){},Ti=class extends $l(Kt.FtLitElementRedux){};var Ul=f(A());var Fn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Wt.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Qu=new Fn;var Bl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ul.hasChanged,converter:Wt,...t}),r[Cr]=(n=r[Cr])!==null&&n!==void 0?n:new Map,r[Cr].set(i,e??{})};var Fl=f(V());var Hl=Fl.css`
635
+ `;var Oi=f(V()),qt=f(J()),Ri=f(A());var Gt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ee=class extends Ti{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Oi.nothing:Oi.html`
636
636
  <span class="ft-i18n">
637
637
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
638
638
  </span>
639
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=zl;Gt([(0,Ri.redux)()],Se.prototype,"editorMode",void 0);Gt([(0,qt.property)()],Se.prototype,"context",void 0);Gt([(0,qt.property)()],Se.prototype,"key",void 0);Gt([(0,Ri.jsonProperty)([])],Se.prototype,"args",void 0);Gt([(0,qt.property)()],Se.prototype,"defaultMessage",void 0);Gt([(0,qt.state)()],Se.prototype,"editorMessage",void 0);var Wl=f(A());var jl={"ft-i18n":Se};(0,Wl.customElements)(jl);var Pe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Y=class extends wi{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 Ee.Debouncer,this.revealDebouncer=new Ee.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 Kl.html`
639
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ee.elementDefinitions={};Ee.styles=Hl;Gt([(0,Ri.redux)()],Ee.prototype,"editorMode",void 0);Gt([(0,qt.property)()],Ee.prototype,"context",void 0);Gt([(0,qt.property)()],Ee.prototype,"key",void 0);Gt([(0,Ri.jsonProperty)([])],Ee.prototype,"args",void 0);Gt([(0,qt.property)()],Ee.prototype,"defaultMessage",void 0);Gt([(0,qt.state)()],Ee.prototype,"editorMessage",void 0);var zl=f(A());var Vl={"ft-i18n":Ee};(0,zl.customElements)(Vl);var Pe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Y=class extends wi{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 Se.Debouncer,this.revealDebouncer=new Se.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 jl.html`
640
640
  <div part="container"
641
641
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
642
642
  <slot part="slot"></slot>
@@ -651,7 +651,7 @@
651
651
  </div>
652
652
  </div>
653
653
  </div>
654
- `}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,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.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 i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}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&&ko(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 ${Ee.designSystemVariables.transitionDuration}, left ${Ee.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Ee.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":ie};Y.styles=so;Pe([Hl()],Y.prototype,"text",void 0);Pe([(0,Ae.property)({type:Boolean})],Y.prototype,"manual",void 0);Pe([(0,Ae.property)({type:Boolean})],Y.prototype,"inline",void 0);Pe([(0,Ee.numberProperty)()],Y.prototype,"delay",void 0);Pe([(0,Ae.property)()],Y.prototype,"position",void 0);Pe([(0,Ee.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Pe([(0,Ae.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Pe([(0,Ae.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Pe([(0,Ae.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Pe([(0,Ae.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Pe([(0,Ae.state)()],Y.prototype,"visible",void 0);var ql=f(A());var Gl={"ft-tooltip":Y};(0,ql.customElements)(Gl);var Yl=f(V()),wr=f(A()),Tt={color:wr.FtCssVariableFactory.extend("--ft-loader-color","",wr.designSystemVariables.colorPrimary),size:wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Xl=Yl.css`
654
+ `}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,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.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 i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}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&&ko(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 ${Se.designSystemVariables.transitionDuration}, left ${Se.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Se.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":ie};Y.styles=so;Pe([Bl()],Y.prototype,"text",void 0);Pe([(0,Ae.property)({type:Boolean})],Y.prototype,"manual",void 0);Pe([(0,Ae.property)({type:Boolean})],Y.prototype,"inline",void 0);Pe([(0,Se.numberProperty)()],Y.prototype,"delay",void 0);Pe([(0,Ae.property)()],Y.prototype,"position",void 0);Pe([(0,Se.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Pe([(0,Ae.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Pe([(0,Ae.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Pe([(0,Ae.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Pe([(0,Ae.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Pe([(0,Ae.state)()],Y.prototype,"visible",void 0);var Kl=f(A());var Wl={"ft-tooltip":Y};(0,Kl.customElements)(Wl);var Gl=f(V()),wr=f(A()),Tt={color:wr.FtCssVariableFactory.extend("--ft-loader-color","",wr.designSystemVariables.colorPrimary),size:wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ql=Gl.css`
655
655
  :host {
656
656
  line-height: 0;
657
657
  }
@@ -720,14 +720,14 @@
720
720
  transform: translate(calc(0.35 * ${Tt.size}), 0);
721
721
  }
722
722
  }
723
- `;var Zl=f(V()),Jl=f(A());var Ot=class extends Jl.FtLitElement{render(){return Zl.html`
723
+ `;var Yl=f(V()),Xl=f(A());var Ot=class extends Xl.FtLitElement{render(){return Yl.html`
724
724
  <div class="ft-loader">
725
725
  <div></div>
726
726
  <div></div>
727
727
  <div></div>
728
728
  <div></div>
729
729
  </div>
730
- `}};Ot.styles=Xl;var ec=f(A());var Ql={"ft-loader":Ot};(0,ec.customElements)(Ql);var tt=f(V()),Pi=f(Nt()),I=f(J());var ic=f(V()),T=f(A());var tc=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),X={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:tc,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",_e.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",tc),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},rc=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),Hn={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:rc,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",rc)},Ie={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},nc=ic.css`
730
+ `}};Ot.styles=ql;var Jl=f(A());var Zl={"ft-loader":Ot};(0,Jl.customElements)(Zl);var tt=f(V()),Pi=f(Nt()),I=f(J());var tc=f(V()),T=f(A());var Ql=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),X={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:Ql,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",_e.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ql),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},ec=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),Hn={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:ec,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ec)},Ie={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},rc=tc.css`
731
731
  :host {
732
732
  display: inline-block;
733
733
  max-width: 100%;
@@ -905,8 +905,8 @@
905
905
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
906
906
  `:tt.html`
907
907
  <slot part="icon" name="icon"></slot>
908
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};D.elementDefinitions={"ft-ripple":$,"ft-tooltip":Y,"ft-icon":ee,"ft-loader":Ot,"ft-typography":ie};D.styles=[$e.safariEllipsisFix,nc,$e.noTextSelect];D.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:D.labelsObserver.unobserve(t.target)}});F([(0,I.property)({type:Boolean})],D.prototype,"primary",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"outlined",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"dense",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"round",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"disabled",void 0);F([(0,I.property)()],D.prototype,"icon",void 0);F([(0,I.property)()],D.prototype,"iconVariant",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"trailingIcon",void 0);F([(0,I.property)()],D.prototype,"label",void 0);F([(0,I.property)()],D.prototype,"type",void 0);F([(0,I.property)()],D.prototype,"href",void 0);F([(0,I.property)()],D.prototype,"target",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"loading",void 0);F([(0,I.property)({attribute:"aria-label"})],D.prototype,"ariaLabel",void 0);F([(0,I.property)()],D.prototype,"ariaHasPopup",void 0);F([(0,I.property)({attribute:"aria-pressed"})],D.prototype,"ariaPressed",void 0);F([(0,I.property)()],D.prototype,"tooltipPosition",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"hideTooltip",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"forceTooltip",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"activated",void 0);F([(0,I.query)(".ft-button")],D.prototype,"button",void 0);F([(0,I.query)(".ft-button--label")],D.prototype,"labelContainer",void 0);F([(0,I.state)()],D.prototype,"hasTextContent",void 0);F([(0,I.query)(".ft-button--label slot")],D.prototype,"slottedContent",void 0);F([(0,I.query)("[part=tooltip]")],D.prototype,"tooltip",void 0);var oc=f(A());var sc={"ft-button":D};(0,oc.customElements)(sc);var Pt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Vn=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},zn=class extends CustomEvent{constructor(t){super("suggestion-removed",{detail:t,bubbles:!0,composed:!0})}},ae=class extends ac.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Rt.html`
909
- <div class="${(0,lc.classMap)(t)}">
908
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};D.elementDefinitions={"ft-ripple":$,"ft-tooltip":Y,"ft-icon":ee,"ft-loader":Ot,"ft-typography":ie};D.styles=[$e.safariEllipsisFix,rc,$e.noTextSelect];D.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:D.labelsObserver.unobserve(t.target)}});F([(0,I.property)({type:Boolean})],D.prototype,"primary",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"outlined",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"dense",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"round",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"disabled",void 0);F([(0,I.property)()],D.prototype,"icon",void 0);F([(0,I.property)()],D.prototype,"iconVariant",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"trailingIcon",void 0);F([(0,I.property)()],D.prototype,"label",void 0);F([(0,I.property)()],D.prototype,"type",void 0);F([(0,I.property)()],D.prototype,"href",void 0);F([(0,I.property)()],D.prototype,"target",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"loading",void 0);F([(0,I.property)({attribute:"aria-label"})],D.prototype,"ariaLabel",void 0);F([(0,I.property)()],D.prototype,"ariaHasPopup",void 0);F([(0,I.property)({attribute:"aria-pressed"})],D.prototype,"ariaPressed",void 0);F([(0,I.property)()],D.prototype,"tooltipPosition",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"hideTooltip",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"forceTooltip",void 0);F([(0,I.property)({type:Boolean})],D.prototype,"activated",void 0);F([(0,I.query)(".ft-button")],D.prototype,"button",void 0);F([(0,I.query)(".ft-button--label")],D.prototype,"labelContainer",void 0);F([(0,I.state)()],D.prototype,"hasTextContent",void 0);F([(0,I.query)(".ft-button--label slot")],D.prototype,"slottedContent",void 0);F([(0,I.query)("[part=tooltip]")],D.prototype,"tooltip",void 0);var nc=f(A());var ic={"ft-button":D};(0,nc.customElements)(ic);var Pt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Vn=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},zn=class extends CustomEvent{constructor(t){super("suggestion-removed",{detail:t,bubbles:!0,composed:!0})}},ae=class extends sc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Rt.html`
909
+ <div class="${(0,oc.classMap)(t)}">
910
910
  <div
911
911
  class="ft-text-field-suggestion--suggestion"
912
912
  tabindex="-1"
@@ -938,7 +938,7 @@
938
938
  `:Rt.nothing}
939
939
  </div>
940
940
  `}focus(t,r){var i,n;r&&this.removable?(i=this.removeButton)===null||i===void 0||i.focus():(n=this.suggestion)===null||n===void 0||n.focus(t)}click(t){var r;(r=t?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var t,r;return(r=(t=this.removeButton)===null||t===void 0?void 0:t.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new Vn(this.getValue()))}removeSuggestion(){this.dispatchEvent(new zn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}suggestionKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(t.preventDefault(),t.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};ae.elementDefinitions={"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-button":D};ae.styles=io;Pt([(0,Ue.property)()],ae.prototype,"value",void 0);Pt([(0,Ue.property)()],ae.prototype,"helper",void 0);Pt([(0,Ue.property)({type:Boolean})],ae.prototype,"removable",void 0);Pt([(0,Ue.property)()],ae.prototype,"removeButtonLabel",void 0);Pt([(0,Ue.query)(".ft-text-field-suggestion--suggestion")],ae.prototype,"suggestion",void 0);Pt([(0,Ue.query)(".ft-text-field-suggestion--remove")],ae.prototype,"removeButton",void 0);Pt([(0,Ue.queryAssignedNodes)()],ae.prototype,"assignedNodes",void 0);var Li=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},Ni=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Di=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var N=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},_=class extends(0,le.toFtFormComponent)(le.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Fe.EYE_SLASH,this.passwordRevealedIcon=Fe.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),s=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,o=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return W.html`
941
- <div class="${(0,uc.classMap)(r)}">
941
+ <div class="${(0,lc.classMap)(r)}">
942
942
  <div class="ft-text-field--main-panel"
943
943
  @keydown=${this.handleKeyboardNavigation}
944
944
  @focusout=${this.onMainPanelBlur}>
@@ -997,7 +997,7 @@
997
997
  `:W.nothing}
998
998
  </div>
999
999
  `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?W.html`
1000
- ${(0,cc.repeat)(this.providedSuggestions,t=>{var r,i;return W.html`
1000
+ ${(0,ac.repeat)(this.providedSuggestions,t=>{var r,i;return W.html`
1001
1001
  <ft-text-field-suggestion part="suggestion"
1002
1002
  value="${t.value}"
1003
1003
  ?removable=${t.removable} }
@@ -1021,52 +1021,45 @@
1021
1021
  .variant=${this.iconVariant}
1022
1022
  .value=${this.icon}
1023
1023
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1024
- `:W.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var t;if(this.suggestionsProvider){(t=this.cancelableSuggest)===null||t===void 0||t.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,le.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new Li(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Ni(t))):this.dispatchEvent(new Di(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r,i;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),s;t.key==="ArrowDown"?s=n<this.visibleSuggestions.length-1?n+1:0:s=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[s])===null||r===void 0||r.focus(void 0,(i=this.visibleSuggestions[n])===null||i===void 0?void 0:i.isRemoveButtonFocused())}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,le.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":Ce,"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-text-field-suggestion":ae};_.styles=[Pr,le.noTextInputDefaultClearButton,to];N([(0,P.property)()],_.prototype,"label",void 0);N([(0,P.property)({noAccessor:!0})],_.prototype,"value",null);N([(0,P.state)()],_.prototype,"dispatchedValue",void 0);N([(0,P.property)()],_.prototype,"helper",void 0);N([(0,P.property)()],_.prototype,"suggestionsHelper",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"outlined",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"disabled",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"error",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);N([(0,P.property)()],_.prototype,"prefix",void 0);N([(0,P.property)()],_.prototype,"icon",void 0);N([(0,P.property)()],_.prototype,"name",void 0);N([(0,P.property)()],_.prototype,"type",void 0);N([(0,P.property)()],_.prototype,"passwordHiddenIcon",void 0);N([(0,P.property)()],_.prototype,"passwordRevealedIcon",void 0);N([(0,P.property)()],_.prototype,"iconVariant",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);N([(0,le.numberProperty)()],_.prototype,"maxLength",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"password",void 0);N([(0,P.property)({type:String})],_.prototype,"autocomplete",void 0);N([(0,P.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);N([(0,P.state)()],_.prototype,"focused",void 0);N([(0,P.state)()],_.prototype,"inputValid",void 0);N([(0,P.state)()],_.prototype,"hidePassword",void 0);N([(0,P.state)()],_.prototype,"hideSuggestions",void 0);N([(0,P.state)()],_.prototype,"visibleSuggestions",void 0);N([(0,P.state)()],_.prototype,"providedSuggestions",void 0);N([(0,P.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);N([(0,P.query)(".ft-text-field--input")],_.prototype,"input",void 0);N([(0,P.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);N([(0,P.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);N([(0,P.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);N([(0,P.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);N([(0,le.ignoreComposingEvents)()],_.prototype,"handleInput",null);N([(0,le.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var dc={"ft-text-field":_,"ft-text-field-suggestion":ae};(0,pc.customElements)(dc);})();
1024
+ `:W.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var t;if(this.suggestionsProvider){(t=this.cancelableSuggest)===null||t===void 0||t.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,le.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new Li(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Ni(t))):this.dispatchEvent(new Di(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r,i;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),s;t.key==="ArrowDown"?s=n<this.visibleSuggestions.length-1?n+1:0:s=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[s])===null||r===void 0||r.focus(void 0,(i=this.visibleSuggestions[n])===null||i===void 0?void 0:i.isRemoveButtonFocused())}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,le.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":Ce,"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-text-field-suggestion":ae};_.styles=[Pr,le.noTextInputDefaultClearButton,to];N([(0,P.property)()],_.prototype,"label",void 0);N([(0,P.property)({noAccessor:!0})],_.prototype,"value",null);N([(0,P.state)()],_.prototype,"dispatchedValue",void 0);N([(0,P.property)()],_.prototype,"helper",void 0);N([(0,P.property)()],_.prototype,"suggestionsHelper",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"outlined",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"disabled",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"error",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);N([(0,P.property)()],_.prototype,"prefix",void 0);N([(0,P.property)()],_.prototype,"icon",void 0);N([(0,P.property)()],_.prototype,"name",void 0);N([(0,P.property)()],_.prototype,"type",void 0);N([(0,P.property)()],_.prototype,"passwordHiddenIcon",void 0);N([(0,P.property)()],_.prototype,"passwordRevealedIcon",void 0);N([(0,P.property)()],_.prototype,"iconVariant",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);N([(0,le.numberProperty)()],_.prototype,"maxLength",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"password",void 0);N([(0,P.property)({type:String})],_.prototype,"autocomplete",void 0);N([(0,P.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);N([(0,P.state)()],_.prototype,"focused",void 0);N([(0,P.state)()],_.prototype,"inputValid",void 0);N([(0,P.state)()],_.prototype,"hidePassword",void 0);N([(0,P.state)()],_.prototype,"hideSuggestions",void 0);N([(0,P.state)()],_.prototype,"visibleSuggestions",void 0);N([(0,P.state)()],_.prototype,"providedSuggestions",void 0);N([(0,P.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);N([(0,P.query)(".ft-text-field--input")],_.prototype,"input",void 0);N([(0,P.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);N([(0,P.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);N([(0,P.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);N([(0,P.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);N([(0,le.ignoreComposingEvents)()],_.prototype,"handleInput",null);N([(0,le.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var cc={"ft-text-field":_,"ft-text-field-suggestion":ae};(0,uc.customElements)(cc);})();
1025
1025
  /*! Bundled license information:
1026
1026
 
1027
- lit-html/lit-html.js:
1028
- @lit/context/lib/decorators/provide.js:
1027
+ .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
1028
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/provide.js:
1029
1029
  (**
1030
1030
  * @license
1031
1031
  * Copyright 2017 Google LLC
1032
1032
  * SPDX-License-Identifier: BSD-3-Clause
1033
1033
  *)
1034
1034
 
1035
- lit-html/directives/if-defined.js:
1035
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/if-defined.js:
1036
1036
  (**
1037
1037
  * @license
1038
1038
  * Copyright 2018 Google LLC
1039
1039
  * SPDX-License-Identifier: BSD-3-Clause
1040
1040
  *)
1041
1041
 
1042
- lit-html/static.js:
1042
+ .store/lit-html-npm-3.3.3-0f054b825a/package/static.js:
1043
1043
  (**
1044
1044
  * @license
1045
1045
  * Copyright 2020 Google LLC
1046
1046
  * SPDX-License-Identifier: BSD-3-Clause
1047
1047
  *)
1048
1048
 
1049
- lit-html/directives/when.js:
1050
- @lit/context/lib/context-request-event.js:
1051
- @lit/context/lib/create-context.js:
1052
- @lit/context/lib/controllers/context-consumer.js:
1053
- @lit/context/lib/value-notifier.js:
1054
- @lit/context/lib/controllers/context-provider.js:
1055
- @lit/context/lib/context-root.js:
1049
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/when.js:
1050
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
1051
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/create-context.js:
1052
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-consumer.js:
1053
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/value-notifier.js:
1054
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-provider.js:
1055
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-root.js:
1056
1056
  (**
1057
1057
  * @license
1058
1058
  * Copyright 2021 Google LLC
1059
1059
  * SPDX-License-Identifier: BSD-3-Clause
1060
1060
  *)
1061
1061
 
1062
- @lit/reactive-element/css-tag.js:
1063
- (**
1064
- * @license
1065
- * Copyright 2019 Google LLC
1066
- * SPDX-License-Identifier: BSD-3-Clause
1067
- *)
1068
-
1069
- @lit/context/lib/decorators/consume.js:
1062
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/consume.js:
1070
1063
  (**
1071
1064
  * @license
1072
1065
  * Copyright 2022 Google LLC