@fluid-topics/ft-filter 2.2.5 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,95 +1,105 @@
1
- "use strict";(()=>{var Wc=Object.create;var ls=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty;var Bt=(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 s of Gc(t))!Yc.call(e,s)&&s!==r&&ls(e,s,{get:()=>t[s],enumerable:!(i=Kc(t,s))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Wc(qc(e)):{},Xc(t||!e||!e.__esModule?ls(r,"default",{value:e,enumerable:!0}):r,e));var S=Bt((Pd,cs)=>{cs.exports=ftGlobals.wcUtils});var k=Bt((Dd,us)=>{us.exports=ftGlobals.lit});var K=Bt((Md,ds)=>{ds.exports=ftGlobals.litDecorators});var js=Bt((ip,zs)=>{zs.exports=ftGlobals.litRepeat});var Xt=Bt((np,Ws)=>{Ws.exports=ftGlobals.litClassMap});var Yl=Bt((Rg,ql)=>{ql.exports=ftGlobals.litUnsafeHTML});var Vc=f(S());var $t=f(k()),I=f(K()),W=f(S());var an=globalThis,ps=e=>e,Gr=an.trustedTypes,fs=Gr?Gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,bs="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,xs="?"+it,Jc=`<${xs}>`,xt=document,qr=()=>xt.createComment(""),hr=e=>e===null||typeof e!="object"&&typeof e!="function",ln=Array.isArray,Zc=e=>ln(e)||typeof e?.[Symbol.iterator]=="function",en=`[
1
+ "use strict";(()=>{var Wc=Object.create;var ls=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty;var Gt=(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 s of Gc(t))!Yc.call(e,s)&&s!==r&&ls(e,s,{get:()=>t[s],enumerable:!(i=Kc(t,s))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Wc(qc(e)):{},Xc(t||!e||!e.__esModule?ls(r,"default",{value:e,enumerable:!0}):r,e));var S=Gt((Nd,cs)=>{cs.exports=ftGlobals.wcUtils});var k=Gt((Pd,us)=>{us.exports=ftGlobals.lit});var K=Gt((Md,ds)=>{ds.exports=ftGlobals.litDecorators});var js=Gt((ip,zs)=>{zs.exports=ftGlobals.litRepeat});var Xt=Gt((np,Ws)=>{Ws.exports=ftGlobals.litClassMap});var Yl=Gt((Rg,ql)=>{ql.exports=ftGlobals.litUnsafeHTML});var Vc=f(S());var Wt=f(k()),I=f(K()),W=f(S());var an=globalThis,ps=e=>e,Gr=an.trustedTypes,fs=Gr?Gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,xs="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,bs="?"+it,Jc=`<${bs}>`,bt=document,qr=()=>bt.createComment(""),hr=e=>e===null||typeof e!="object"&&typeof e!="function",ln=Array.isArray,Zc=e=>ln(e)||typeof e?.[Symbol.iterator]=="function",en=`[
2
2
  \f\r]`,fr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hs=/-->/g,ms=/>/g,vt=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ys=/'/g,gs=/"/g,Ss=/^(?:script|style|textarea|title)$/i,cn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Es=cn(1),As=cn(2),_s=cn(3),mr=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),vs=new WeakMap,bt=xt.createTreeWalker(xt,129);function Cs(e,t){if(!ln(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fs!==void 0?fs.createHTML(t):t}var Qc=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":t===3?"<math>":"",o=fr;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===fr?u[1]==="!--"?o=hs:u[1]!==void 0?o=ms:u[2]!==void 0?(Ss.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=vt):u[3]!==void 0&&(o=vt):o===vt?u[0]===">"?(o=s??fr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?vt:u[3]==='"'?gs:ys):o===gs||o===ys?o=vt:o===hs||o===ms?o=fr:(o=vt,s=void 0);let y=o===vt&&e[a+1].startsWith("/>")?" ":"";n+=o===fr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+bs+l.slice(d)+it+y):l+it+(d===-2?a:y)}return[Cs(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},yr=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=t.length-1,l=this.parts,[c,u]=Qc(t,r);if(this.el=e.createElement(c,i),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=bt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(bs)){let p=u[o++],y=s.getAttribute(d).split(it),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:b[2],strings:y,ctor:b[1]==="."?rn:b[1]==="?"?nn:b[1]==="@"?sn:Ht}),s.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(Ss.test(s.tagName)){let d=s.textContent.split(it),p=d.length-1;if(p>0){s.textContent=Gr?Gr.emptyScript:"";for(let y=0;y<p;y++)s.append(d[y],qr()),bt.nextNode(),l.push({type:2,index:++n});s.append(d[p],qr())}}}else if(s.nodeType===8)if(s.data===xs)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:n}),d+=it.length-1}n++}}static createElement(t,r){let i=xt.createElement("template");return i.innerHTML=t,i}};function Ft(e,t,r=e,i){if(t===mr)return t;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=hr(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(t=Ft(e,s._$AS(e,t.values),s,i)),t}var tn=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,s=(t?.creationScope??xt).importNode(r,!0);bt.currentNode=s;let n=bt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Yr(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new on(n,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=bt.nextNode(),o++)}return bt.currentNode=xt,s}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++}},Yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=Ft(this,t,r),hr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==mr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zc(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!==G&&hr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yr.createElement(Cs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new tn(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(t){let r=vs.get(t.strings);return r===void 0&&vs.set(t.strings,r=new yr(t)),r}k(t){ln(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.O(qr()),this.O(qr()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=ps(t).nextSibling;ps(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=Ft(this,t,r,0),o=!hr(t)||t!==this._$AH&&t!==mr,o&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=Ft(this,a[i+l],r,l),c===mr&&(c=this._$AH[l]),o||=!hr(c)||c!==this._$AH[l],c===G?t=G:t!==G&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rn=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},nn=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},sn=class extends Ht{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){if((t=Ft(this,t,r,0)??G)===mr)return;let i=this._$AH,s=t===G&&i!==G||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==G&&(i===G||s);s&&this.element.removeEventListener(this.name,this,i),n&&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)}},on=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){Ft(this,t)}};var eu=an.litHtmlPolyfillSupport;eu?.(yr,Yr),(an.litHtmlVersions??=[]).push("3.3.3");var Os=Symbol.for(""),tu=e=>{if(e?.r===Os)return e?._$litStatic$},un=e=>({_$litStatic$:e,r:Os});var ws=new Map,dn=e=>(t,...r)=>{let i=r.length,s,n,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(n=r[c],(s=tu(n))!==void 0);)l+=s+t[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=ws.get(d))===void 0&&(o.raw=o,ws.set(d,t=o)),r=a}return e(t,...r)},pn=dn(Es),Ud=dn(As),Bd=dn(_s);var fn=f(K()),Fs=f(S());var te;(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"})(te||(te={}));var Ce=f(k()),m=f(S()),Ts=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Xe=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),g={fontFamily:Xe,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ts),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ts),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},Kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},ge={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},Gt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},qt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},Yt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Ve={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},Rs=Ce.css`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ys=/'/g,gs=/"/g,Ss=/^(?:script|style|textarea|title)$/i,cn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Es=cn(1),As=cn(2),_s=cn(3),mr=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),vs=new WeakMap,xt=bt.createTreeWalker(bt,129);function Cs(e,t){if(!ln(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fs!==void 0?fs.createHTML(t):t}var Qc=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":t===3?"<math>":"",o=fr;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===fr?u[1]==="!--"?o=hs:u[1]!==void 0?o=ms:u[2]!==void 0?(Ss.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=vt):u[3]!==void 0&&(o=vt):o===vt?u[0]===">"?(o=s??fr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?vt:u[3]==='"'?gs:ys):o===gs||o===ys?o=vt:o===hs||o===ms?o=fr:(o=vt,s=void 0);let y=o===vt&&e[a+1].startsWith("/>")?" ":"";n+=o===fr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+xs+l.slice(d)+it+y):l+it+(d===-2?a:y)}return[Cs(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},yr=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=t.length-1,l=this.parts,[c,u]=Qc(t,r);if(this.el=e.createElement(c,i),xt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=xt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(xs)){let p=u[o++],y=s.getAttribute(d).split(it),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:x[2],strings:y,ctor:x[1]==="."?rn:x[1]==="?"?nn:x[1]==="@"?sn:Yt}),s.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(Ss.test(s.tagName)){let d=s.textContent.split(it),p=d.length-1;if(p>0){s.textContent=Gr?Gr.emptyScript:"";for(let y=0;y<p;y++)s.append(d[y],qr()),xt.nextNode(),l.push({type:2,index:++n});s.append(d[p],qr())}}}else if(s.nodeType===8)if(s.data===bs)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:n}),d+=it.length-1}n++}}static createElement(t,r){let i=bt.createElement("template");return i.innerHTML=t,i}};function qt(e,t,r=e,i){if(t===mr)return t;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=hr(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(t=qt(e,s._$AS(e,t.values),s,i)),t}var tn=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,s=(t?.creationScope??bt).importNode(r,!0);xt.currentNode=s;let n=xt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Yr(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new on(n,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=xt.nextNode(),o++)}return xt.currentNode=bt,s}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++}},Yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=qt(this,t,r),hr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==mr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zc(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!==G&&hr(this._$AH)?this._$AA.nextSibling.data=t:this.T(bt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yr.createElement(Cs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new tn(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(t){let r=vs.get(t.strings);return r===void 0&&vs.set(t.strings,r=new yr(t)),r}k(t){ln(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.O(qr()),this.O(qr()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=ps(t).nextSibling;ps(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Yt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=qt(this,t,r,0),o=!hr(t)||t!==this._$AH&&t!==mr,o&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=qt(this,a[i+l],r,l),c===mr&&(c=this._$AH[l]),o||=!hr(c)||c!==this._$AH[l],c===G?t=G:t!==G&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rn=class extends Yt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},nn=class extends Yt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},sn=class extends Yt{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){if((t=qt(this,t,r,0)??G)===mr)return;let i=this._$AH,s=t===G&&i!==G||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==G&&(i===G||s);s&&this.element.removeEventListener(this.name,this,i),n&&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)}},on=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){qt(this,t)}};var eu=an.litHtmlPolyfillSupport;eu?.(yr,Yr),(an.litHtmlVersions??=[]).push("3.3.3");var Os=Symbol.for(""),tu=e=>{if(e?.r===Os)return e?._$litStatic$},un=e=>({_$litStatic$:e,r:Os});var ws=new Map,dn=e=>(t,...r)=>{let i=r.length,s,n,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(n=r[c],(s=tu(n))!==void 0);)l+=s+t[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=ws.get(d))===void 0&&(o.raw=o,ws.set(d,t=o)),r=a}return e(t,...r)},pn=dn(Es),Ud=dn(As),Bd=dn(_s);var fn=f(K()),Fs=f(S());var te;(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"})(te||(te={}));var Ce=f(k()),h=f(S()),Ts=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Xe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Xe,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")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ts),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ts),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},pe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},Ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},Tt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},De={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Rs=Ce.css`
4
4
  .ft-typography--title {
5
- font-family: ${Vt.fontFamily};
6
- font-size: ${Vt.fontSize};
7
- font-weight: ${Vt.fontWeight};
8
- letter-spacing: ${Vt.letterSpacing};
9
- line-height: ${Vt.lineHeight};
10
- text-transform: ${Vt.textTransform};
5
+ font-family: ${St.fontFamily};
6
+ font-size: ${St.fontSize};
7
+ font-weight: ${St.fontWeight};
8
+ letter-spacing: ${St.letterSpacing};
9
+ line-height: ${St.lineHeight};
10
+ text-transform: ${St.textTransform};
11
+ text-decoration: ${St.textDecoration};
11
12
  }
12
13
  `,Ls=Ce.css`
13
14
  .ft-typography--title-dense {
14
- font-family: ${zt.fontFamily};
15
- font-size: ${zt.fontSize};
16
- font-weight: ${zt.fontWeight};
17
- letter-spacing: ${zt.letterSpacing};
18
- line-height: ${zt.lineHeight};
19
- text-transform: ${zt.textTransform};
15
+ font-family: ${Et.fontFamily};
16
+ font-size: ${Et.fontSize};
17
+ font-weight: ${Et.fontWeight};
18
+ letter-spacing: ${Et.letterSpacing};
19
+ line-height: ${Et.lineHeight};
20
+ text-transform: ${Et.textTransform};
21
+ text-decoration: ${Et.textDecoration};
20
22
  }
21
23
  `,ks=Ce.css`
22
24
  .ft-typography--subtitle1 {
23
- font-family: ${jt.fontFamily};
24
- font-size: ${jt.fontSize};
25
- font-weight: ${jt.fontWeight};
26
- letter-spacing: ${jt.letterSpacing};
27
- line-height: ${jt.lineHeight};
28
- text-transform: ${jt.textTransform};
25
+ font-family: ${At.fontFamily};
26
+ font-size: ${At.fontSize};
27
+ font-weight: ${At.fontWeight};
28
+ letter-spacing: ${At.letterSpacing};
29
+ line-height: ${At.lineHeight};
30
+ text-transform: ${At.textTransform};
31
+ text-decoration: ${At.textDecoration};
29
32
  }
30
- `,Ns=Ce.css`
33
+ `,Ds=Ce.css`
31
34
  .ft-typography--subtitle2 {
32
- font-family: ${Wt.fontFamily};
33
- font-size: ${Wt.fontSize};
34
- font-weight: ${Wt.fontWeight};
35
- letter-spacing: ${Wt.letterSpacing};
36
- line-height: ${Wt.lineHeight};
37
- text-transform: ${Wt.textTransform};
35
+ font-family: ${_t.fontFamily};
36
+ font-size: ${_t.fontSize};
37
+ font-weight: ${_t.fontWeight};
38
+ letter-spacing: ${_t.letterSpacing};
39
+ line-height: ${_t.lineHeight};
40
+ text-transform: ${_t.textTransform};
41
+ text-decoration: ${_t.textDecoration};
38
42
  }
39
43
 
40
- `,Ps=Ce.css`
44
+ `,Ns=Ce.css`
41
45
  .ft-typography--body1 {
42
- font-family: ${Kt.fontFamily};
43
- font-size: ${Kt.fontSize};
44
- font-weight: ${Kt.fontWeight};
45
- letter-spacing: ${Kt.letterSpacing};
46
- line-height: ${Kt.lineHeight};
47
- text-transform: ${Kt.textTransform};
46
+ font-family: ${Ct.fontFamily};
47
+ font-size: ${Ct.fontSize};
48
+ font-weight: ${Ct.fontWeight};
49
+ letter-spacing: ${Ct.letterSpacing};
50
+ line-height: ${Ct.lineHeight};
51
+ text-transform: ${Ct.textTransform};
52
+ text-decoration: ${Ct.textDecoration};
48
53
  }
49
- `,Ds=Ce.css`
54
+ `,Ps=Ce.css`
50
55
  .ft-typography--body2 {
51
- font-family: ${ge.fontFamily};
52
- font-size: ${ge.fontSize};
53
- font-weight: ${ge.fontWeight};
54
- letter-spacing: ${ge.letterSpacing};
55
- line-height: ${ge.lineHeight};
56
- text-transform: ${ge.textTransform};
56
+ font-family: ${pe.fontFamily};
57
+ font-size: ${pe.fontSize};
58
+ font-weight: ${pe.fontWeight};
59
+ letter-spacing: ${pe.letterSpacing};
60
+ line-height: ${pe.lineHeight};
61
+ text-transform: ${pe.textTransform};
62
+ text-decoration: ${pe.textDecoration};
57
63
  }
58
64
  `,Xr=Ce.css`
59
65
  .ft-typography--caption {
60
- font-family: ${Gt.fontFamily};
61
- font-size: ${Gt.fontSize};
62
- font-weight: ${Gt.fontWeight};
63
- letter-spacing: ${Gt.letterSpacing};
64
- line-height: ${Gt.lineHeight};
65
- text-transform: ${Gt.textTransform};
66
+ font-family: ${wt.fontFamily};
67
+ font-size: ${wt.fontSize};
68
+ font-weight: ${wt.fontWeight};
69
+ letter-spacing: ${wt.letterSpacing};
70
+ line-height: ${wt.lineHeight};
71
+ text-transform: ${wt.textTransform};
72
+ text-decoration: ${wt.textDecoration};
66
73
  }
67
74
  `,Ms=Ce.css`
68
75
  .ft-typography--breadcrumb {
69
- font-family: ${qt.fontFamily};
70
- font-size: ${qt.fontSize};
71
- font-weight: ${qt.fontWeight};
72
- letter-spacing: ${qt.letterSpacing};
73
- line-height: ${qt.lineHeight};
74
- text-transform: ${qt.textTransform};
76
+ font-family: ${Ot.fontFamily};
77
+ font-size: ${Ot.fontSize};
78
+ font-weight: ${Ot.fontWeight};
79
+ letter-spacing: ${Ot.letterSpacing};
80
+ line-height: ${Ot.lineHeight};
81
+ text-transform: ${Ot.textTransform};
82
+ text-decoration: ${Ot.textDecoration};
75
83
  }
76
84
  `,Is=Ce.css`
77
85
  .ft-typography--overline {
78
- font-family: ${Yt.fontFamily};
79
- font-size: ${Yt.fontSize};
80
- font-weight: ${Yt.fontWeight};
81
- letter-spacing: ${Yt.letterSpacing};
82
- line-height: ${Yt.lineHeight};
83
- text-transform: ${Yt.textTransform};
86
+ font-family: ${Tt.fontFamily};
87
+ font-size: ${Tt.fontSize};
88
+ font-weight: ${Tt.fontWeight};
89
+ letter-spacing: ${Tt.letterSpacing};
90
+ line-height: ${Tt.lineHeight};
91
+ text-transform: ${Tt.textTransform};
92
+ text-decoration: ${Tt.textDecoration};
84
93
  }
85
94
  `,$s=Ce.css`
86
95
  .ft-typography--button {
87
- font-family: ${Ve.fontFamily};
88
- font-size: ${Ve.fontSize};
89
- font-weight: ${Ve.fontWeight};
90
- letter-spacing: ${Ve.letterSpacing};
91
- line-height: ${Ve.lineHeight};
92
- text-transform: ${Ve.textTransform};
96
+ font-family: ${De.fontFamily};
97
+ font-size: ${De.fontSize};
98
+ font-weight: ${De.fontWeight};
99
+ letter-spacing: ${De.letterSpacing};
100
+ line-height: ${De.lineHeight};
101
+ text-transform: ${De.textTransform};
102
+ text-decoration: ${De.textDecoration};
93
103
  }
94
104
  `,Us=Ce.css`
95
105
  .ft-typography {
@@ -103,7 +113,7 @@
103
113
  </${un(this.element)}>
104
114
  `:pn`
105
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};X.styles=[Rs,Ls,ks,Ns,Ps,Ds,Xr,Ms,Is,$s,Us];Bs([(0,fn.property)()],X.prototype,"element",void 0);Bs([(0,fn.property)()],X.prototype,"variant",void 0);var Vs=f(S());var Hs={"ft-typography":X};(0,Vs.customElements)(Hs);var Ee=f(k()),Z=f(K()),kc=f(js()),ye=f(S());var Ge=f(S());var Qs=f(k()),re=f(K()),eo=f(Xt()),gr=f(S());var Js=f(k()),q=f(S()),Ks=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorContent),pe={color:Ks,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ks),opacityContentOnSurfacePressed:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gs=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorPrimary),qs={color:Gs,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gs)},Ys=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorSecondary),Xs={color:Ys,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ys)},Zs=Js.css`
116
+ `}};X.styles=[Rs,Ls,ks,Ds,Ns,Ps,Xr,Ms,Is,$s,Us];Bs([(0,fn.property)()],X.prototype,"element",void 0);Bs([(0,fn.property)()],X.prototype,"variant",void 0);var Vs=f(S());var Hs={"ft-typography":X};(0,Vs.customElements)(Hs);var Ee=f(k()),Z=f(K()),kc=f(js()),ge=f(S());var Ge=f(S());var Qs=f(k()),re=f(K()),eo=f(Xt()),gr=f(S());var Js=f(k()),q=f(S()),Ks=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorContent),fe={color:Ks,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ks),opacityContentOnSurfacePressed:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gs=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorPrimary),qs={color:Gs,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gs)},Ys=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorSecondary),Xs={color:Ys,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ys)},Zs=Js.css`
107
117
  :host {
108
118
  display: contents;
109
119
  }
@@ -116,7 +126,7 @@
116
126
 
117
127
  .ft-ripple:not(.ft-ripple--unbounded) {
118
128
  overflow: hidden;
119
- border-radius: ${pe.borderRadius};
129
+ border-radius: ${fe.borderRadius};
120
130
  }
121
131
 
122
132
  .ft-ripple .ft-ripple--background,
@@ -150,11 +160,11 @@
150
160
  }
151
161
 
152
162
  .ft-ripple .ft-ripple--background {
153
- background-color: ${pe.backgroundColor};
163
+ background-color: ${fe.backgroundColor};
154
164
  }
155
165
 
156
166
  .ft-ripple .ft-ripple--effect {
157
- background-color: ${pe.color};
167
+ background-color: ${fe.color};
158
168
  }
159
169
 
160
170
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -200,22 +210,22 @@
200
210
  }
201
211
 
202
212
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
203
- opacity: ${pe.opacityContentOnSurfaceHover};
213
+ opacity: ${fe.opacityContentOnSurfaceHover};
204
214
  }
205
215
 
206
216
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
207
- opacity: ${pe.opacityContentOnSurfaceSelected};
217
+ opacity: ${fe.opacityContentOnSurfaceSelected};
208
218
  }
209
219
 
210
220
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
211
- opacity: ${pe.opacityContentOnSurfaceFocused};
221
+ opacity: ${fe.opacityContentOnSurfaceFocused};
212
222
  }
213
223
 
214
224
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
215
- opacity: ${pe.opacityContentOnSurfacePressed};
225
+ opacity: ${fe.opacityContentOnSurfacePressed};
216
226
  transform: translate(-50%, -50%) scale(1);
217
227
  }
218
- `;var fe=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},N=class extends gr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new gr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new gr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:s,y:n}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qs.html`
228
+ `;var he=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},D=class extends gr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new gr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new gr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:s,y:n}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qs.html`
219
229
  <style>
220
230
  .ft-ripple .ft-ripple--effect {
221
231
  left: ${this.originX}px;
@@ -226,7 +236,7 @@
226
236
  <div class="ft-ripple--background"></div>
227
237
  <div class="ft-ripple--effect"></div>
228
238
  </div>
229
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",s,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",n,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",s,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",n,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=Zs;fe([(0,re.property)({type:Boolean})],N.prototype,"primary",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"secondary",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"unbounded",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"activated",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"selected",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"disabled",void 0);fe([(0,re.state)()],N.prototype,"hovered",void 0);fe([(0,re.state)()],N.prototype,"focused",void 0);fe([(0,re.state)()],N.prototype,"pressed",void 0);fe([(0,re.state)()],N.prototype,"rippling",void 0);fe([(0,re.state)()],N.prototype,"originX",void 0);fe([(0,re.state)()],N.prototype,"originY",void 0);fe([(0,re.query)(".ft-ripple")],N.prototype,"ripple",void 0);fe([(0,re.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var ro=f(S());var to={"ft-ripple":N};(0,ro.customElements)(to);var zl=f(k()),Le=f(K()),Re=f(S());var io=f(k()),nt=f(S()),vr={distance:nt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:nt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:nt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:nt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",nt.designSystemVariables.borderRadiusS),maxWidth:nt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=io.css`
239
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",s,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",n,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",s,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",n,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=Zs;he([(0,re.property)({type:Boolean})],D.prototype,"primary",void 0);he([(0,re.property)({type:Boolean})],D.prototype,"secondary",void 0);he([(0,re.property)({type:Boolean})],D.prototype,"unbounded",void 0);he([(0,re.property)({type:Boolean})],D.prototype,"activated",void 0);he([(0,re.property)({type:Boolean})],D.prototype,"selected",void 0);he([(0,re.property)({type:Boolean})],D.prototype,"disabled",void 0);he([(0,re.state)()],D.prototype,"hovered",void 0);he([(0,re.state)()],D.prototype,"focused",void 0);he([(0,re.state)()],D.prototype,"pressed",void 0);he([(0,re.state)()],D.prototype,"rippling",void 0);he([(0,re.state)()],D.prototype,"originX",void 0);he([(0,re.state)()],D.prototype,"originY",void 0);he([(0,re.query)(".ft-ripple")],D.prototype,"ripple",void 0);he([(0,re.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var ro=f(S());var to={"ft-ripple":D};(0,ro.customElements)(to);var zl=f(k()),Le=f(K()),Re=f(S());var io=f(k()),nt=f(S()),vr={distance:nt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:nt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:nt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:nt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",nt.designSystemVariables.borderRadiusS),maxWidth:nt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=io.css`
230
240
  .ft-tooltip--container {
231
241
  display: block;
232
242
  }
@@ -257,15 +267,15 @@
257
267
  position: relative;
258
268
  word-break: break-word;
259
269
  }
260
- `;var oo=["top","right","bottom","left"],so=["start","end"],mn=oo.reduce((e,t)=>e.concat(t,t+"-"+so[0],t+"-"+so[1]),[]),br=Math.min,st=Math.max,xr=Math.round;var ze=e=>({x:e,y:e}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ao(e,t,r){return st(e,br(t,r))}function Jr(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function gn(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function vn(e){return yn(Zr(e))}function lo(e,t,r){r===void 0&&(r=!1);let i=ot(e),s=vn(e),n=gn(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(o=hn(o)),[o,hn(o)]}function co(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function hn(e){let t=Sr(e);return ru[t]+e.slice(t.length)}function iu(e){var t,r,i,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function uo(e){return typeof e!="number"?iu(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:i,height:s}=e;return{width:i,height:s,top:r,left:t,right:t+i,bottom:r+s,x:t,y:r}}function po(e,t,r){let{reference:i,floating:s}=e,n=Zr(t),o=vn(t),a=gn(o),l=Sr(t),c=n==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,p=i[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:i.y-s.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:d};break;case"left":y={x:i.x-s.width,y:d};break;default:y={x:i.x,y:i.y}}let b=ot(t);return b&&(y[o]+=p*(b==="end"?1:-1)*(r&&c?-1:1)),y}async function fo(e,t){var r;t===void 0&&(t={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Jr(t,e),b=uo(y),v=a[p?d==="floating"?"reference":"floating":d],A=St(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),C=await(n.isElement==null?void 0:n.isElement(x))&&await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1},T=St(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:x,strategy:l}):L);return{top:(A.top-T.top+b.top)/C.y,bottom:(T.bottom-A.bottom+b.bottom)/C.y,left:(A.left-T.left+b.left)/C.x,right:(T.right-A.right+b.right)/C.x}}var nu=50,ho=async(e,t,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:fo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=po(c,i,l),p=i,y=0,b={};for(let E=0;E<n.length;E++){let v=n[E];if(!v)continue;let{name:A,fn:L}=v,{x,y:C,data:T,reset:z}=await L({x:u,y:d,initialPlacement:i,placement:p,strategy:s,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=C??d,b[A]={...b[A],...T},z&&y<nu&&(y++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:u,y:d}=po(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:b}};function su(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>Sr(s)===s)).filter(s=>e?ot(s)===e||(t?co(s)!==s:!1):!0)}var mo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=mn,autoAlignment:y=!0,...b}=Jr(e,t),E=d!==void 0||p===mn?su(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[v];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,b),x=lo(A,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[Sr(A)],L[x[0]],L[x[1]]],T=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:A,overflows:C}],z=E[v+1];if(z)return{data:{index:v+1,overflows:T},reset:{placement:z}};let $=T.map(_e=>{let gt=ot(_e.placement);return[_e.placement,gt&&u?_e.overflows.slice(0,2).reduce((zc,jc)=>zc+jc,0):_e.overflows[0],_e.overflows]}).sort((_e,gt)=>_e[1]-gt[1]),pr=((s=$.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:s[0])||$[0][0];return pr!==a?{data:{index:v+1,overflows:T},reset:{placement:pr}}:{}}}};var yo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:s,platform:n}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...c}=Jr(e,t),u={x:r,y:i},d=await n.detectOverflow(t,c),p=Zr(s),y=yn(p),b=u[y],E=u[p],v=(L,x)=>ao(x+d[L==="y"?"top":"left"],x,x-d[L==="y"?"bottom":"right"]);o&&(b=v(y,b)),a&&(E=v(p,E));let A=l.fn({...t,[y]:b,[p]:E});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[y]:o,[p]:a}}}}}};function ei(){return typeof window<"u"}function At(e){return vo(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vo(e){return ei()?e instanceof Node||e instanceof he(e).Node:!1}function Ne(e){return ei()?e instanceof Element||e instanceof he(e).Element:!1}function Ze(e){return ei()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function go(e){return!ei()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function Er(e){let{overflow:t,overflowX:r,overflowY:i,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&s!=="inline"&&s!=="contents"}function bo(e){return/^(table|td|th)$/.test(At(e))}function Ar(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ou=/transform|translate|scale|rotate|perspective|filter/,au=/paint|layout|strict|content/,Et=e=>!!e&&e!=="none",bn;function Jt(e){let t=Ne(e)?Pe(e):e;return Et(t.transform)||Et(t.translate)||Et(t.scale)||Et(t.rotate)||Et(t.perspective)||!ti()&&(Et(t.backdropFilter)||Et(t.filter))||ou.test(t.willChange||"")||au.test(t.contain||"")}function xo(e){let t=at(e);for(;Ze(t)&&!Zt(t);){if(Jt(t))return t;if(Ar(t))return null;t=at(t)}return null}function ti(){return bn==null&&(bn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bn}function Zt(e){return/^(html|body|#document)$/.test(At(e))}function Pe(e){return he(e).getComputedStyle(e)}function _r(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(At(e)==="html")return e;let t=e.assignedSlot||e.parentNode||go(e)&&e.host||Je(e);return go(t)?t.host:t}function So(e){let t=at(e);return Zt(t)?(e.ownerDocument||e).body:Ze(t)&&Er(t)?t:So(t)}function Qr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=So(e),n=s===((i=e.ownerDocument)==null?void 0:i.body),o=he(s);if(n){let a=ri(o);return t.concat(o,o.visualViewport||[],Er(s)?s:[],a&&r?Qr(a):[])}else return t.concat(s,Qr(s,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _o(e){let t=Pe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,s=Ze(e),n=s?e.offsetWidth:r,o=s?e.offsetHeight:i,a=xr(r)!==n||xr(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Co(e){return Ne(e)?e:e.contextElement}function Qt(e){let t=Co(e);if(!Ze(t))return ze(1);let r=t.getBoundingClientRect(),{width:i,height:s,$:n}=_o(t),o=(n?xr(r.width):r.width)/i,a=(n?xr(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var lu=ze(0);function wo(e){let t=he(e);return!ti()||!t.visualViewport?lu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===he(e)}function Cr(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),n=Co(e),o=ze(1);t&&(i?Ne(i)&&(o=Qt(i)):o=Qt(e));let a=cu(n,r,i)?wo(n):ze(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(n&&i){let p=he(n),y=Ne(i)?he(i):i,b=p,E=ri(b);for(;E&&y!==b;){let v=Qt(E),A=E.getBoundingClientRect(),L=Pe(E),x=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*v.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,b=he(E),E=ri(b)}}return St({width:u,height:d,x:l,y:c})}function ii(e,t){let r=_r(e).scrollLeft;return t?t.left+r:Cr(Je(e)).left+r}function Oo(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-ii(e,r),s=r.top+t.scrollTop;return{x:i,y:s}}function uu(e){let{elements:t,rect:r,offsetParent:i,strategy:s}=e,n=s==="fixed",o=Je(i),a=t?Ar(t.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=ze(1),u=ze(0),d=Ze(i);if((d||!n)&&((At(i)!=="body"||Er(o))&&(l=_r(i)),d)){let y=Cr(i);c=Qt(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let p=o&&!d&&!n?Oo(o,l):ze(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 du(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function pu(e){let t=_r(e),r=e.ownerDocument.body,i=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),n=-t.scrollLeft+ii(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(n+=st(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var fu=25;function hu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=he(e),n=Je(e),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){let p=!ti()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(ii(n)<=0){let p=n.ownerDocument,y=p.body,b=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(n.clientWidth-y.clientWidth-E),A=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;A<=fu&&(a-=A)}return{width:a,height:l,x:c,y:u}}function mu(e,t){let r=Cr(e,!0,t==="fixed"),i=r.top+e.clientTop,s=r.left+e.clientLeft,n=Qt(e),o=e.clientWidth*n.x,a=e.clientHeight*n.y,l=s*n.x,c=i*n.y;return{width:o,height:a,x:l,y:c}}function Eo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=hu(e,r,t);else if(t==="document")i=pu(Je(e));else if(Ne(t))i=mu(t,r);else{let s=wo(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return St(i)}function yu(e,t){let r=t.get(e);if(r)return r;let i=Qr(e,[],!1).filter(a=>Ne(a)&&At(a)!=="body"),s=null,n=Pe(e).position==="fixed",o=n?at(e):e;for(;Ne(o)&&!Zt(o);){let a=Pe(o),l=Jt(o),c=s?s.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,i),i}function gu(e){let{element:t,boundary:r,rootBoundary:i,strategy:s}=e,o=[...r==="clippingAncestors"?Ar(t)?[]:yu(t,this._c):[].concat(r),i],a=Eo(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Eo(t,o[p],s);l=st(y.top,l),c=br(y.right,c),u=br(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vu(e){let{width:t,height:r}=_o(e);return{width:t,height:r}}function bu(e,t,r){let i=Ze(t),s=Je(t),n=r==="fixed",o=Cr(e,!0,n,t),a={scrollLeft:0,scrollTop:0},l=ze(0);if((i||!n)&&((At(t)!=="body"||Er(s))&&(a=_r(t)),i)){let p=Cr(t,!0,n,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&s&&(l.x=ii(s));let c=s&&!i&&!n?Oo(s,a):ze(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 xn(e){return Pe(e).position==="static"}function Ao(e,t){if(!Ze(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Je(e)===r&&(r=r.ownerDocument.body),r}function To(e,t){let r=he(e);if(Ar(e))return r;if(!Ze(e)){let s=at(e);for(;s&&!Zt(s);){if(Ne(s)&&!xn(s))return s;s=at(s)}return r}let i=Ao(e,t);for(;i&&bo(i)&&xn(i);)i=Ao(i,t);return i&&Zt(i)&&xn(i)&&!Jt(i)?r:i||xo(e)||r}var xu=async function(e){let t=this.getOffsetParent||To,r=this.getDimensions,i=await r(e.floating);return{reference:bu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Su(e){return Pe(e).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Je,getClippingRect:gu,getOffsetParent:To,getElementRects:xu,getClientRects:du,getDimensions:vu,getScale:Qt,isElement:Ne,isRTL:Su};var Ro=mo,Lo=yo;var ko=(e,t,r)=>{let i=new Map,s=r??{},n={...ni,...s.platform,_c:i};return ho(e,t,{...s,platform:n})};function No(e){return Eu(e)}function Sn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Eu(e){for(let t=e;t;t=Sn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Sn(e);t;t=Sn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Jt(r)||t.tagName==="BODY"))return t}return null}async function Po(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},ko(e,t,{strategy:i.strategy,platform:{...ni,getOffsetParent:s=>ni.getOffsetParent(s,No)},middleware:[Lo({crossAxis:!0}),Ro({allowedPlacements:[i.placement]})]})}var lr=f(S());var zn=f(K());var Do=f(K(),1);var En=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Mo(e,t){return(0,Do.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return wr(e);try{return JSON.parse(r)}catch{return wr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Or,...t??{}})}function Au(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(!er(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(!er(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(e);if(r=n.length,r!==s(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!er(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function er(e,t){try{return Au(e,t)}catch{return!1}}function Or(e,t){return!er(e,t)}function wr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function si(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let s=t(i);return s[e]=!0,s}}var Io=f(K(),1);var An=e=>{let t=e??{};return(r,i)=>{var s;let n={hasChanged:Or,attribute:!1,...t};(0,Io.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[i]),store:t.store})}};var oi=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 _t=f(K(),1);var ai=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 s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Uo=f(k(),1);var li=globalThis,_u=li.ShadowRoot&&(li.ShadyCSS===void 0||li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var $o=(e,t)=>{if(_u)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),s=li.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}};var ci=class extends Uo.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 $o(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){En(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 Bo(e,t,...r){var i;let s=e.querySelector(t);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var rr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},zo,Fo=Symbol("constructorPrototype"),Ho=Symbol("constructorName"),jo=Symbol("exportpartsDebouncer"),Vo=Symbol("dynamicDependenciesLoaded"),tr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var je=class extends ci{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zo]=new ai(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[jo].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ho]=this.constructor.name,this[Fo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ho]&&Object.setPrototypeOf(this,this[Fo])}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[Vo]||(r[Vo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(tr.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 tr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Bo(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(t){var r,i,s,n,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(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(n=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&n!==void 0?n:[],b=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...b].filter(l).map(v=>v.trim());for(let v of E)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};zo=jo;rr([(0,_t.property)()],je.prototype,"exportpartsPrefix",void 0);rr([Mo([])],je.prototype,"exportpartsPrefixes",void 0);rr([(0,_t.property)({reflect:!0})],je.prototype,"exportparts",void 0);rr([(0,_t.property)()],je.prototype,"customStylesheet",void 0);rr([(0,_t.property)()],je.prototype,"elementToFocus",void 0);rr([(0,_t.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function ui(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Tr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),Cu=si(Symbol("withRedux"),function(e){var t,r,i;class s 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[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ct].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].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[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Tr].set(o,[]),ui(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[Tr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Tr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Tr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Ct,i=Tr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Wo=class extends Cu(je){};function ie(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 wu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ko=wu,_n=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${_n()}`,REPLACE:`@@redux/REPLACE${_n()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_n()}`},di=Ou;function pi(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 Cn(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(Cn)(e,t)}let i=e,s=t,n=new Map,o=n,a=0,l=!1;function c(){o===n&&(o=new Map,n.forEach((v,A)=>{o.set(A,v)}))}function u(){if(l)throw new Error(ie(3));return s}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));let A=!0;c();let L=a++;return o.set(L,v),function(){if(A){if(l)throw new Error(ie(6));A=!1,c(),o.delete(L),n=null}}}function p(v){if(!pi(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(l)throw new Error(ie(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(L=>{L()}),v}function y(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:di.REPLACE})}function b(){let v=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ie(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:v(L)}},[Ko](){return this}}}return p({type:di.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Ko]:b}}function Tu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:di.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Go(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),s,n;try{Tu(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],y=r[p],b=a[p],E=y(b,l);if(typeof E>"u"){let v=l&&l.type;throw new Error(ie(14))}u[p]=E,c=c||E!==b}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Rr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let s=t(r,i),n=()=>{throw new Error(ie(15))},o={getState:s.getState,dispatch:(l,...c)=>n(l,...c)},a=e.map(l=>l(o));return n=Rr(...a)(s.dispatch),{...s,dispatch:n}}}function Yo(e){return pi(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function De(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,nr=ve.getPrototypeOf,yi="constructor",Ei="prototype",Rn="configurable",gi="enumerable",hi="writable",Lr="value",We=e=>!!e&&!!e[ae];function be(e){return e?sa(e)||_i(e)||!!e[Xo]||!!e[yi]?.[Xo]||Ci(e)||wi(e):!1}var Ru=ve[Ei][yi].toString(),Jo=new WeakMap;function sa(e){if(!e||!$n(e))return!1;let t=nr(e);if(t===null||t===ve[Ei])return!0;let r=ve.hasOwnProperty.call(t,yi)&&t[yi];if(r===Object)return!0;if(!ir(r))return!1;let i=Jo.get(r);return i===void 0&&(i=Function.toString.call(r),Jo.set(r,i)),i===Ru}function Ai(e,t,r=!0){Pr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((i,s)=>t(s,i,e))}function Pr(e){let t=e[ae];return t?t.type_:_i(e)?1:Ci(e)?2:wi(e)?3:0}var wn=(e,t,r=Pr(e))=>r===2?e.has(t):ve[Ei].hasOwnProperty.call(e,t),Ln=(e,t,r=Pr(e))=>r===2?e.get(t):e[t],vi=(e,t,r,i=Pr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Lu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _i=Array.isArray,Ci=e=>e instanceof Map,wi=e=>e instanceof Set,$n=e=>typeof e=="object",ir=e=>typeof e=="function",On=e=>typeof e=="boolean";function ku(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>e.copy_||e.base_;var Un=e=>e.modified_?e.copy_:e.base_;function kn(e,t){if(Ci(e))return new Map(e);if(wi(e))return new Set(e);if(_i(e))return Array[Ei].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=ve.getOwnPropertyDescriptors(e);delete i[ae];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[hi]===!1&&(a[hi]=!0,a[Rn]=!0),(a.get||a.set)&&(i[o]={[Rn]:!0,[hi]:!0,[gi]:a[gi],[Lr]:e[o]})}return ve.create(nr(e),i)}else{let i=nr(e);if(i!==null&&r)return{...e};let s=ve.create(i);return ve.assign(s,e)}}function Bn(e,t=!1){return Oi(e)||We(e)||!be(e)||(Pr(e)>1&&ve.defineProperties(e,{set:fi,add:fi,clear:fi,delete:fi}),ve.freeze(e),t&&Ai(e,(r,i)=>{Bn(i,!0)},!1)),e}function Nu(){De(2)}var fi={[Lr]:Nu};function Oi(e){return e===null||!$n(e)?!0:ve.isFrozen(e)}var bi="MapSet",Nn="Patches",Zo="ArrayMethods",oa={};function wt(e){let t=oa[e];return t||De(0,e),t}var Qo=e=>!!oa[e];var kr,aa=()=>kr,Pu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(bi)?wt(bi):void 0,arrayMethodsPlugin_:Qo(Zo)?wt(Zo):void 0});function ea(e,t){t&&(e.patchPlugin_=wt(Nn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pn(e){Dn(e),e.drafts_.forEach(Du),e.drafts_=null}function Dn(e){e===kr&&(kr=e.parent_)}var ta=e=>kr=Pu(kr,e);function Du(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Pn(t),De(4)),be(e)&&(e=ia(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[ae].base_,e,t)}else e=ia(t,r);return Mu(t,e,!0),Pn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(Oi(t))return t;let r=t[ae];if(!r)return xi(t,e.handledSet_,e);if(!Ti(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);ua(r,e)}return r.copy_}function Mu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Bn(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ti=(e,t)=>e.scope_===t,Iu=[];function ca(e,t,r,i){let s=Qe(e),n=e.type_;if(i!==void 0&&Ln(s,i,n)===t){vi(s,i,r,n);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ai(s,(l,c)=>{if(We(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Iu;for(let a of o)vi(s,a,r,n)}function $u(e,t,r){e.callbacks_.push(function(s){let n=t;if(!n||!Ti(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=Un(n);ca(e,n.draft_??n,o,r),ua(n,s)})}function ua(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 s=i.getPath(e);s&&i.generatePatches_(e,s,t)}la(e)}}function Uu(e,t,r){let{scope_:i}=e;if(We(r)){let s=r[ae];Ti(s,i)&&s.callbacks_.push(function(){mi(e);let o=Un(s);ca(e,r,o,t)})}else be(r)&&e.callbacks_.push(function(){let n=Qe(e);e.type_===3?n.has(r)&&xi(r,i.handledSet_,i):Ln(n,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&xi(Ln(e.copy_,t,e.type_),i.handledSet_,i)})}function xi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||We(e)||t.has(e)||!be(e)||Oi(e)||(t.add(e),Ai(e,(i,s)=>{if(We(s)){let n=s[ae];if(Ti(n,r)){let o=Un(n);vi(e,i,o,e.type_),la(n)}}else be(s)&&xi(s,t,r)})),e}function Bu(e,t){let r=_i(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Si;r&&(s=[i],n=Nr);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Si={get(e,t){if(t===ae)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 s=Qe(e);if(!wn(s,t,e.type_))return Hu(e,s,t);let n=s[t];if(e.finalized_||!be(n)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ku(t))return n;if(n===Tn(e.base_,t)||Fu(e,t,n)){mi(e);let o=e.type_===1?+t:t,a=In(e.scope_,n,e,o);return e.copy_[o]=a}return n},has(e,t){return t in Qe(e)},ownKeys(e){return Reflect.ownKeys(Qe(e))},set(e,t,r){let i=da(Qe(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let s=Tn(Qe(e),t),n=s?.[ae];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Lu(r,s)&&(r!==void 0||wn(e.base_,t,e.type_)))return!0;mi(e),Mn(e)}return e.copy_[t]===r&&(r!==void 0||wn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Uu(e,t,r)),!0},deleteProperty(e,t){return mi(e),Tn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Mn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Qe(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[hi]:!0,[Rn]:e.type_!==1||t!=="length",[gi]:i[gi],[Lr]:r[t]}},defineProperty(){De(11)},getPrototypeOf(e){return nr(e.base_)},setPrototypeOf(){De(12)}},Nr={};for(let e in Si){let t=Si[e];Nr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Nr.deleteProperty=function(e,t){return Nr.set.call(this,e,t,void 0)};Nr.set=function(e,t,r){return Si.set.call(this,e[0],t,r,e[0])};function Tn(e,t){let r=e[ae];return(r?Qe(r):e)[t]}function Fu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!be(r)||r[ae]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let i=da(t,r);return i?Lr in i?i[Lr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=nr(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=nr(r)}}function Mn(e){e.modified_||(e.modified_=!0,e.parent_&&Mn(e.parent_))}function mi(e){e.copy_||(e.assigned_=new Map,e.copy_=kn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(ir(t)&&!ir(r)){let n=r;r=t;let o=this;return function(l=n,...c){return o.produce(l,u=>r.call(this,u,...c))}}ir(r)||De(6),i!==void 0&&!ir(i)&&De(7);let s;if(be(t)){let n=ta(this),o=In(n,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Pn(n):Dn(n)}return ea(n,i),ra(s,n)}else if(!t||!$n(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Bn(s,!0),i){let n=[],o=[];wt(Nn).generateReplacementPatches_(t,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else De(1,t)},this.produceWithPatches=(t,r)=>{if(ir(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,s;return[this.produce(t,r,(o,a)=>{i=o,s=a}),i,s]},On(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),On(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),On(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){be(e)||De(8),We(e)&&(e=pa(e));let t=ta(this),r=In(t,e,void 0);return r[ae].isManual_=!0,Dn(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&De(9);let{scope_:i}=r;return ea(i,t),ra(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 s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let i=wt(Nn).applyPatches_;return We(e)?i(e,t):this.produce(e,s=>i(s,t))}};function In(e,t,r,i){let[s,n]=Ci(t)?wt(bi).proxyMap_(t,r):wi(t)?wt(bi).proxySet_(t,r):Bu(t,r);return(r?.scope_??aa()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?$u(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),s}function pa(e){return We(e)||De(10,e),fa(e)}function fa(e){if(!be(e)||Oi(e))return e;let t=e[ae],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=kn(e,!0);return Ai(r,(s,n)=>{vi(r,s,fa(n))},i),t&&(t.finalized_=!1),r}var zu=globalThis.Iterator,mf=typeof zu?.from=="function";var ju=new Vu,Fn=ju.produce;function ha(e){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,e):s(n)}var ma=ha(),ya=ha;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Ef=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ku=e=>e&&typeof e.match=="function";function ct(e,t){function r(...i){if(t){let s=t(...i);if(!s)throw new Error(et(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Sa=class Dr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Dr.prototype)}static get[Symbol.species](){return Dr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Dr(...t[0].concat(this)):new Dr(...t.concat(this))}};function ga(e){return be(e)?Fn(e,()=>{}):e}function Ri(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Gu(e){return typeof e=="boolean"}var qu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=t??{},o=new Sa;return r&&(Gu(r)?o.push(ma):o.push(ya(r.extraArgument))),o},Yu="RTK_autoBatch";var va=e=>t=>{setTimeout(t,e)},Xu=(e,t)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(o),r())},n=e(s),o=setTimeout(s,t)},Ju=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),s=!0,n=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):va(10):e.type==="callback"?e.queueNotification:va(e.timeout),c=()=>{o=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>s&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Yu],n=!s,n&&(o||(o=!0,l(c))),i.dispatch(u)}finally{s=!0}}})},Zu=e=>function(r){let{autoBatch:i=!0}=r??{},s=new Sa(e);return i&&s.push(Ju(typeof i=="object"?i:void 0)),s};function Ea(e){let t=qu(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(pi(r))l=Go(r);else throw new Error(et(1));let c;typeof i=="function"?c=i(t):c=t();let u=Rr;s&&(u=Wu({trace:!1,...typeof s=="object"&&s}));let d=qo(...c),p=Zu(d),y=typeof a=="function"?a(p):p(),b=u(...y);return Cn(l,o,b)}function Aa(e){let t={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(et(28));if(a in t)throw new Error(et(29));return t[a]=o,s},addAsyncThunk(n,o){return o.pending&&(t[n.pending.type]=o.pending),o.rejected&&(t[n.rejected.type]=o.rejected),o.fulfilled&&(t[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return e(s),[t,r,i]}function Qu(e){return typeof e=="function"}function ed(e,t){let[r,i,s]=Aa(t),n;if(Qu(e))n=()=>ga(e());else{let a=ga(e);n=()=>a}function o(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(We(u)){let y=d(u,l);return y===void 0?u:y}else{if(be(u))return Fn(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=n,o}var td=(e,t)=>Ku(e)?e.match(t):e(t);function rd(...e){return t=>e.some(r=>td(r,t))}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(e=21)=>{let t="",r=e;for(;r--;)t+=id[Math.random()*64|0];return t},sd=["name","message","stack","code"],Hn=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},od=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of sd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},xa="External signal was aborted",ad=(()=>{function e(t,r,i){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||od)(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 y=i?.idGenerator?i.idGenerator(l):nd(),b=new AbortController,E,v;function A(x){v=x,b.abort()}c&&(c.aborted?A(xa):c.addEventListener("abort",()=>A(xa),{once:!0}));let L=(async function(){let x;try{let T=i?.condition?.(l,{getState:d,extra:p});if(cd(T)&&(T=await T),T===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise(($,j)=>{E=()=>{j({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",E,{once:!0})});u(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),x=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:b.signal,abort:A,rejectWithValue:(($,j)=>new Hn($,j)),fulfillWithValue:(($,j)=>new ba($,j))})).then($=>{if($ instanceof Hn)throw $;return $ instanceof ba?s($.payload,y,l,$.meta):s($,y,l)})])}catch(T){x=T instanceof Hn?o(null,y,l,T.payload,T.meta):o(T,y,l)}finally{E&&b.signal.removeEventListener("abort",E)}return i&&!i.dispatchConditionRejection&&o.match(x)&&x.meta.condition||u(x),x})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(ld)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:rd(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ld(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function cd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),_f={[_a]:ad};function ud(e,t){return`${e}/${t}`}function dd({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(et(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(fd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){let T=typeof x=="string"?x:x.type;if(!T)throw new Error(et(12));if(T in l.sliceCaseReducersByType)throw new Error(et(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(x,C){return l.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return l.actionCreators[x]=C,c},exposeCaseReducer(x,C){return l.sliceCaseReducersByName[x]=C,c}};a.forEach(x=>{let C=o[x],T={reducerName:x,type:ud(s,x),createNotation:typeof i.reducers=="function"};md(C)?gd(T,C,c,t):hd(T,C,c)});function u(){let[x={},C=[],T=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],z={...x,...l.sliceCaseReducersByType};return ed(i.initialState,$=>{for(let j in z)$.addCase(j,z[j]);for(let j of l.sliceMatchers)$.addMatcher(j.matcher,j.reducer);for(let j of C)$.addMatcher(j.matcher,j.reducer);T&&$.addDefaultCase(T)})}let d=x=>x,p=new Map,y=new WeakMap,b;function E(x,C){return b||(b=u()),b(x,C)}function v(){return b||(b=u()),b.getInitialState()}function A(x,C=!1){function T($){let j=$[x];return typeof j>"u"&&C&&(j=Ri(y,T,v)),j}function z($=d){let j=Ri(p,C,()=>new WeakMap);return Ri(j,$,()=>{let pr={};for(let[_e,gt]of Object.entries(i.selectors??{}))pr[_e]=pd(gt,$,()=>Ri(y,$,v),C);return pr})}return{reducerPath:x,getSelectors:z,get selectors(){return z(T)},selectSlice:T}}let L={name:s,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...A(n),injectInto(x,{reducerPath:C,...T}={}){let z=C??n;return x.inject({reducerPath:z,reducer:E},T),{...L,...A(z,!0)}}};return L}}function pd(e,t,r,i){function s(n,...o){let a=t(n);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Ca=dd();function fd(){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 hd({type:e,reducerName:t,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!yd(i))throw new Error(et(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,o?ct(e,o):ct(e))}function md(e){return e._reducerDefinitionType==="asyncThunk"}function yd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gd({type:e,reducerName:t},r,i,s){if(!s)throw new Error(et(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,n,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||Li,pending:a||Li,rejected:l||Li,settled:c||Li})}function Li(){}var wa="listener",Oa="completed",Ta="cancelled",Cf=`task-${Ta}`,wf=`task-${Oa}`,Of=`${wa}-${Ta}`,Tf=`${wa}-${Oa}`;var{assign:Ra}=Object;var Vn="listenerMiddleware";var vd=Ra(ct(`${Vn}/add`),{withTypes:()=>vd}),Rf=ct(`${Vn}/removeAll`),bd=Ra(ct(`${Vn}/remove`),{withTypes:()=>bd});function et(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 xd=si(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),ki=class extends xd(Object){};window.ftReduxStores||(window.ftReduxStores={});var La=class e extends ki{static get(t){var r;let i=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,n=window.ftReduxStores[i];if(ui(n))return n;if(s==null)return;let o=Ca({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=wr(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[s.name]=new e(o,a,s.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new oi,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,c=n[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];er(p,u)||this.setState({[d]:s(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 Ni=class{static format(t,r,i,s,n){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(t,r,i,s,!!n)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,s,n){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 n?l:s?`${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 Pi=f(S()),Sd="ft-app-info",Ot=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ot.eventName="authentication-change";var Mr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Mr.eventName="ui-locale-changed";var Ed={session:(e,t)=>{(0,Pi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Ot(t.payload)),0))}},w=Pi.FtReduxStore.get({name:Sd,reducers:Ed,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 ka=f(S()),Di=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},sh=(0,ka.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 s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Ni.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Di([(0,zn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Di([(0,zn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Di([An({store:w.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Di([An({store:w.name})],t.prototype,"uiLocale",void 0),t});var Na;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Na||(Na={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Pa||(Pa={}));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 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.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(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"})(Ba||(Ba={}));var Fa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(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 Ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ja||(Ja={}));var Za;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Za||(Za={}));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 Y;(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"})(Y||(Y={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));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.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",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 yl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yl||(yl={}));var Ad={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function gl(e,t){return e===t||(Ad[e]??[]).some(r=>gl(r,t))}function vl(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=>gl(i,t))}var Bi=f(S());var jn=f(S());var Tt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),s=t??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let s=w.subscribe(()=>{i=e.get(t),i&&(s(),r(i))})}})}};var sr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Tt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tt.await()}};var xe=class extends sr{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new jn.CacheRegistry,this.cache=t?s.commonCache:new jn.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 Mi=class extends xe{async listMySearches(){let{session:t}=w.getState();return vl(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ii=class extends xe{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 $i=class extends xe{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 Ui=class extends xe{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 _d="ft-user-assets",Cd={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).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:s}=t.payload;Kn(e,r,[...Wn(e,r),s]),bl(e,r,1,i),xl(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Kn(e,r,Wn(e,r).map(s=>s.id===i.id?i:s)),xl(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:s}=t.payload;Kn(e,r,Wn(e,r).filter(n=>n.id!==s)),bl(e,r,-1,i)}},Sl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Wn=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Kn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},bl=(e,t,r,i)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&i)){let n=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},xl=(e,t)=>{let r=e.assetLabels.map(s=>s.title),i=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...i)},ce=Bi.FtReduxStore.get({name:_d,reducers:Cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gn=class{constructor(t=new $i,r=new Ui){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ii,this.savedSearchesService=new Mi,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Bi.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(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.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;ce.actions.bookmarks(r)}}},wd=new Gn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd);var qn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qn;var Oe=f(S());var El,or=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Od=Symbol("clearAfterUnitTest"),Fi=class extends(0,Oe.withEventBus)(xe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[El]=()=>{this.defaultMessages={},this.cache=new Oe.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 s={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,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 s;let n=t.toLowerCase(),o=this.resolveContext(n);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},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(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new or({loadedContexts:t})),this.dispatchEvent(new or({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new or({loadedContexts:[t]})),this.dispatchEvent(new or({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};El=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ir=window.FluidTopicsI18nService,Yn=window.FluidTopicsCustomI18nService;var Al=f(S()),Xn=class{highlightHtml(t,r,i){(0,Al.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Xn;var _l=f(S());var Jn=class{isDate(t){var r,i,s,n;return(n=(s=((i=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1}format(t,r){var i,s,n,o;if(t==null)return"";try{return _l.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!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 Jn;var Cl=f(S());var $r=class{static get(t,r){var i,s,n,o;let a=w.getState(),{lang:l,region:c}=(n=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Cl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Zn=class{urlToSearchRequest(t){return $r.get().parse(t)}searchRequestToUrl(t){return $r.get().serialize(t)}};window.FluidTopicsUrlService=new Zn;var tt=f(S());var Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Rt.eventName="before-location-change";var Lt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Lt.eventName="change";var Qn=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 Qn;var Hi=class e extends tt.WithEventBus{static build(){return new e(window.history,wl,()=>window.location,!1)}constructor(t,r,i,s){var n,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(n=t.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Lt(this.currentItem())),0)}installProxies(){let t=r=>(i,s,[n,o,a])=>{let l=new Rt(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,...n,index:c,href:l.detail.nextLocation.href};i.apply(s,[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(Rt.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Rt.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Lt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Lt.eventName,t)}currentItem(){return(0,tt.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,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,tt.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,tt.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 s=t,n=t+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}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 s=r??this.currentState.majorStateId,n=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hi.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 Ol=f(k());var Tl=Ol.css`
261
- `;var kl=f(k()),ue=f(K()),Pt=f(S());var kt=f(S());function Rl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var Vi=class extends sr{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var es=class e extends kt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new kt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Vi,this.cleanSessionDebouncer=new kt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new kt.Debouncer(500),this.apiProvider=r??(()=>Tt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ot.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ot.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 Mr(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)}},Ll=es.build();var Nt=class extends Event{constructor(t,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}};var Ur=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:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new Nt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.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 Q=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},H=class extends Pt.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=Ll,this.contextRoot=new Ur}render(){return kl.html`
270
+ `;var oo=["top","right","bottom","left"],so=["start","end"],mn=oo.reduce((e,t)=>e.concat(t,t+"-"+so[0],t+"-"+so[1]),[]),xr=Math.min,st=Math.max,br=Math.round;var ze=e=>({x:e,y:e}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ao(e,t,r){return st(e,xr(t,r))}function Jr(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function gn(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function vn(e){return yn(Zr(e))}function lo(e,t,r){r===void 0&&(r=!1);let i=ot(e),s=vn(e),n=gn(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(o=hn(o)),[o,hn(o)]}function co(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function hn(e){let t=Sr(e);return ru[t]+e.slice(t.length)}function iu(e){var t,r,i,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function uo(e){return typeof e!="number"?iu(e):{top:e,right:e,bottom:e,left:e}}function Rt(e){let{x:t,y:r,width:i,height:s}=e;return{width:i,height:s,top:r,left:t,right:t+i,bottom:r+s,x:t,y:r}}function po(e,t,r){let{reference:i,floating:s}=e,n=Zr(t),o=vn(t),a=gn(o),l=Sr(t),c=n==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,p=i[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:i.y-s.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:d};break;case"left":y={x:i.x-s.width,y:d};break;default:y={x:i.x,y:i.y}}let x=ot(t);return x&&(y[o]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function fo(e,t){var r;t===void 0&&(t={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Jr(t,e),x=uo(y),v=a[p?d==="floating"?"reference":"floating":d],A=Rt(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),C=await(n.isElement==null?void 0:n.isElement(b))&&await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1},T=Rt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:b,strategy:l}):L);return{top:(A.top-T.top+x.top)/C.y,bottom:(T.bottom-A.bottom+x.bottom)/C.y,left:(A.left-T.left+x.left)/C.x,right:(T.right-A.right+x.right)/C.x}}var nu=50,ho=async(e,t,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:fo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=po(c,i,l),p=i,y=0,x={};for(let E=0;E<n.length;E++){let v=n[E];if(!v)continue;let{name:A,fn:L}=v,{x:b,y:C,data:T,reset:z}=await L({x:u,y:d,initialPlacement:i,placement:p,strategy:s,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=C??d,x[A]={...x[A],...T},z&&y<nu&&(y++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:u,y:d}=po(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:x}};function su(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>Sr(s)===s)).filter(s=>e?ot(s)===e||(t?co(s)!==s:!1):!0)}var mo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=mn,autoAlignment:y=!0,...x}=Jr(e,t),E=d!==void 0||p===mn?su(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[v];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,x),b=lo(A,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[Sr(A)],L[b[0]],L[b[1]]],T=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:A,overflows:C}],z=E[v+1];if(z)return{data:{index:v+1,overflows:T},reset:{placement:z}};let $=T.map(_e=>{let gt=ot(_e.placement);return[_e.placement,gt&&u?_e.overflows.slice(0,2).reduce((zc,jc)=>zc+jc,0):_e.overflows[0],_e.overflows]}).sort((_e,gt)=>_e[1]-gt[1]),pr=((s=$.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:s[0])||$[0][0];return pr!==a?{data:{index:v+1,overflows:T},reset:{placement:pr}}:{}}}};var yo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:s,platform:n}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x:b,y:C}=L;return{x:b,y:C}}},...c}=Jr(e,t),u={x:r,y:i},d=await n.detectOverflow(t,c),p=Zr(s),y=yn(p),x=u[y],E=u[p],v=(L,b)=>ao(b+d[L==="y"?"top":"left"],b,b-d[L==="y"?"bottom":"right"]);o&&(x=v(y,x)),a&&(E=v(p,E));let A=l.fn({...t,[y]:x,[p]:E});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[y]:o,[p]:a}}}}}};function ei(){return typeof window<"u"}function kt(e){return vo(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vo(e){return ei()?e instanceof Node||e instanceof me(e).Node:!1}function Ne(e){return ei()?e instanceof Element||e instanceof me(e).Element:!1}function Ze(e){return ei()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function go(e){return!ei()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function Er(e){let{overflow:t,overflowX:r,overflowY:i,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&s!=="inline"&&s!=="contents"}function xo(e){return/^(table|td|th)$/.test(kt(e))}function Ar(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ou=/transform|translate|scale|rotate|perspective|filter/,au=/paint|layout|strict|content/,Lt=e=>!!e&&e!=="none",xn;function Jt(e){let t=Ne(e)?Pe(e):e;return Lt(t.transform)||Lt(t.translate)||Lt(t.scale)||Lt(t.rotate)||Lt(t.perspective)||!ti()&&(Lt(t.backdropFilter)||Lt(t.filter))||ou.test(t.willChange||"")||au.test(t.contain||"")}function bo(e){let t=at(e);for(;Ze(t)&&!Zt(t);){if(Jt(t))return t;if(Ar(t))return null;t=at(t)}return null}function ti(){return xn==null&&(xn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xn}function Zt(e){return/^(html|body|#document)$/.test(kt(e))}function Pe(e){return me(e).getComputedStyle(e)}function _r(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||go(e)&&e.host||Je(e);return go(t)?t.host:t}function So(e){let t=at(e);return Zt(t)?(e.ownerDocument||e).body:Ze(t)&&Er(t)?t:So(t)}function Qr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=So(e),n=s===((i=e.ownerDocument)==null?void 0:i.body),o=me(s);if(n){let a=ri(o);return t.concat(o,o.visualViewport||[],Er(s)?s:[],a&&r?Qr(a):[])}else return t.concat(s,Qr(s,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _o(e){let t=Pe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,s=Ze(e),n=s?e.offsetWidth:r,o=s?e.offsetHeight:i,a=br(r)!==n||br(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Co(e){return Ne(e)?e:e.contextElement}function Qt(e){let t=Co(e);if(!Ze(t))return ze(1);let r=t.getBoundingClientRect(),{width:i,height:s,$:n}=_o(t),o=(n?br(r.width):r.width)/i,a=(n?br(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var lu=ze(0);function wo(e){let t=me(e);return!ti()||!t.visualViewport?lu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===me(e)}function Cr(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),n=Co(e),o=ze(1);t&&(i?Ne(i)&&(o=Qt(i)):o=Qt(e));let a=cu(n,r,i)?wo(n):ze(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(n&&i){let p=me(n),y=Ne(i)?me(i):i,x=p,E=ri(x);for(;E&&y!==x;){let v=Qt(E),A=E.getBoundingClientRect(),L=Pe(E),b=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*v.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=C,x=me(E),E=ri(x)}}return Rt({width:u,height:d,x:l,y:c})}function ii(e,t){let r=_r(e).scrollLeft;return t?t.left+r:Cr(Je(e)).left+r}function Oo(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-ii(e,r),s=r.top+t.scrollTop;return{x:i,y:s}}function uu(e){let{elements:t,rect:r,offsetParent:i,strategy:s}=e,n=s==="fixed",o=Je(i),a=t?Ar(t.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=ze(1),u=ze(0),d=Ze(i);if((d||!n)&&((kt(i)!=="body"||Er(o))&&(l=_r(i)),d)){let y=Cr(i);c=Qt(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let p=o&&!d&&!n?Oo(o,l):ze(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 du(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function pu(e){let t=_r(e),r=e.ownerDocument.body,i=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),n=-t.scrollLeft+ii(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(n+=st(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var fu=25;function hu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=me(e),n=Je(e),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){let p=!ti()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(ii(n)<=0){let p=n.ownerDocument,y=p.body,x=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-y.clientWidth-E),A=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;A<=fu&&(a-=A)}return{width:a,height:l,x:c,y:u}}function mu(e,t){let r=Cr(e,!0,t==="fixed"),i=r.top+e.clientTop,s=r.left+e.clientLeft,n=Qt(e),o=e.clientWidth*n.x,a=e.clientHeight*n.y,l=s*n.x,c=i*n.y;return{width:o,height:a,x:l,y:c}}function Eo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=hu(e,r,t);else if(t==="document")i=pu(Je(e));else if(Ne(t))i=mu(t,r);else{let s=wo(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Rt(i)}function yu(e,t){let r=t.get(e);if(r)return r;let i=Qr(e,[],!1).filter(a=>Ne(a)&&kt(a)!=="body"),s=null,n=Pe(e).position==="fixed",o=n?at(e):e;for(;Ne(o)&&!Zt(o);){let a=Pe(o),l=Jt(o),c=s?s.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,i),i}function gu(e){let{element:t,boundary:r,rootBoundary:i,strategy:s}=e,o=[...r==="clippingAncestors"?Ar(t)?[]:yu(t,this._c):[].concat(r),i],a=Eo(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Eo(t,o[p],s);l=st(y.top,l),c=xr(y.right,c),u=xr(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vu(e){let{width:t,height:r}=_o(e);return{width:t,height:r}}function xu(e,t,r){let i=Ze(t),s=Je(t),n=r==="fixed",o=Cr(e,!0,n,t),a={scrollLeft:0,scrollTop:0},l=ze(0);if((i||!n)&&((kt(t)!=="body"||Er(s))&&(a=_r(t)),i)){let p=Cr(t,!0,n,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&s&&(l.x=ii(s));let c=s&&!i&&!n?Oo(s,a):ze(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 bn(e){return Pe(e).position==="static"}function Ao(e,t){if(!Ze(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Je(e)===r&&(r=r.ownerDocument.body),r}function To(e,t){let r=me(e);if(Ar(e))return r;if(!Ze(e)){let s=at(e);for(;s&&!Zt(s);){if(Ne(s)&&!bn(s))return s;s=at(s)}return r}let i=Ao(e,t);for(;i&&xo(i)&&bn(i);)i=Ao(i,t);return i&&Zt(i)&&bn(i)&&!Jt(i)?r:i||bo(e)||r}var bu=async function(e){let t=this.getOffsetParent||To,r=this.getDimensions,i=await r(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Su(e){return Pe(e).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Je,getClippingRect:gu,getOffsetParent:To,getElementRects:bu,getClientRects:du,getDimensions:vu,getScale:Qt,isElement:Ne,isRTL:Su};var Ro=mo,Lo=yo;var ko=(e,t,r)=>{let i=new Map,s=r??{},n={...ni,...s.platform,_c:i};return ho(e,t,{...s,platform:n})};function Do(e){return Eu(e)}function Sn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Eu(e){for(let t=e;t;t=Sn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Sn(e);t;t=Sn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Jt(r)||t.tagName==="BODY"))return t}return null}async function No(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},ko(e,t,{strategy:i.strategy,platform:{...ni,getOffsetParent:s=>ni.getOffsetParent(s,Do)},middleware:[Lo({crossAxis:!0}),Ro({allowedPlacements:[i.placement]})]})}var lr=f(S());var zn=f(K());var Po=f(K(),1);var En=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Mo(e,t){return(0,Po.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return wr(e);try{return JSON.parse(r)}catch{return wr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Or,...t??{}})}function Au(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(!er(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(!er(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(e);if(r=n.length,r!==s(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!er(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function er(e,t){try{return Au(e,t)}catch{return!1}}function Or(e,t){return!er(e,t)}function wr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function si(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let s=t(i);return s[e]=!0,s}}var Io=f(K(),1);var An=e=>{let t=e??{};return(r,i)=>{var s;let n={hasChanged:Or,attribute:!1,...t};(0,Io.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[i]),store:t.store})}};var oi=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 Dt=f(K(),1);var ai=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 s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Uo=f(k(),1);var li=globalThis,_u=li.ShadowRoot&&(li.ShadyCSS===void 0||li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var $o=(e,t)=>{if(_u)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),s=li.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}};var ci=class extends Uo.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 $o(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){En(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 Bo(e,t,...r){var i;let s=e.querySelector(t);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var rr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},zo,Fo=Symbol("constructorPrototype"),Ho=Symbol("constructorName"),jo=Symbol("exportpartsDebouncer"),Vo=Symbol("dynamicDependenciesLoaded"),tr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var je=class extends ci{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zo]=new ai(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[jo].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ho]=this.constructor.name,this[Fo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ho]&&Object.setPrototypeOf(this,this[Fo])}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[Vo]||(r[Vo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(tr.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 tr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Bo(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(t){var r,i,s,n,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(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(n=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&n!==void 0?n:[],x=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...x].filter(l).map(v=>v.trim());for(let v of E)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};zo=jo;rr([(0,Dt.property)()],je.prototype,"exportpartsPrefix",void 0);rr([Mo([])],je.prototype,"exportpartsPrefixes",void 0);rr([(0,Dt.property)({reflect:!0})],je.prototype,"exportparts",void 0);rr([(0,Dt.property)()],je.prototype,"customStylesheet",void 0);rr([(0,Dt.property)()],je.prototype,"elementToFocus",void 0);rr([(0,Dt.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function ui(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Tr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Nt=Symbol("internalStores"),Cu=si(Symbol("withRedux"),function(e){var t,r,i;class s 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[Nt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Nt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Nt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Nt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Nt].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[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Tr].set(o,[]),ui(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[Tr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Tr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Tr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Nt,i=Tr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Wo=class extends Cu(je){};function ie(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 wu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ko=wu,_n=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${_n()}`,REPLACE:`@@redux/REPLACE${_n()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_n()}`},di=Ou;function pi(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 Cn(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(Cn)(e,t)}let i=e,s=t,n=new Map,o=n,a=0,l=!1;function c(){o===n&&(o=new Map,n.forEach((v,A)=>{o.set(A,v)}))}function u(){if(l)throw new Error(ie(3));return s}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));let A=!0;c();let L=a++;return o.set(L,v),function(){if(A){if(l)throw new Error(ie(6));A=!1,c(),o.delete(L),n=null}}}function p(v){if(!pi(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(l)throw new Error(ie(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(L=>{L()}),v}function y(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:di.REPLACE})}function x(){let v=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ie(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:v(L)}},[Ko](){return this}}}return p({type:di.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Ko]:x}}function Tu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:di.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Go(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),s,n;try{Tu(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],y=r[p],x=a[p],E=y(x,l);if(typeof E>"u"){let v=l&&l.type;throw new Error(ie(14))}u[p]=E,c=c||E!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Rr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let s=t(r,i),n=()=>{throw new Error(ie(15))},o={getState:s.getState,dispatch:(l,...c)=>n(l,...c)},a=e.map(l=>l(o));return n=Rr(...a)(s.dispatch),{...s,dispatch:n}}}function Yo(e){return pi(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Me(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,nr=ve.getPrototypeOf,yi="constructor",Ei="prototype",Rn="configurable",gi="enumerable",hi="writable",Lr="value",We=e=>!!e&&!!e[ae];function xe(e){return e?sa(e)||_i(e)||!!e[Xo]||!!e[yi]?.[Xo]||Ci(e)||wi(e):!1}var Ru=ve[Ei][yi].toString(),Jo=new WeakMap;function sa(e){if(!e||!$n(e))return!1;let t=nr(e);if(t===null||t===ve[Ei])return!0;let r=ve.hasOwnProperty.call(t,yi)&&t[yi];if(r===Object)return!0;if(!ir(r))return!1;let i=Jo.get(r);return i===void 0&&(i=Function.toString.call(r),Jo.set(r,i)),i===Ru}function Ai(e,t,r=!0){Nr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((i,s)=>t(s,i,e))}function Nr(e){let t=e[ae];return t?t.type_:_i(e)?1:Ci(e)?2:wi(e)?3:0}var wn=(e,t,r=Nr(e))=>r===2?e.has(t):ve[Ei].hasOwnProperty.call(e,t),Ln=(e,t,r=Nr(e))=>r===2?e.get(t):e[t],vi=(e,t,r,i=Nr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Lu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _i=Array.isArray,Ci=e=>e instanceof Map,wi=e=>e instanceof Set,$n=e=>typeof e=="object",ir=e=>typeof e=="function",On=e=>typeof e=="boolean";function ku(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>e.copy_||e.base_;var Un=e=>e.modified_?e.copy_:e.base_;function kn(e,t){if(Ci(e))return new Map(e);if(wi(e))return new Set(e);if(_i(e))return Array[Ei].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=ve.getOwnPropertyDescriptors(e);delete i[ae];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[hi]===!1&&(a[hi]=!0,a[Rn]=!0),(a.get||a.set)&&(i[o]={[Rn]:!0,[hi]:!0,[gi]:a[gi],[Lr]:e[o]})}return ve.create(nr(e),i)}else{let i=nr(e);if(i!==null&&r)return{...e};let s=ve.create(i);return ve.assign(s,e)}}function Bn(e,t=!1){return Oi(e)||We(e)||!xe(e)||(Nr(e)>1&&ve.defineProperties(e,{set:fi,add:fi,clear:fi,delete:fi}),ve.freeze(e),t&&Ai(e,(r,i)=>{Bn(i,!0)},!1)),e}function Du(){Me(2)}var fi={[Lr]:Du};function Oi(e){return e===null||!$n(e)?!0:ve.isFrozen(e)}var xi="MapSet",Dn="Patches",Zo="ArrayMethods",oa={};function Pt(e){let t=oa[e];return t||Me(0,e),t}var Qo=e=>!!oa[e];var kr,aa=()=>kr,Nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(xi)?Pt(xi):void 0,arrayMethodsPlugin_:Qo(Zo)?Pt(Zo):void 0});function ea(e,t){t&&(e.patchPlugin_=Pt(Dn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Nn(e){Pn(e),e.drafts_.forEach(Pu),e.drafts_=null}function Pn(e){e===kr&&(kr=e.parent_)}var ta=e=>kr=Nu(kr,e);function Pu(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Nn(t),Me(4)),xe(e)&&(e=ia(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[ae].base_,e,t)}else e=ia(t,r);return Mu(t,e,!0),Nn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(Oi(t))return t;let r=t[ae];if(!r)return bi(t,e.handledSet_,e);if(!Ti(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);ua(r,e)}return r.copy_}function Mu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Bn(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ti=(e,t)=>e.scope_===t,Iu=[];function ca(e,t,r,i){let s=Qe(e),n=e.type_;if(i!==void 0&&Ln(s,i,n)===t){vi(s,i,r,n);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ai(s,(l,c)=>{if(We(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Iu;for(let a of o)vi(s,a,r,n)}function $u(e,t,r){e.callbacks_.push(function(s){let n=t;if(!n||!Ti(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=Un(n);ca(e,n.draft_??n,o,r),ua(n,s)})}function ua(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 s=i.getPath(e);s&&i.generatePatches_(e,s,t)}la(e)}}function Uu(e,t,r){let{scope_:i}=e;if(We(r)){let s=r[ae];Ti(s,i)&&s.callbacks_.push(function(){mi(e);let o=Un(s);ca(e,r,o,t)})}else xe(r)&&e.callbacks_.push(function(){let n=Qe(e);e.type_===3?n.has(r)&&bi(r,i.handledSet_,i):Ln(n,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bi(Ln(e.copy_,t,e.type_),i.handledSet_,i)})}function bi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||We(e)||t.has(e)||!xe(e)||Oi(e)||(t.add(e),Ai(e,(i,s)=>{if(We(s)){let n=s[ae];if(Ti(n,r)){let o=Un(n);vi(e,i,o,e.type_),la(n)}}else xe(s)&&bi(s,t,r)})),e}function Bu(e,t){let r=_i(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Si;r&&(s=[i],n=Dr);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Si={get(e,t){if(t===ae)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 s=Qe(e);if(!wn(s,t,e.type_))return Hu(e,s,t);let n=s[t];if(e.finalized_||!xe(n)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ku(t))return n;if(n===Tn(e.base_,t)||Fu(e,t,n)){mi(e);let o=e.type_===1?+t:t,a=In(e.scope_,n,e,o);return e.copy_[o]=a}return n},has(e,t){return t in Qe(e)},ownKeys(e){return Reflect.ownKeys(Qe(e))},set(e,t,r){let i=da(Qe(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let s=Tn(Qe(e),t),n=s?.[ae];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Lu(r,s)&&(r!==void 0||wn(e.base_,t,e.type_)))return!0;mi(e),Mn(e)}return e.copy_[t]===r&&(r!==void 0||wn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Uu(e,t,r)),!0},deleteProperty(e,t){return mi(e),Tn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Mn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Qe(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[hi]:!0,[Rn]:e.type_!==1||t!=="length",[gi]:i[gi],[Lr]:r[t]}},defineProperty(){Me(11)},getPrototypeOf(e){return nr(e.base_)},setPrototypeOf(){Me(12)}},Dr={};for(let e in Si){let t=Si[e];Dr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Dr.deleteProperty=function(e,t){return Dr.set.call(this,e,t,void 0)};Dr.set=function(e,t,r){return Si.set.call(this,e[0],t,r,e[0])};function Tn(e,t){let r=e[ae];return(r?Qe(r):e)[t]}function Fu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!xe(r)||r[ae]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let i=da(t,r);return i?Lr in i?i[Lr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=nr(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=nr(r)}}function Mn(e){e.modified_||(e.modified_=!0,e.parent_&&Mn(e.parent_))}function mi(e){e.copy_||(e.assigned_=new Map,e.copy_=kn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(ir(t)&&!ir(r)){let n=r;r=t;let o=this;return function(l=n,...c){return o.produce(l,u=>r.call(this,u,...c))}}ir(r)||Me(6),i!==void 0&&!ir(i)&&Me(7);let s;if(xe(t)){let n=ta(this),o=In(n,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Nn(n):Pn(n)}return ea(n,i),ra(s,n)}else if(!t||!$n(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Bn(s,!0),i){let n=[],o=[];Pt(Dn).generateReplacementPatches_(t,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Me(1,t)},this.produceWithPatches=(t,r)=>{if(ir(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,s;return[this.produce(t,r,(o,a)=>{i=o,s=a}),i,s]},On(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),On(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),On(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xe(e)||Me(8),We(e)&&(e=pa(e));let t=ta(this),r=In(t,e,void 0);return r[ae].isManual_=!0,Pn(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&Me(9);let{scope_:i}=r;return ea(i,t),ra(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 s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let i=Pt(Dn).applyPatches_;return We(e)?i(e,t):this.produce(e,s=>i(s,t))}};function In(e,t,r,i){let[s,n]=Ci(t)?Pt(xi).proxyMap_(t,r):wi(t)?Pt(xi).proxySet_(t,r):Bu(t,r);return(r?.scope_??aa()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?$u(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),s}function pa(e){return We(e)||Me(10,e),fa(e)}function fa(e){if(!xe(e)||Oi(e))return e;let t=e[ae],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=kn(e,!0);return Ai(r,(s,n)=>{vi(r,s,fa(n))},i),t&&(t.finalized_=!1),r}var zu=globalThis.Iterator,mf=typeof zu?.from=="function";var ju=new Vu,Fn=ju.produce;function ha(e){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,e):s(n)}var ma=ha(),ya=ha;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Ef=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ku=e=>e&&typeof e.match=="function";function ct(e,t){function r(...i){if(t){let s=t(...i);if(!s)throw new Error(et(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Sa=class Pr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Pr.prototype)}static get[Symbol.species](){return Pr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Pr(...t[0].concat(this)):new Pr(...t.concat(this))}};function ga(e){return xe(e)?Fn(e,()=>{}):e}function Ri(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Gu(e){return typeof e=="boolean"}var qu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=t??{},o=new Sa;return r&&(Gu(r)?o.push(ma):o.push(ya(r.extraArgument))),o},Yu="RTK_autoBatch";var va=e=>t=>{setTimeout(t,e)},Xu=(e,t)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(o),r())},n=e(s),o=setTimeout(s,t)},Ju=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),s=!0,n=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):va(10):e.type==="callback"?e.queueNotification:va(e.timeout),c=()=>{o=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>s&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Yu],n=!s,n&&(o||(o=!0,l(c))),i.dispatch(u)}finally{s=!0}}})},Zu=e=>function(r){let{autoBatch:i=!0}=r??{},s=new Sa(e);return i&&s.push(Ju(typeof i=="object"?i:void 0)),s};function Ea(e){let t=qu(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(pi(r))l=Go(r);else throw new Error(et(1));let c;typeof i=="function"?c=i(t):c=t();let u=Rr;s&&(u=Wu({trace:!1,...typeof s=="object"&&s}));let d=qo(...c),p=Zu(d),y=typeof a=="function"?a(p):p(),x=u(...y);return Cn(l,o,x)}function Aa(e){let t={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(et(28));if(a in t)throw new Error(et(29));return t[a]=o,s},addAsyncThunk(n,o){return o.pending&&(t[n.pending.type]=o.pending),o.rejected&&(t[n.rejected.type]=o.rejected),o.fulfilled&&(t[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return e(s),[t,r,i]}function Qu(e){return typeof e=="function"}function ed(e,t){let[r,i,s]=Aa(t),n;if(Qu(e))n=()=>ga(e());else{let a=ga(e);n=()=>a}function o(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(We(u)){let y=d(u,l);return y===void 0?u:y}else{if(xe(u))return Fn(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=n,o}var td=(e,t)=>Ku(e)?e.match(t):e(t);function rd(...e){return t=>e.some(r=>td(r,t))}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(e=21)=>{let t="",r=e;for(;r--;)t+=id[Math.random()*64|0];return t},sd=["name","message","stack","code"],Hn=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},od=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of sd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",ad=(()=>{function e(t,r,i){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||od)(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 y=i?.idGenerator?i.idGenerator(l):nd(),x=new AbortController,E,v;function A(b){v=b,x.abort()}c&&(c.aborted?A(ba):c.addEventListener("abort",()=>A(ba),{once:!0}));let L=(async function(){let b;try{let T=i?.condition?.(l,{getState:d,extra:p});if(cd(T)&&(T=await T),T===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise(($,j)=>{E=()=>{j({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",E,{once:!0})});u(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:x.signal,abort:A,rejectWithValue:(($,j)=>new Hn($,j)),fulfillWithValue:(($,j)=>new xa($,j))})).then($=>{if($ instanceof Hn)throw $;return $ instanceof xa?s($.payload,y,l,$.meta):s($,y,l)})])}catch(T){b=T instanceof Hn?o(null,y,l,T.payload,T.meta):o(T,y,l)}finally{E&&x.signal.removeEventListener("abort",E)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(ld)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:rd(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ld(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function cd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),_f={[_a]:ad};function ud(e,t){return`${e}/${t}`}function dd({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(et(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(fd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,C){let T=typeof b=="string"?b:b.type;if(!T)throw new Error(et(12));if(T in l.sliceCaseReducersByType)throw new Error(et(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(b,C){return l.sliceMatchers.push({matcher:b,reducer:C}),c},exposeAction(b,C){return l.actionCreators[b]=C,c},exposeCaseReducer(b,C){return l.sliceCaseReducersByName[b]=C,c}};a.forEach(b=>{let C=o[b],T={reducerName:b,type:ud(s,b),createNotation:typeof i.reducers=="function"};md(C)?gd(T,C,c,t):hd(T,C,c)});function u(){let[b={},C=[],T=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],z={...b,...l.sliceCaseReducersByType};return ed(i.initialState,$=>{for(let j in z)$.addCase(j,z[j]);for(let j of l.sliceMatchers)$.addMatcher(j.matcher,j.reducer);for(let j of C)$.addMatcher(j.matcher,j.reducer);T&&$.addDefaultCase(T)})}let d=b=>b,p=new Map,y=new WeakMap,x;function E(b,C){return x||(x=u()),x(b,C)}function v(){return x||(x=u()),x.getInitialState()}function A(b,C=!1){function T($){let j=$[b];return typeof j>"u"&&C&&(j=Ri(y,T,v)),j}function z($=d){let j=Ri(p,C,()=>new WeakMap);return Ri(j,$,()=>{let pr={};for(let[_e,gt]of Object.entries(i.selectors??{}))pr[_e]=pd(gt,$,()=>Ri(y,$,v),C);return pr})}return{reducerPath:b,getSelectors:z,get selectors(){return z(T)},selectSlice:T}}let L={name:s,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...A(n),injectInto(b,{reducerPath:C,...T}={}){let z=C??n;return b.inject({reducerPath:z,reducer:E},T),{...L,...A(z,!0)}}};return L}}function pd(e,t,r,i){function s(n,...o){let a=t(n);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Ca=dd();function fd(){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 hd({type:e,reducerName:t,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!yd(i))throw new Error(et(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,o?ct(e,o):ct(e))}function md(e){return e._reducerDefinitionType==="asyncThunk"}function yd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gd({type:e,reducerName:t},r,i,s){if(!s)throw new Error(et(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,n,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||Li,pending:a||Li,rejected:l||Li,settled:c||Li})}function Li(){}var wa="listener",Oa="completed",Ta="cancelled",Cf=`task-${Ta}`,wf=`task-${Oa}`,Of=`${wa}-${Ta}`,Tf=`${wa}-${Oa}`;var{assign:Ra}=Object;var Vn="listenerMiddleware";var vd=Ra(ct(`${Vn}/add`),{withTypes:()=>vd}),Rf=ct(`${Vn}/removeAll`),xd=Ra(ct(`${Vn}/remove`),{withTypes:()=>xd});function et(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 bd=si(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),ki=class extends bd(Object){};window.ftReduxStores||(window.ftReduxStores={});var La=class e extends ki{static get(t){var r;let i=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,n=window.ftReduxStores[i];if(ui(n))return n;if(s==null)return;let o=Ca({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=wr(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[s.name]=new e(o,a,s.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new oi,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,c=n[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];er(p,u)||this.setState({[d]:s(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 Di=class{static format(t,r,i,s,n){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(t,r,i,s,!!n)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,s,n){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 n?l:s?`${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 Ni=f(S()),Sd="ft-app-info",Mt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Mt.eventName="authentication-change";var Mr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Mr.eventName="ui-locale-changed";var Ed={session:(e,t)=>{(0,Ni.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Mt(t.payload)),0))}},w=Ni.FtReduxStore.get({name:Sd,reducers:Ed,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 ka=f(S()),Pi=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},sh=(0,ka.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 s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Di.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pi([(0,zn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Pi([(0,zn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Pi([An({store:w.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Pi([An({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 Na;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Na||(Na={}));var Pa;(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"})(Pa||(Pa={}));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.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(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"})(Ba||(Ba={}));var Fa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(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 Ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ja||(Ja={}));var Za;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Za||(Za={}));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 Y;(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"})(Y||(Y={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));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.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",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 yl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yl||(yl={}));var Ad={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function gl(e,t){return e===t||(Ad[e]??[]).some(r=>gl(r,t))}function vl(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=>gl(i,t))}var Bi=f(S());var jn=f(S());var It=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),s=t??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let s=w.subscribe(()=>{i=e.get(t),i&&(s(),r(i))})}})}};var sr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:It.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):It.await()}};var be=class extends sr{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new jn.CacheRegistry,this.cache=t?s.commonCache:new jn.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 Mi=class extends be{async listMySearches(){let{session:t}=w.getState();return vl(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ii=class extends be{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 $i=class extends be{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 Ui=class extends be{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 _d="ft-user-assets",Cd={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).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:s}=t.payload;Kn(e,r,[...Wn(e,r),s]),xl(e,r,1,i),bl(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Kn(e,r,Wn(e,r).map(s=>s.id===i.id?i:s)),bl(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:s}=t.payload;Kn(e,r,Wn(e,r).filter(n=>n.id!==s)),xl(e,r,-1,i)}},Sl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Wn=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Kn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},xl=(e,t,r,i)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&i)){let n=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},bl=(e,t)=>{let r=e.assetLabels.map(s=>s.title),i=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...i)},ce=Bi.FtReduxStore.get({name:_d,reducers:Cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gn=class{constructor(t=new $i,r=new Ui){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ii,this.savedSearchesService=new Mi,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Bi.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(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.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;ce.actions.bookmarks(r)}}},wd=new Gn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd);var qn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qn;var Oe=f(S());var El,or=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Od=Symbol("clearAfterUnitTest"),Fi=class extends(0,Oe.withEventBus)(be){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[El]=()=>{this.defaultMessages={},this.cache=new Oe.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 s={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,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 s;let n=t.toLowerCase(),o=this.resolveContext(n);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},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(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new or({loadedContexts:t})),this.dispatchEvent(new or({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new or({loadedContexts:[t]})),this.dispatchEvent(new or({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};El=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ir=window.FluidTopicsI18nService,Yn=window.FluidTopicsCustomI18nService;var Al=f(S()),Xn=class{highlightHtml(t,r,i){(0,Al.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Xn;var _l=f(S());var Jn=class{isDate(t){var r,i,s,n;return(n=(s=((i=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1}format(t,r){var i,s,n,o;if(t==null)return"";try{return _l.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!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 Jn;var Cl=f(S());var $r=class{static get(t,r){var i,s,n,o;let a=w.getState(),{lang:l,region:c}=(n=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Cl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Zn=class{urlToSearchRequest(t){return $r.get().parse(t)}searchRequestToUrl(t){return $r.get().serialize(t)}};window.FluidTopicsUrlService=new Zn;var tt=f(S());var $t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};$t.eventName="before-location-change";var Ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ut.eventName="change";var Qn=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 Qn;var Hi=class e extends tt.WithEventBus{static build(){return new e(window.history,wl,()=>window.location,!1)}constructor(t,r,i,s){var n,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(n=t.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ut(this.currentItem())),0)}installProxies(){let t=r=>(i,s,[n,o,a])=>{let l=new $t(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,...n,index:c,href:l.detail.nextLocation.href};i.apply(s,[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($t.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener($t.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Ut.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ut.eventName,t)}currentItem(){return(0,tt.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,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,tt.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,tt.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 s=t,n=t+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}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 s=r??this.currentState.majorStateId,n=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hi.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 Ol=f(k());var Tl=Ol.css`
271
+ `;var kl=f(k()),ue=f(K()),Ht=f(S());var Bt=f(S());function Rl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var Vi=class extends sr{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var es=class e extends Bt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Bt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Vi,this.cleanSessionDebouncer=new Bt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Bt.Debouncer(500),this.apiProvider=r??(()=>It.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Mt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Mt.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 Mr(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)}},Ll=es.build();var Ft=class extends Event{constructor(t,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}};var Ur=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:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new Ft(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.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 Q=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},H=class extends Ht.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=Ll,this.contextRoot=new Ur}render(){return kl.html`
262
272
  <slot></slot>
263
- `}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=>Ir.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=Tl;Q([(0,ue.property)()],H.prototype,"baseUrl",void 0);Q([(0,ue.property)()],H.prototype,"tenantId",void 0);Q([(0,ue.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Q([(0,ue.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Q([(0,ue.property)()],H.prototype,"uiLocale",void 0);Q([(0,Pt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Q([(0,Pt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"editorMode",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"noCustom",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Q([(0,Pt.jsonProperty)([])],H.prototype,"messageContexts",void 0);Q([(0,Pt.jsonProperty)(void 0)],H.prototype,"session",void 0);var Pl=f(S());var Nl={"ft-app-context":H};(0,Pl.customElements)(Nl);var Dl=f(K());var ts=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-]+$/)}},ar=new ts;var Ld=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Fr=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),Il=Symbol("i18nProperties"),zi=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Ki=(0,lr.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(n){return n??this.useCustomMessageContexts?Yn:Ir}i18n(n){let{context:o,key:a,message:l}=n,{custom:c,args:u,argsProvider:d}=n;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(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(ar.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&n(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Fr])===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(y=>c(u,d,y))})}updateI18nProperties(n){var o;(o=this[Il])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[zi].set(l,{isCustomContext:a}),this[Br].has(l)||this[Br].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[zi].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zi].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(n=>n()),this[Br].clear()}}return t=zi,r=Br,Ld([(0,Dl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ji=class extends Ki(lr.FtLitElement){},Wi=class extends Ki(lr.FtLitElementRedux){};var $l=f(S());var rs=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?ar.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},kd=new rs;var Ul=(e,t)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:$l.hasChanged,converter:ar,...t}),r[Fr]=(s=r[Fr])!==null&&s!==void 0?s:new Map,r[Fr].set(i,e??{})};var Bl=f(k());var Fl=Bl.css`
273
+ `}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=>Ir.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=Tl;Q([(0,ue.property)()],H.prototype,"baseUrl",void 0);Q([(0,ue.property)()],H.prototype,"tenantId",void 0);Q([(0,ue.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Q([(0,ue.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Q([(0,ue.property)()],H.prototype,"uiLocale",void 0);Q([(0,Ht.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Q([(0,Ht.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"editorMode",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"noCustom",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Q([(0,ue.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Q([(0,Ht.jsonProperty)([])],H.prototype,"messageContexts",void 0);Q([(0,Ht.jsonProperty)(void 0)],H.prototype,"session",void 0);var Nl=f(S());var Dl={"ft-app-context":H};(0,Nl.customElements)(Dl);var Pl=f(K());var ts=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-]+$/)}},ar=new ts;var Ld=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Fr=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),Il=Symbol("i18nProperties"),zi=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Ki=(0,lr.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(n){return n??this.useCustomMessageContexts?Yn:Ir}i18n(n){let{context:o,key:a,message:l}=n,{custom:c,args:u,argsProvider:d}=n;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(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(ar.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&n(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Fr])===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(y=>c(u,d,y))})}updateI18nProperties(n){var o;(o=this[Il])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[zi].set(l,{isCustomContext:a}),this[Br].has(l)||this[Br].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[zi].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zi].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(n=>n()),this[Br].clear()}}return t=zi,r=Br,Ld([(0,Pl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ji=class extends Ki(lr.FtLitElement){},Wi=class extends Ki(lr.FtLitElementRedux){};var $l=f(S());var rs=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?ar.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},kd=new rs;var Ul=(e,t)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:$l.hasChanged,converter:ar,...t}),r[Fr]=(s=r[Fr])!==null&&s!==void 0?s:new Map,r[Fr].set(i,e??{})};var Bl=f(k());var Fl=Bl.css`
264
274
  `;var Gi=f(k()),ur=f(K()),qi=f(S());var cr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Te=class extends Wi{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:Gi.nothing:Gi.html`
265
275
  <span class="ft-i18n">
266
276
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
267
277
  </span>
268
- `}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:""})}};Te.elementDefinitions={};Te.styles=Fl;cr([(0,qi.redux)()],Te.prototype,"editorMode",void 0);cr([(0,ur.property)()],Te.prototype,"context",void 0);cr([(0,ur.property)()],Te.prototype,"key",void 0);cr([(0,qi.jsonProperty)([])],Te.prototype,"args",void 0);cr([(0,ur.property)()],Te.prototype,"defaultMessage",void 0);cr([(0,ur.state)()],Te.prototype,"editorMessage",void 0);var Vl=f(S());var Hl={"ft-i18n":Te};(0,Vl.customElements)(Hl);var Me=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},J=class extends ji{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 Re.Debouncer,this.revealDebouncer=new Re.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 zl.html`
278
+ `}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:""})}};Te.elementDefinitions={};Te.styles=Fl;cr([(0,qi.redux)()],Te.prototype,"editorMode",void 0);cr([(0,ur.property)()],Te.prototype,"context",void 0);cr([(0,ur.property)()],Te.prototype,"key",void 0);cr([(0,qi.jsonProperty)([])],Te.prototype,"args",void 0);cr([(0,ur.property)()],Te.prototype,"defaultMessage",void 0);cr([(0,ur.state)()],Te.prototype,"editorMessage",void 0);var Vl=f(S());var Hl={"ft-i18n":Te};(0,Vl.customElements)(Hl);var Ie=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},J=class extends ji{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 Re.Debouncer,this.revealDebouncer=new Re.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 zl.html`
269
279
  <div part="container"
270
280
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
281
  <slot part="slot"></slot>
@@ -280,7 +290,7 @@
280
290
  </div>
281
291
  </div>
282
292
  </div>
283
- `}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 s=this.text;this.text={message:t},await this.show(r),this.text=s,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&&Po(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 ${Re.designSystemVariables.transitionDuration}, left ${Re.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Re.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};J.elementDefinitions={"ft-typography":X};J.styles=no;Me([Ul()],J.prototype,"text",void 0);Me([(0,Le.property)({type:Boolean})],J.prototype,"manual",void 0);Me([(0,Le.property)({type:Boolean})],J.prototype,"inline",void 0);Me([(0,Re.numberProperty)()],J.prototype,"delay",void 0);Me([(0,Le.property)()],J.prototype,"position",void 0);Me([(0,Re.jsonProperty)([])],J.prototype,"ignoreMatchingElements",void 0);Me([(0,Le.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);Me([(0,Le.query)(".ft-tooltip--container")],J.prototype,"container",void 0);Me([(0,Le.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);Me([(0,Le.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);Me([(0,Le.state)()],J.prototype,"visible",void 0);var Wl=f(S());var jl={"ft-tooltip":J};(0,Wl.customElements)(jl);var Kl=f(k()),$e=f(S()),Ie={size:$e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:$e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Gl=[Kl.css`
293
+ `}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 s=this.text;this.text={message:t},await this.show(r),this.text=s,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&&No(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 ${Re.designSystemVariables.transitionDuration}, left ${Re.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Re.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};J.elementDefinitions={"ft-typography":X};J.styles=no;Ie([Ul()],J.prototype,"text",void 0);Ie([(0,Le.property)({type:Boolean})],J.prototype,"manual",void 0);Ie([(0,Le.property)({type:Boolean})],J.prototype,"inline",void 0);Ie([(0,Re.numberProperty)()],J.prototype,"delay",void 0);Ie([(0,Le.property)()],J.prototype,"position",void 0);Ie([(0,Re.jsonProperty)([])],J.prototype,"ignoreMatchingElements",void 0);Ie([(0,Le.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);Ie([(0,Le.query)(".ft-tooltip--container")],J.prototype,"container",void 0);Ie([(0,Le.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);Ie([(0,Le.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);Ie([(0,Le.state)()],J.prototype,"visible",void 0);var Wl=f(S());var jl={"ft-tooltip":J};(0,Wl.customElements)(jl);var Kl=f(k()),Ue=f(S()),$e={size:Ue.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Gl=[Kl.css`
284
294
  :host, i.ft-icon {
285
295
  display: inline-flex;
286
296
  align-items: center;
@@ -289,14 +299,14 @@
289
299
  }
290
300
 
291
301
  :host {
292
- width: ${Ie.size};
293
- height: ${Ie.size};
302
+ width: ${$e.size};
303
+ height: ${$e.size};
294
304
  }
295
305
 
296
306
  i.ft-icon {
297
307
  width: 100%;
298
308
  height: 100%;
299
- font-size: ${Ie.size};
309
+ font-size: ${$e.size};
300
310
  line-height: 1;
301
311
  font-weight: normal;
302
312
  text-transform: none;
@@ -307,33 +317,33 @@
307
317
  text-rendering: auto;
308
318
  -webkit-font-smoothing: antialiased;
309
319
  -moz-osx-font-smoothing: grayscale;
310
- vertical-align: ${Ie.verticalAlign};
320
+ vertical-align: ${$e.verticalAlign};
311
321
  }
312
322
 
313
323
  i.ft-icon.ft-icon--fluid-topics {
314
- font-family: ${Ie.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
324
+ font-family: ${$e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
315
325
 
316
326
  /* Ugly fix because font is broken */
317
- font-size: calc(0.75 * ${Ie.size});
318
- line-height: ${Ie.size};
327
+ font-size: calc(0.75 * ${$e.size});
328
+ line-height: ${$e.size};
319
329
  position: relative;
320
330
  top: -4%;
321
331
  justify-content: center;
322
332
  }
323
333
 
324
334
  .ft-icon--file-format {
325
- font-family: ${Ie.fileFormatFontFamily}, ft-mime, sans-serif;
335
+ font-family: ${$e.fileFormatFontFamily}, ft-mime, sans-serif;
326
336
  }
327
337
 
328
338
  .ft-icon--material {
329
- font-family: ${Ie.materialFontFamily}, "Material Icons", sans-serif;
339
+ font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
330
340
  }
331
- `,$e.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Hr=f(k()),dt=f(K()),Xl=f(S()),Jl=f(Yl());var Yi;(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;"})(Yi||(Yi={}));var h;(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;"})(h||(h={}));var Lg=new Map([...["abw"].map(e=>[e,h.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,h.AUDIO]),...["avi"].map(e=>[e,h.AVI]),...["chm","xhs"].map(e=>[e,h.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,h.CODE]),...["csv"].map(e=>[e,h.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,h.DITA]),...["epub"].map(e=>[e,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,h.EXCEL]),...["flac"].map(e=>[e,h.FLAC]),...["gif"].map(e=>[e,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,h.GZIP]),...["html","htm","xhtml"].map(e=>[e,h.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,h.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,h.JPEG]),...["json"].map(e=>[e,h.JSON]),...["m4a","m4p"].map(e=>[e,h.M4A]),...["mov","qt"].map(e=>[e,h.MOV]),...["mp3"].map(e=>[e,h.MP3]),...["mp4","m4v"].map(e=>[e,h.MP4]),...["ogg","oga"].map(e=>[e,h.OGG]),...["pdf","ps"].map(e=>[e,h.PDF]),...["png"].map(e=>[e,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,h.POWERPOINT]),...["rar"].map(e=>[e,h.RAR]),...["stp"].map(e=>[e,h.STP]),...["txt","rtf","md","mdown"].map(e=>[e,h.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,h.VIDEO]),...["wav"].map(e=>[e,h.WAV]),...["wma"].map(e=>[e,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,h.WORD]),...["xml","xsl","rdf"].map(e=>[e,h.XML]),...["yaml","yml","x-yaml"].map(e=>[e,h.YAML]),...["zip"].map(e=>[e,h.ZIP])]);var kg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var Vr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},de=class extends Xl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Hr.nothing}render(){let t=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=t!==ut.material||!!this.value;return Hr.html`
341
+ `,Ue.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Hr=f(k()),dt=f(K()),Xl=f(S()),Jl=f(Yl());var Yi;(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;"})(Yi||(Yi={}));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 Lg=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 kg={[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 Vr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},de=class extends Xl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Hr.nothing}render(){let t=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=t!==ut.material||!!this.value;return Hr.html`
332
342
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
333
343
  ${(0,Jl.unsafeHTML)(this.resolvedIcon)}
334
344
  <slot ?hidden=${r}></slot>
335
345
  </i>
336
- `}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 ut.file_format:this.resolvedIcon=(t=h[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case ut.material:this.resolvedIcon=this.value||Hr.nothing;break;default:this.resolvedIcon=(r=Yi[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Gl;Vr([(0,dt.property)()],de.prototype,"variant",void 0);Vr([(0,dt.property)()],de.prototype,"value",void 0);Vr([(0,dt.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);Vr([(0,dt.state)()],de.prototype,"resolvedIcon",void 0);Vr([(0,dt.query)("slot")],de.prototype,"slottedContent",void 0);var Ql=f(S());var Zl={"ft-icon":de};(0,Ql.customElements)(Zl);var ec=f(k()),zr=f(S()),Dt={color:zr.FtCssVariableFactory.extend("--ft-loader-color","",zr.designSystemVariables.colorPrimary),size:zr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},tc=ec.css`
346
+ `}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 ut.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case ut.material:this.resolvedIcon=this.value||Hr.nothing;break;default:this.resolvedIcon=(r=Yi[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Gl;Vr([(0,dt.property)()],de.prototype,"variant",void 0);Vr([(0,dt.property)()],de.prototype,"value",void 0);Vr([(0,dt.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);Vr([(0,dt.state)()],de.prototype,"resolvedIcon",void 0);Vr([(0,dt.query)("slot")],de.prototype,"slottedContent",void 0);var Ql=f(S());var Zl={"ft-icon":de};(0,Ql.customElements)(Zl);var ec=f(k()),zr=f(S()),Vt={color:zr.FtCssVariableFactory.extend("--ft-loader-color","",zr.designSystemVariables.colorPrimary),size:zr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},tc=ec.css`
337
347
  :host {
338
348
  line-height: 0;
339
349
  }
@@ -342,8 +352,8 @@
342
352
  display: inline-block;
343
353
  position: relative;
344
354
 
345
- width: ${Dt.size};
346
- height: ${Dt.size};
355
+ width: ${Vt.size};
356
+ height: ${Vt.size};
347
357
  }
348
358
 
349
359
  .ft-loader div {
@@ -352,7 +362,7 @@
352
362
  width: 25%;
353
363
  height: 25%;
354
364
  border-radius: 50%;
355
- background: ${Dt.color};
365
+ background: ${Vt.color};
356
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
357
367
  }
358
368
 
@@ -399,17 +409,17 @@
399
409
  transform: translate(0, 0);
400
410
  }
401
411
  100% {
402
- transform: translate(calc(0.35 * ${Dt.size}), 0);
412
+ transform: translate(calc(0.35 * ${Vt.size}), 0);
403
413
  }
404
414
  }
405
- `;var rc=f(k()),ic=f(S());var Mt=class extends ic.FtLitElement{render(){return rc.html`
415
+ `;var rc=f(k()),ic=f(S());var zt=class extends ic.FtLitElement{render(){return rc.html`
406
416
  <div class="ft-loader">
407
417
  <div></div>
408
418
  <div></div>
409
419
  <div></div>
410
420
  <div></div>
411
421
  </div>
412
- `}};Mt.styles=tc;var sc=f(S());var nc={"ft-loader":Mt};(0,sc.customElements)(nc);var pt=f(k()),Xi=f(Xt()),P=f(K());var jr=e=>e??G;var lc=f(k()),_=f(S());var oc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),D={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:oc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",oc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},ac=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),is={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:ac,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ac)},Ke={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},cc=lc.css`
422
+ `}};zt.styles=tc;var sc=f(S());var nc={"ft-loader":zt};(0,sc.customElements)(nc);var pt=f(k()),Xi=f(Xt()),N=f(K());var jr=e=>e??G;var lc=f(k()),_=f(S());var oc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),P={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:oc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",De.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",oc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},ac=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),is={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:ac,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ac)},Ke={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},cc=lc.css`
413
423
  :host {
414
424
  display: inline-block;
415
425
  max-width: 100%;
@@ -420,7 +430,7 @@
420
430
  box-shadow: 0px 0px 0px transparent;
421
431
  border: 0px solid transparent;
422
432
  text-shadow: 0px 0px 0px transparent;
423
- font-size: ${D.fontSize};
433
+ font-size: ${P.fontSize};
424
434
  text-decoration: none;
425
435
  }
426
436
 
@@ -454,27 +464,27 @@
454
464
  border: none;
455
465
  pointer-events: auto;
456
466
 
457
- --button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
458
- --button-internal-color: ${D.color};
459
- ${(0,_.setVariable)(Ie.size,D.iconSize)};
460
- ${(0,_.setVariable)(pe.color,D.rippleColor)};
461
- ${(0,_.setVariable)(pe.borderRadius,D.borderRadius)};
467
+ --button-internal-line-height: max(calc(${P.fontSize} + 2px), ${P.iconSize});
468
+ --button-internal-color: ${P.color};
469
+ ${(0,_.setVariable)($e.size,P.iconSize)};
470
+ ${(0,_.setVariable)(fe.color,P.rippleColor)};
471
+ ${(0,_.setVariable)(fe.borderRadius,P.borderRadius)};
462
472
 
463
- border-radius: ${D.borderRadius};
464
- padding: ${D.verticalPadding} ${D.horizontalPadding};
465
- background-color: ${D.backgroundColor};
473
+ border-radius: ${P.borderRadius};
474
+ padding: ${P.verticalPadding} ${P.horizontalPadding};
475
+ background-color: ${P.backgroundColor};
466
476
  color: var(--button-internal-color);
467
477
  }
468
478
 
469
479
  .ft-button.ft-button--outlined {
470
480
  border: 1px solid var(--button-internal-color);
471
- padding: calc(${D.verticalPadding} - 1px) calc(${D.horizontalPadding} - 1px);
481
+ padding: calc(${P.verticalPadding} - 1px) calc(${P.horizontalPadding} - 1px);
472
482
  }
473
483
 
474
484
  .ft-button.ft-button--dense {
475
485
  padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
476
486
  border-radius: ${Ke.borderRadius};
477
- ${(0,_.setVariable)(pe.borderRadius,Ke.borderRadius)};
487
+ ${(0,_.setVariable)(fe.borderRadius,Ke.borderRadius)};
478
488
  }
479
489
 
480
490
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -486,7 +496,7 @@
486
496
  }
487
497
 
488
498
  .ft-button--round {
489
- border-radius: calc(var(--button-internal-line-height) / 2 + ${D.verticalPadding});
499
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding});
490
500
  }
491
501
 
492
502
  .ft-button--round.ft-button--dense {
@@ -495,13 +505,13 @@
495
505
 
496
506
  .ft-button[disabled] {
497
507
  filter: grayscale(1);
498
- opacity: ${D.opacityDisabled};
508
+ opacity: ${P.opacityDisabled};
499
509
  }
500
510
 
501
511
  .ft-button.ft-button--primary {
502
512
  background-color: ${is.backgroundColor};
503
513
  --button-internal-color: ${is.color};
504
- ${(0,_.setVariable)(pe.color,is.rippleColor)};
514
+ ${(0,_.setVariable)(fe.color,is.rippleColor)};
505
515
  }
506
516
 
507
517
  .ft-button--label {
@@ -510,9 +520,9 @@
510
520
  white-space: nowrap;
511
521
  text-overflow: ellipsis;
512
522
  display: block;
513
- margin: 0 ${D.iconPadding};
514
- ${(0,_.setVariable)(Ve.fontSize,"1em")};
515
- ${(0,_.setVariable)(Ve.lineHeight,"var(--button-internal-line-height)")};
523
+ margin: 0 ${P.iconPadding};
524
+ ${(0,_.setVariable)(De.fontSize,"1em")};
525
+ ${(0,_.setVariable)(De.lineHeight,"var(--button-internal-line-height)")};
516
526
  }
517
527
 
518
528
  .ft-button--dense .ft-button--label {
@@ -529,8 +539,8 @@
529
539
  }
530
540
 
531
541
  .ft-button--label[hidden] + [part="icon"] {
532
- margin: 0 calc(${D.horizontalPadding} * -1);
533
- padding: 0 ${D.verticalPadding};
542
+ margin: 0 calc(${P.horizontalPadding} * -1);
543
+ padding: 0 ${P.verticalPadding};
534
544
  }
535
545
 
536
546
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -543,8 +553,8 @@
543
553
  }
544
554
 
545
555
  ft-loader {
546
- ${(0,_.setVariable)(Dt.size,D.iconSize)};
547
- ${(0,_.setVariable)(Dt.color,"var(--button-internal-color)")};
556
+ ${(0,_.setVariable)(Vt.size,P.iconSize)};
557
+ ${(0,_.setVariable)(Vt.color,"var(--button-internal-color)")};
548
558
  }
549
559
  `;var U=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},O=class e extends(0,Ge.toFtFormComponent)(Ge.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ge.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=pt.html`
550
560
  <ft-ripple part="ripple"
@@ -587,7 +597,7 @@
587
597
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
588
598
  `:pt.html`
589
599
  <slot part="icon" name="icon"></slot>
590
- `}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)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":J,"ft-icon":de,"ft-loader":Mt,"ft-typography":X};O.styles=[Ge.safariEllipsisFix,cc,Ge.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,P.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,P.property)()],O.prototype,"icon",void 0);U([(0,P.property)()],O.prototype,"iconVariant",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,P.property)()],O.prototype,"label",void 0);U([(0,P.property)()],O.prototype,"type",void 0);U([(0,P.property)()],O.prototype,"href",void 0);U([(0,P.property)()],O.prototype,"target",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,P.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,P.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,P.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,P.property)()],O.prototype,"tooltipPosition",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,P.query)(".ft-button")],O.prototype,"button",void 0);U([(0,P.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,P.state)()],O.prototype,"hasTextContent",void 0);U([(0,P.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,P.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var dc=f(S());var uc={"ft-button":O};(0,dc.customElements)(uc);var Ji=f(k()),Ue=f(K()),hc=f(S()),mc=f(Xt());var ne=f(S()),pc=f(k());var Se={textColor:ne.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ne.designSystemVariables.colorOnSurfaceHigh),fontSize:ne.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:ne.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ne.designSystemVariables.colorPrimary),checkColor:ne.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ne.designSystemVariables.colorOnPrimary),borderColor:ne.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ne.designSystemVariables.colorOnSurfaceMedium),disabledColor:ne.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ne.designSystemVariables.colorOnSurfaceDisabled),errorColor:ne.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ne.designSystemVariables.colorError)},fc=pc.css`
600
+ `}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)}};O.elementDefinitions={"ft-ripple":D,"ft-tooltip":J,"ft-icon":de,"ft-loader":zt,"ft-typography":X};O.styles=[Ge.safariEllipsisFix,cc,Ge.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,N.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,N.property)()],O.prototype,"icon",void 0);U([(0,N.property)()],O.prototype,"iconVariant",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,N.property)()],O.prototype,"label",void 0);U([(0,N.property)()],O.prototype,"type",void 0);U([(0,N.property)()],O.prototype,"href",void 0);U([(0,N.property)()],O.prototype,"target",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,N.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,N.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,N.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,N.property)()],O.prototype,"tooltipPosition",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,N.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,N.query)(".ft-button")],O.prototype,"button",void 0);U([(0,N.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,N.state)()],O.prototype,"hasTextContent",void 0);U([(0,N.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,N.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var dc=f(S());var uc={"ft-button":O};(0,dc.customElements)(uc);var Ji=f(k()),Be=f(K()),hc=f(S()),mc=f(Xt());var ne=f(S()),pc=f(k());var Se={textColor:ne.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ne.designSystemVariables.colorOnSurfaceHigh),fontSize:ne.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:ne.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ne.designSystemVariables.colorPrimary),checkColor:ne.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ne.designSystemVariables.colorOnPrimary),borderColor:ne.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ne.designSystemVariables.colorOnSurfaceMedium),disabledColor:ne.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ne.designSystemVariables.colorOnSurfaceDisabled),errorColor:ne.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ne.designSystemVariables.colorError)},fc=pc.css`
591
601
  * {
592
602
  box-sizing: border-box;
593
603
  }
@@ -668,7 +678,7 @@
668
678
 
669
679
  .ft-checkbox.ft-checkbox--error {
670
680
  color: ${Se.errorColor};
671
- ${(0,ne.setVariable)(pe.color,Se.errorColor)};
681
+ ${(0,ne.setVariable)(fe.color,Se.errorColor)};
672
682
 
673
683
  .ft-checkbox--box {
674
684
  border-color: ${Se.errorColor};
@@ -714,7 +724,7 @@
714
724
  <path class="ft-checkbox--checkmark-path" fill="none"
715
725
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
716
726
  </svg>
717
- `}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new ns(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};se.elementDefinitions={"ft-ripple":N,"ft-typography":X};se.styles=fc;rt([(0,Ue.property)()],se.prototype,"name",void 0);rt([(0,Ue.property)()],se.prototype,"value",void 0);rt([(0,Ue.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"indeterminate",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"disabled",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"error",void 0);rt([(0,Ue.query)(".ft-checkbox")],se.prototype,"container",void 0);rt([(0,Ue.query)("ft-ripple")],se.prototype,"ripple",void 0);rt([(0,Ue.query)("input")],se.prototype,"input",void 0);var gc=f(S());var yc={"ft-checkbox":se};(0,gc.customElements)(yc);var xc=f(k()),qe=f(K()),Sc=f(S()),Ec=f(Xt());var vc=f(k()),me=f(S());var ft={textColor:me.FtCssVariableFactory.extend("--ft-radio-text-color","",me.designSystemVariables.colorOnSurfaceHigh),fontSize:me.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnPrimary,"Design system"),borderColor:me.FtCssVariableFactory.extend("--ft-radio-border-color","",me.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnSurfaceDisabled,"Design system")},bc=vc.css`
727
+ `}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new ns(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};se.elementDefinitions={"ft-ripple":D,"ft-typography":X};se.styles=fc;rt([(0,Be.property)()],se.prototype,"name",void 0);rt([(0,Be.property)()],se.prototype,"value",void 0);rt([(0,Be.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);rt([(0,Be.property)({type:Boolean})],se.prototype,"indeterminate",void 0);rt([(0,Be.property)({type:Boolean})],se.prototype,"disabled",void 0);rt([(0,Be.property)({type:Boolean})],se.prototype,"error",void 0);rt([(0,Be.query)(".ft-checkbox")],se.prototype,"container",void 0);rt([(0,Be.query)("ft-ripple")],se.prototype,"ripple",void 0);rt([(0,Be.query)("input")],se.prototype,"input",void 0);var gc=f(S());var yc={"ft-checkbox":se};(0,gc.customElements)(yc);var bc=f(k()),qe=f(K()),Sc=f(S()),Ec=f(Xt());var vc=f(k()),ye=f(S());var ft={textColor:ye.FtCssVariableFactory.extend("--ft-radio-text-color","",ye.designSystemVariables.colorOnSurfaceHigh),fontSize:ye.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ye.FtCssVariableFactory.extend("--ft-radio-border-color","",ye.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnSurfaceDisabled,"Design system")},xc=vc.css`
718
728
  * {
719
729
  box-sizing: border-box;
720
730
  }
@@ -796,14 +806,14 @@
796
806
  }
797
807
 
798
808
  .ft-radio:has(:focus-visible) {
799
- outline: 2px solid ${me.designSystemVariables.colorPrimary};
809
+ outline: 2px solid ${ye.designSystemVariables.colorPrimary};
800
810
  outline-offset: -2px;
801
811
  }
802
812
 
803
813
  .ft-radio ft-typography {
804
814
  padding-right: 2px;
805
815
  }
806
- `;var ht=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Zi=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},le=class extends Sc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return xc.html`
816
+ `;var ht=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Zi=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},le=class extends Sc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return bc.html`
807
817
  <div class="${(0,Ec.classMap)(this.radioClasses)}"
808
818
  @click=${this.onClick}>
809
819
  <div class="ft-radio--box-container">
@@ -829,7 +839,7 @@
829
839
  </ft-typography>
830
840
  </label>
831
841
  </div>
832
- `}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zi(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zi(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":N,"ft-typography":X};le.styles=bc;ht([(0,qe.property)()],le.prototype,"name",void 0);ht([(0,qe.property)()],le.prototype,"value",void 0);ht([(0,qe.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);ht([(0,qe.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);ht([(0,qe.property)({type:Boolean})],le.prototype,"disabled",void 0);ht([(0,qe.query)(".ft-radio")],le.prototype,"container",void 0);ht([(0,qe.query)("ft-ripple")],le.prototype,"ripple",void 0);ht([(0,qe.query)("input")],le.prototype,"input",void 0);var Cc=f(S()),mt=f(K()),wc=f(k());var Ac=f(k());var _c=Ac.css`
842
+ `}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zi(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zi(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":D,"ft-typography":X};le.styles=xc;ht([(0,qe.property)()],le.prototype,"name",void 0);ht([(0,qe.property)()],le.prototype,"value",void 0);ht([(0,qe.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);ht([(0,qe.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);ht([(0,qe.property)({type:Boolean})],le.prototype,"disabled",void 0);ht([(0,qe.query)(".ft-radio")],le.prototype,"container",void 0);ht([(0,qe.query)("ft-ripple")],le.prototype,"ripple",void 0);ht([(0,qe.query)("input")],le.prototype,"input",void 0);var Cc=f(S()),mt=f(K()),wc=f(k());var Ac=f(k());var _c=Ac.css`
833
843
  :host {
834
844
  display: block;
835
845
  }
@@ -837,12 +847,12 @@
837
847
  :host(:focus-visible) {
838
848
  outline: none;
839
849
  }
840
- `;var Wr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Be=class extends Cc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return wc.html`
850
+ `;var Wr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Fe=class extends Cc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return wc.html`
841
851
  <slot @slotchange=${this.onSlotChange}
842
852
  @change=${this.onChange}
843
853
  @keydown=${this.onKeyDown}
844
854
  ></slot>
845
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(r=>r.checked=t.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let r=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(r=>r.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Be.elementDefinitions={};Be.styles=_c;Wr([(0,mt.property)()],Be.prototype,"name",void 0);Wr([(0,mt.property)({reflect:!0,attribute:"role"})],Be.prototype,"role",void 0);Wr([(0,mt.property)({reflect:!0,attribute:"aria-labelledby"})],Be.prototype,"ariaLabelledBy",void 0);Wr([(0,mt.queryAssignedElements)()],Be.prototype,"assignedElements",void 0);Wr([(0,mt.state)()],Be.prototype,"currentSelectedIndex",void 0);var Tc=f(S());var Oc={"ft-radio":le,"ft-radio-group":Be};(0,Tc.customElements)(Oc);var Rc=f(k()),M=f(S());var Kr={buttonMoreColor:M.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",M.designSystemVariables.colorOnSurface),borderRadiusM:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusM,"Design system"),colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:M.FtCssVariableFactory.external(ge.fontFamily,"Body2 typography"),fontSize:M.FtCssVariableFactory.external(ge.fontSize,"Body2 typography"),fontWeight:M.FtCssVariableFactory.external(ge.fontWeight,"Body2 typography"),letterSpacing:M.FtCssVariableFactory.external(ge.letterSpacing,"Body2 typography"),lineHeight:M.FtCssVariableFactory.external(ge.lineHeight,"Body2 typography"),textTransform:M.FtCssVariableFactory.external(ge.textTransform,"Body2 typography")},Lc=Rc.css`
855
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(r=>r.checked=t.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let r=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(r=>r.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Fe.elementDefinitions={};Fe.styles=_c;Wr([(0,mt.property)()],Fe.prototype,"name",void 0);Wr([(0,mt.property)({reflect:!0,attribute:"role"})],Fe.prototype,"role",void 0);Wr([(0,mt.property)({reflect:!0,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",void 0);Wr([(0,mt.queryAssignedElements)()],Fe.prototype,"assignedElements",void 0);Wr([(0,mt.state)()],Fe.prototype,"currentSelectedIndex",void 0);var Tc=f(S());var Oc={"ft-radio":le,"ft-radio-group":Fe};(0,Tc.customElements)(Oc);var Rc=f(k()),M=f(S());var Kr={buttonMoreColor:M.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",M.designSystemVariables.colorOnSurface),borderRadiusM:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusM,"Design system"),colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:M.FtCssVariableFactory.external(pe.fontFamily,"Body2 typography"),fontSize:M.FtCssVariableFactory.external(pe.fontSize,"Body2 typography"),fontWeight:M.FtCssVariableFactory.external(pe.fontWeight,"Body2 typography"),letterSpacing:M.FtCssVariableFactory.external(pe.letterSpacing,"Body2 typography"),lineHeight:M.FtCssVariableFactory.external(pe.lineHeight,"Body2 typography"),textTransform:M.FtCssVariableFactory.external(pe.textTransform,"Body2 typography")},Lc=Rc.css`
846
856
  .ft-filter-level--container {
847
857
  display: flex;
848
858
  flex-direction: column;
@@ -893,11 +903,11 @@
893
903
  }
894
904
 
895
905
  ft-button {
896
- ${(0,M.setVariable)(D.color,Kr.colorOnSurface)};
906
+ ${(0,M.setVariable)(P.color,Kr.colorOnSurface)};
897
907
  }
898
908
 
899
909
  ft-button.ft-filter-level--display-more {
900
- ${(0,M.setVariable)(D.color,Kr.buttonMoreColor)};
910
+ ${(0,M.setVariable)(P.color,Kr.buttonMoreColor)};
901
911
  }
902
912
 
903
913
  ft-radio, ft-checkbox {
@@ -913,7 +923,7 @@
913
923
  margin: 10px 0;
914
924
  color: ${Kr.colorOnSurfaceMedium};
915
925
  }
916
- `;var oe=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},ss={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},V=class extends(0,ye.withAnalytics)(Ki((0,ye.withAriaNotification)(ye.FtLitElement)),ss){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ye.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit);return Ee.html`
926
+ `;var oe=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},ss={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},V=class extends(0,ge.withAnalytics)(Ki((0,ge.withAriaNotification)(ge.FtLitElement)),ss){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ge.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit);return Ee.html`
917
927
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
918
928
  ${this.parent==null?null:Ee.html`
919
929
  <div tabindex="0"
@@ -966,7 +976,7 @@
966
976
  data-value="${t.value}"
967
977
  .checked=${t.selected}
968
978
  .disabled=${this.disabled}
969
- .indeterminate=${(0,ye.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
979
+ .indeterminate=${(0,ge.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
970
980
  @change=${i=>this.optionsChanged(i,t)}>
971
981
  ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
972
982
  </ft-checkbox>
@@ -981,7 +991,7 @@
981
991
  @change=${r=>this.optionsChanged(r,t)}>
982
992
  ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
983
993
  </ft-radio>
984
- `}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};V.elementDefinitions={"ft-button":O,"ft-ripple":N,"ft-typography":X,"ft-checkbox":se,"ft-icon":de,"ft-radio":le};V.styles=Lc;oe([(0,Z.property)({type:String})],V.prototype,"filterId",void 0);oe([(0,Z.property)({type:Object})],V.prototype,"parent",void 0);oe([(0,Z.property)({type:Array,hasChanged:ye.hasChanged})],V.prototype,"options",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"multivalued",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"disabled",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"hideSelectedOptions",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"displayCount",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"preventNavigation",void 0);oe([(0,Z.property)({type:String})],V.prototype,"filter",void 0);oe([(0,Z.property)({type:String})],V.prototype,"moreValuesButtonLabel",void 0);oe([(0,Z.property)({type:String})],V.prototype,"noValuesLabel",void 0);oe([(0,Z.property)()],V.prototype,"filteredOptionsNumberAriaNotification",void 0);oe([(0,ye.numberProperty)()],V.prototype,"displayedValuesLimit",void 0);oe([(0,Z.query)(".ft-filter-level--container")],V.prototype,"container",void 0);oe([(0,Z.state)()],V.prototype,"radios",void 0);oe([(0,Z.state)()],V.prototype,"displayedPages",void 0);oe([(0,Z.state)()],V.prototype,"filteredOptions",void 0);var Dc=f(k()),Ae=f(K()),It=f(S());var Mc=f(Xt());var Nc=f(k()),Fe=f(S());var yt={buttonsColor:Fe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Fe.designSystemVariables.colorPrimary),buttonsZIndex:Fe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Fe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Fe.FtCssVariableFactory.external(Fe.designSystemVariables.colorSurface,"Design system")},Pc=Nc.css`
994
+ `}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};V.elementDefinitions={"ft-button":O,"ft-ripple":D,"ft-typography":X,"ft-checkbox":se,"ft-icon":de,"ft-radio":le};V.styles=Lc;oe([(0,Z.property)({type:String})],V.prototype,"filterId",void 0);oe([(0,Z.property)({type:Object})],V.prototype,"parent",void 0);oe([(0,Z.property)({type:Array,hasChanged:ge.hasChanged})],V.prototype,"options",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"multivalued",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"disabled",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"hideSelectedOptions",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"displayCount",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"preventNavigation",void 0);oe([(0,Z.property)({type:String})],V.prototype,"filter",void 0);oe([(0,Z.property)({type:String})],V.prototype,"moreValuesButtonLabel",void 0);oe([(0,Z.property)({type:String})],V.prototype,"noValuesLabel",void 0);oe([(0,Z.property)()],V.prototype,"filteredOptionsNumberAriaNotification",void 0);oe([(0,ge.numberProperty)()],V.prototype,"displayedValuesLimit",void 0);oe([(0,Z.query)(".ft-filter-level--container")],V.prototype,"container",void 0);oe([(0,Z.state)()],V.prototype,"radios",void 0);oe([(0,Z.state)()],V.prototype,"displayedPages",void 0);oe([(0,Z.state)()],V.prototype,"filteredOptions",void 0);var Pc=f(k()),Ae=f(K()),jt=f(S());var Mc=f(Xt());var Dc=f(k()),He=f(S());var yt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},Nc=Dc.css`
985
995
  .ft-snap-scroll {
986
996
  box-sizing: border-box;
987
997
  position: relative;
@@ -1062,8 +1072,8 @@
1062
1072
  z-index: ${yt.buttonsZIndex};
1063
1073
  opacity: 1;
1064
1074
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1065
- ${(0,Fe.setVariable)(D.backgroundColor,"transparent")};
1066
- ${(0,Fe.setVariable)(D.color,yt.buttonsColor)};
1075
+ ${(0,He.setVariable)(P.backgroundColor,"transparent")};
1076
+ ${(0,He.setVariable)(P.color,yt.buttonsColor)};
1067
1077
  }
1068
1078
 
1069
1079
  .ft-snap-scroll--previous[hidden],
@@ -1106,7 +1116,7 @@
1106
1116
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1107
1117
  background-color: ${yt.colorSurface};
1108
1118
  }
1109
- `;var Ye=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},os=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends It.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new It.Debouncer(200),this.updateScrollDebouncer=new It.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,Mc.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":It.isSafari}),r=this.controls&&this.withScroll;return Dc.html`
1119
+ `;var Ye=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},os=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends jt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new jt.Debouncer(200),this.updateScrollDebouncer=new jt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,Mc.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":jt.isSafari}),r=this.controls&&this.withScroll;return Pc.html`
1110
1120
  <div part="container" class="${t}">
1111
1121
  <ft-button
1112
1122
  class="ft-snap-scroll--previous"
@@ -1130,7 +1140,7 @@
1130
1140
  @click=${this.next}
1131
1141
  ></ft-button>
1132
1142
  </div>
1133
- `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new os(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Pc;Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Ye([(0,Ae.state)()],ee.prototype,"elements",void 0);Ye([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Ye([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Ye([(0,Ae.state)()],ee.prototype,"startReached",void 0);Ye([(0,Ae.state)()],ee.prototype,"endReached",void 0);Ye([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var $c=f(S());var Ic={"ft-snap-scroll":ee};(0,$c.customElements)(Ic);var Uc=f(k()),B=f(S());var ke={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Bc=[Xr,B.noTextInputDefaultClearButton,Uc.css`
1143
+ `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new os(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Nc;Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Ye([(0,Ae.state)()],ee.prototype,"elements",void 0);Ye([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Ye([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Ye([(0,Ae.state)()],ee.prototype,"startReached",void 0);Ye([(0,Ae.state)()],ee.prototype,"endReached",void 0);Ye([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var $c=f(S());var Ic={"ft-snap-scroll":ee};(0,$c.customElements)(Ic);var Uc=f(k()),B=f(S());var ke={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Bc=[Xr,B.noTextInputDefaultClearButton,Uc.css`
1134
1144
  :host {
1135
1145
  display: flex;
1136
1146
  max-height: 100%;
@@ -1158,7 +1168,7 @@
1158
1168
  .ft-filter--header ft-button {
1159
1169
  flex-shrink: 0;
1160
1170
  margin-left: auto;
1161
- ${(0,B.setVariable)(D.iconSize,"18px")};
1171
+ ${(0,B.setVariable)(P.iconSize,"18px")};
1162
1172
  }
1163
1173
 
1164
1174
  .filter-label {
@@ -1247,10 +1257,10 @@
1247
1257
  slot:not([name]) {
1248
1258
  display: none;
1249
1259
  }
1250
- `];var F=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},as=class extends CustomEvent{constructor(t){super("change",{detail:t})}},R=class extends(0,W.withAnalytics)(W.FtLitElement,ss){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new W.Debouncer(300),this.changeDebouncer=new W.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return $t.html`
1260
+ `];var F=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},as=class extends CustomEvent{constructor(t){super("change",{detail:t})}},R=class extends(0,W.withAnalytics)(W.FtLitElement,ss){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new W.Debouncer(300),this.changeDebouncer=new W.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,W.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Wt.html`
1251
1261
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1252
1262
  part="container">
1253
- ${!this.label&&!t?null:$t.html`
1263
+ ${!this.label&&!t?null:Wt.html`
1254
1264
 
1255
1265
  <div class="ft-filter--header" part="header">
1256
1266
  <div class="filter-label" id="id-group-${this.id}">
@@ -1259,7 +1269,7 @@
1259
1269
  </ft-typography>
1260
1270
  <slot name="label"></slot>
1261
1271
  </div>
1262
- ${t&&!this.hideClearButton?$t.html`
1272
+ ${t&&!this.hideClearButton?Wt.html`
1263
1273
  <ft-button icon="close"
1264
1274
  aria-label="${this.clearButtonLabel+" "+this.label}"
1265
1275
  dense
@@ -1287,8 +1297,8 @@
1287
1297
  @slotchange=${this.updateOptionsFromSlot}
1288
1298
  @option-change=${this.optionsChanged}></slot>
1289
1299
  </div>
1290
- `}update(t){if(super.update(t),t.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var r,i,s,n,o,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),t.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let t=this.flatOptions,r=t.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return $t.html`
1291
- ${this.raiseSelectedOptions&&r.length>0?$t.html`
1300
+ `}update(t){if(super.update(t),t.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var r,i,s,n,o,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),t.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let t=this.flatOptions,r=t.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return Wt.html`
1301
+ ${this.raiseSelectedOptions&&r.length>0?Wt.html`
1292
1302
  <ft-filter-level
1293
1303
  filterId="${this.id}"
1294
1304
  ?multivalued=${this.multivalued}
@@ -1309,7 +1319,7 @@
1309
1319
  ${this.renderLevel(s,this.options)}
1310
1320
  ${this.displayedLevels.map(n=>t.find(o=>o.value===n)).map((n,o)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1311
1321
  </ft-snap-scroll>
1312
- `}renderLevel(t,r,i){return $t.html`
1322
+ `}renderLevel(t,r,i){return Wt.html`
1313
1323
  <ft-filter-level
1314
1324
  class="${t}"
1315
1325
  filterId="${this.id}"
@@ -1331,9 +1341,9 @@
1331
1341
  noValuesLabel="${this.noValuesLabel}"
1332
1342
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1333
1343
  ></ft-filter-level>
1334
- `}goBack(t){this.slideOut=t.detail.value,(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,W.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(n=>n.value===t.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,W.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new as(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":ee,"ft-typography":X};R.styles=Bc;F([(0,I.property)({type:String})],R.prototype,"id",void 0);F([(0,I.property)({type:String})],R.prototype,"label",void 0);F([(0,I.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);F([(0,I.property)({type:String})],R.prototype,"clearButtonLabel",void 0);F([(0,I.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);F([(0,I.property)({type:String})],R.prototype,"noValuesLabel",void 0);F([(0,W.jsonProperty)([])],R.prototype,"options",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"multivalued",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"disabled",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"displayCount",void 0);F([(0,W.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);F([(0,W.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);F([(0,I.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);F([(0,I.query)(".ft-filter--container")],R.prototype,"container",void 0);F([(0,I.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);F([(0,I.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);F([(0,I.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);F([(0,I.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);F([(0,I.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);F([(0,I.state)()],R.prototype,"withScroll",void 0);F([(0,I.state)()],R.prototype,"filter",void 0);F([(0,I.state)()],R.prototype,"slideIn",void 0);F([(0,I.state)()],R.prototype,"slideOut",void 0);var Qi=f(S()),Ut=f(K()),Fc=f(k()),dr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},He=class extends Qi.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Fc.html`
1344
+ `}goBack(t){this.slideOut=t.detail.value,(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,W.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(n=>n.value===t.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,W.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new as(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":ee,"ft-typography":X};R.styles=Bc;F([(0,I.property)({type:String})],R.prototype,"id",void 0);F([(0,I.property)({type:String})],R.prototype,"label",void 0);F([(0,I.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);F([(0,I.property)({type:String})],R.prototype,"clearButtonLabel",void 0);F([(0,I.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);F([(0,I.property)({type:String})],R.prototype,"noValuesLabel",void 0);F([(0,W.jsonProperty)([])],R.prototype,"options",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"multivalued",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"disabled",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"displayCount",void 0);F([(0,W.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);F([(0,W.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);F([(0,I.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);F([(0,I.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);F([(0,I.query)(".ft-filter--container")],R.prototype,"container",void 0);F([(0,I.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);F([(0,I.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);F([(0,I.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);F([(0,I.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);F([(0,I.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);F([(0,I.state)()],R.prototype,"withScroll",void 0);F([(0,I.state)()],R.prototype,"filter",void 0);F([(0,I.state)()],R.prototype,"slideIn",void 0);F([(0,I.state)()],R.prototype,"slideOut",void 0);var Qi=f(S()),Kt=f(K()),Fc=f(k()),dr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},Ve=class extends Qi.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Fc.html`
1335
1345
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1336
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};He.elementDefinitions={};dr([(0,Ut.property)({type:String})],He.prototype,"label",void 0);dr([(0,Ut.property)({type:Object,converter:e=>e})],He.prototype,"value",void 0);dr([(0,Ut.property)({type:Boolean,reflect:!0})],He.prototype,"selected",void 0);dr([(0,Ut.property)({type:Object})],He.prototype,"subOptions",void 0);dr([(0,Qi.jsonProperty)({})],He.prototype,"renderOption",void 0);dr([(0,Ut.query)(".ft-filter-option--slot")],He.prototype,"slotElement",void 0);var Hc={"ft-filter":R,"ft-filter-option":He};(0,Vc.customElements)(Hc);})();
1346
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ve.elementDefinitions={};dr([(0,Kt.property)({type:String})],Ve.prototype,"label",void 0);dr([(0,Kt.property)({type:Object,converter:e=>e})],Ve.prototype,"value",void 0);dr([(0,Kt.property)({type:Boolean,reflect:!0})],Ve.prototype,"selected",void 0);dr([(0,Kt.property)({type:Object})],Ve.prototype,"subOptions",void 0);dr([(0,Qi.jsonProperty)({})],Ve.prototype,"renderOption",void 0);dr([(0,Kt.query)(".ft-filter-option--slot")],Ve.prototype,"slotElement",void 0);var Hc={"ft-filter":R,"ft-filter-option":Ve};(0,Vc.customElements)(Hc);})();
1337
1347
  /*! Bundled license information:
1338
1348
 
1339
1349
  lit-html/lit-html.js: