@fluid-topics/ft-search-input 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Gp=Object.create;var sa=Object.defineProperty;var Qp=Object.getOwnPropertyDescriptor;var Yp=Object.getOwnPropertyNames;var Xp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty;var Hr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Jp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yp(e))!Zp.call(t,n)&&n!==r&&sa(t,n,{get:()=>e[n],enumerable:!(i=Qp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Gp(Xp(t)):{},Jp(e||!t||!t.__esModule?sa(r,"default",{value:t,enumerable:!0}):r,t));var f=Hr((qf,na)=>{na.exports=ftGlobals.wcUtils});var v=Hr((Kf,oa)=>{oa.exports=ftGlobals.lit});var V=Hr((Wf,aa)=>{aa.exports=ftGlobals.litDecorators});var Ze=Hr((Gf,la)=>{la.exports=ftGlobals.litClassMap});var Iu=Hr((Fx,Du)=>{Du.exports=ftGlobals.litUnsafeHTML});var cr=Hr((sE,rd)=>{rd.exports=ftGlobals.litRepeat});var qp=c(f());var xi=c(v()),Ne=c(f());var Zu=c(v()),G=c(f());var Dt=c(f());var ga=c(v()),Ae=c(V()),ya=c(Ze()),Ei=c(f());var fa=c(v()),me=c(f()),ca=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),q={color:ca,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ca),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ua=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),da={color:ua,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ua)},pa=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),ha={color:pa,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",pa)},ma=fa.css`
1
+ "use strict";(()=>{var Gp=Object.create;var sa=Object.defineProperty;var Qp=Object.getOwnPropertyDescriptor;var Yp=Object.getOwnPropertyNames;var Xp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty;var Hr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Jp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yp(e))!Zp.call(t,n)&&n!==r&&sa(t,n,{get:()=>e[n],enumerable:!(i=Qp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Gp(Xp(t)):{},Jp(e||!t||!t.__esModule?sa(r,"default",{value:t,enumerable:!0}):r,t));var f=Hr((Kf,na)=>{na.exports=ftGlobals.wcUtils});var v=Hr((Wf,oa)=>{oa.exports=ftGlobals.lit});var V=Hr((Gf,aa)=>{aa.exports=ftGlobals.litDecorators});var Ze=Hr((Qf,la)=>{la.exports=ftGlobals.litClassMap});var Iu=Hr((Ux,Du)=>{Du.exports=ftGlobals.litUnsafeHTML});var cr=Hr((oE,rd)=>{rd.exports=ftGlobals.litRepeat});var qp=c(f());var xi=c(v()),Ne=c(f());var Zu=c(v()),G=c(f());var Dt=c(f());var ga=c(v()),we=c(V()),ya=c(Ze()),Ei=c(f());var fa=c(v()),me=c(f()),ca=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),q={color:ca,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ca),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ua=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),da={color:ua,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ua)},pa=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),ha={color:pa,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",pa)},ma=fa.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -110,7 +110,7 @@
110
110
  opacity: ${q.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `;var qe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},L=class extends Ei.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 Ei.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ei.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),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(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 ga.html`
113
+ `;var Ke=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},L=class extends Ei.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 Ei.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ei.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),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(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 ga.html`
114
114
  <style>
115
115
  .ft-ripple .ft-ripple--effect {
116
116
  left: ${this.originX}px;
@@ -121,9 +121,9 @@
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.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()}};L.elementDefinitions={};L.styles=ma;qe([(0,Ae.property)({type:Boolean})],L.prototype,"primary",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"secondary",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"unbounded",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"activated",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"selected",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"disabled",void 0);qe([(0,Ae.state)()],L.prototype,"hovered",void 0);qe([(0,Ae.state)()],L.prototype,"focused",void 0);qe([(0,Ae.state)()],L.prototype,"pressed",void 0);qe([(0,Ae.state)()],L.prototype,"rippling",void 0);qe([(0,Ae.state)()],L.prototype,"originX",void 0);qe([(0,Ae.state)()],L.prototype,"originY",void 0);qe([(0,Ae.query)(".ft-ripple")],L.prototype,"ripple",void 0);qe([(0,Ae.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var va=c(f());var ba={"ft-ripple":L};(0,va.customElements)(ba);var Tu=c(v()),ft=c(V()),ht=c(f());var Dn=globalThis,xa=t=>t,as=Dn.trustedTypes,Sa=as?as.createPolicy("lit-html",{createHTML:t=>t}):void 0,_a="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ra="?"+Xt,eh=`<${Ra}>`,vr=document,ls=()=>vr.createComment(""),Ai=t=>t===null||typeof t!="object"&&typeof t!="function",In=Array.isArray,th=t=>In(t)||typeof t?.[Symbol.iterator]=="function",Rn=`[
124
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.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()}};L.elementDefinitions={};L.styles=ma;Ke([(0,we.property)({type:Boolean})],L.prototype,"primary",void 0);Ke([(0,we.property)({type:Boolean})],L.prototype,"secondary",void 0);Ke([(0,we.property)({type:Boolean})],L.prototype,"unbounded",void 0);Ke([(0,we.property)({type:Boolean})],L.prototype,"activated",void 0);Ke([(0,we.property)({type:Boolean})],L.prototype,"selected",void 0);Ke([(0,we.property)({type:Boolean})],L.prototype,"disabled",void 0);Ke([(0,we.state)()],L.prototype,"hovered",void 0);Ke([(0,we.state)()],L.prototype,"focused",void 0);Ke([(0,we.state)()],L.prototype,"pressed",void 0);Ke([(0,we.state)()],L.prototype,"rippling",void 0);Ke([(0,we.state)()],L.prototype,"originX",void 0);Ke([(0,we.state)()],L.prototype,"originY",void 0);Ke([(0,we.query)(".ft-ripple")],L.prototype,"ripple",void 0);Ke([(0,we.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var va=c(f());var ba={"ft-ripple":L};(0,va.customElements)(ba);var Tu=c(v()),ft=c(V()),ht=c(f());var Dn=globalThis,xa=t=>t,as=Dn.trustedTypes,Sa=as?as.createPolicy("lit-html",{createHTML:t=>t}):void 0,_a="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ra="?"+Xt,eh=`<${Ra}>`,vr=document,ls=()=>vr.createComment(""),Ai=t=>t===null||typeof t!="object"&&typeof t!="function",In=Array.isArray,th=t=>In(t)||typeof t?.[Symbol.iterator]=="function",Rn=`[
125
125
  \f\r]`,Ci=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ea=/-->/g,Ca=/>/g,yr=RegExp(`>|${Rn}(?:([^\\s"'>=/]+)(${Rn}*=${Rn}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,wa=/"/g,Ta=/^(?:script|style|textarea|title)$/i,Mn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ka=Mn(1),La=Mn(2),$a=Mn(3),wi=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Oa=new WeakMap,br=vr.createTreeWalker(vr,129);function Pa(t,e){if(!In(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sa!==void 0?Sa.createHTML(e):e}var rh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Ci;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Ci?d[1]==="!--"?o=Ea:d[1]!==void 0?o=Ca:d[2]!==void 0?(Ta.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=yr):d[3]!==void 0&&(o=yr):o===yr?d[0]===">"?(o=n??Ci,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?yr:d[3]==='"'?wa:Aa):o===wa||o===Aa?o=yr:o===Ea||o===Ca?o=Ci:(o=yr,n=void 0);let y=o===yr&&t[a+1].startsWith("/>")?" ":"";s+=o===Ci?l+eh:p>=0?(i.push(u),l.slice(0,p)+_a+l.slice(p)+Xt+y):l+Xt+(p===-2?a:y)}return[Pa(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Oi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[u,d]=rh(e,r);if(this.el=t.createElement(u,i),br.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=br.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(_a)){let h=d[o++],y=n.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:y,ctor:S[1]==="."?kn:S[1]==="?"?Ln:S[1]==="@"?$n:qr}),n.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Ta.test(n.tagName)){let p=n.textContent.split(Xt),h=p.length-1;if(h>0){n.textContent=as?as.emptyScript:"";for(let y=0;y<h;y++)n.append(p[y],ls()),br.nextNode(),l.push({type:2,index:++s});n.append(p[h],ls())}}}else if(n.nodeType===8)if(n.data===Ra)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:s}),p+=Xt.length-1}s++}}static createElement(e,r){let i=vr.createElement("template");return i.innerHTML=e,i}};function jr(t,e,r=t,i){if(e===wi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ai(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=jr(t,n._$AS(t,e.values),n,i)),e}var Tn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??vr).importNode(r,!0);br.currentNode=n;let s=br.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new cs(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Pn(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=br.nextNode(),o++)}return br.currentNode=vr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},cs=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=jr(this,e,r),Ai(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==wi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):th(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&Ai(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Oi.createElement(Pa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Tn(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Oa.get(e.strings);return r===void 0&&Oa.set(e.strings,r=new Oi(e)),r}k(e){In(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(ls()),this.O(ls()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=xa(e).nextSibling;xa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},qr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ge}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=jr(this,e,r,0),o=!Ai(e)||e!==this._$AH&&e!==wi,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=jr(this,a[i+l],r,l),u===wi&&(u=this._$AH[l]),o||=!Ai(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},kn=class extends qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},Ln=class extends qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},$n=class extends qr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=jr(this,e,r,0)??ge)===wi)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ge&&(i===ge||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jr(this,e)}};var ih=Dn.litHtmlPolyfillSupport;ih?.(Oi,cs),(Dn.litHtmlVersions??=[]).push("3.3.3");var Ia=Symbol.for(""),sh=t=>{if(t?.r===Ia)return t?._$litStatic$},Nn=t=>({_$litStatic$:t,r:Ia});var Da=new Map,Fn=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=sh(s))!==void 0);)l+=n+e[++u],d=!0;u!==i&&a.push(s),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Da.get(p))===void 0&&(o.raw=o,Da.set(p,e=o)),r=a}return t(e,...r)},Bn=Fn(ka),lm=Fn(La),cm=Fn($a);var Un=c(V()),Wa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),g=c(f()),Ma=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Vt=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:Vt,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Wr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},Gr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Qr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},xe={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},Je={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Yr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Xr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},Tt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},Na=ut.css`
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,wa=/"/g,Ta=/^(?:script|style|textarea|title)$/i,Mn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ka=Mn(1),La=Mn(2),$a=Mn(3),wi=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Oa=new WeakMap,br=vr.createTreeWalker(vr,129);function Pa(t,e){if(!In(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sa!==void 0?Sa.createHTML(e):e}var rh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Ci;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Ci?d[1]==="!--"?o=Ea:d[1]!==void 0?o=Ca:d[2]!==void 0?(Ta.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=yr):d[3]!==void 0&&(o=yr):o===yr?d[0]===">"?(o=n??Ci,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?yr:d[3]==='"'?wa:Aa):o===wa||o===Aa?o=yr:o===Ea||o===Ca?o=Ci:(o=yr,n=void 0);let y=o===yr&&t[a+1].startsWith("/>")?" ":"";s+=o===Ci?l+eh:p>=0?(i.push(u),l.slice(0,p)+_a+l.slice(p)+Xt+y):l+Xt+(p===-2?a:y)}return[Pa(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Oi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[u,d]=rh(e,r);if(this.el=t.createElement(u,i),br.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=br.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(_a)){let h=d[o++],y=n.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:y,ctor:S[1]==="."?kn:S[1]==="?"?Ln:S[1]==="@"?$n:qr}),n.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Ta.test(n.tagName)){let p=n.textContent.split(Xt),h=p.length-1;if(h>0){n.textContent=as?as.emptyScript:"";for(let y=0;y<h;y++)n.append(p[y],ls()),br.nextNode(),l.push({type:2,index:++s});n.append(p[h],ls())}}}else if(n.nodeType===8)if(n.data===Ra)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:s}),p+=Xt.length-1}s++}}static createElement(e,r){let i=vr.createElement("template");return i.innerHTML=e,i}};function jr(t,e,r=t,i){if(e===wi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ai(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=jr(t,n._$AS(t,e.values),n,i)),e}var Tn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??vr).importNode(r,!0);br.currentNode=n;let s=br.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new cs(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Pn(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=br.nextNode(),o++)}return br.currentNode=vr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},cs=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=jr(this,e,r),Ai(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==wi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):th(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&Ai(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Oi.createElement(Pa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Tn(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Oa.get(e.strings);return r===void 0&&Oa.set(e.strings,r=new Oi(e)),r}k(e){In(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(ls()),this.O(ls()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=xa(e).nextSibling;xa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},qr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ge}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=jr(this,e,r,0),o=!Ai(e)||e!==this._$AH&&e!==wi,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=jr(this,a[i+l],r,l),u===wi&&(u=this._$AH[l]),o||=!Ai(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},kn=class extends qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},Ln=class extends qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},$n=class extends qr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=jr(this,e,r,0)??ge)===wi)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ge&&(i===ge||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jr(this,e)}};var ih=Dn.litHtmlPolyfillSupport;ih?.(Oi,cs),(Dn.litHtmlVersions??=[]).push("3.3.3");var Ia=Symbol.for(""),sh=t=>{if(t?.r===Ia)return t?._$litStatic$},Nn=t=>({_$litStatic$:t,r:Ia});var Da=new Map,Fn=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=sh(s))!==void 0);)l+=n+e[++u],d=!0;u!==i&&a.push(s),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Da.get(p))===void 0&&(o.raw=o,Da.set(p,e=o)),r=a}return t(e,...r)},Bn=Fn(ka),cm=Fn(La),um=Fn($a);var Un=c(V()),Wa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),g=c(f()),Ma=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Vt=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:Vt,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Wr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},Gr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Qr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},xe={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},Je={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Yr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Xr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},Tt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},Na=ut.css`
127
127
  .ft-typography--title {
128
128
  font-family: ${Kr.fontFamily};
129
129
  font-size: ${Kr.fontSize};
@@ -257,10 +257,10 @@
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `;var Ja=["top","right","bottom","left"],Za=["start","end"],Vn=Ja.reduce((t,e)=>t.concat(e,e+"-"+Za[0],e+"-"+Za[1]),[]),Ri=Math.min,tr=Math.max,Ti=Math.round;var kt=t=>({x:t,y:t}),nh={left:"right",right:"left",bottom:"top",top:"bottom"};function el(t,e,r){return tr(t,Ri(e,r))}function us(t,e){return typeof t=="function"?t(e):t}function ki(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Hn(t){return t==="x"?"y":"x"}function jn(t){return t==="y"?"height":"width"}function ds(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qn(t){return Hn(ds(t))}function tl(t,e,r){r===void 0&&(r=!1);let i=rr(t),n=qn(t),s=jn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zn(o)),[o,zn(o)]}function rl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zn(t){let e=ki(t);return nh[e]+t.slice(e.length)}function oh(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function il(t){return typeof t!="number"?oh(t):{top:t,right:t,bottom:t,left:t}}function xr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function sl(t,e,r){let{reference:i,floating:n}=t,s=ds(e),o=qn(e),a=jn(o),l=ki(e),u=s==="y",d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:d,y:i.y-n.height};break;case"bottom":y={x:d,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let S=rr(e);return S&&(y[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),y}async function nl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:y=0}=us(e,t),S=il(y),x=a[h?p==="floating"?"reference":"floating":p],T=xr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),I=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},U=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-U.top+S.top)/I.y,bottom:(U.bottom-T.bottom+S.bottom)/I.y,left:(T.left-U.left+S.left)/I.x,right:(U.right-T.right+S.right)/I.x}}var ah=50,ol=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:nl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=sl(u,i,l),h=i,y=0,S={};for(let _=0;_<s.length;_++){let x=s[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:U,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...U},ue&&y<ah&&(y++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ue.rects),{x:d,y:p}=sl(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function lh(t,e,r){return(t?[...r.filter(n=>rr(n)===t),...r.filter(n=>rr(n)!==t)]:r.filter(n=>ki(n)===n)).filter(n=>t?rr(n)===t||(e?rl(n)!==n:!1):!0)}var al=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Vn,autoAlignment:y=!0,...S}=us(t,e),_=p!==void 0||h===Vn?lh(p||null,y,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=tl(T,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[ki(T)],j[E[0]],j[E[1]]],U=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:U},reset:{placement:ue}};let J=U.map(ct=>{let gr=rr(ct.placement);return[ct.placement,gr&&d?ct.overflows.slice(0,2).reduce((Kp,Wp)=>Kp+Wp,0):ct.overflows[0],ct.overflows]}).sort((ct,gr)=>ct[1]-gr[1]),Si=((n=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(gr=>gr<=0))[0])==null?void 0:n[0])||J[0][0];return Si!==a?{data:{index:x+1,overflows:U},reset:{placement:Si}}:{}}}};var ll=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=us(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=ds(n),y=Hn(h),S=d[y],_=d[h],x=(j,E)=>el(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(y,S)),a&&(_=x(h,_));let T=l.fn({...e,[y]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[y]:o,[h]:a}}}}}};function hs(){return typeof window<"u"}function Er(t){return ul(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(ul(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ul(t){return hs()?t instanceof Node||t instanceof Ke(t).Node:!1}function bt(t){return hs()?t instanceof Element||t instanceof Ke(t).Element:!1}function jt(t){return hs()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function cl(t){return!hs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Li(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function dl(t){return/^(table|td|th)$/.test(Er(t))}function $i(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ch=/transform|translate|scale|rotate|perspective|filter/,uh=/paint|layout|strict|content/,Sr=t=>!!t&&t!=="none",Kn;function Zr(t){let e=bt(t)?vt(t):t;return Sr(e.transform)||Sr(e.translate)||Sr(e.scale)||Sr(e.rotate)||Sr(e.perspective)||!fs()&&(Sr(e.backdropFilter)||Sr(e.filter))||ch.test(e.willChange||"")||uh.test(e.contain||"")}function pl(t){let e=ir(t);for(;jt(e)&&!Jr(e);){if(Zr(e))return e;if($i(e))return null;e=ir(e)}return null}function fs(){return Kn==null&&(Kn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kn}function Jr(t){return/^(html|body|#document)$/.test(Er(t))}function vt(t){return Ke(t).getComputedStyle(t)}function Pi(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||cl(t)&&t.host||Ht(t);return cl(e)?e.host:e}function hl(t){let e=ir(t);return Jr(e)?(t.ownerDocument||t).body:jt(e)&&Li(e)?e:hl(e)}function ps(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=hl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ke(n);if(s){let a=ms(o);return e.concat(o,o.visualViewport||[],Li(n)?n:[],a&&r?ps(a):[])}else return e.concat(n,ps(n,[],r))}function ms(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gl(t){let e=vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Ti(r)!==s||Ti(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function yl(t){return bt(t)?t:t.contextElement}function ei(t){let e=yl(t);if(!jt(e))return kt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=gl(e),o=(s?Ti(r.width):r.width)/i,a=(s?Ti(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var dh=kt(0);function bl(t){let e=Ke(t);return!fs()||!e.visualViewport?dh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ph(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function Di(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=yl(t),o=kt(1);e&&(i?bt(i)&&(o=ei(i)):o=ei(t));let a=ph(s,r,i)?bl(s):kt(0),l=(n.left+a.x)/o.x,u=(n.top+a.y)/o.y,d=n.width/o.x,p=n.height/o.y;if(s&&i){let h=Ke(s),y=bt(i)?Ke(i):i,S=h,_=ms(S);for(;_&&y!==S;){let x=ei(_),T=_.getBoundingClientRect(),j=vt(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=Ke(_),_=ms(S)}}return xr({width:d,height:p,x:l,y:u})}function gs(t,e){let r=Pi(t).scrollLeft;return e?e.left+r:Di(Ht(t)).left+r}function vl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-gs(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function hh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Ht(i),a=e?$i(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=kt(1),d=kt(0),p=jt(i);if((p||!s)&&((Er(i)!=="body"||Li(o))&&(l=Pi(i)),p)){let y=Di(i);u=ei(i),d.x=y.x+i.clientLeft,d.y=y.y+i.clientTop}let h=o&&!p&&!s?vl(o,l):kt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function fh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function mh(t){let e=Pi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+gs(t),o=-e.scrollTop;return vt(r).direction==="rtl"&&(s+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var gh=25;function yh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),s=Ht(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!fs()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(gs(s)<=0){let h=s.ownerDocument,y=h.body,S=getComputedStyle(y),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-_),T=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;T<=gh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function bh(t,e){let r=Di(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ei(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,u=i*s.y;return{width:o,height:a,x:l,y:u}}function fl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=yh(t,r,e);else if(e==="document")i=mh(Ht(t));else if(bt(e))i=bh(e,r);else{let n=bl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return xr(i)}function vh(t,e){let r=e.get(t);if(r)return r;let i=ps(t,[],!1).filter(a=>bt(a)&&Er(a)!=="body"),n=null,s=vt(t).position==="fixed",o=s?ir(t):t;for(;bt(o)&&!Jr(o);){let a=vt(o),l=Zr(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=ir(o)}return e.set(t,i),i}function xh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?$i(e)?[]:vh(e,this._c):[].concat(r),i],a=fl(e,o[0],n),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let y=fl(e,o[h],n);l=tr(y.top,l),u=Ri(y.right,u),d=Ri(y.bottom,d),p=tr(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Sh(t){let{width:e,height:r}=gl(t);return{width:e,height:r}}function Eh(t,e,r){let i=jt(e),n=Ht(e),s=r==="fixed",o=Di(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=kt(0);if((i||!s)&&((Er(e)!=="body"||Li(n))&&(a=Pi(e)),i)){let h=Di(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=gs(n));let u=n&&!i&&!s?vl(n,a):kt(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Wn(t){return vt(t).position==="static"}function ml(t,e){if(!jt(t)||vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function xl(t,e){let r=Ke(t);if($i(t))return r;if(!jt(t)){let n=ir(t);for(;n&&!Jr(n);){if(bt(n)&&!Wn(n))return n;n=ir(n)}return r}let i=ml(t,e);for(;i&&dl(i)&&Wn(i);)i=ml(i,e);return i&&Jr(i)&&Wn(i)&&!Zr(i)?r:i||pl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||xl,r=this.getDimensions,i=await r(t.floating);return{reference:Eh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Ah(t){return vt(t).direction==="rtl"}var ys={convertOffsetParentRelativeRectToViewportRelativeRect:hh,getDocumentElement:Ht,getClippingRect:xh,getOffsetParent:xl,getElementRects:Ch,getClientRects:fh,getDimensions:Sh,getScale:ei,isElement:bt,isRTL:Ah};var Sl=al,El=ll;var Cl=(t,e,r)=>{let i=new Map,n=r??{},s={...ys,...n.platform,_c:i};return ol(t,e,{...n,platform:s})};function Al(t){return wh(t)}function Gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function wh(t){for(let e=t;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(t);e;e=Gn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Zr(r)||e.tagName==="BODY"))return e}return null}async function wl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Cl(t,e,{strategy:i.strategy,platform:{...ys,getOffsetParent:n=>ys.getOffsetParent(n,Al)},middleware:[El({crossAxis:!0}),Sl({allowedPlacements:[i.placement]})]})}var ui=c(f());var yo=c(V());var Ol=c(V(),1);var Qn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _l(t,e){return(0,Ol.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ii(t);try{return JSON.parse(r)}catch{return Ii(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Mi,...e??{}})}function Oh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ti(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ti(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!ti(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ti(t,e){try{return Oh(t,e)}catch{return!1}}function Mi(t,e){return!ti(t,e)}function Ii(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function bs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Rl=c(V(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Mi,attribute:!1,...e};(0,Rl.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var vs=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Cr=c(V(),1);var xs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var kl=c(v(),1);var Ss=globalThis,_h=Ss.ShadowRoot&&(Ss.ShadyCSS===void 0||Ss.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Tl=(t,e)=>{if(_h)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ss.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Es=class extends kl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Tl(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Qn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Ll(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var ii=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Il,$l=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Ml=Symbol("exportpartsDebouncer"),Dl=Symbol("dynamicDependenciesLoaded"),ri=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ri.eventName="exportparts-updated";var Lt=class extends Es{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Il]=new xs(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ml].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Dl]||(r[Dl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ri.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ri.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ri)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Ll(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(s=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],S=(a=(o=h.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(y=>`${h}:${y}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Il=Ml;ii([(0,Cr.property)()],Lt.prototype,"exportpartsPrefix",void 0);ii([_l([])],Lt.prototype,"exportpartsPrefixes",void 0);ii([(0,Cr.property)({reflect:!0})],Lt.prototype,"exportparts",void 0);ii([(0,Cr.property)()],Lt.prototype,"customStylesheet",void 0);ii([(0,Cr.property)()],Lt.prototype,"elementToFocus",void 0);ii([(0,Cr.state)()],Lt.prototype,"useAdoptedStyleSheets",void 0);function Cs(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ni=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),Rh=bs(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=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[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ar].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ar].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ar].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ar].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 u=this.getStore(o.store);u&&(o.store?this[sr].has(o.store):this[sr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[sr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ni].set(o,[]),Cs(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ni].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[sr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[sr].has(o)&&this[sr].get(o)(),this[sr].delete(o),(a=this[Ni].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ni].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=Ar,i=Ni,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Nl=class extends Rh(Lt){};function we(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Th=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=Th,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),kh={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},As=kh;function ws(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Zn(t,e,r){if(typeof t!="function")throw new Error(we(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(we(1));return r(Zn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(we(3));return n}function p(x){if(typeof x!="function")throw new Error(we(4));if(l)throw new Error(we(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(we(6));T=!1,u(),o.delete(j),s=null}}}function h(x){if(!ws(x))throw new Error(we(7));if(typeof x.type>"u")throw new Error(we(8));if(typeof x.type!="string")throw new Error(we(17));if(l)throw new Error(we(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(j=>{j()}),x}function y(x){if(typeof x!="function")throw new Error(we(10));i=x,h({type:As.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(we(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Fl](){return this}}}return h({type:As.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:y,[Fl]:S}}function Lh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:As.INIT})>"u")throw new Error(we(12));if(typeof r(void 0,{type:As.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function Bl(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{Lh(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],y=r[h],S=a[h],_=y(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(we(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Fi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ul(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(we(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=Fi(...a)(n.dispatch),{...n,dispatch:s}}}function zl(t){return ws(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Vl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function xt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,ni=et.getPrototypeOf,Ts="constructor",Is="prototype",ro="configurable",ks="enumerable",_s="writable",Bi="value",$t=t=>!!t&&!!t[Ie];function tt(t){return t?Xl(t)||Ns(t)||!!t[Vl]||!!t[Ts]?.[Vl]||Fs(t)||Bs(t):!1}var $h=et[Is][Ts].toString(),Hl=new WeakMap;function Xl(t){if(!t||!uo(t))return!1;let e=ni(t);if(e===null||e===et[Is])return!0;let r=et.hasOwnProperty.call(e,Ts)&&e[Ts];if(r===Object)return!0;if(!si(r))return!1;let i=Hl.get(r);return i===void 0&&(i=Function.toString.call(r),Hl.set(r,i)),i===$h}function Ms(t,e,r=!0){Vi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Vi(t){let e=t[Ie];return e?e.type_:Ns(t)?1:Fs(t)?2:Bs(t)?3:0}var Jn=(t,e,r=Vi(t))=>r===2?t.has(e):et[Is].hasOwnProperty.call(t,e),io=(t,e,r=Vi(t))=>r===2?t.get(e):t[e],Ls=(t,e,r,i=Vi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ns=Array.isArray,Fs=t=>t instanceof Map,Bs=t=>t instanceof Set,uo=t=>typeof t=="object",si=t=>typeof t=="function",eo=t=>typeof t=="boolean";function Dh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var po=t=>t.modified_?t.copy_:t.base_;function so(t,e){if(Fs(t))return new Map(t);if(Bs(t))return new Set(t);if(Ns(t))return Array[Is].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[_s]===!1&&(a[_s]=!0,a[ro]=!0),(a.get||a.set)&&(i[o]={[ro]:!0,[_s]:!0,[ks]:a[ks],[Bi]:t[o]})}return et.create(ni(t),i)}else{let i=ni(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function ho(t,e=!1){return Us(t)||$t(t)||!tt(t)||(Vi(t)>1&&et.defineProperties(t,{set:Os,add:Os,clear:Os,delete:Os}),et.freeze(t),e&&Ms(t,(r,i)=>{ho(i,!0)},!1)),t}function Ih(){xt(2)}var Os={[Bi]:Ih};function Us(t){return t===null||!uo(t)?!0:et.isFrozen(t)}var $s="MapSet",no="Patches",jl="ArrayMethods",Zl={};function wr(t){let e=Zl[t];return e||xt(0,t),e}var ql=t=>!!Zl[t];var Ui,Jl=()=>Ui,Mh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ql($s)?wr($s):void 0,arrayMethodsPlugin_:ql(jl)?wr(jl):void 0});function Kl(t,e){e&&(t.patchPlugin_=wr(no),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function oo(t){ao(t),t.drafts_.forEach(Nh),t.drafts_=null}function ao(t){t===Ui&&(Ui=t.parent_)}var Wl=t=>Ui=Mh(Ui,t);function Nh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(oo(e),xt(4)),tt(t)&&(t=Ql(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Ql(e,r);return Fh(e,t,!0),oo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function Ql(t,e){if(Us(e))return e;let r=e[Ie];if(!r)return Ps(e,t.handledSet_,t);if(!zs(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rc(r,t)}return r.copy_}function Fh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ho(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var zs=(t,e)=>t.scope_===e,Bh=[];function tc(t,e,r,i){let n=qt(t),s=t.type_;if(i!==void 0&&io(n,i,s)===e){Ls(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Ms(n,(l,u)=>{if($t(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Bh;for(let a of o)Ls(n,a,r,s)}function Uh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!zs(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=po(s);tc(t,s.draft_??s,o,r),rc(s,n)})}function rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}ec(t)}}function zh(t,e,r){let{scope_:i}=t;if($t(r)){let n=r[Ie];zs(n,i)&&n.callbacks_.push(function(){Rs(t);let o=po(n);tc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let s=qt(t);t.type_===3?s.has(r)&&Ps(r,i.handledSet_,i):io(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ps(io(t.copy_,e,t.type_),i.handledSet_,i)})}function Ps(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||$t(t)||e.has(t)||!tt(t)||Us(t)||(e.add(t),Ms(t,(i,n)=>{if($t(n)){let s=n[Ie];if(zs(s,r)){let o=po(s);Ls(t,i,o,t.type_),ec(s)}}else tt(n)&&Ps(n,e,r)})),t}function Vh(t,e){let r=Ns(t),i={type_:r?1:0,scope_:e?e.scope_:Jl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ds;r&&(n=[i],s=zi);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ds={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=qt(t);if(!Jn(n,e,t.type_))return jh(t,n,e);let s=n[e];if(t.finalized_||!tt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Dh(e))return s;if(s===to(t.base_,e)||Hh(t,e,s)){Rs(t);let o=t.type_===1?+e:e,a=co(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,r){let i=ic(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=to(qt(t),e),s=n?.[Ie];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Rs(t),lo(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),zh(t,e,r)),!0},deleteProperty(t,e){return Rs(t),to(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),lo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[_s]:!0,[ro]:t.type_!==1||e!=="length",[ks]:i[ks],[Bi]:r[e]}},defineProperty(){xt(11)},getPrototypeOf(t){return ni(t.base_)},setPrototypeOf(){xt(12)}},zi={};for(let t in Ds){let e=Ds[t];zi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}zi.deleteProperty=function(t,e){return zi.set.call(this,t,e,void 0)};zi.set=function(t,e,r){return Ds.set.call(this,t[0],e,r,t[0])};function to(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function Hh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function jh(t,e,r){let i=ic(e,r);return i?Bi in i?i[Bi]:i.get?.call(t.draft_):void 0}function ic(t,e){if(!(e in t))return;let r=ni(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=ni(r)}}function lo(t){t.modified_||(t.modified_=!0,t.parent_&&lo(t.parent_))}function Rs(t){t.copy_||(t.assigned_=new Map,t.copy_=so(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var qh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||xt(6),i!==void 0&&!si(i)&&xt(7);let n;if(tt(e)){let s=Wl(this),o=co(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?oo(s):ao(s)}return Kl(s,i),Gl(n,s)}else if(!e||!uo(e)){if(n=r(e),n===void 0&&(n=e),n===Yl&&(n=void 0),this.autoFreeze_&&ho(n,!0),i){let s=[],o=[];wr(no).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else xt(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||xt(8),$t(t)&&(t=sc(t));let e=Wl(this),r=co(e,t,void 0);return r[Ie].isManual_=!0,ao(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&xt(9);let{scope_:i}=r;return Kl(i,e),Gl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=wr(no).applyPatches_;return $t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function co(t,e,r,i){let[n,s]=Fs(e)?wr($s).proxyMap_(e,r):Bs(e)?wr($s).proxySet_(e,r):Vh(e,r);return(r?.scope_??Jl()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Uh(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:u}=l;s.modified_&&u&&u.generatePatches_(s,[],l)}),n}function sc(t){return $t(t)||xt(10,t),nc(t)}function nc(t){if(!tt(t)||Us(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=so(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=so(t,!0);return Ms(r,(n,s)=>{Ls(r,n,nc(s))},i),e&&(e.finalized_=!1),r}var Kh=new qh,fo=Kh.produce;function oc(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var ac=oc(),lc=oc;var Wh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fi:Fi.apply(null,arguments)},Lg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gh=t=>t&&typeof t.match=="function";function nr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Kt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zl(i)&&i.type===t,r}var hc=class Hi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Hi.prototype)}static get[Symbol.species](){return Hi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Hi(...e[0].concat(this)):new Hi(...e.concat(this))}};function cc(t){return tt(t)?fo(t,()=>{}):t}function Vs(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Qh(t){return typeof t=="boolean"}var Yh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new hc;return r&&(Qh(r)?o.push(ac):o.push(lc(r.extraArgument))),o},Xh="RTK_autoBatch";var uc=t=>e=>{setTimeout(e,t)},Zh=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=t(n),o=setTimeout(n,e)},Jh=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zh(window.requestAnimationFrame,100):uc(10):t.type==="callback"?t.queueNotification:uc(t.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>n&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return n=!d?.meta?.[Xh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},ef=t=>function(r){let{autoBatch:i=!0}=r??{},n=new hc(t);return i&&n.push(Jh(typeof i=="object"?i:void 0)),n};function fc(t){let e=Yh(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(ws(r))l=Bl(r);else throw new Error(Kt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Fi;n&&(d=Wh({trace:!1,...typeof n=="object"&&n}));let p=Ul(...u),h=ef(p),y=typeof a=="function"?a(h):h(),S=d(...y);return Zn(l,o,S)}function mc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Kt(28));if(a in e)throw new Error(Kt(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function tf(t){return typeof t=="function"}function rf(t,e){let[r,i,n]=mc(e),s;if(tf(t))s=()=>cc(t());else{let a=cc(t);s=()=>a}function o(a=s(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[n]),u.reduce((d,p)=>{if(p)if($t(d)){let y=p(d,l);return y===void 0?d:y}else{if(tt(d))return fo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=s,o}var sf=(t,e)=>Gh(t)?t.match(e):t(e);function nf(...t){return e=>t.some(r=>sf(r,e))}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=(t=21)=>{let e="",r=t;for(;r--;)e+=of[Math.random()*64|0];return e},lf=["name","message","stack","code"],mo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},dc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},cf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of lf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",uf=(()=>{function t(e,r,i){let n=nr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=nr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=nr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||cf)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let y=i?.idGenerator?i.idGenerator(l):af(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(pc):u.addEventListener("abort",()=>T(pc),{once:!0}));let j=(async function(){let E;try{let U=i?.condition?.(l,{getState:p,extra:h});if(pf(U)&&(U=await U),U===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:y,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new mo(J,de)),fulfillWithValue:((J,de)=>new dc(J,de))})).then(J=>{if(J instanceof mo)throw J;return J instanceof dc?n(J.payload,y,l,J.meta):n(J,y,l)})])}catch(U){E=U instanceof mo?o(null,y,l,U.payload,U.meta):o(U,y,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:y,arg:l,unwrap(){return j.then(df)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:nf(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function df(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function pf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Pg={[gc]:uf};function hf(t,e){return`${t}/${e}`}function ff({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Kt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(gf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let U=typeof E=="string"?E:E.type;if(!U)throw new Error(Kt(12));if(U in l.sliceCaseReducersByType)throw new Error(Kt(13));return l.sliceCaseReducersByType[U]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],U={reducerName:E,type:hf(n,E),createNotation:typeof i.reducers=="function"};bf(I)?xf(U,I,u,e):yf(U,I,u)});function d(){let[E={},I=[],U=void 0]=typeof i.extraReducers=="function"?mc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return rf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);U&&J.addDefaultCase(U)})}let p=E=>E,h=new Map,y=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function U(J){let de=J[E];return typeof de>"u"&&I&&(de=Vs(y,U,x)),de}function ue(J=p){let de=Vs(h,I,()=>new WeakMap);return Vs(de,J,()=>{let Si={};for(let[ct,gr]of Object.entries(i.selectors??{}))Si[ct]=mf(gr,J,()=>Vs(y,J,x),I);return Si})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(U)},selectSlice:U}}let j={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(s),injectInto(E,{reducerPath:I,...U}={}){let ue=I??s;return E.inject({reducerPath:ue,reducer:_},U),{...j,...T(ue,!0)}}};return j}}function mf(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var yc=ff();function gf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function yf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!vf(i))throw new Error(Kt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?nr(t,o):nr(t))}function bf(t){return t._reducerDefinitionType==="asyncThunk"}function vf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function xf({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Kt(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=n(t,s,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Hs,pending:a||Hs,rejected:l||Hs,settled:u||Hs})}function Hs(){}var bc="listener",vc="completed",xc="cancelled",Dg=`task-${xc}`,Ig=`task-${vc}`,Mg=`${bc}-${xc}`,Ng=`${bc}-${vc}`;var{assign:Sc}=Object;var go="listenerMiddleware";var Sf=Sc(nr(`${go}/add`),{withTypes:()=>Sf}),Fg=nr(`${go}/removeAll`),Ef=Sc(nr(`${go}/remove`),{withTypes:()=>Ef});function Kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Cf=bs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),js=class extends Cf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ec=class t extends js{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Cs(s))return s;if(n==null)return;let o=yc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=fc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ii(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new vs,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,u=s[l];return u?(...d)=>{let p=u(...d.map(n));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ti(h,d)||this.setState({[p]:n(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var qs=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ks=c(f()),Af="ft-app-info",Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Or.eventName="authentication-change";var ji=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ji.eventName="ui-locale-changed";var wf={session:(t,e)=>{(0,Ks.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Or(e.payload)),0))}},O=Ks.FtReduxStore.get({name:Af,reducers:wf,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Cc=c(f()),Ws=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},fy=(0,Cc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>qs.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ws([(0,yo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ws([(0,yo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ws([Yn({store:O.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ws([Yn({store:O.name})],e.prototype,"uiLocale",void 0),e});var Ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ac||(Ac={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wc||(wc={}));var Oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rc||(Rc={}));var Tc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Tc||(Tc={}));var kc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(kc||(kc={}));var Lc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Lc||(Lc={}));var $c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})($c||($c={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Dc||(Dc={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Mc||(Mc={}));var Nc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Nc||(Nc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var Bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Bc||(Bc={}));var bo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(bo||(bo={}));var Uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Uc||(Uc={}));var zc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(zc||(zc={}));var vo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vo||(vo={}));var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Vc||(Vc={}));var Hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Hc||(Hc={}));var jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qc||(qc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var xo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xo||(xo={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Gc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Gc||(Gc={}));var Qc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Qc||(Qc={}));var Yc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Yc||(Yc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(tu||(tu={}));var ru;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ru||(ru={}));var iu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(iu||(iu={}));var su;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(su||(su={}));var nu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nu||(nu={}));var Of={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function ou(t,e){return t===e||(Of[t]??[]).some(r=>ou(r,e))}function So(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>ou(i,e))}var Zs=c(f());var Eo=c(f());var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=O.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var oi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var We=class extends oi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Eo.CacheRegistry,this.cache=e?n.commonCache:new Eo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Gs=class extends We{async listMySearches(){let{session:e}=O.getState();return So(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Qs=class extends We{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ys=class extends We{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Xs=class extends We{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var _f="ft-user-assets",Rf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Ao(t,r,[...Co(t,r),n]),au(t,r,1,i),lu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ao(t,r,Co(t,r).map(n=>n.id===i.id?i:n)),lu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ao(t,r,Co(t,r).filter(s=>s.id!==n)),au(t,r,-1,i)}},cu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Co=(t,e)=>{var r;let i=cu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ao=(t,e,r)=>{let i=cu[e];i&&(t[i]=r)},au=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},lu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Fe=Zs.FtReduxStore.get({name:_f,reducers:Rf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wo=class{constructor(e=new Ys,r=new Xs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qs,this.savedSearchesService=new Gs,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,Zs.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Fe.getState().assetCounts.allAsset[e]!==r.count&&Fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},Tf=new wo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Tf);var Oo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oo;var pt=c(f());var uu,ai=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},kf=Symbol("clearAfterUnitTest"),Js=class extends(0,pt.withEventBus)(We){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[uu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new pt.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof pt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ai({loadedContexts:e})),this.dispatchEvent(new ai({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ai({loadedContexts:[e]})),this.dispatchEvent(new ai({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};uu=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var li=window.FluidTopicsI18nService,en=window.FluidTopicsCustomI18nService;var du=c(f()),_o=class{highlightHtml(e,r,i){(0,du.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new _o;var pu=c(f());var Ro=class{isDate(e){var r,i,n,s;return(s=(n=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return pu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ro;var hu=c(f());var Wt=class{static get(e,r){var i,n,s,o;let a=O.getState(),{lang:l,region:u}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new hu.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${u}`)}};var To=class{urlToSearchRequest(e){return Wt.get().parse(e)}searchRequestToUrl(e){return Wt.get().serialize(e)}};window.FluidTopicsUrlService=new To;var Gt=c(f());var Rr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Rr.eventName="change";var ko=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},fu=new ko;var tn=class t extends Gt.WithEventBus{static build(){return new t(window.history,fu,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Rr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Rr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Rr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=tn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var mu=c(v());var gu=mu.css`
261
- `;var bu=c(v()),Ge=c(V()),Lr=c(f());var Tr=c(f());function yu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var rn=class extends oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Lo=class t extends Tr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Tr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new rn,this.cleanSessionDebouncer=new Tr.Debouncer,this.reloadDebouncer=new Tr.Debouncer(500),this.apiProvider=r??(()=>_r.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let 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(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>yu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ji(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},$o=Lo.build();var kr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var qi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new kr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Oe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends Lr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=$o,this.contextRoot=new qi}render(){return bu.html`
260
+ `;var Ja=["top","right","bottom","left"],Za=["start","end"],Vn=Ja.reduce((t,e)=>t.concat(e,e+"-"+Za[0],e+"-"+Za[1]),[]),Ri=Math.min,tr=Math.max,Ti=Math.round;var kt=t=>({x:t,y:t}),nh={left:"right",right:"left",bottom:"top",top:"bottom"};function el(t,e,r){return tr(t,Ri(e,r))}function us(t,e){return typeof t=="function"?t(e):t}function ki(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Hn(t){return t==="x"?"y":"x"}function jn(t){return t==="y"?"height":"width"}function ds(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qn(t){return Hn(ds(t))}function tl(t,e,r){r===void 0&&(r=!1);let i=rr(t),n=qn(t),s=jn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zn(o)),[o,zn(o)]}function rl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zn(t){let e=ki(t);return nh[e]+t.slice(e.length)}function oh(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function il(t){return typeof t!="number"?oh(t):{top:t,right:t,bottom:t,left:t}}function xr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function sl(t,e,r){let{reference:i,floating:n}=t,s=ds(e),o=qn(e),a=jn(o),l=ki(e),u=s==="y",d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:d,y:i.y-n.height};break;case"bottom":y={x:d,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let S=rr(e);return S&&(y[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),y}async function nl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:y=0}=us(e,t),S=il(y),x=a[h?p==="floating"?"reference":"floating":p],T=xr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),I=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},U=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-U.top+S.top)/I.y,bottom:(U.bottom-T.bottom+S.bottom)/I.y,left:(T.left-U.left+S.left)/I.x,right:(U.right-T.right+S.right)/I.x}}var ah=50,ol=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:nl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=sl(u,i,l),h=i,y=0,S={};for(let _=0;_<s.length;_++){let x=s[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:U,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...U},ue&&y<ah&&(y++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ue.rects),{x:d,y:p}=sl(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function lh(t,e,r){return(t?[...r.filter(n=>rr(n)===t),...r.filter(n=>rr(n)!==t)]:r.filter(n=>ki(n)===n)).filter(n=>t?rr(n)===t||(e?rl(n)!==n:!1):!0)}var al=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Vn,autoAlignment:y=!0,...S}=us(t,e),_=p!==void 0||h===Vn?lh(p||null,y,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=tl(T,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[ki(T)],j[E[0]],j[E[1]]],U=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:U},reset:{placement:ue}};let J=U.map(ct=>{let gr=rr(ct.placement);return[ct.placement,gr&&d?ct.overflows.slice(0,2).reduce((Kp,Wp)=>Kp+Wp,0):ct.overflows[0],ct.overflows]}).sort((ct,gr)=>ct[1]-gr[1]),Si=((n=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(gr=>gr<=0))[0])==null?void 0:n[0])||J[0][0];return Si!==a?{data:{index:x+1,overflows:U},reset:{placement:Si}}:{}}}};var ll=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=us(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=ds(n),y=Hn(h),S=d[y],_=d[h],x=(j,E)=>el(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(y,S)),a&&(_=x(h,_));let T=l.fn({...e,[y]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[y]:o,[h]:a}}}}}};function hs(){return typeof window<"u"}function Er(t){return ul(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(ul(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ul(t){return hs()?t instanceof Node||t instanceof We(t).Node:!1}function bt(t){return hs()?t instanceof Element||t instanceof We(t).Element:!1}function jt(t){return hs()?t instanceof HTMLElement||t instanceof We(t).HTMLElement:!1}function cl(t){return!hs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Li(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function dl(t){return/^(table|td|th)$/.test(Er(t))}function $i(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ch=/transform|translate|scale|rotate|perspective|filter/,uh=/paint|layout|strict|content/,Sr=t=>!!t&&t!=="none",Kn;function Zr(t){let e=bt(t)?vt(t):t;return Sr(e.transform)||Sr(e.translate)||Sr(e.scale)||Sr(e.rotate)||Sr(e.perspective)||!fs()&&(Sr(e.backdropFilter)||Sr(e.filter))||ch.test(e.willChange||"")||uh.test(e.contain||"")}function pl(t){let e=ir(t);for(;jt(e)&&!Jr(e);){if(Zr(e))return e;if($i(e))return null;e=ir(e)}return null}function fs(){return Kn==null&&(Kn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kn}function Jr(t){return/^(html|body|#document)$/.test(Er(t))}function vt(t){return We(t).getComputedStyle(t)}function Pi(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||cl(t)&&t.host||Ht(t);return cl(e)?e.host:e}function hl(t){let e=ir(t);return Jr(e)?(t.ownerDocument||t).body:jt(e)&&Li(e)?e:hl(e)}function ps(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=hl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=We(n);if(s){let a=ms(o);return e.concat(o,o.visualViewport||[],Li(n)?n:[],a&&r?ps(a):[])}else return e.concat(n,ps(n,[],r))}function ms(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gl(t){let e=vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Ti(r)!==s||Ti(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function yl(t){return bt(t)?t:t.contextElement}function ei(t){let e=yl(t);if(!jt(e))return kt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=gl(e),o=(s?Ti(r.width):r.width)/i,a=(s?Ti(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var dh=kt(0);function bl(t){let e=We(t);return!fs()||!e.visualViewport?dh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ph(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===We(t)}function Di(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=yl(t),o=kt(1);e&&(i?bt(i)&&(o=ei(i)):o=ei(t));let a=ph(s,r,i)?bl(s):kt(0),l=(n.left+a.x)/o.x,u=(n.top+a.y)/o.y,d=n.width/o.x,p=n.height/o.y;if(s&&i){let h=We(s),y=bt(i)?We(i):i,S=h,_=ms(S);for(;_&&y!==S;){let x=ei(_),T=_.getBoundingClientRect(),j=vt(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=We(_),_=ms(S)}}return xr({width:d,height:p,x:l,y:u})}function gs(t,e){let r=Pi(t).scrollLeft;return e?e.left+r:Di(Ht(t)).left+r}function vl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-gs(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function hh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Ht(i),a=e?$i(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=kt(1),d=kt(0),p=jt(i);if((p||!s)&&((Er(i)!=="body"||Li(o))&&(l=Pi(i)),p)){let y=Di(i);u=ei(i),d.x=y.x+i.clientLeft,d.y=y.y+i.clientTop}let h=o&&!p&&!s?vl(o,l):kt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function fh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function mh(t){let e=Pi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+gs(t),o=-e.scrollTop;return vt(r).direction==="rtl"&&(s+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var gh=25;function yh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=We(t),s=Ht(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!fs()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(gs(s)<=0){let h=s.ownerDocument,y=h.body,S=getComputedStyle(y),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-_),T=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;T<=gh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function bh(t,e){let r=Di(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ei(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,u=i*s.y;return{width:o,height:a,x:l,y:u}}function fl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=yh(t,r,e);else if(e==="document")i=mh(Ht(t));else if(bt(e))i=bh(e,r);else{let n=bl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return xr(i)}function vh(t,e){let r=e.get(t);if(r)return r;let i=ps(t,[],!1).filter(a=>bt(a)&&Er(a)!=="body"),n=null,s=vt(t).position==="fixed",o=s?ir(t):t;for(;bt(o)&&!Jr(o);){let a=vt(o),l=Zr(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=ir(o)}return e.set(t,i),i}function xh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?$i(e)?[]:vh(e,this._c):[].concat(r),i],a=fl(e,o[0],n),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let y=fl(e,o[h],n);l=tr(y.top,l),u=Ri(y.right,u),d=Ri(y.bottom,d),p=tr(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Sh(t){let{width:e,height:r}=gl(t);return{width:e,height:r}}function Eh(t,e,r){let i=jt(e),n=Ht(e),s=r==="fixed",o=Di(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=kt(0);if((i||!s)&&((Er(e)!=="body"||Li(n))&&(a=Pi(e)),i)){let h=Di(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=gs(n));let u=n&&!i&&!s?vl(n,a):kt(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Wn(t){return vt(t).position==="static"}function ml(t,e){if(!jt(t)||vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function xl(t,e){let r=We(t);if($i(t))return r;if(!jt(t)){let n=ir(t);for(;n&&!Jr(n);){if(bt(n)&&!Wn(n))return n;n=ir(n)}return r}let i=ml(t,e);for(;i&&dl(i)&&Wn(i);)i=ml(i,e);return i&&Jr(i)&&Wn(i)&&!Zr(i)?r:i||pl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||xl,r=this.getDimensions,i=await r(t.floating);return{reference:Eh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Ah(t){return vt(t).direction==="rtl"}var ys={convertOffsetParentRelativeRectToViewportRelativeRect:hh,getDocumentElement:Ht,getClippingRect:xh,getOffsetParent:xl,getElementRects:Ch,getClientRects:fh,getDimensions:Sh,getScale:ei,isElement:bt,isRTL:Ah};var Sl=al,El=ll;var Cl=(t,e,r)=>{let i=new Map,n=r??{},s={...ys,...n.platform,_c:i};return ol(t,e,{...n,platform:s})};function Al(t){return wh(t)}function Gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function wh(t){for(let e=t;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(t);e;e=Gn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Zr(r)||e.tagName==="BODY"))return e}return null}async function wl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Cl(t,e,{strategy:i.strategy,platform:{...ys,getOffsetParent:n=>ys.getOffsetParent(n,Al)},middleware:[El({crossAxis:!0}),Sl({allowedPlacements:[i.placement]})]})}var ui=c(f());var yo=c(V());var Ol=c(V(),1);var Qn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _l(t,e){return(0,Ol.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ii(t);try{return JSON.parse(r)}catch{return Ii(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Mi,...e??{}})}function Oh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ti(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ti(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!ti(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ti(t,e){try{return Oh(t,e)}catch{return!1}}function Mi(t,e){return!ti(t,e)}function Ii(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function bs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Rl=c(V(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Mi,attribute:!1,...e};(0,Rl.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var vs=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Cr=c(V(),1);var xs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var kl=c(v(),1);var Ss=globalThis,_h=Ss.ShadowRoot&&(Ss.ShadyCSS===void 0||Ss.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Tl=(t,e)=>{if(_h)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ss.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Es=class extends kl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Tl(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Qn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Ll(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var ii=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Il,$l=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Ml=Symbol("exportpartsDebouncer"),Dl=Symbol("dynamicDependenciesLoaded"),ri=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ri.eventName="exportparts-updated";var Lt=class extends Es{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Il]=new xs(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ml].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Dl]||(r[Dl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ri.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ri.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ri)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Ll(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(s=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],S=(a=(o=h.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(y=>`${h}:${y}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Il=Ml;ii([(0,Cr.property)()],Lt.prototype,"exportpartsPrefix",void 0);ii([_l([])],Lt.prototype,"exportpartsPrefixes",void 0);ii([(0,Cr.property)({reflect:!0})],Lt.prototype,"exportparts",void 0);ii([(0,Cr.property)()],Lt.prototype,"customStylesheet",void 0);ii([(0,Cr.property)()],Lt.prototype,"elementToFocus",void 0);ii([(0,Cr.state)()],Lt.prototype,"useAdoptedStyleSheets",void 0);function Cs(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ni=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),Rh=bs(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=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[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ar].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ar].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ar].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ar].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 u=this.getStore(o.store);u&&(o.store?this[sr].has(o.store):this[sr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[sr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ni].set(o,[]),Cs(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ni].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[sr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[sr].has(o)&&this[sr].get(o)(),this[sr].delete(o),(a=this[Ni].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ni].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=Ar,i=Ni,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Nl=class extends Rh(Lt){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Th=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=Th,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),kh={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},As=kh;function ws(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Zn(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Zn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(Oe(3));return n}function p(x){if(typeof x!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(Oe(6));T=!1,u(),o.delete(j),s=null}}}function h(x){if(!ws(x))throw new Error(Oe(7));if(typeof x.type>"u")throw new Error(Oe(8));if(typeof x.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(j=>{j()}),x}function y(x){if(typeof x!="function")throw new Error(Oe(10));i=x,h({type:As.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Oe(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Fl](){return this}}}return h({type:As.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:y,[Fl]:S}}function Lh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:As.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:As.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Bl(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{Lh(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],y=r[h],S=a[h],_=y(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(Oe(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Fi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ul(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Oe(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=Fi(...a)(n.dispatch),{...n,dispatch:s}}}function zl(t){return ws(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Vl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function xt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,ni=et.getPrototypeOf,Ts="constructor",Is="prototype",ro="configurable",ks="enumerable",_s="writable",Bi="value",$t=t=>!!t&&!!t[Ie];function tt(t){return t?Xl(t)||Ns(t)||!!t[Vl]||!!t[Ts]?.[Vl]||Fs(t)||Bs(t):!1}var $h=et[Is][Ts].toString(),Hl=new WeakMap;function Xl(t){if(!t||!uo(t))return!1;let e=ni(t);if(e===null||e===et[Is])return!0;let r=et.hasOwnProperty.call(e,Ts)&&e[Ts];if(r===Object)return!0;if(!si(r))return!1;let i=Hl.get(r);return i===void 0&&(i=Function.toString.call(r),Hl.set(r,i)),i===$h}function Ms(t,e,r=!0){Vi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Vi(t){let e=t[Ie];return e?e.type_:Ns(t)?1:Fs(t)?2:Bs(t)?3:0}var Jn=(t,e,r=Vi(t))=>r===2?t.has(e):et[Is].hasOwnProperty.call(t,e),io=(t,e,r=Vi(t))=>r===2?t.get(e):t[e],Ls=(t,e,r,i=Vi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ns=Array.isArray,Fs=t=>t instanceof Map,Bs=t=>t instanceof Set,uo=t=>typeof t=="object",si=t=>typeof t=="function",eo=t=>typeof t=="boolean";function Dh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var po=t=>t.modified_?t.copy_:t.base_;function so(t,e){if(Fs(t))return new Map(t);if(Bs(t))return new Set(t);if(Ns(t))return Array[Is].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[_s]===!1&&(a[_s]=!0,a[ro]=!0),(a.get||a.set)&&(i[o]={[ro]:!0,[_s]:!0,[ks]:a[ks],[Bi]:t[o]})}return et.create(ni(t),i)}else{let i=ni(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function ho(t,e=!1){return Us(t)||$t(t)||!tt(t)||(Vi(t)>1&&et.defineProperties(t,{set:Os,add:Os,clear:Os,delete:Os}),et.freeze(t),e&&Ms(t,(r,i)=>{ho(i,!0)},!1)),t}function Ih(){xt(2)}var Os={[Bi]:Ih};function Us(t){return t===null||!uo(t)?!0:et.isFrozen(t)}var $s="MapSet",no="Patches",jl="ArrayMethods",Zl={};function wr(t){let e=Zl[t];return e||xt(0,t),e}var ql=t=>!!Zl[t];var Ui,Jl=()=>Ui,Mh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ql($s)?wr($s):void 0,arrayMethodsPlugin_:ql(jl)?wr(jl):void 0});function Kl(t,e){e&&(t.patchPlugin_=wr(no),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function oo(t){ao(t),t.drafts_.forEach(Nh),t.drafts_=null}function ao(t){t===Ui&&(Ui=t.parent_)}var Wl=t=>Ui=Mh(Ui,t);function Nh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(oo(e),xt(4)),tt(t)&&(t=Ql(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Ql(e,r);return Fh(e,t,!0),oo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function Ql(t,e){if(Us(e))return e;let r=e[Ie];if(!r)return Ps(e,t.handledSet_,t);if(!zs(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rc(r,t)}return r.copy_}function Fh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ho(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var zs=(t,e)=>t.scope_===e,Bh=[];function tc(t,e,r,i){let n=qt(t),s=t.type_;if(i!==void 0&&io(n,i,s)===e){Ls(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Ms(n,(l,u)=>{if($t(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Bh;for(let a of o)Ls(n,a,r,s)}function Uh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!zs(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=po(s);tc(t,s.draft_??s,o,r),rc(s,n)})}function rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}ec(t)}}function zh(t,e,r){let{scope_:i}=t;if($t(r)){let n=r[Ie];zs(n,i)&&n.callbacks_.push(function(){Rs(t);let o=po(n);tc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let s=qt(t);t.type_===3?s.has(r)&&Ps(r,i.handledSet_,i):io(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ps(io(t.copy_,e,t.type_),i.handledSet_,i)})}function Ps(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||$t(t)||e.has(t)||!tt(t)||Us(t)||(e.add(t),Ms(t,(i,n)=>{if($t(n)){let s=n[Ie];if(zs(s,r)){let o=po(s);Ls(t,i,o,t.type_),ec(s)}}else tt(n)&&Ps(n,e,r)})),t}function Vh(t,e){let r=Ns(t),i={type_:r?1:0,scope_:e?e.scope_:Jl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ds;r&&(n=[i],s=zi);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ds={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=qt(t);if(!Jn(n,e,t.type_))return jh(t,n,e);let s=n[e];if(t.finalized_||!tt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Dh(e))return s;if(s===to(t.base_,e)||Hh(t,e,s)){Rs(t);let o=t.type_===1?+e:e,a=co(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,r){let i=ic(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=to(qt(t),e),s=n?.[Ie];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Rs(t),lo(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),zh(t,e,r)),!0},deleteProperty(t,e){return Rs(t),to(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),lo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[_s]:!0,[ro]:t.type_!==1||e!=="length",[ks]:i[ks],[Bi]:r[e]}},defineProperty(){xt(11)},getPrototypeOf(t){return ni(t.base_)},setPrototypeOf(){xt(12)}},zi={};for(let t in Ds){let e=Ds[t];zi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}zi.deleteProperty=function(t,e){return zi.set.call(this,t,e,void 0)};zi.set=function(t,e,r){return Ds.set.call(this,t[0],e,r,t[0])};function to(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function Hh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function jh(t,e,r){let i=ic(e,r);return i?Bi in i?i[Bi]:i.get?.call(t.draft_):void 0}function ic(t,e){if(!(e in t))return;let r=ni(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=ni(r)}}function lo(t){t.modified_||(t.modified_=!0,t.parent_&&lo(t.parent_))}function Rs(t){t.copy_||(t.assigned_=new Map,t.copy_=so(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var qh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||xt(6),i!==void 0&&!si(i)&&xt(7);let n;if(tt(e)){let s=Wl(this),o=co(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?oo(s):ao(s)}return Kl(s,i),Gl(n,s)}else if(!e||!uo(e)){if(n=r(e),n===void 0&&(n=e),n===Yl&&(n=void 0),this.autoFreeze_&&ho(n,!0),i){let s=[],o=[];wr(no).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else xt(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||xt(8),$t(t)&&(t=sc(t));let e=Wl(this),r=co(e,t,void 0);return r[Ie].isManual_=!0,ao(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&xt(9);let{scope_:i}=r;return Kl(i,e),Gl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=wr(no).applyPatches_;return $t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function co(t,e,r,i){let[n,s]=Fs(e)?wr($s).proxyMap_(e,r):Bs(e)?wr($s).proxySet_(e,r):Vh(e,r);return(r?.scope_??Jl()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Uh(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:u}=l;s.modified_&&u&&u.generatePatches_(s,[],l)}),n}function sc(t){return $t(t)||xt(10,t),nc(t)}function nc(t){if(!tt(t)||Us(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=so(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=so(t,!0);return Ms(r,(n,s)=>{Ls(r,n,nc(s))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,Og=typeof Kh?.from=="function";var Wh=new qh,fo=Wh.produce;function oc(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var ac=oc(),lc=oc;var Gh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fi:Fi.apply(null,arguments)},Pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Qh=t=>t&&typeof t.match=="function";function nr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Kt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zl(i)&&i.type===t,r}var hc=class Hi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Hi.prototype)}static get[Symbol.species](){return Hi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Hi(...e[0].concat(this)):new Hi(...e.concat(this))}};function cc(t){return tt(t)?fo(t,()=>{}):t}function Vs(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Yh(t){return typeof t=="boolean"}var Xh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new hc;return r&&(Yh(r)?o.push(ac):o.push(lc(r.extraArgument))),o},Zh="RTK_autoBatch";var uc=t=>e=>{setTimeout(e,t)},Jh=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=t(n),o=setTimeout(n,e)},ef=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Jh(window.requestAnimationFrame,100):uc(10):t.type==="callback"?t.queueNotification:uc(t.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>n&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return n=!d?.meta?.[Zh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},tf=t=>function(r){let{autoBatch:i=!0}=r??{},n=new hc(t);return i&&n.push(ef(typeof i=="object"?i:void 0)),n};function fc(t){let e=Xh(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(ws(r))l=Bl(r);else throw new Error(Kt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Fi;n&&(d=Gh({trace:!1,...typeof n=="object"&&n}));let p=Ul(...u),h=tf(p),y=typeof a=="function"?a(h):h(),S=d(...y);return Zn(l,o,S)}function mc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Kt(28));if(a in e)throw new Error(Kt(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function rf(t){return typeof t=="function"}function sf(t,e){let[r,i,n]=mc(e),s;if(rf(t))s=()=>cc(t());else{let a=cc(t);s=()=>a}function o(a=s(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[n]),u.reduce((d,p)=>{if(p)if($t(d)){let y=p(d,l);return y===void 0?d:y}else{if(tt(d))return fo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=s,o}var nf=(t,e)=>Qh(t)?t.match(e):t(e);function of(...t){return e=>t.some(r=>nf(r,e))}var af="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lf=(t=21)=>{let e="",r=t;for(;r--;)e+=af[Math.random()*64|0];return e},cf=["name","message","stack","code"],mo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},dc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},uf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of cf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",df=(()=>{function t(e,r,i){let n=nr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=nr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=nr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||uf)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let y=i?.idGenerator?i.idGenerator(l):lf(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(pc):u.addEventListener("abort",()=>T(pc),{once:!0}));let j=(async function(){let E;try{let U=i?.condition?.(l,{getState:p,extra:h});if(hf(U)&&(U=await U),U===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:y,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new mo(J,de)),fulfillWithValue:((J,de)=>new dc(J,de))})).then(J=>{if(J instanceof mo)throw J;return J instanceof dc?n(J.payload,y,l,J.meta):n(J,y,l)})])}catch(U){E=U instanceof mo?o(null,y,l,U.payload,U.meta):o(U,y,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:y,arg:l,unwrap(){return j.then(pf)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:of(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function pf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function hf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Ig={[gc]:df};function ff(t,e){return`${t}/${e}`}function mf({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Kt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(yf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let U=typeof E=="string"?E:E.type;if(!U)throw new Error(Kt(12));if(U in l.sliceCaseReducersByType)throw new Error(Kt(13));return l.sliceCaseReducersByType[U]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],U={reducerName:E,type:ff(n,E),createNotation:typeof i.reducers=="function"};vf(I)?Sf(U,I,u,e):bf(U,I,u)});function d(){let[E={},I=[],U=void 0]=typeof i.extraReducers=="function"?mc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return sf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);U&&J.addDefaultCase(U)})}let p=E=>E,h=new Map,y=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function U(J){let de=J[E];return typeof de>"u"&&I&&(de=Vs(y,U,x)),de}function ue(J=p){let de=Vs(h,I,()=>new WeakMap);return Vs(de,J,()=>{let Si={};for(let[ct,gr]of Object.entries(i.selectors??{}))Si[ct]=gf(gr,J,()=>Vs(y,J,x),I);return Si})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(U)},selectSlice:U}}let j={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(s),injectInto(E,{reducerPath:I,...U}={}){let ue=I??s;return E.inject({reducerPath:ue,reducer:_},U),{...j,...T(ue,!0)}}};return j}}function gf(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var yc=mf();function yf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function bf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!xf(i))throw new Error(Kt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?nr(t,o):nr(t))}function vf(t){return t._reducerDefinitionType==="asyncThunk"}function xf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Sf({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Kt(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=n(t,s,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Hs,pending:a||Hs,rejected:l||Hs,settled:u||Hs})}function Hs(){}var bc="listener",vc="completed",xc="cancelled",Mg=`task-${xc}`,Ng=`task-${vc}`,Fg=`${bc}-${xc}`,Bg=`${bc}-${vc}`;var{assign:Sc}=Object;var go="listenerMiddleware";var Ef=Sc(nr(`${go}/add`),{withTypes:()=>Ef}),Ug=nr(`${go}/removeAll`),Cf=Sc(nr(`${go}/remove`),{withTypes:()=>Cf});function Kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Af=bs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),js=class extends Af(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ec=class t extends js{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Cs(s))return s;if(n==null)return;let o=yc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=fc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ii(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new vs,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,u=s[l];return u?(...d)=>{let p=u(...d.map(n));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ti(h,d)||this.setState({[p]:n(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var qs=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ks=c(f()),wf="ft-app-info",Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Or.eventName="authentication-change";var ji=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ji.eventName="ui-locale-changed";var Of={session:(t,e)=>{(0,Ks.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Or(e.payload)),0))}},O=Ks.FtReduxStore.get({name:wf,reducers:Of,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}});var Cc=c(f()),Ws=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},gy=(0,Cc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>qs.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ws([(0,yo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ws([(0,yo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ws([Yn({store:O.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ws([Yn({store:O.name})],e.prototype,"uiLocale",void 0),e});var Ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ac||(Ac={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wc||(wc={}));var Oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rc||(Rc={}));var Tc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Tc||(Tc={}));var kc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(kc||(kc={}));var Lc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Lc||(Lc={}));var $c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})($c||($c={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Dc||(Dc={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Mc||(Mc={}));var Nc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Nc||(Nc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var Bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Bc||(Bc={}));var bo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(bo||(bo={}));var Uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Uc||(Uc={}));var zc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(zc||(zc={}));var vo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vo||(vo={}));var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Vc||(Vc={}));var Hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Hc||(Hc={}));var jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qc||(qc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var xo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xo||(xo={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Gc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Gc||(Gc={}));var Qc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Qc||(Qc={}));var Yc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Yc||(Yc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(tu||(tu={}));var ru;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ru||(ru={}));var iu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(iu||(iu={}));var su;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(su||(su={}));var nu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nu||(nu={}));var _f={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function ou(t,e){return t===e||(_f[t]??[]).some(r=>ou(r,e))}function So(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>ou(i,e))}var Zs=c(f());var Eo=c(f());var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=O.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var oi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var Ge=class extends oi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Eo.CacheRegistry,this.cache=e?n.commonCache:new Eo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Gs=class extends Ge{async listMySearches(){let{session:e}=O.getState();return So(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Qs=class extends Ge{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ys=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Xs=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Rf="ft-user-assets",Tf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Ao(t,r,[...Co(t,r),n]),au(t,r,1,i),lu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ao(t,r,Co(t,r).map(n=>n.id===i.id?i:n)),lu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ao(t,r,Co(t,r).filter(s=>s.id!==n)),au(t,r,-1,i)}},cu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Co=(t,e)=>{var r;let i=cu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ao=(t,e,r)=>{let i=cu[e];i&&(t[i]=r)},au=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},lu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Fe=Zs.FtReduxStore.get({name:Rf,reducers:Tf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wo=class{constructor(e=new Ys,r=new Xs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qs,this.savedSearchesService=new Gs,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,Zs.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Fe.getState().assetCounts.allAsset[e]!==r.count&&Fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},kf=new wo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=kf);var Oo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oo;var pt=c(f());var uu,ai=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Lf=Symbol("clearAfterUnitTest"),Js=class extends(0,pt.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[uu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new pt.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof pt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ai({loadedContexts:e})),this.dispatchEvent(new ai({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ai({loadedContexts:[e]})),this.dispatchEvent(new ai({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};uu=Lf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var li=window.FluidTopicsI18nService,en=window.FluidTopicsCustomI18nService;var du=c(f()),_o=class{highlightHtml(e,r,i){(0,du.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new _o;var pu=c(f());var Ro=class{isDate(e){var r,i,n,s;return(s=(n=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return pu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ro;var hu=c(f());var Wt=class{static get(e,r){var i,n,s,o;let a=O.getState(),{lang:l,region:u}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new hu.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${u}`)}};var To=class{urlToSearchRequest(e){return Wt.get().parse(e)}searchRequestToUrl(e){return Wt.get().serialize(e)}};window.FluidTopicsUrlService=new To;var Gt=c(f());var Rr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Rr.eventName="change";var ko=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},fu=new ko;var tn=class t extends Gt.WithEventBus{static build(){return new t(window.history,fu,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Rr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Rr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Rr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=tn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var mu=c(v());var gu=mu.css`
261
+ `;var bu=c(v()),Be=c(V()),Lr=c(f());var Tr=c(f());function yu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var rn=class extends oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Lo=class t extends Tr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Tr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new rn,this.cleanSessionDebouncer=new Tr.Debouncer,this.reloadDebouncer=new Tr.Debouncer(500),this.apiProvider=r??(()=>_r.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let 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(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>yu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ji(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},$o=Lo.build();var kr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var qi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new kr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ce=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends Lr.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=$o,this.contextRoot=new qi}render(){return bu.html`
262
262
  <slot></slot>
263
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>li.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ne.elementDefinitions={};ne.styles=gu;Oe([(0,Ge.property)()],ne.prototype,"baseUrl",void 0);Oe([(0,Ge.property)()],ne.prototype,"tenantId",void 0);Oe([(0,Ge.property)()],ne.prototype,"apiIntegrationIdentifier",void 0);Oe([(0,Ge.property)()],ne.prototype,"apiIntegrationAppVersion",void 0);Oe([(0,Ge.property)()],ne.prototype,"uiLocale",void 0);Oe([(0,Lr.jsonProperty)(null)],ne.prototype,"availableUiLocales",void 0);Oe([(0,Lr.jsonProperty)(null)],ne.prototype,"metadataConfiguration",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"editorMode",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"noCustom",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);Oe([(0,Ge.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"withManualResources",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"navigatorOnline",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"forcedOffline",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"authenticationRequired",void 0);Oe([(0,Lr.jsonProperty)([])],ne.prototype,"messageContexts",void 0);Oe([(0,Lr.jsonProperty)(void 0)],ne.prototype,"session",void 0);var xu=c(f());var vu={"ft-app-context":ne};(0,xu.customElements)(vu);var Su=c(V());var Po=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ci=new Po;var Pf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wi=Symbol("i18nAttributes"),Eu=Symbol("i18nListAttributes"),Cu=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),Ki=Symbol("i18nUnsubs"),di=(0,ui.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?en:li}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:d,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(ci.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&s(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Wi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Eu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(y=>u(d,p,y))})}updateI18nProperties(s){var o;(o=this[Cu])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[sn].set(l,{isCustomContext:a}),this[Ki].has(l)||this[Ki].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[sn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ki].forEach(s=>s()),this[Ki].clear()}}return e=sn,r=Ki,Pf([(0,Su.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nn=class extends di(ui.FtLitElement){},on=class extends di(ui.FtLitElementRedux){};var Au=c(f());var Do=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ci.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Df=new Do;var an=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Au.hasChanged,converter:ci,...e}),r[Wi]=(n=r[Wi])!==null&&n!==void 0?n:new Map,r[Wi].set(i,t??{})};var ln=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?en:li}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var wu=c(v());var Ou=wu.css`
263
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>li.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ne.elementDefinitions={};ne.styles=gu;Ce([(0,Be.property)()],ne.prototype,"baseUrl",void 0);Ce([(0,Be.property)()],ne.prototype,"tenantId",void 0);Ce([(0,Be.property)()],ne.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,Be.property)()],ne.prototype,"apiIntegrationAppVersion",void 0);Ce([(0,Be.property)()],ne.prototype,"uiLocale",void 0);Ce([(0,Lr.jsonProperty)(null)],ne.prototype,"availableUiLocales",void 0);Ce([(0,Lr.jsonProperty)(null)],ne.prototype,"metadataConfiguration",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"editorMode",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"noCustom",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);Ce([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomCode",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"withManualResources",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"navigatorOnline",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"forcedOffline",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"authenticationRequired",void 0);Ce([(0,Lr.jsonProperty)([])],ne.prototype,"messageContexts",void 0);Ce([(0,Lr.jsonProperty)(void 0)],ne.prototype,"session",void 0);var xu=c(f());var vu={"ft-app-context":ne};(0,xu.customElements)(vu);var Su=c(V());var Po=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ci=new Po;var Df=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wi=Symbol("i18nAttributes"),Eu=Symbol("i18nListAttributes"),Cu=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),Ki=Symbol("i18nUnsubs"),di=(0,ui.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?en:li}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:d,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(ci.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&s(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Wi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Eu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(y=>u(d,p,y))})}updateI18nProperties(s){var o;(o=this[Cu])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[sn].set(l,{isCustomContext:a}),this[Ki].has(l)||this[Ki].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[sn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ki].forEach(s=>s()),this[Ki].clear()}}return e=sn,r=Ki,Df([(0,Su.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nn=class extends di(ui.FtLitElement){},on=class extends di(ui.FtLitElementRedux){};var Au=c(f());var Do=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ci.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},If=new Do;var an=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Au.hasChanged,converter:ci,...e}),r[Wi]=(n=r[Wi])!==null&&n!==void 0?n:new Map,r[Wi].set(i,t??{})};var ln=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?en:li}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var wu=c(v());var Ou=wu.css`
264
264
  `;var cn=c(v()),un=c(V()),dn=c(f());var Gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},St=class extends on{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":cn.nothing:cn.html`
265
265
  <span class="ft-i18n">
266
266
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -280,7 +280,7 @@
280
280
  </div>
281
281
  </div>
282
282
  </div>
283
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&wl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ht.designSystemVariables.transitionDuration}, left ${ht.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ht.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":K};he.styles=Xa;Et([an()],he.prototype,"text",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"manual",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"inline",void 0);Et([(0,ht.numberProperty)()],he.prototype,"delay",void 0);Et([(0,ft.property)()],he.prototype,"position",void 0);Et([(0,ht.jsonProperty)([])],he.prototype,"ignoreMatchingElements",void 0);Et([(0,ft.queryAssignedNodes)()],he.prototype,"slotNodes",void 0);Et([(0,ft.query)(".ft-tooltip--container")],he.prototype,"container",void 0);Et([(0,ft.query)(".ft-tooltip")],he.prototype,"tooltip",void 0);Et([(0,ft.query)(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);Et([(0,ft.state)()],he.prototype,"visible",void 0);var Lu=c(f());var ku={"ft-tooltip":he};(0,Lu.customElements)(ku);var $u=c(v()),Ct=c(f()),Be={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pu=[$u.css`
283
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&wl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ht.designSystemVariables.transitionDuration}, left ${ht.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ht.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":K};he.styles=Xa;Et([an()],he.prototype,"text",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"manual",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"inline",void 0);Et([(0,ht.numberProperty)()],he.prototype,"delay",void 0);Et([(0,ft.property)()],he.prototype,"position",void 0);Et([(0,ht.jsonProperty)([])],he.prototype,"ignoreMatchingElements",void 0);Et([(0,ft.queryAssignedNodes)()],he.prototype,"slotNodes",void 0);Et([(0,ft.query)(".ft-tooltip--container")],he.prototype,"container",void 0);Et([(0,ft.query)(".ft-tooltip")],he.prototype,"tooltip",void 0);Et([(0,ft.query)(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);Et([(0,ft.state)()],he.prototype,"visible",void 0);var Lu=c(f());var ku={"ft-tooltip":he};(0,Lu.customElements)(ku);var $u=c(v()),Ct=c(f()),Ue={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pu=[$u.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -289,14 +289,14 @@
289
289
  }
290
290
 
291
291
  :host {
292
- width: ${Be.size};
293
- height: ${Be.size};
292
+ width: ${Ue.size};
293
+ height: ${Ue.size};
294
294
  }
295
295
 
296
296
  i.ft-icon {
297
297
  width: 100%;
298
298
  height: 100%;
299
- font-size: ${Be.size};
299
+ font-size: ${Ue.size};
300
300
  line-height: 1;
301
301
  font-weight: normal;
302
302
  text-transform: none;
@@ -307,33 +307,33 @@
307
307
  text-rendering: auto;
308
308
  -webkit-font-smoothing: antialiased;
309
309
  -moz-osx-font-smoothing: grayscale;
310
- vertical-align: ${Be.verticalAlign};
310
+ vertical-align: ${Ue.verticalAlign};
311
311
  }
312
312
 
313
313
  i.ft-icon.ft-icon--fluid-topics {
314
- font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
314
+ font-family: ${Ue.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
315
315
 
316
316
  /* Ugly fix because font is broken */
317
- font-size: calc(0.75 * ${Be.size});
318
- line-height: ${Be.size};
317
+ font-size: calc(0.75 * ${Ue.size});
318
+ line-height: ${Ue.size};
319
319
  position: relative;
320
320
  top: -4%;
321
321
  justify-content: center;
322
322
  }
323
323
 
324
324
  .ft-icon--file-format {
325
- font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
325
+ font-family: ${Ue.fileFormatFontFamily}, ft-mime, sans-serif;
326
326
  }
327
327
 
328
328
  .ft-icon--material {
329
- font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
329
+ font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,Ct.noTextSelect];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Qi=c(v()),or=c(V()),Mu=c(f()),Nu=c(Iu());var ye;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ye||(ye={}));var m;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(m||(m={}));var Io=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]),If=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function pn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=If.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Io.get(a))!==null&&i!==void 0?i:Io.get(e))!==null&&n!==void 0?n:Io.get(o))!==null&&s!==void 0?s:m.UNKNOWN}var Bx={[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 Yi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends Mu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Qi.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return Qi.html`
331
+ `,Ct.noTextSelect];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Qi=c(v()),or=c(V()),Mu=c(f()),Nu=c(Iu());var ye;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ye||(ye={}));var m;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(m||(m={}));var Io=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]),Mf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function pn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Mf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Io.get(a))!==null&&i!==void 0?i:Io.get(e))!==null&&n!==void 0?n:Io.get(o))!==null&&s!==void 0?s:m.UNKNOWN}var zx={[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 Yi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends Mu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Qi.nothing}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return Qi.html`
332
332
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
333
333
  ${(0,Nu.unsafeHTML)(this.resolvedIcon)}
334
334
  <slot ?hidden=${r}></slot>
335
335
  </i>
336
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||Qi.nothing;break;default:this.resolvedIcon=(r=ye[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Pu;Yi([(0,or.property)()],ee.prototype,"variant",void 0);Yi([(0,or.property)()],ee.prototype,"value",void 0);Yi([(0,or.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Yi([(0,or.state)()],ee.prototype,"resolvedIcon",void 0);Yi([(0,or.query)("slot")],ee.prototype,"slottedContent",void 0);var Bu=c(f());var Fu={"ft-icon":ee};(0,Bu.customElements)(Fu);var Uu=c(v()),Xi=c(f()),$r={color:Xi.FtCssVariableFactory.extend("--ft-loader-color","",Xi.designSystemVariables.colorPrimary),size:Xi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zu=Uu.css`
336
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ze.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ze.material:this.resolvedIcon=this.value||Qi.nothing;break;default:this.resolvedIcon=(r=ye[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Pu;Yi([(0,or.property)()],ee.prototype,"variant",void 0);Yi([(0,or.property)()],ee.prototype,"value",void 0);Yi([(0,or.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Yi([(0,or.state)()],ee.prototype,"resolvedIcon",void 0);Yi([(0,or.query)("slot")],ee.prototype,"slottedContent",void 0);var Bu=c(f());var Fu={"ft-icon":ee};(0,Bu.customElements)(Fu);var Uu=c(v()),Xi=c(f()),$r={color:Xi.FtCssVariableFactory.extend("--ft-loader-color","",Xi.designSystemVariables.colorPrimary),size:Xi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zu=Uu.css`
337
337
  :host {
338
338
  line-height: 0;
339
339
  }
@@ -456,7 +456,7 @@
456
456
 
457
457
  --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
458
458
  --button-internal-color: ${k.color};
459
- ${(0,$.setVariable)(Be.size,k.iconSize)};
459
+ ${(0,$.setVariable)(Ue.size,k.iconSize)};
460
460
  ${(0,$.setVariable)(q.color,k.rippleColor)};
461
461
  ${(0,$.setVariable)(q.borderRadius,k.borderRadius)};
462
462
 
@@ -661,7 +661,7 @@
661
661
  height: 20px;
662
662
  border-right: 1px solid ${Se.colorOutline};
663
663
  }
664
- `;var pi=c(f()),Bo=c(V());var No;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(No||(No={}));var Dr=c(f());var Mf=c(f());var fn=class t extends Event{constructor(){super(t.eventName)}};fn.eventName="search-context-clear-all-filters";var ed=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Uo=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},td=Symbol("registerInterval"),Fo=Symbol("registerAttempts"),Nf=40,Ff=(0,pi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(s=i.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fo]=0,this.tryToRegisterToContext(),this[td]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Fo]>Nf?window.clearInterval(this[td]):(this[Fo]++,this.dispatchEvent(new Uo))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ed([(0,Bo.state)()],e.prototype,"stateManager",void 0),ed([(0,Bo.state)({hasChanged:pi.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),mn=class extends Ff(pi.FtLitElementRedux){};var Qt=ln.build("designedSearchInput");var lt=c(V()),Hp=c(Ze());var Vp=c(f()),Vr=c(v());var Bp=c(v());var Up=c(f());var H=c(v()),B=c(V()),os=c(cr()),Y=c(f());var nd=c(v()),Ir=c(V()),gn=c(f());var mt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(mt||(mt={}));var id=c(v());var sd=id.css`
664
+ `;var pi=c(f()),Bo=c(V());var No;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(No||(No={}));var Dr=c(f());var Nf=c(f());var fn=class t extends Event{constructor(){super(t.eventName)}};fn.eventName="search-context-clear-all-filters";var ed=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Uo=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},td=Symbol("registerInterval"),Fo=Symbol("registerAttempts"),Ff=40,Bf=(0,pi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(s=i.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fo]=0,this.tryToRegisterToContext(),this[td]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Fo]>Ff?window.clearInterval(this[td]):(this[Fo]++,this.dispatchEvent(new Uo))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ed([(0,Bo.state)()],e.prototype,"stateManager",void 0),ed([(0,Bo.state)({hasChanged:pi.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),mn=class extends Bf(pi.FtLitElementRedux){};var Qt=ln.build("designedSearchInput");var lt=c(V()),Hp=c(Ze());var Vp=c(f()),Vr=c(v());var Bp=c(v());var Up=c(f());var H=c(v()),B=c(V()),os=c(cr()),Y=c(f());var nd=c(v()),Ir=c(V()),gn=c(f());var mt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(mt||(mt={}));var id=c(v());var sd=id.css`
665
665
  .ft-size-watcher--pixel {
666
666
  width: 0;
667
667
  height: 0;
@@ -971,7 +971,7 @@
971
971
  .ft-radio ft-typography {
972
972
  padding-right: 2px;
973
973
  }
974
- `;var dr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=class extends Ad.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 Cd.html`
974
+ `;var dr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ae=class extends Ad.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 Cd.html`
975
975
  <div class="${(0,wd.classMap)(this.radioClasses)}"
976
976
  @click=${this.onClick}>
977
977
  <div class="ft-radio--box-container">
@@ -997,7 +997,7 @@
997
997
  </ft-typography>
998
998
  </label>
999
999
  </div>
1000
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new vn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new vn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ce.elementDefinitions={"ft-ripple":L,"ft-typography":K};Ce.styles=Ed;dr([(0,It.property)()],Ce.prototype,"name",void 0);dr([(0,It.property)()],Ce.prototype,"value",void 0);dr([(0,It.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);dr([(0,It.property)({attribute:"aria-checked",reflect:!0})],Ce.prototype,"ariaChecked",void 0);dr([(0,It.property)({type:Boolean})],Ce.prototype,"disabled",void 0);dr([(0,It.query)(".ft-radio")],Ce.prototype,"container",void 0);dr([(0,It.query)("ft-ripple")],Ce.prototype,"ripple",void 0);dr([(0,It.query)("input")],Ce.prototype,"input",void 0);var Rd=c(f()),pr=c(V()),Td=c(v());var Od=c(v());var _d=Od.css`
1000
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new vn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new vn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ae.elementDefinitions={"ft-ripple":L,"ft-typography":K};Ae.styles=Ed;dr([(0,It.property)()],Ae.prototype,"name",void 0);dr([(0,It.property)()],Ae.prototype,"value",void 0);dr([(0,It.property)({type:Boolean,reflect:!0})],Ae.prototype,"checked",void 0);dr([(0,It.property)({attribute:"aria-checked",reflect:!0})],Ae.prototype,"ariaChecked",void 0);dr([(0,It.property)({type:Boolean})],Ae.prototype,"disabled",void 0);dr([(0,It.query)(".ft-radio")],Ae.prototype,"container",void 0);dr([(0,It.query)("ft-ripple")],Ae.prototype,"ripple",void 0);dr([(0,It.query)("input")],Ae.prototype,"input",void 0);var Rd=c(f()),pr=c(V()),Td=c(v());var Od=c(v());var _d=Od.css`
1001
1001
  :host {
1002
1002
  display: block;
1003
1003
  }
@@ -1010,7 +1010,7 @@
1010
1010
  @change=${this.onChange}
1011
1011
  @keydown=${this.onKeyDown}
1012
1012
  ></slot>
1013
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.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&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=_d;es([(0,pr.property)()],st.prototype,"name",void 0);es([(0,pr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);es([(0,pr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);es([(0,pr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);es([(0,pr.state)()],st.prototype,"currentSelectedIndex",void 0);var Ld=c(f());var kd={"ft-radio":Ce,"ft-radio-group":st};(0,Ld.customElements)(kd);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},qo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Ye.withAnalytics)(di((0,Ye.withAriaNotification)(Ye.FtLitElement)),qo){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 e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return nt.html`
1013
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.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&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=_d;es([(0,pr.property)()],st.prototype,"name",void 0);es([(0,pr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);es([(0,pr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);es([(0,pr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);es([(0,pr.state)()],st.prototype,"currentSelectedIndex",void 0);var Ld=c(f());var kd={"ft-radio":Ae,"ft-radio-group":st};(0,Ld.customElements)(kd);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},qo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Ye.withAnalytics)(di((0,Ye.withAriaNotification)(Ye.FtLitElement)),qo){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 e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return nt.html`
1014
1014
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1015
1015
  ${this.parent==null?null:nt.html`
1016
1016
  <div tabindex="0"
@@ -1078,7 +1078,7 @@
1078
1078
  @change=${r=>this.optionsChanged(r,e)}>
1079
1079
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1080
1080
  </ft-radio>
1081
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.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)})}};oe.elementDefinitions={"ft-button":C,"ft-ripple":L,"ft-typography":K,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ce};oe.styles=fd;Te([(0,Ee.property)({type:String})],oe.prototype,"filterId",void 0);Te([(0,Ee.property)({type:Object})],oe.prototype,"parent",void 0);Te([(0,Ee.property)({type:Array,hasChanged:Ye.hasChanged})],oe.prototype,"options",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"multivalued",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"disabled",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"displayCount",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"filter",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"noValuesLabel",void 0);Te([(0,Ee.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Ye.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);Te([(0,Ee.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);Te([(0,Ee.state)()],oe.prototype,"radios",void 0);Te([(0,Ee.state)()],oe.prototype,"displayedPages",void 0);Te([(0,Ee.state)()],oe.prototype,"filteredOptions",void 0);var Id=c(v()),ot=c(V()),Mr=c(f());var Md=c(Ze());var Pd=c(v()),wt=c(f());var ze={buttonsColor:wt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",wt.designSystemVariables.colorPrimary),buttonsZIndex:wt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:wt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:wt.FtCssVariableFactory.external(wt.designSystemVariables.colorSurface,"Design system")},Dd=Pd.css`
1081
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.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)})}};oe.elementDefinitions={"ft-button":C,"ft-ripple":L,"ft-typography":K,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ae};oe.styles=fd;Te([(0,Ee.property)({type:String})],oe.prototype,"filterId",void 0);Te([(0,Ee.property)({type:Object})],oe.prototype,"parent",void 0);Te([(0,Ee.property)({type:Array,hasChanged:Ye.hasChanged})],oe.prototype,"options",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"multivalued",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"disabled",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"displayCount",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"filter",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"noValuesLabel",void 0);Te([(0,Ee.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Ye.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);Te([(0,Ee.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);Te([(0,Ee.state)()],oe.prototype,"radios",void 0);Te([(0,Ee.state)()],oe.prototype,"displayedPages",void 0);Te([(0,Ee.state)()],oe.prototype,"filteredOptions",void 0);var Id=c(v()),ot=c(V()),Mr=c(f());var Md=c(Ze());var Pd=c(v()),wt=c(f());var Ve={buttonsColor:wt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",wt.designSystemVariables.colorPrimary),buttonsZIndex:wt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:wt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:wt.FtCssVariableFactory.external(wt.designSystemVariables.colorSurface,"Design system")},Dd=Pd.css`
1082
1082
  .ft-snap-scroll {
1083
1083
  box-sizing: border-box;
1084
1084
  position: relative;
@@ -1113,7 +1113,7 @@
1113
1113
  flex-wrap: nowrap;
1114
1114
  align-items: flex-start;
1115
1115
  justify-content: flex-start;
1116
- gap: ${ze.gap};
1116
+ gap: ${Ve.gap};
1117
1117
  }
1118
1118
 
1119
1119
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1156,11 +1156,11 @@
1156
1156
  .ft-snap-scroll--next {
1157
1157
  position: absolute;
1158
1158
  display: flex;
1159
- z-index: ${ze.buttonsZIndex};
1159
+ z-index: ${Ve.buttonsZIndex};
1160
1160
  opacity: 1;
1161
1161
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1162
1162
  ${(0,wt.setVariable)(k.backgroundColor,"transparent")};
1163
- ${(0,wt.setVariable)(k.color,ze.buttonsColor)};
1163
+ ${(0,wt.setVariable)(k.color,Ve.buttonsColor)};
1164
1164
  }
1165
1165
 
1166
1166
  .ft-snap-scroll--previous[hidden],
@@ -1173,35 +1173,35 @@
1173
1173
  top: 0;
1174
1174
  left: -1px;
1175
1175
  bottom: 0;
1176
- background: linear-gradient(to right, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
1176
+ background: linear-gradient(to right, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1177
1177
  }
1178
1178
 
1179
1179
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1180
1180
  top: -1px;
1181
1181
  left: 0;
1182
1182
  right: 0;
1183
- background: linear-gradient(to bottom, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
1183
+ background: linear-gradient(to bottom, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1184
1184
  }
1185
1185
 
1186
1186
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1187
1187
  top: 0;
1188
1188
  right: -1px;
1189
1189
  bottom: 0;
1190
- background: linear-gradient(to left, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
1190
+ background: linear-gradient(to left, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1191
1191
  }
1192
1192
 
1193
1193
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1194
1194
  left: 0;
1195
1195
  right: 0;
1196
1196
  bottom: -1px;
1197
- background: linear-gradient(to top, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
1197
+ background: linear-gradient(to top, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1198
1198
  }
1199
1199
 
1200
1200
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1201
1201
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1202
1202
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1203
1203
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1204
- background-color: ${ze.colorSurface};
1204
+ background-color: ${Ve.colorSurface};
1205
1205
  }
1206
1206
  `;var Mt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ko=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},be=class extends Mr.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 Mr.Debouncer(200),this.updateScrollDebouncer=new Mr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||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 e=(0,Md.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":Mr.isSafari}),r=this.controls&&this.withScroll;return Id.html`
1207
1207
  <div part="container" class="${e}">
@@ -1533,7 +1533,7 @@
1533
1533
  --chip-internal-font-size: ${ke.fontSize};
1534
1534
  --chip-internal-font-weight: ${ke.fontWeight};
1535
1535
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1536
- ${(0,M.setVariable)(Be.size,ke.iconSize)};
1536
+ ${(0,M.setVariable)(Ue.size,ke.iconSize)};
1537
1537
  --chip-internal-vertical-padding: ${ke.verticalPadding};
1538
1538
  --chip-internal-horizontal-padding: ${ke.horizontalPadding};
1539
1539
  --chip-internal-icon-padding: 3px;
@@ -1654,7 +1654,7 @@
1654
1654
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1655
1655
  order: -1;
1656
1656
  }
1657
- `];var Ve=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},An=class extends CustomEvent{constructor(){super("icon-click")}},ae=class extends fi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fi.isSafari};return Cn.html`
1657
+ `];var He=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},An=class extends CustomEvent{constructor(){super("icon-click")}},ae=class extends fi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fi.isSafari};return Cn.html`
1658
1658
  <div class="${(0,sp.classMap)(r)}"
1659
1659
  aria-label="${this.getLabel()}"
1660
1660
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1681,7 +1681,7 @@
1681
1681
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1682
1682
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1683
1683
  </div>
1684
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new An))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new An))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,fi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};ae.styles=ip;Ve([(0,Le.property)({type:Boolean})],ae.prototype,"highlighted",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"removable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"disabled",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"clickable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"iconClickable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"dense",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"multiLine",void 0);Ve([(0,Le.property)()],ae.prototype,"label",void 0);Ve([(0,Le.property)()],ae.prototype,"iconLabel",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"hideIconTooltip",void 0);Ve([(0,Le.property)()],ae.prototype,"icon",void 0);Ve([(0,Le.property)()],ae.prototype,"iconVariant",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);Ve([(0,Le.property)()],ae.prototype,"typographyVariant",void 0);Ve([(0,Le.query)("ft-typography slot")],ae.prototype,"slottedContent",void 0);var op=c(f());var np={"ft-chip":ae};(0,op.customElements)(np);var gi=c(v()),ve=c(V()),vp=c(Ze()),xp=c(cr());function ss(t,e,r){return t?e(t):r?.(t)}var yt=c(f());var wn=c(V());var ap=c(v()),se=c(f());var N={fontSize:se.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:se.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:se.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:se.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:se.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:se.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:se.FtCssVariableFactory.extend("--ft-input-label-border-color","",se.designSystemVariables.colorOutline),textColor:se.FtCssVariableFactory.extend("--ft-input-label-text-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:se.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",se.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:se.FtCssVariableFactory.extend("--ft-input-label-background-color","",se.designSystemVariables.colorSurface),borderRadius:se.FtCssVariableFactory.extend("--ft-input-label-border-radius","",se.designSystemVariables.borderRadiusS),colorError:se.FtCssVariableFactory.external(se.designSystemVariables.colorError,"Design system")},lp=ap.css`
1684
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new An))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new An))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,fi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};ae.styles=ip;He([(0,Le.property)({type:Boolean})],ae.prototype,"highlighted",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"removable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"disabled",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"clickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"iconClickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"dense",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"multiLine",void 0);He([(0,Le.property)()],ae.prototype,"label",void 0);He([(0,Le.property)()],ae.prototype,"iconLabel",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"hideIconTooltip",void 0);He([(0,Le.property)()],ae.prototype,"icon",void 0);He([(0,Le.property)()],ae.prototype,"iconVariant",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);He([(0,Le.property)()],ae.prototype,"typographyVariant",void 0);He([(0,Le.query)("ft-typography slot")],ae.prototype,"slottedContent",void 0);var op=c(f());var np={"ft-chip":ae};(0,op.customElements)(np);var gi=c(v()),ve=c(V()),vp=c(Ze()),xp=c(cr());function ss(t,e,r){return t?e(t):r?.(t)}var yt=c(f());var wn=c(V());var ap=c(v()),se=c(f());var N={fontSize:se.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:se.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:se.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:se.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:se.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:se.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:se.FtCssVariableFactory.extend("--ft-input-label-border-color","",se.designSystemVariables.colorOutline),textColor:se.FtCssVariableFactory.extend("--ft-input-label-text-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:se.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",se.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:se.FtCssVariableFactory.extend("--ft-input-label-background-color","",se.designSystemVariables.colorSurface),borderRadius:se.FtCssVariableFactory.extend("--ft-input-label-border-radius","",se.designSystemVariables.borderRadiusS),colorError:se.FtCssVariableFactory.external(se.designSystemVariables.colorError,"Design system")},lp=ap.css`
1685
1685
  .ft-input-label {
1686
1686
  position: absolute;
1687
1687
  inset: 0;
@@ -1869,7 +1869,7 @@
1869
1869
  ${(0,D.setVariable)(N.verticalSpacing,P.verticalSpacing)};
1870
1870
  ${(0,D.setVariable)(N.horizontalSpacing,P.horizontalSpacing)};
1871
1871
  ${(0,D.setVariable)(N.backgroundColor,P.backgroundColor)};
1872
- ${(0,D.setVariable)(N.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
1872
+ ${(0,D.setVariable)(N.labelMaxWidth,`calc(100% - ${Ue.size} - 8px)`)};
1873
1873
  }
1874
1874
 
1875
1875
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
@@ -2324,7 +2324,7 @@
2324
2324
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2325
2325
  display: block;
2326
2326
  height: ${A.desktopFiltersHeight};
2327
- ${(0,R.setVariable)(ze.gap,"16px")};
2327
+ ${(0,R.setVariable)(Ve.gap,"16px")};
2328
2328
  }
2329
2329
 
2330
2330
  .ft-search-bar--desktop-menu ft-filter {
@@ -2339,15 +2339,15 @@
2339
2339
  }
2340
2340
 
2341
2341
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2342
- max-width: calc(50% - ${ze.gap} / 2);
2342
+ max-width: calc(50% - ${Ve.gap} / 2);
2343
2343
  }
2344
2344
 
2345
2345
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2346
- max-width: max(250px, calc(33% - 2 * ${ze.gap} / 3));
2346
+ max-width: max(250px, calc(33% - 2 * ${Ve.gap} / 3));
2347
2347
  }
2348
2348
 
2349
2349
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2350
- max-width: max(250px, calc(25% - 3 * ${ze.gap} / 4));
2350
+ max-width: max(250px, calc(25% - 3 * ${Ve.gap} / 4));
2351
2351
  }
2352
2352
 
2353
2353
  .ft-search-bar--hierarchical-filter {
@@ -2478,7 +2478,7 @@
2478
2478
  </div>
2479
2479
  `)}
2480
2480
  </div>
2481
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":i=pn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ye.TOPICS;break;case"HTML_PACKAGE":i=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ye.FILE_CODE;break}return Ft.html`
2481
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":i=pn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ye.TOPICS;break;case"HTML_PACKAGE":i=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ye.FILE_CODE;break}return Ft.html`
2482
2482
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2483
2483
  `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Bt.styles=[yi.wordWrap,Ft.css`
2484
2484
  .ft-search-bar--mobile .ft-search-bar--suggestions {
@@ -2570,8 +2570,8 @@
2570
2570
  ft-ripple {
2571
2571
  ${(0,yi.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2572
2572
  }
2573
- `];var He=c(v()),ta=c(cr());var _n=c(f());var Ut=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return He.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=He.html`
2574
- ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?He.html`
2573
+ `];var je=c(v()),ta=c(cr());var _n=c(f());var Ut=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return je.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=je.html`
2574
+ ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?je.html`
2575
2575
  <ft-chip part="selected-filters selected-filter-ft-locale"
2576
2576
  ?dense=${this.searchBar.dense&&!e}
2577
2577
  ?clickable=${e}
@@ -2581,46 +2581,46 @@
2581
2581
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2582
2582
  </ft-chip>
2583
2583
  `:null}
2584
- ${(0,ta.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=pd(n);return(0,ta.repeat)(s,o=>{let a=n.label+": "+cd(o),l=n.key.replace(":","-"),u=He.html`
2584
+ ${(0,ta.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=pd(n);return(0,ta.repeat)(s,o=>{let a=n.label+": "+cd(o),l=n.key.replace(":","-"),u=je.html`
2585
2585
  <ft-chip
2586
2586
  part="selected-filters selected-filter-${l}"
2587
2587
  ?dense=${this.searchBar.dense&&!e}
2588
2588
  ?clickable=${e}
2589
2589
  ?removable=${!e}
2590
- icon="${e?He.nothing:"close"}"
2590
+ icon="${e?je.nothing:"close"}"
2591
2591
  label="${a}"
2592
- title="${r?a:He.nothing}"
2592
+ title="${r?a:je.nothing}"
2593
2593
  @click=${()=>this.openMobileFilters(n.key)}
2594
2594
  @icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(d=>d!==o))}
2595
2595
  data-key="${n.key}"
2596
2596
  data-value="${o}">
2597
2597
  ${ld(o)}
2598
2598
  </ft-chip>
2599
- `;return r?u:He.html`
2599
+ `;return r?u:je.html`
2600
2600
  <ft-tooltip inline text="${a}">
2601
2601
  ${u}
2602
2602
  </ft-tooltip>
2603
2603
  `})})}
2604
- ${e?He.html`
2604
+ ${e?je.html`
2605
2605
  <ft-chip part="selected-filters mobile-filters-opener"
2606
2606
  icon="plus"
2607
2607
  clickable
2608
2608
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2609
2609
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2610
2610
  </ft-chip>
2611
- `:He.nothing}
2612
- `;return r?He.html`
2611
+ `:je.nothing}
2612
+ `;return r?je.html`
2613
2613
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2614
2614
  class="ft-search-bar--selected-filters"
2615
2615
  part="selected-filters-container"
2616
2616
  exportpartsPrefix="selected-filters-container">
2617
2617
  ${i}
2618
2618
  </ft-snap-scroll>
2619
- `:He.html`
2619
+ `:je.html`
2620
2620
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2621
2621
  ${i}
2622
2622
  </div>
2623
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Ut.styles=He.css`
2623
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Ut.styles=je.css`
2624
2624
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2625
2625
  flex-shrink: 0;
2626
2626
  display: flex;
@@ -2631,7 +2631,7 @@
2631
2631
 
2632
2632
  ft-snap-scroll.ft-search-bar--selected-filters {
2633
2633
  overflow: hidden;
2634
- ${(0,_n.setVariable)(ze.gap,"4px")};
2634
+ ${(0,_n.setVariable)(Ve.gap,"4px")};
2635
2635
  }
2636
2636
 
2637
2637
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2650,7 +2650,7 @@
2650
2650
  .ft-search-bar--selected-filters ft-chip {
2651
2651
  flex-grow: 0;
2652
2652
  }
2653
- `;var Rt=c(v());var Lp=c(Ze()),$p=c(f()),Bf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},bi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Rt.html`
2653
+ `;var Rt=c(v());var Lp=c(Ze()),$p=c(f()),Uf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},bi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Rt.html`
2654
2654
  <div class="${(0,Lp.classMap)(r)}" part="container" tabindex="-1">
2655
2655
  <div class="ft-search-bar" role="search">
2656
2656
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2709,19 +2709,19 @@
2709
2709
  </div>
2710
2710
  `}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};bi.styles=Rt.css`
2711
2711
 
2712
- `;Bf([(0,$p.ignoreComposingEvents)()],bi.prototype,"onSearchBarKeyDown",null);var je=c(v()),Pp=c(cr());var Dp=c(Ze()),Ip=c(f()),Uf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return je.html`
2712
+ `;Uf([(0,$p.ignoreComposingEvents)()],bi.prototype,"onSearchBarKeyDown",null);var qe=c(v()),Pp=c(cr());var Dp=c(Ze()),Ip=c(f()),zf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return qe.html`
2713
2713
  <div class="${(0,Dp.classMap)(r)}" part="container" tabindex="-1">
2714
2714
  <div class="ft-search-bar" part="search-bar" role="search">
2715
2715
  ${this.renderSearchBarLeftAction()}
2716
2716
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
2717
2717
  <div class="ft-search-bar--input-outline" part="input-outline">
2718
- ${this.searchBar.dense?this.selectedFacetsManager.render():je.nothing}
2718
+ ${this.searchBar.dense?this.selectedFacetsManager.render():qe.nothing}
2719
2719
  <input class="ft-search-bar--input ft-typography--body2"
2720
2720
  role="combobox"
2721
2721
  aria-autocomplete="list"
2722
2722
  aria-controls="${this.suggestManager.listboxId}"
2723
2723
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2724
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:je.nothing}"
2724
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:qe.nothing}"
2725
2725
  part="input"
2726
2726
  type="search"
2727
2727
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2736,9 +2736,9 @@
2736
2736
  ${this.renderDesktopSearchBarButtons()}
2737
2737
  ${this.searchBar.renderDesktopFloatingMenu()}
2738
2738
  </div>
2739
- ${this.searchBar.dense?je.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2739
+ ${this.searchBar.dense?qe.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2740
2740
  </div>
2741
- `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?je.nothing:je.html`
2741
+ `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?qe.nothing:qe.html`
2742
2742
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2743
2743
  part="filters-opener"
2744
2744
  trailingIcon
@@ -2750,24 +2750,24 @@
2750
2750
  >
2751
2751
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2752
2752
  </ft-button>
2753
- `:this.searchBar.hasLocaleSelector()?je.html`
2753
+ `:this.searchBar.hasLocaleSelector()?qe.html`
2754
2754
  <ft-select outlined
2755
2755
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2756
2756
  part="content-locale select-ft-locale"
2757
2757
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2758
2758
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2759
2759
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2760
- ${(0,Pp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>je.html`
2760
+ ${(0,Pp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>qe.html`
2761
2761
  <ft-select-option .value=${e.lang}
2762
2762
  label="${e.label}"
2763
2763
  ?selected=${e.lang==this.searchBar.contentLocale}>
2764
2764
  </ft-select-option>
2765
2765
  `)}
2766
2766
  </ft-select>
2767
- `:je.nothing}renderDesktopSearchBarButtons(){return je.html`
2767
+ `:qe.nothing}renderDesktopSearchBarButtons(){return qe.html`
2768
2768
  <div class="ft-search-bar--actions"
2769
2769
  part="search-bar-actions">
2770
- ${this.searchBar.query?je.html`
2770
+ ${this.searchBar.query?qe.html`
2771
2771
  <ft-button class="ft-search-bar--clear-query"
2772
2772
  part="clear-query"
2773
2773
  icon="close"
@@ -2786,9 +2786,9 @@
2786
2786
  @click=${()=>this.searchBar.onLaunchSearch()}
2787
2787
  ></ft-button>
2788
2788
  </div>
2789
- `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};vi.styles=je.css`
2789
+ `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};vi.styles=qe.css`
2790
2790
 
2791
- `;Uf([(0,Ip.ignoreComposingEvents)()],vi.prototype,"onSearchBarKeyDown",null);var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Mp={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ra=class extends CustomEvent{constructor(e){super("change",{detail:e})}},zf=()=>{},w=class extends Y.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Y.ParametrizedLabelResolver(Mp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=mt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Bt(this),this.selectedFacetsManager=new Ut(this),this.desktopSearchBarManager=new vi(this),this.mobileSearchBarManager=new bi(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Y.Debouncer(10),this.updateLocalesDebouncer=new Y.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new Y.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===mt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,Y.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
2791
+ `;zf([(0,Ip.ignoreComposingEvents)()],vi.prototype,"onSearchBarKeyDown",null);var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Mp={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ra=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Vf=()=>{},w=class extends Y.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Y.ParametrizedLabelResolver(Mp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=mt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Bt(this),this.selectedFacetsManager=new Ut(this),this.desktopSearchBarManager=new vi(this),this.mobileSearchBarManager=new bi(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Y.Debouncer(10),this.updateLocalesDebouncer=new Y.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new Y.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===mt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,Y.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
2792
2792
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2793
2793
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2794
2794
  ${this.renderLiveText()}
@@ -2928,14 +2928,14 @@
2928
2928
  ></ft-filter>
2929
2929
  `})}
2930
2930
  </ft-snap-scroll>
2931
- `:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,o;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(Mp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>yn(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(o=((s=this.presets)!==null&&s!==void 0?s:[]).find(a=>this.compareRequests(a,this.request)))===null||o===void 0?void 0:o.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new ra(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(o=>o.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(zf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Y.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Y.flatDeep)(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,Y.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?H.nothing:H.html`
2931
+ `:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,o;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(Mp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>yn(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(o=((s=this.presets)!==null&&s!==void 0?s:[]).find(a=>this.compareRequests(a,this.request)))===null||o===void 0?void 0:o.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new ra(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(o=>o.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(Vf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Y.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Y.flatDeep)(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,Y.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?H.nothing:H.html`
2932
2932
  <div class="ft-search-bar--floating-panel"
2933
2933
  id="ft-search-bar-floating-panel"
2934
2934
  @keyup=${this.onFloatingContainerKeyUp}
2935
2935
  part="floating-panel"
2936
2936
  tabindex="-1">
2937
2937
  ${this.renderDesktopMenu()}
2938
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Nt,"ft-accordion-item":gt,"ft-button":C,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":fr,"ft-snap-scroll":be,"ft-tooltip":he,"ft-typography":K,"ft-radio-group":st,"ft-radio":Ce};w.styles=[Zt,Y.noTextInputDefaultClearButton,wp,Op,Ut.styles,Bt.styles,Y.screenReaderStyles];F([(0,B.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,B.property)()],w.prototype,"mode",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);F([(0,B.property)()],w.prototype,"baseUrl",void 0);F([(0,B.property)()],w.prototype,"apiIntegrationIdentifier",void 0);F([(0,B.property)()],w.prototype,"contentLocale",void 0);F([(0,B.state)()],w.prototype,"availableContentLocales",void 0);F([(0,B.state)()],w.prototype,"availableContentLocalesInitialized",void 0);F([(0,B.property)()],w.prototype,"uiLocale",void 0);F([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);F([(0,B.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);F([(0,B.property)()],w.prototype,"searchRequestSerializer",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);F([(0,B.state)()],w.prototype,"metadataFilters",void 0);F([(0,B.state)()],w.prototype,"sizeCategory",void 0);F([(0,B.state)()],w.prototype,"displayFacets",void 0);F([(0,B.state)()],w.prototype,"mobileMenuOpen",void 0);F([(0,B.state)()],w.prototype,"facets",void 0);F([(0,B.state)()],w.prototype,"facetsInitialized",void 0);F([(0,B.query)(".ft-search-bar--container")],w.prototype,"container",void 0);F([(0,B.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);F([(0,B.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);F([(0,B.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);F([(0,B.query)(".ft-search-bar--input")],w.prototype,"input",void 0);F([(0,B.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);F([(0,B.state)()],w.prototype,"query",void 0);F([(0,B.state)()],w.prototype,"suggestions",void 0);F([(0,B.state)()],w.prototype,"recentSearches",void 0);F([(0,B.state)()],w.prototype,"scrollToFacet",void 0);F([(0,B.state)()],w.prototype,"api",void 0);F([(0,B.state)()],w.prototype,"displaySuggestListbox",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestOptionId",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,B.state)()],w.prototype,"facetsLoaded",void 0);var Fp=c(f());var Np={"ft-search-bar":w};(0,Fp.customElements)(Np);var zp=Bp.css`
2938
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Nt,"ft-accordion-item":gt,"ft-button":C,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":fr,"ft-snap-scroll":be,"ft-tooltip":he,"ft-typography":K,"ft-radio-group":st,"ft-radio":Ae};w.styles=[Zt,Y.noTextInputDefaultClearButton,wp,Op,Ut.styles,Bt.styles,Y.screenReaderStyles];F([(0,B.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,B.property)()],w.prototype,"mode",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);F([(0,B.property)()],w.prototype,"baseUrl",void 0);F([(0,B.property)()],w.prototype,"apiIntegrationIdentifier",void 0);F([(0,B.property)()],w.prototype,"contentLocale",void 0);F([(0,B.state)()],w.prototype,"availableContentLocales",void 0);F([(0,B.state)()],w.prototype,"availableContentLocalesInitialized",void 0);F([(0,B.property)()],w.prototype,"uiLocale",void 0);F([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);F([(0,B.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);F([(0,B.property)()],w.prototype,"searchRequestSerializer",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);F([(0,B.state)()],w.prototype,"metadataFilters",void 0);F([(0,B.state)()],w.prototype,"sizeCategory",void 0);F([(0,B.state)()],w.prototype,"displayFacets",void 0);F([(0,B.state)()],w.prototype,"mobileMenuOpen",void 0);F([(0,B.state)()],w.prototype,"facets",void 0);F([(0,B.state)()],w.prototype,"facetsInitialized",void 0);F([(0,B.query)(".ft-search-bar--container")],w.prototype,"container",void 0);F([(0,B.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);F([(0,B.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);F([(0,B.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);F([(0,B.query)(".ft-search-bar--input")],w.prototype,"input",void 0);F([(0,B.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);F([(0,B.state)()],w.prototype,"query",void 0);F([(0,B.state)()],w.prototype,"suggestions",void 0);F([(0,B.state)()],w.prototype,"recentSearches",void 0);F([(0,B.state)()],w.prototype,"scrollToFacet",void 0);F([(0,B.state)()],w.prototype,"api",void 0);F([(0,B.state)()],w.prototype,"displaySuggestListbox",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestOptionId",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,B.state)()],w.prototype,"facetsLoaded",void 0);var Fp=c(f());var Np={"ft-search-bar":w};(0,Fp.customElements)(Np);var zp=Bp.css`
2939
2939
  * {
2940
2940
  box-sizing: border-box;
2941
2941
  }
@@ -2998,7 +2998,7 @@
2998
2998
  ${(0,ia.repeat)(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
2999
2999
  ${(0,ia.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
3000
3000
  </div>
3001
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ue.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":s=pn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ye.TOPICS;break;case"HTML_PACKAGE":s=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ye.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,l=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Vr.nothing;return Vr.html`
3001
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",ze.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":s=pn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ye.TOPICS;break;case"HTML_PACKAGE":s=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ye.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,l=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Vr.nothing;return Vr.html`
3002
3002
  <div part="suggestion-container"
3003
3003
  class="ft-search-input-suggestion--container">
3004
3004
  <a href="${u}"
@@ -3028,7 +3028,7 @@
3028
3028
  </ft-button>
3029
3029
  `:Vr.nothing}
3030
3030
  </div>
3031
- `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};mr.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};mr.styles=[Vp.wordWrap,zp];var De=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Vf=5;function Hf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Vf)}var le=class extends di(mn){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new mr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Wt.get().serializeToCurrentPageIfPossible(n,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return xi.html`
3031
+ `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};mr.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};mr.styles=[Vp.wordWrap,zp];var De=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Hf=5;function jf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Hf)}var le=class extends di(mn){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new mr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Wt.get().serializeToCurrentPageIfPossible(n,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return xi.html`
3032
3032
  <div class="${(0,Hp.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3033
3033
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3034
3034
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3075,7 +3075,7 @@
3075
3075
  ></ft-button>
3076
3076
  </div>
3077
3077
  </div>
3078
- `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...mr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,Ju,...mr.styles,Ne.screenReaderStyles];De([(0,Ne.redux)()],le.prototype,"request",void 0);De([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);De([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);De([(0,Ne.redux)({selector:Hf})],le.prototype,"recentQuerySuggestions",void 0);De([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);De([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);De([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);De([an()],le.prototype,"placeholder",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);De([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);De([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var jp={"ft-search-input":le};(0,qp.customElements)(jp);})();
3078
+ `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...mr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,Ju,...mr.styles,Ne.screenReaderStyles];De([(0,Ne.redux)()],le.prototype,"request",void 0);De([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);De([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);De([(0,Ne.redux)({selector:jf})],le.prototype,"recentQuerySuggestions",void 0);De([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);De([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);De([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);De([an()],le.prototype,"placeholder",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);De([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);De([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var jp={"ft-search-input":le};(0,qp.customElements)(jp);})();
3079
3079
  /*! Bundled license information:
3080
3080
 
3081
3081
  lit-html/lit-html.js: