@fluid-topics/ft-reader-search-in-document 2.2.48 → 2.2.49

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 Lx=Object.create;var Ma=Object.defineProperty;var Ix=Object.getOwnPropertyDescriptor;var $x=Object.getOwnPropertyNames;var Dx=Object.getPrototypeOf,Px=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Wi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ni=(t,e)=>{for(var r in e)Ma(t,r,{get:e[r],enumerable:!0})},Mx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $x(e))!Px.call(t,s)&&s!==r&&Ma(t,s,{get:()=>e[s],enumerable:!(i=Ix(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Lx(Dx(t)):{},Mx(e||!t||!t.__esModule?Ma(r,"default",{value:t,enumerable:!0}):r,t));var f=Wi((_E,ju)=>{ju.exports=ftGlobals.wcUtils});var y=Wi((RE,qu)=>{qu.exports=ftGlobals.lit});var Yu,Se,Ku,U,Wu,Gu,Qu,Xu,Zu,Er=l(()=>{"use strict";Yu=c(y()),Se=c(f()),Ku=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorContent),U={color:Ku,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ku),opacityContentOnSurfacePressed:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Se.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Wu=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorPrimary),Gu={color:Wu,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wu)},Qu=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorSecondary),Xu={color:Qu,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Qu)},Zu=Yu.css`
1
+ "use strict";(()=>{var Lx=Object.create;var Ma=Object.defineProperty;var Ix=Object.getOwnPropertyDescriptor;var $x=Object.getOwnPropertyNames;var Dx=Object.getPrototypeOf,Px=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Wi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},oi=(t,e)=>{for(var r in e)Ma(t,r,{get:e[r],enumerable:!0})},Mx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $x(e))!Px.call(t,s)&&s!==r&&Ma(t,s,{get:()=>e[s],enumerable:!(i=Ix(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Lx(Dx(t)):{},Mx(e||!t||!t.__esModule?Ma(r,"default",{value:t,enumerable:!0}):r,t));var f=Wi((_E,ju)=>{ju.exports=ftGlobals.wcUtils});var y=Wi((RE,qu)=>{qu.exports=ftGlobals.lit});var Yu,Se,Ku,U,Wu,Gu,Qu,Xu,Zu,Er=l(()=>{"use strict";Yu=c(y()),Se=c(f()),Ku=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorContent),U={color:Ku,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ku),opacityContentOnSurfacePressed:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Se.FtCssVariableFactory.external(Se.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Se.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Wu=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorPrimary),Gu={color:Wu,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wu)},Qu=Se.FtCssVariableFactory.extend("--ft-ripple-color","",Se.designSystemVariables.colorSecondary),Xu={color:Qu,backgroundColor:Se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Qu)},Zu=Yu.css`
2
2
  :host {
3
3
  display: contents;
4
4
  /* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
@@ -112,7 +112,7 @@
112
112
  opacity: ${U.opacityContentOnSurfacePressed};
113
113
  transform: translate(-50%, -50%) scale(1);
114
114
  }
115
- `});var P=Wi((IE,td)=>{td.exports=ftGlobals.litDecorators});var nt=Wi(($E,rd)=>{rd.exports=ftGlobals.litClassMap});var id,Pe,sd,Is,ot,T,Na=l(()=>{"use strict";id=c(y()),Pe=c(P()),sd=c(nt()),Is=c(f());Er();ot=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},T=class extends Is.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 Is.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 Is.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:n}=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(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-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 id.html`
115
+ `});var P=Wi((IE,td)=>{td.exports=ftGlobals.litDecorators});var ot=Wi(($E,rd)=>{rd.exports=ftGlobals.litClassMap});var id,Pe,sd,Is,nt,T,Na=l(()=>{"use strict";id=c(y()),Pe=c(P()),sd=c(ot()),Is=c(f());Er();nt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},T=class extends Is.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 Is.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 Is.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:o}=this.getCoordinates(e),n=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-n.x:n.width/2),this.originY=Math.round(o!=null?o-n.y:n.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 id.html`
116
116
  <style>
117
117
  .ft-ripple .ft-ripple--effect {
118
118
  left: ${this.originX}px;
@@ -123,9 +123,9 @@
123
123
  <div class="ft-ripple--background"></div>
124
124
  <div class="ft-ripple--effect"></div>
125
125
  </div>
126
- `}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)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=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",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,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",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,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,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(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()}};T.elementDefinitions={};T.styles=Zu;ot([(0,Pe.property)({type:Boolean})],T.prototype,"primary",void 0);ot([(0,Pe.property)({type:Boolean})],T.prototype,"secondary",void 0);ot([(0,Pe.property)({type:Boolean})],T.prototype,"unbounded",void 0);ot([(0,Pe.property)({type:Boolean})],T.prototype,"activated",void 0);ot([(0,Pe.property)({type:Boolean})],T.prototype,"selected",void 0);ot([(0,Pe.property)({type:Boolean})],T.prototype,"disabled",void 0);ot([(0,Pe.state)()],T.prototype,"hovered",void 0);ot([(0,Pe.state)()],T.prototype,"focused",void 0);ot([(0,Pe.state)()],T.prototype,"pressed",void 0);ot([(0,Pe.state)()],T.prototype,"rippling",void 0);ot([(0,Pe.state)()],T.prototype,"originX",void 0);ot([(0,Pe.state)()],T.prototype,"originY",void 0);ot([(0,Pe.query)(".ft-ripple")],T.prototype,"ripple",void 0);ot([(0,Pe.query)(".ft-ripple--effect")],T.prototype,"rippleEffect",void 0)});var nd=l(()=>{"use strict"});var od,ad=l(()=>{"use strict";Na();od={"ft-ripple":T}});var ld,cd=l(()=>{"use strict";ld=c(f());ad();(0,ld.customElements)(od)});var Qe=l(()=>{"use strict";Na();Er();nd();cd()});function Cd(t,e){if(!qa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return dd!==void 0?dd.createHTML(e):e}function Gi(t,e,r=t,i){if(e===Ps)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=Ds(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Gi(t,s._$AS(t,e.values),s,i)),e}var ja,ud,Pn,dd,yd,Mr,bd,Nx,li,Mn,Ds,qa,Fx,Fa,$s,pd,hd,oi,fd,md,vd,Ka,xd,Sd,Ed,Ps,Ee,gd,ai,Bx,Ms,Ba,Nn,Qi,Ua,Va,za,Ha,Ux,Wa=l(()=>{ja=globalThis,ud=t=>t,Pn=ja.trustedTypes,dd=Pn?Pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,yd="$lit$",Mr=`lit$${Math.random().toFixed(9).slice(2)}$`,bd="?"+Mr,Nx=`<${bd}>`,li=document,Mn=()=>li.createComment(""),Ds=t=>t===null||typeof t!="object"&&typeof t!="function",qa=Array.isArray,Fx=t=>qa(t)||typeof t?.[Symbol.iterator]=="function",Fa=`[
127
- \f\r]`,$s=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pd=/-->/g,hd=/>/g,oi=RegExp(`>|${Fa}(?:([^\\s"'>=/]+)(${Fa}*=${Fa}*(?:[^
128
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fd=/'/g,md=/"/g,vd=/^(?:script|style|textarea|title)$/i,Ka=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),xd=Ka(1),Sd=Ka(2),Ed=Ka(3),Ps=Symbol.for("lit-noChange"),Ee=Symbol.for("lit-nothing"),gd=new WeakMap,ai=li.createTreeWalker(li,129);Bx=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=$s;for(let a=0;a<r;a++){let u=t[a],d,h,p=-1,m=0;for(;m<u.length&&(o.lastIndex=m,h=o.exec(u),h!==null);)m=o.lastIndex,o===$s?h[1]==="!--"?o=pd:h[1]!==void 0?o=hd:h[2]!==void 0?(vd.test(h[2])&&(s=RegExp("</"+h[2],"g")),o=oi):h[3]!==void 0&&(o=oi):o===oi?h[0]===">"?(o=s??$s,p=-1):h[1]===void 0?p=-2:(p=o.lastIndex-h[2].length,d=h[1],o=h[3]===void 0?oi:h[3]==='"'?md:fd):o===md||o===fd?o=oi:o===pd||o===hd?o=$s:(o=oi,s=void 0);let S=o===oi&&t[a+1].startsWith("/>")?" ":"";n+=o===$s?u+Nx:p>=0?(i.push(d),u.slice(0,p)+yd+u.slice(p)+Mr+S):u+Mr+(p===-2?a:S)}return[Cd(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ms=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,u=this.parts,[d,h]=Bx(e,r);if(this.el=t.createElement(d,i),ai.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ai.nextNode())!==null&&u.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(yd)){let m=h[o++],S=s.getAttribute(p).split(Mr),w=/([.?@])?(.*)/.exec(m);u.push({type:1,index:n,name:w[2],strings:S,ctor:w[1]==="."?Ua:w[1]==="?"?Va:w[1]==="@"?za:Qi}),s.removeAttribute(p)}else p.startsWith(Mr)&&(u.push({type:6,index:n}),s.removeAttribute(p));if(vd.test(s.tagName)){let p=s.textContent.split(Mr),m=p.length-1;if(m>0){s.textContent=Pn?Pn.emptyScript:"";for(let S=0;S<m;S++)s.append(p[S],Mn()),ai.nextNode(),u.push({type:2,index:++n});s.append(p[m],Mn())}}}else if(s.nodeType===8)if(s.data===bd)u.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Mr,p+1))!==-1;)u.push({type:7,index:n}),p+=Mr.length-1}n++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};Ba=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,s=(e?.creationScope??li).importNode(r,!0);ai.currentNode=s;let n=ai.nextNode(),o=0,a=0,u=i[0];for(;u!==void 0;){if(o===u.index){let d;u.type===2?d=new Nn(n,n.nextSibling,this,e):u.type===1?d=new u.ctor(n,u.name,u.strings,this,e):u.type===6&&(d=new Ha(n,this,e)),this._$AV.push(d),u=i[++a]}o!==u?.index&&(n=ai.nextNode(),o++)}return ai.currentNode=li,s}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++}},Nn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=Ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=Gi(this,e,r),Ds(e)?e===Ee||e==null||e===""?(this._$AH!==Ee&&this._$AR(),this._$AH=Ee):e!==this._$AH&&e!==Ps&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fx(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!==Ee&&Ds(this._$AH)?this._$AA.nextSibling.data=e:this.T(li.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ms.createElement(Cd(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Ba(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=gd.get(e.strings);return r===void 0&&gd.set(e.strings,r=new Ms(e)),r}k(e){qa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(Mn()),this.O(Mn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ud(e).nextSibling;ud(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=Ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ee}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=Gi(this,e,r,0),o=!Ds(e)||e!==this._$AH&&e!==Ps,o&&(this._$AH=e);else{let a=e,u,d;for(e=n[0],u=0;u<n.length-1;u++)d=Gi(this,a[i+u],r,u),d===Ps&&(d=this._$AH[u]),o||=!Ds(d)||d!==this._$AH[u],d===Ee?e=Ee:e!==Ee&&(e+=(d??"")+n[u+1]),this._$AH[u]=d}o&&!s&&this.j(e)}j(e){e===Ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ua=class extends Qi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ee?void 0:e}},Va=class extends Qi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ee)}},za=class extends Qi{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Gi(this,e,r,0)??Ee)===Ps)return;let i=this._$AH,s=e===Ee&&i!==Ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Ee&&(i===Ee||s);s&&this.element.removeEventListener(this.name,this,i),n&&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)}},Ha=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){Gi(this,e)}},Ux=ja.litHtmlPolyfillSupport;Ux?.(Ms,Nn),(ja.litHtmlVersions??=[]).push("3.3.3")});var wd,Vx,Ga,Ad,Qa,Xa,KE,WE,Od=l(()=>{Wa();wd=Symbol.for(""),Vx=t=>{if(t?.r===wd)return t?._$litStatic$},Ga=t=>({_$litStatic$:t,r:wd}),Ad=new Map,Qa=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],u,d=0,h=!1;for(;d<i;){for(u=e[d];d<i&&(n=r[d],(s=Vx(n))!==void 0);)u+=s+e[++d],h=!0;d!==i&&a.push(n),o.push(u),d++}if(d===i&&o.push(e[i]),h){let p=o.join("$$lit$$");(e=Ad.get(p))===void 0&&(o.raw=o,Ad.set(p,e=o)),r=a}return t(e,...r)},Xa=Qa(xd),KE=Qa(Sd),WE=Qa(Ed)});var _d=l(()=>{Od()});var W,Fn=l(()=>{"use strict";(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"})(W||(W={}))});var kt,g,Rd,Cr,v,ci,ui,di,pi,nr,Ce,at,hi,fi,Ht,Td,kd,Ld,Id,$d,Nr,Fr,Dd,Pd,Md,Nd,jt=l(()=>{"use strict";kt=c(y()),g=c(f()),Rd=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Cr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Cr,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"),textDecoration:g.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Rd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",v.textDecoration,"inherit")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Rd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",v.textDecoration,"inherit")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",v.textDecoration,"inherit")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",v.textDecoration,"inherit")},nr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",v.textDecoration,"inherit")},Ce={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",v.textDecoration,"inherit")},at={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",v.textDecoration,"inherit")},hi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",v.textDecoration,"inherit")},fi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",v.textDecoration,"inherit")},Ht={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",v.textDecoration,"inherit")},Td=kt.css`
126
+ `}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)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},n={passive:!0};e.addEventListener("mouseover",this.startHover,n),e.addEventListener("mousemove",this.moveRipple,n),e.addEventListener("mouseleave",this.endHover,n),e.addEventListener("mousedown",i,n),e.addEventListener("touchstart",s,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",o,n),e.addEventListener("focus",this.startFocus,n),e.addEventListener("blur",this.endFocus,n),e.addEventListener("focusin",this.startFocus,n),e.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,n),e.removeEventListener("mousemove",this.moveRipple,n),e.removeEventListener("mouseleave",this.endHover,n),e.removeEventListener("mousedown",i,n),e.removeEventListener("touchstart",s,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",o,n),e.removeEventListener("focus",this.startFocus,n),e.removeEventListener("blur",this.endFocus,n),e.removeEventListener("focusin",this.startFocus,n),e.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,o;return r.x!=null?{x:s,y:o}=r:i.touches!=null&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}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()}};T.elementDefinitions={};T.styles=Zu;nt([(0,Pe.property)({type:Boolean})],T.prototype,"primary",void 0);nt([(0,Pe.property)({type:Boolean})],T.prototype,"secondary",void 0);nt([(0,Pe.property)({type:Boolean})],T.prototype,"unbounded",void 0);nt([(0,Pe.property)({type:Boolean})],T.prototype,"activated",void 0);nt([(0,Pe.property)({type:Boolean})],T.prototype,"selected",void 0);nt([(0,Pe.property)({type:Boolean})],T.prototype,"disabled",void 0);nt([(0,Pe.state)()],T.prototype,"hovered",void 0);nt([(0,Pe.state)()],T.prototype,"focused",void 0);nt([(0,Pe.state)()],T.prototype,"pressed",void 0);nt([(0,Pe.state)()],T.prototype,"rippling",void 0);nt([(0,Pe.state)()],T.prototype,"originX",void 0);nt([(0,Pe.state)()],T.prototype,"originY",void 0);nt([(0,Pe.query)(".ft-ripple")],T.prototype,"ripple",void 0);nt([(0,Pe.query)(".ft-ripple--effect")],T.prototype,"rippleEffect",void 0)});var od=l(()=>{"use strict"});var nd,ad=l(()=>{"use strict";Na();nd={"ft-ripple":T}});var ld,cd=l(()=>{"use strict";ld=c(f());ad();(0,ld.customElements)(nd)});var Qe=l(()=>{"use strict";Na();Er();od();cd()});function Cd(t,e){if(!qa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return dd!==void 0?dd.createHTML(e):e}function Gi(t,e,r=t,i){if(e===Ps)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,o=Ds(e)?void 0:e._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Gi(t,s._$AS(t,e.values),s,i)),e}var ja,ud,Po,dd,yd,Mr,bd,Nx,li,Mo,Ds,qa,Fx,Fa,$s,pd,hd,ni,fd,md,vd,Ka,xd,Sd,Ed,Ps,Ee,gd,ai,Bx,Ms,Ba,No,Qi,Ua,Va,za,Ha,Ux,Wa=l(()=>{ja=globalThis,ud=t=>t,Po=ja.trustedTypes,dd=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,yd="$lit$",Mr=`lit$${Math.random().toFixed(9).slice(2)}$`,bd="?"+Mr,Nx=`<${bd}>`,li=document,Mo=()=>li.createComment(""),Ds=t=>t===null||typeof t!="object"&&typeof t!="function",qa=Array.isArray,Fx=t=>qa(t)||typeof t?.[Symbol.iterator]=="function",Fa=`[
127
+ \f\r]`,$s=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pd=/-->/g,hd=/>/g,ni=RegExp(`>|${Fa}(?:([^\\s"'>=/]+)(${Fa}*=${Fa}*(?:[^
128
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),fd=/'/g,md=/"/g,vd=/^(?:script|style|textarea|title)$/i,Ka=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),xd=Ka(1),Sd=Ka(2),Ed=Ka(3),Ps=Symbol.for("lit-noChange"),Ee=Symbol.for("lit-nothing"),gd=new WeakMap,ai=li.createTreeWalker(li,129);Bx=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=$s;for(let a=0;a<r;a++){let u=t[a],d,h,p=-1,m=0;for(;m<u.length&&(n.lastIndex=m,h=n.exec(u),h!==null);)m=n.lastIndex,n===$s?h[1]==="!--"?n=pd:h[1]!==void 0?n=hd:h[2]!==void 0?(vd.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=ni):h[3]!==void 0&&(n=ni):n===ni?h[0]===">"?(n=s??$s,p=-1):h[1]===void 0?p=-2:(p=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?ni:h[3]==='"'?md:fd):n===md||n===fd?n=ni:n===pd||n===hd?n=$s:(n=ni,s=void 0);let S=n===ni&&t[a+1].startsWith("/>")?" ":"";o+=n===$s?u+Nx:p>=0?(i.push(d),u.slice(0,p)+yd+u.slice(p)+Mr+S):u+Mr+(p===-2?a:S)}return[Cd(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ms=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,n=0,a=e.length-1,u=this.parts,[d,h]=Bx(e,r);if(this.el=t.createElement(d,i),ai.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ai.nextNode())!==null&&u.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(yd)){let m=h[n++],S=s.getAttribute(p).split(Mr),w=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:w[2],strings:S,ctor:w[1]==="."?Ua:w[1]==="?"?Va:w[1]==="@"?za:Qi}),s.removeAttribute(p)}else p.startsWith(Mr)&&(u.push({type:6,index:o}),s.removeAttribute(p));if(vd.test(s.tagName)){let p=s.textContent.split(Mr),m=p.length-1;if(m>0){s.textContent=Po?Po.emptyScript:"";for(let S=0;S<m;S++)s.append(p[S],Mo()),ai.nextNode(),u.push({type:2,index:++o});s.append(p[m],Mo())}}}else if(s.nodeType===8)if(s.data===bd)u.push({type:2,index:o});else{let p=-1;for(;(p=s.data.indexOf(Mr,p+1))!==-1;)u.push({type:7,index:o}),p+=Mr.length-1}o++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};Ba=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,s=(e?.creationScope??li).importNode(r,!0);ai.currentNode=s;let o=ai.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new No(o,o.nextSibling,this,e):u.type===1?d=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(d=new Ha(o,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(o=ai.nextNode(),n++)}return ai.currentNode=li,s}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++}},No=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=Ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=Gi(this,e,r),Ds(e)?e===Ee||e==null||e===""?(this._$AH!==Ee&&this._$AR(),this._$AH=Ee):e!==this._$AH&&e!==Ps&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fx(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!==Ee&&Ds(this._$AH)?this._$AA.nextSibling.data=e:this.T(li.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ms.createElement(Cd(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let o=new Ba(s,this),n=o.u(this.options);o.p(r),this.T(n),this._$AH=o}}_$AC(e){let r=gd.get(e.strings);return r===void 0&&gd.set(e.strings,r=new Ms(e)),r}k(e){qa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let o of e)s===r.length?r.push(i=new t(this.O(Mo()),this.O(Mo()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ud(e).nextSibling;ud(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=Ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ee}_$AI(e,r=this,i,s){let o=this.strings,n=!1;if(o===void 0)e=Gi(this,e,r,0),n=!Ds(e)||e!==this._$AH&&e!==Ps,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=Gi(this,a[i+u],r,u),d===Ps&&(d=this._$AH[u]),n||=!Ds(d)||d!==this._$AH[u],d===Ee?e=Ee:e!==Ee&&(e+=(d??"")+o[u+1]),this._$AH[u]=d}n&&!s&&this.j(e)}j(e){e===Ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ua=class extends Qi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ee?void 0:e}},Va=class extends Qi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ee)}},za=class extends Qi{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=Gi(this,e,r,0)??Ee)===Ps)return;let i=this._$AH,s=e===Ee&&i!==Ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Ee&&(i===Ee||s);s&&this.element.removeEventListener(this.name,this,i),o&&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)}},Ha=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){Gi(this,e)}},Ux=ja.litHtmlPolyfillSupport;Ux?.(Ms,No),(ja.litHtmlVersions??=[]).push("3.3.3")});var wd,Vx,Ga,Ad,Qa,Xa,KE,WE,Od=l(()=>{Wa();wd=Symbol.for(""),Vx=t=>{if(t?.r===wd)return t?._$litStatic$},Ga=t=>({_$litStatic$:t,r:wd}),Ad=new Map,Qa=t=>(e,...r)=>{let i=r.length,s,o,n=[],a=[],u,d=0,h=!1;for(;d<i;){for(u=e[d];d<i&&(o=r[d],(s=Vx(o))!==void 0);)u+=s+e[++d],h=!0;d!==i&&a.push(o),n.push(u),d++}if(d===i&&n.push(e[i]),h){let p=n.join("$$lit$$");(e=Ad.get(p))===void 0&&(n.raw=n,Ad.set(p,e=n)),r=a}return t(e,...r)},Xa=Qa(xd),KE=Qa(Sd),WE=Qa(Ed)});var _d=l(()=>{Od()});var W,Fo=l(()=>{"use strict";(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"})(W||(W={}))});var kt,g,Rd,Cr,v,ci,ui,di,pi,or,Ce,at,hi,fi,Ht,Td,kd,Ld,Id,$d,Nr,Fr,Dd,Pd,Md,Nd,jt=l(()=>{"use strict";kt=c(y()),g=c(f()),Rd=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Cr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Cr,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"),textDecoration:g.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Rd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",v.textDecoration,"inherit")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Rd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",v.textDecoration,"inherit")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",v.textDecoration,"inherit")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",v.textDecoration,"inherit")},or={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",v.textDecoration,"inherit")},Ce={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",v.textDecoration,"inherit")},at={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",v.textDecoration,"inherit")},hi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",v.textDecoration,"inherit")},fi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",v.textDecoration,"inherit")},Ht={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",v.textDecoration,"inherit")},Td=kt.css`
129
129
  .ft-typography--title {
130
130
  font-family: ${ci.fontFamily};
131
131
  font-size: ${ci.fontSize};
@@ -168,13 +168,13 @@
168
168
 
169
169
  `,$d=kt.css`
170
170
  .ft-typography--body1 {
171
- font-family: ${nr.fontFamily};
172
- font-size: ${nr.fontSize};
173
- font-weight: ${nr.fontWeight};
174
- letter-spacing: ${nr.letterSpacing};
175
- line-height: ${nr.lineHeight};
176
- text-transform: ${nr.textTransform};
177
- text-decoration: ${nr.textDecoration};
171
+ font-family: ${or.fontFamily};
172
+ font-size: ${or.fontSize};
173
+ font-weight: ${or.fontWeight};
174
+ letter-spacing: ${or.letterSpacing};
175
+ line-height: ${or.lineHeight};
176
+ text-transform: ${or.textTransform};
177
+ text-decoration: ${or.textDecoration};
178
178
  }
179
179
  `,Nr=kt.css`
180
180
  .ft-typography--body2 {
@@ -230,7 +230,7 @@
230
230
  .ft-typography {
231
231
  vertical-align: inherit;
232
232
  }
233
- `});var Ya,Bd,Fd,V,Za=l(()=>{"use strict";_d();Ya=c(P()),Bd=c(f());Fn();jt();Fd=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},V=class extends Bd.FtLitElement{constructor(){super(...arguments),this.variant=W.body1}render(){return this.element?Xa`
233
+ `});var Ya,Bd,Fd,V,Za=l(()=>{"use strict";_d();Ya=c(P()),Bd=c(f());Fo();jt();Fd=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},V=class extends Bd.FtLitElement{constructor(){super(...arguments),this.variant=W.body1}render(){return this.element?Xa`
234
234
  <${Ga(this.element)}
235
235
  part="text"
236
236
  class="ft-typography ft-typography--${this.variant}">
@@ -238,7 +238,7 @@
238
238
  </${Ga(this.element)}>
239
239
  `:Xa`
240
240
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
241
- `}};V.styles=[Td,kd,Ld,Id,$d,Nr,Fr,Dd,Pd,Md,Nd];Fd([(0,Ya.property)()],V.prototype,"element",void 0);Fd([(0,Ya.property)()],V.prototype,"variant",void 0)});var Ud,Vd=l(()=>{"use strict";Za();Ud={"ft-typography":V}});var zd,Hd=l(()=>{"use strict";zd=c(f());Vd();(0,zd.customElements)(Ud)});var ge=l(()=>{"use strict";Za();jt();Fn();Hd()});var jd,Br,Ns,qd,Ja=l(()=>{"use strict";jd=c(y()),Br=c(f()),Ns={distance:Br.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Br.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Br.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Br.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Br.designSystemVariables.borderRadiusS),maxWidth:Br.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},qd=jd.css`
241
+ `}};V.styles=[Td,kd,Ld,Id,$d,Nr,Fr,Dd,Pd,Md,Nd];Fd([(0,Ya.property)()],V.prototype,"element",void 0);Fd([(0,Ya.property)()],V.prototype,"variant",void 0)});var Ud,Vd=l(()=>{"use strict";Za();Ud={"ft-typography":V}});var zd,Hd=l(()=>{"use strict";zd=c(f());Vd();(0,zd.customElements)(Ud)});var ge=l(()=>{"use strict";Za();jt();Fo();Hd()});var jd,Br,Ns,qd,Ja=l(()=>{"use strict";jd=c(y()),Br=c(f()),Ns={distance:Br.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Br.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Br.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Br.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Br.designSystemVariables.borderRadiusS),maxWidth:Br.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},qd=jd.css`
242
242
  .ft-tooltip--container {
243
243
  display: block;
244
244
  }
@@ -269,15 +269,15 @@
269
269
  position: relative;
270
270
  word-break: break-word;
271
271
  }
272
- `});function Gd(t,e,r){return Ur(t,Fs(e,r))}function Bn(t,e){return typeof t=="function"?t(e):t}function Us(t){return t.split("-")[0]}function Vr(t){return t.split("-")[1]}function rl(t){return t==="x"?"y":"x"}function il(t){return t==="y"?"height":"width"}function Un(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function sl(t){return rl(Un(t))}function Qd(t,e,r){r===void 0&&(r=!1);let i=Vr(t),s=sl(t),n=il(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=el(o)),[o,el(o)]}function Xd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function el(t){let e=Us(t);return zx[e]+t.slice(e.length)}function Hx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Yd(t){return typeof t!="number"?Hx(t):{top:t,right:t,bottom:t,left:t}}function mi(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var Wd,Kd,tl,Fs,Ur,Bs,or,zx,Vn=l(()=>{Wd=["top","right","bottom","left"],Kd=["start","end"],tl=Wd.reduce((t,e)=>t.concat(e,e+"-"+Kd[0],e+"-"+Kd[1]),[]),Fs=Math.min,Ur=Math.max,Bs=Math.round,or=t=>({x:t,y:t}),zx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Zd(t,e,r){let{reference:i,floating:s}=t,n=Un(e),o=sl(e),a=il(o),u=Us(e),d=n==="y",h=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,S;switch(u){case"top":S={x:h,y:i.y-s.height};break;case"bottom":S={x:h,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:p};break;case"left":S={x:i.x-s.width,y:p};break;default:S={x:i.x,y:i.y}}let w=Vr(e);return w&&(S[o]+=m*(w==="end"?1:-1)*(r&&d?-1:1)),S}async function Jd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:S=0}=Bn(e,t),w=Yd(S),E=a[m?p==="floating"?"reference":"floating":p],H=mi(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(E)))==null||r?E:E.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:u})),Z=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,_=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),N=await(n.isElement==null?void 0:n.isElement(_))&&await(n.getScale==null?void 0:n.getScale(_))||{x:1,y:1},re=mi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Z,offsetParent:_,strategy:u}):Z);return{top:(H.top-re.top+w.top)/N.y,bottom:(re.bottom-H.bottom+w.bottom)/N.y,left:(H.left-re.left+w.left)/N.x,right:(re.right-H.right+w.right)/N.x}}function qx(t,e,r){return(t?[...r.filter(s=>Vr(s)===t),...r.filter(s=>Vr(s)!==t)]:r.filter(s=>Us(s)===s)).filter(s=>t?Vr(s)===t||(e?Xd(s)!==s:!1):!0)}var jx,ep,tp,rp,ip=l(()=>{Vn();Vn();jx=50,ep=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Jd},u=await(o.isRTL==null?void 0:o.isRTL(e)),d=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:p}=Zd(d,i,u),m=i,S=0,w={};for(let B=0;B<n.length;B++){let E=n[B];if(!E)continue;let{name:H,fn:Z}=E,{x:_,y:N,data:re,reset:_e}=await Z({x:h,y:p,initialPlacement:i,placement:m,strategy:s,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});h=_??h,p=N??p,w[H]={...w[H],...re},_e&&S<jx&&(S++,typeof _e=="object"&&(_e.placement&&(m=_e.placement),_e.rects&&(d=_e.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):_e.rects),{x:h,y:p}=Zd(d,m,u)),B=-1)}return{x:h,y:p,placement:m,strategy:s,middlewareData:w}};tp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:u,elements:d}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:m=tl,autoAlignment:S=!0,...w}=Bn(t,e),B=p!==void 0||m===tl?qx(p||null,S,m):m,E=((r=o.autoPlacement)==null?void 0:r.index)||0,H=B[E];if(H==null)return{};if(a!==H)return{reset:{placement:B[0]}};let Z=await u.detectOverflow(e,w),_=Qd(H,n,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Z[Us(H)],Z[_[0]],Z[_[1]]],re=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:H,overflows:N}],_e=B[E+1];if(_e)return{data:{index:E+1,overflows:re},reset:{placement:_e}};let mt=re.map(Tt=>{let Ls=Vr(Tt.placement);return[Tt.placement,Ls&&h?Tt.overflows.slice(0,2).reduce((Tx,kx)=>Tx+kx,0):Tt.overflows[0],Tt.overflows]}).sort((Tt,Ls)=>Tt[1]-Ls[1]),Dn=((s=mt.filter(Tt=>Tt[2].slice(0,Vr(Tt[0])?2:3).every(Ls=>Ls<=0))[0])==null?void 0:s[0])||mt[0][0];return Dn!==a?{data:{index:E+1,overflows:re},reset:{placement:Dn}}:{}}}},rp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:Z=>{let{x:_,y:N}=Z;return{x:_,y:N}}},...d}=Bn(t,e),h={x:r,y:i},p=await n.detectOverflow(e,d),m=Un(s),S=rl(m),w=h[S],B=h[m],E=(Z,_)=>Gd(_+p[Z==="y"?"top":"left"],_,_-p[Z==="y"?"bottom":"right"]);o&&(w=E(S,w)),a&&(B=E(m,B));let H=u.fn({...e,[S]:w,[m]:B});return{...H,data:{x:H.x-r,y:H.y-i,enabled:{[S]:o,[m]:a}}}}}}});function Hn(){return typeof window<"u"}function yi(t){return np(t)?(t.nodeName||"").toLowerCase():"#document"}function lt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ar(t){var e;return(e=(np(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function np(t){return Hn()?t instanceof Node||t instanceof lt(t).Node:!1}function qt(t){return Hn()?t instanceof Element||t instanceof lt(t).Element:!1}function wr(t){return Hn()?t instanceof HTMLElement||t instanceof lt(t).HTMLElement:!1}function sp(t){return!Hn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function Vs(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Kt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function op(t){return/^(table|td|th)$/.test(yi(t))}function zs(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=qt(t)?Kt(t):t;return gi(e.transform)||gi(e.translate)||gi(e.scale)||gi(e.rotate)||gi(e.perspective)||!jn()&&(gi(e.backdropFilter)||gi(e.filter))||Kx.test(e.willChange||"")||Wx.test(e.contain||"")}function ap(t){let e=zr(t);for(;wr(e)&&!Yi(e);){if(Xi(e))return e;if(zs(e))return null;e=zr(e)}return null}function jn(){return nl==null&&(nl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nl}function Yi(t){return/^(html|body|#document)$/.test(yi(t))}function Kt(t){return lt(t).getComputedStyle(t)}function Hs(t){return qt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function zr(t){if(yi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sp(t)&&t.host||Ar(t);return sp(e)?e.host:e}function lp(t){let e=zr(t);return Yi(e)?(t.ownerDocument||t).body:wr(e)&&Vs(e)?e:lp(e)}function zn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=lp(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=lt(s);if(n){let a=qn(o);return e.concat(o,o.visualViewport||[],Vs(s)?s:[],a&&r?zn(a):[])}else return e.concat(s,zn(s,[],r))}function qn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Kx,Wx,gi,nl,ol=l(()=>{Kx=/transform|translate|scale|rotate|perspective|filter/,Wx=/paint|layout|strict|content/,gi=t=>!!t&&t!=="none"});function dp(t){let e=Kt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=wr(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=Bs(r)!==n||Bs(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function pp(t){return qt(t)?t:t.contextElement}function Zi(t){let e=pp(t);if(!wr(e))return or(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=dp(e),o=(n?Bs(r.width):r.width)/i,a=(n?Bs(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}function hp(t){let e=lt(t);return!jn()||!e.visualViewport?Gx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===lt(t)}function js(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=pp(t),o=or(1);e&&(i?qt(i)&&(o=Zi(i)):o=Zi(t));let a=Qx(n,r,i)?hp(n):or(0),u=(s.left+a.x)/o.x,d=(s.top+a.y)/o.y,h=s.width/o.x,p=s.height/o.y;if(n&&i){let m=lt(n),S=qt(i)?lt(i):i,w=m,B=qn(w);for(;B&&S!==w;){let E=Zi(B),H=B.getBoundingClientRect(),Z=Kt(B),_=H.left+(B.clientLeft+parseFloat(Z.paddingLeft))*E.x,N=H.top+(B.clientTop+parseFloat(Z.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,p*=E.y,u+=_,d+=N,w=lt(B),B=qn(w)}}return mi({width:h,height:p,x:u,y:d})}function Kn(t,e){let r=Hs(t).scrollLeft;return e?e.left+r:js(Ar(t)).left+r}function fp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Kn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Xx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=Ar(i),a=e?zs(e.floating):!1;if(i===o||a&&n)return r;let u={scrollLeft:0,scrollTop:0},d=or(1),h=or(0),p=wr(i);if((p||!n)&&((yi(i)!=="body"||Vs(o))&&(u=Hs(i)),p)){let S=js(i);d=Zi(i),h.x=S.x+i.clientLeft,h.y=S.y+i.clientTop}let m=o&&!p&&!n?fp(o,u):or(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+h.x+m.x,y:r.y*d.y-u.scrollTop*d.y+h.y+m.y}}function Yx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Zx(t){let e=Hs(t),r=t.ownerDocument.body,i=Ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Kn(t),o=-e.scrollTop;return Kt(r).direction==="rtl"&&(n+=Ur(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}function eS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=lt(t),n=Ar(t),o=s.visualViewport,a=n.clientWidth,u=n.clientHeight,d=0,h=0;if(o){let m=!jn()||e==="fixed";i?m||(d=-o.offsetLeft,h=-o.offsetTop):(a=o.width,u=o.height,m&&(d=o.offsetLeft,h=o.offsetTop))}if(Kn(n)<=0){let m=n.ownerDocument,S=m.body,w=getComputedStyle(S),B=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(n.clientWidth-S.clientWidth-B),H=getComputedStyle(n).scrollbarGutter==="stable both-edges"?E/2:E;H<=Jx&&(a-=H)}return{width:a,height:u,x:d,y:h}}function tS(t,e){let r=js(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=Zi(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,u=s*n.x,d=i*n.y;return{width:o,height:a,x:u,y:d}}function cp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=eS(t,r,e);else if(e==="document")i=Zx(Ar(t));else if(qt(e))i=tS(e,r);else{let s=hp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return mi(i)}function rS(t,e){let r=e.get(t);if(r)return r;let i=zn(t,[],!1).filter(a=>qt(a)&&yi(a)!=="body"),s=null,n=Kt(t).position==="fixed",o=n?zr(t):t;for(;qt(o)&&!Yi(o);){let a=Kt(o),u=Xi(o),d=s?s.position:n?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=zr(o)}return e.set(t,i),i}function iS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?zs(e)?[]:rS(e,this._c):[].concat(r),i],a=cp(e,o[0],s),u=a.top,d=a.right,h=a.bottom,p=a.left;for(let m=1;m<o.length;m++){let S=cp(e,o[m],s);u=Ur(S.top,u),d=Fs(S.right,d),h=Fs(S.bottom,h),p=Ur(S.left,p)}return{width:d-p,height:h-u,x:p,y:u}}function sS(t){let{width:e,height:r}=dp(t);return{width:e,height:r}}function nS(t,e,r){let i=wr(e),s=Ar(e),n=r==="fixed",o=js(t,!0,n,e),a={scrollLeft:0,scrollTop:0},u=or(0);if((i||!n)&&((yi(e)!=="body"||Vs(s))&&(a=Hs(e)),i)){let m=js(e,!0,n,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Kn(s));let d=s&&!i&&!n?fp(s,a):or(0),h=o.left+a.scrollLeft-u.x-d.x,p=o.top+a.scrollTop-u.y-d.y;return{x:h,y:p,width:o.width,height:o.height}}function al(t){return Kt(t).position==="static"}function up(t,e){if(!wr(t)||Kt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ar(t)===r&&(r=r.ownerDocument.body),r}function mp(t,e){let r=lt(t);if(zs(t))return r;if(!wr(t)){let s=zr(t);for(;s&&!Yi(s);){if(qt(s)&&!al(s))return s;s=zr(s)}return r}let i=up(t,e);for(;i&&op(i)&&al(i);)i=up(i,e);return i&&Yi(i)&&al(i)&&!Xi(i)?r:i||ap(t)||r}function aS(t){return Kt(t).direction==="rtl"}var Gx,Jx,oS,Wn,gp,yp,bp,vp=l(()=>{ip();Vn();ol();Gx=or(0);Jx=25;oS=async function(t){let e=this.getOffsetParent||mp,r=this.getDimensions,i=await r(t.floating);return{reference:nS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Wn={convertOffsetParentRelativeRectToViewportRelativeRect:Xx,getDocumentElement:Ar,getClippingRect:iS,getOffsetParent:mp,getElementRects:oS,getClientRects:Yx,getDimensions:sS,getScale:Zi,isElement:qt,isRTL:aS},gp=tp,yp=rp,bp=(t,e,r)=>{let i=new Map,s=r??{},n={...Wn,...s.platform,_c:i};return ep(t,e,{...s,platform:n})}});function xp(t){return lS(t)}function ll(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function lS(t){for(let e=t;e;e=ll(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ll(t);e;e=ll(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xi(r)||e.tagName==="BODY"))return e}return null}var Sp=l(()=>{ol()});async function Ep(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},bp(t,e,{strategy:i.strategy,platform:{...Wn,getOffsetParent:s=>Wn.getOffsetParent(s,xp)},middleware:[yp({crossAxis:!0}),gp({allowedPlacements:[i.placement]})]})}var Cp=l(()=>{"use strict";vp();Sp()});function wp(t,e){return(0,Ap.property)({type:Object,converter:cS(t),hasChanged:Ks,...e??{}})}var Ap,cl,cS,Gn=l(()=>{"use strict";Ap=c(P(),1);bi();cl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},cS=t=>({fromAttribute:e=>{if(e==null)return qs(t);try{return JSON.parse(e)}catch{return qs(t)}},toAttribute:e=>JSON.stringify(e)})});function uS(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(!Ji(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(!Ji(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!Ji(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ji(t,e){try{return uS(t,e)}catch{return!1}}function Ks(t,e){return!Ji(t,e)}function qs(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Qn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var bi=l(()=>{"use strict";Gn()});var Op,ul,_p=l(()=>{"use strict";bi();Op=c(P(),1),ul=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Ks,attribute:!1,...e};(0,Op.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var Xn,dl=l(()=>{"use strict";Xn=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 Yn,Rp=l(()=>{"use strict";Yn=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 s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Jn,Zn,Tp=l(()=>{"use strict";Jn=c(y(),1);Gn();Zn=class extends Jn.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(0,Jn.adoptStyles)(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){cl(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 kp(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var Lp=l(()=>{"use strict"});var vi,ts,Pp,Ip,$p,Mp,Dp,es,ar,Np=l(()=>{"use strict";vi=c(P(),1);Gn();Rp();Tp();Lp();ts=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ip=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Mp=Symbol("exportpartsDebouncer"),Dp=Symbol("dynamicDependenciesLoaded"),es=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};es.eventName="exportparts-updated";ar=class extends Zn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Pp]=new Yn(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[Mp].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$p]=this.constructor.name,this[Ip]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Ip])}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[Dp]||(r[Dp]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(es.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(es.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 es)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=kp(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(o=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],w=(a=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],B=[...S,...w].filter(u).map(E=>E.trim());for(let E of B)h.add(E)}if(h.size===0){this.exportparts=void 0;return}let p=[...h.values()].flatMap(m=>d.map(S=>`${m}:${S}--${m}`));this.exportparts=[...this.part,...p].join(", ")}};Pp=Mp;ts([(0,vi.property)()],ar.prototype,"exportpartsPrefix",void 0);ts([wp([])],ar.prototype,"exportpartsPrefixes",void 0);ts([(0,vi.property)({reflect:!0})],ar.prototype,"exportparts",void 0);ts([(0,vi.property)()],ar.prototype,"customStylesheet",void 0);ts([(0,vi.property)()],ar.prototype,"elementToFocus",void 0);ts([(0,vi.state)()],ar.prototype,"useAdoptedStyleSheets",void 0)});function eo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var to=l(()=>{"use strict"});var Ws,Hr,xi,dS,Fp,Bp=l(()=>{"use strict";Np();to();bi();Ws=Symbol("internalReduxEventsUnsubscribers"),Hr=Symbol("internalStoresUnsubscribers"),xi=Symbol("internalStores"),dS=Qn(Symbol("withRedux"),function(t){var e,r,i;class s 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[xi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xi].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[xi].get(o)}addStore(o,a){var u;a=(u=a??o.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[xi].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[xi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xi].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(o.store);d&&(o.store?this[Hr].has(o.store):this[Hr].size>0)&&(this[a]=o.selector(d.getState(),this))}})}subscribeToStore(o,a){var u,d;this[Hr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ws].set(o,[]),eo(a)&&(!((u=a.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((h,p)=>{this.getStore(h.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((h,p)=>{if(typeof this[p]=="function"&&(!h.store||a.name===h.store)){let m=S=>this[p](S);a.addEventListener(h.eventName,m),this[Ws].get(o).push(()=>a.removeEventListener(h.eventName,m))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Hr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Hr].has(o)&&this[Hr].get(o)(),this[Hr].delete(o),(a=this[Ws].get(o))===null||a===void 0||a.forEach(u=>u()),this[Ws].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Hr,r=xi,i=Ws,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Fp=class extends dS(ar){}});function Me(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. `}function io(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 hl(t,e,r){if(typeof t!="function")throw new Error(Me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(hl)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,u=!1;function d(){o===n&&(o=new Map,n.forEach((E,H)=>{o.set(H,E)}))}function h(){if(u)throw new Error(Me(3));return s}function p(E){if(typeof E!="function")throw new Error(Me(4));if(u)throw new Error(Me(5));let H=!0;d();let Z=a++;return o.set(Z,E),function(){if(H){if(u)throw new Error(Me(6));H=!1,d(),o.delete(Z),n=null}}}function m(E){if(!io(E))throw new Error(Me(7));if(typeof E.type>"u")throw new Error(Me(8));if(typeof E.type!="string")throw new Error(Me(17));if(u)throw new Error(Me(9));try{u=!0,s=i(s,E)}finally{u=!1}return(n=o).forEach(Z=>{Z()}),E}function S(E){if(typeof E!="function")throw new Error(Me(10));i=E,m({type:ro.REPLACE})}function w(){let E=p;return{subscribe(H){if(typeof H!="object"||H===null)throw new Error(Me(11));function Z(){let N=H;N.next&&N.next(h())}return Z(),{unsubscribe:E(Z)}},[Up](){return this}}}return m({type:ro.INIT}),{dispatch:m,subscribe:p,getState:h,replaceReducer:S,[Up]:w}}function fS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:ro.INIT})>"u")throw new Error(Me(12));if(typeof r(void 0,{type:ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function fl(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),s,n;try{fS(r)}catch(o){n=o}return function(a={},u){if(n)throw n;let d=!1,h={};for(let p=0;p<i.length;p++){let m=i[p],S=r[m],w=a[m],B=S(w,u);if(typeof B>"u"){let E=u&&u.type;throw new Error(Me(14))}h[m]=B,d=d||B!==w}return d=d||i.length!==Object.keys(a).length,d?h:a}}function Gs(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vp(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(Me(15))},o={getState:s.getState,dispatch:(u,...d)=>n(u,...d)},a=t.map(u=>u(o));return n=Gs(...a)(s.dispatch),{...s,dispatch:n}}}function zp(t){return io(t)&&"type"in t&&typeof t.type=="string"}var pS,Up,pl,hS,ro,ml=l(()=>{pS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Up=pS,pl=()=>Math.random().toString(36).substring(7).split("").join("."),hS={INIT:`@@redux/INIT${pl()}`,REPLACE:`@@redux/REPLACE${pl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pl()}`},ro=hS});function Wt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function yt(t){return t?Zp(t)||go(t)||!!t[Hp]||!!t[ao]?.[Hp]||yo(t)||Js(t):!1}function Zp(t){if(!t||!_l(t))return!1;let e=is(t);if(e===null||e===gt[fo])return!0;let r=gt.hasOwnProperty.call(e,ao)&&e[ao];if(r===Object)return!0;if(!rs(r))return!1;let i=jp.get(r);return i===void 0&&(i=Function.toString.call(r),jp.set(r,i)),i===mS}function mo(t,e,r=!0){Zs(t)===0?(r?Reflect.ownKeys(t):gt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Zs(t){let e=t[He];return e?e.type_:go(t)?1:yo(t)?2:Js(t)?3:0}function gS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function yS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function Sl(t,e){if(yo(t))return new Map(t);if(Js(t))return new Set(t);if(go(t))return Array[fo].slice.call(t);let r=Zp(t);if(e===!0||e==="class_only"&&!r){let i=gt.getOwnPropertyDescriptors(t);delete i[He];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[no]===!1&&(a[no]=!0,a[vl]=!0),(a.get||a.set)&&(i[o]={[vl]:!0,[no]:!0,[lo]:a[lo],[Qs]:t[o]})}return gt.create(is(t),i)}else{let i=is(t);if(i!==null&&r)return{...t};let s=gt.create(i);return gt.assign(s,t)}}function bo(t,e=!1){return vo(t)||lr(t)||!yt(t)||(Zs(t)>1&&gt.defineProperties(t,{set:so,add:so,clear:so,delete:so}),gt.freeze(t),e&&mo(t,(r,i)=>{bo(i,!0)},!1)),t}function bS(){Wt(2)}function vo(t){return t===null||!_l(t)?!0:gt.isFrozen(t)}function Si(t){let e=Jp[t];return e||Wt(0,t),e}function Wp(t,e){e&&(t.patchPlugin_=Si(El),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Cl(t){Al(t),t.drafts_.forEach(xS),t.drafts_=null}function Al(t){t===Xs&&(Xs=t.parent_)}function xS(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(Cl(e),Wt(4)),yt(t)&&(t=Xp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Xp(e,r);return SS(e,t,!0),Cl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yp?t:void 0}function Xp(t,e){if(vo(e))return e;let r=e[He];if(!r)return po(e,t.handledSet_,t);if(!xo(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);ih(r,t)}return r.copy_}function SS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&bo(e,r)}function th(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function rh(t,e,r,i){let s=Or(t),n=t.type_;if(i!==void 0&&xl(s,i,n)===e){co(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;mo(s,(u,d)=>{if(lr(d)){let h=a.get(d)||[];h.push(u),a.set(d,h)}})}let o=t.draftLocations_.get(e)??ES;for(let a of o)co(s,a,r,n)}function CS(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!xo(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=Rl(n);rh(t,n.draft_??n,o,r),ih(n,s)})}function ih(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 s=i.getPath(t);s&&i.generatePatches_(t,s,e)}th(t)}}function AS(t,e,r){let{scope_:i}=t;if(lr(r)){let s=r[He];xo(s,i)&&s.callbacks_.push(function(){oo(t);let o=Rl(s);rh(t,r,o,e)})}else yt(r)&&t.callbacks_.push(function(){let n=Or(t);t.type_===3?n.has(r)&&po(r,i.handledSet_,i):xl(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&po(xl(t.copy_,e,t.type_),i.handledSet_,i)})}function po(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||lr(t)||e.has(t)||!yt(t)||vo(t)||(e.add(t),mo(t,(i,s)=>{if(lr(s)){let n=s[He];if(xo(n,r)){let o=Rl(n);co(t,i,o,t.type_),th(n)}}else yt(s)&&po(s,e,r)})),t}function wS(t,e){let r=go(t),i={type_:r?1:0,scope_:e?e.scope_:eh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=ho;r&&(s=[i],n=Ys);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}function bl(t,e){let r=t[He];return(r?Or(r):t)[e]}function OS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!yt(r)||r[He]?!1:t.baseRefs_.has(r)}function _S(t,e,r){let i=sh(e,r);return i?Qs in i?i[Qs]:i.get?.call(t.draft_):void 0}function sh(t,e){if(!(e in t))return;let r=is(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=is(r)}}function wl(t){t.modified_||(t.modified_=!0,t.parent_&&wl(t.parent_))}function oo(t){t.copy_||(t.assigned_=new Map,t.copy_=Sl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Ol(t,e,r,i){let[s,n]=yo(e)?Si(uo).proxyMap_(e,r):Js(e)?Si(uo).proxySet_(e,r):wS(e,r);return(r?.scope_??eh()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?CS(r,n,i):n.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:d}=u;n.modified_&&d&&d.generatePatches_(n,[],u)}),s}function nh(t){return lr(t)||Wt(10,t),oh(t)}function oh(t){if(!yt(t)||vo(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Sl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Sl(t,!0);let s=r;return Js(r)&&(r=new Set),mo(s,(n,o)=>{co(r,n,oh(o))},i),e&&(e.finalized_=!1),r}var Yp,Hp,He,gt,is,ao,fo,vl,lo,no,Qs,lr,mS,jp,gl,xl,co,go,yo,Js,_l,rs,yl,Or,Rl,so,uo,El,qp,Jp,Kp,Xs,eh,vS,Gp,xo,ES,ho,Ys,RS,TS,a0,kS,Tl,ah=l(()=>{Yp=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");gt=Object,is=gt.getPrototypeOf,ao="constructor",fo="prototype",vl="configurable",lo="enumerable",no="writable",Qs="value",lr=t=>!!t&&!!t[He];mS=gt[fo][ao].toString(),jp=new WeakMap;gl=(t,e,r=Zs(t))=>r===2?t.has(e):gt[fo].hasOwnProperty.call(t,e),xl=(t,e,r=Zs(t))=>r===2?t.get(e):t[e],co=(t,e,r,i=Zs(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};go=Array.isArray,yo=t=>t instanceof Map,Js=t=>t instanceof Set,_l=t=>typeof t=="object",rs=t=>typeof t=="function",yl=t=>typeof t=="boolean";Or=t=>t.copy_||t.base_,Rl=t=>t.modified_?t.copy_:t.base_;so={[Qs]:bS};uo="MapSet",El="Patches",qp="ArrayMethods",Jp={};Kp=t=>!!Jp[t],eh=()=>Xs,vS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kp(uo)?Si(uo):void 0,arrayMethodsPlugin_:Kp(qp)?Si(qp):void 0});Gp=t=>Xs=vS(Xs,t);xo=(t,e)=>t.scope_===e,ES=[];ho={get(t,e){if(e===He)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 s=Or(t);if(!gl(s,e,t.type_))return _S(t,s,e);let n=s[e];if(t.finalized_||!yt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&yS(e))return n;if(n===bl(t.base_,e)||OS(t,e,n)){oo(t);let o=t.type_===1?+e:e,a=Ol(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Or(t)},ownKeys(t){return Reflect.ownKeys(Or(t))},set(t,e,r){let i=sh(Or(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=bl(Or(t),e),n=s?.[He];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(gS(r,s)&&(r!==void 0||gl(t.base_,e,t.type_)))return!0;oo(t),wl(t)}return t.copy_[e]===r&&(r!==void 0||gl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),AS(t,e,r)),!0},deleteProperty(t,e){return oo(t),bl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),wl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[no]:!0,[vl]:t.type_!==1||e!=="length",[lo]:i[lo],[Qs]:r[e]}},defineProperty(){Wt(11)},getPrototypeOf(t){return is(t.base_)},setPrototypeOf(){Wt(12)}},Ys={};for(let t in ho){let e=ho[t];Ys[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ys.deleteProperty=function(t,e){return Ys.set.call(this,t,e,void 0)};Ys.set=function(t,e,r){return ho.set.call(this,t[0],e,r,t[0])};RS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(rs(e)&&!rs(r)){let n=r;r=e;let o=this;return function(u=n,...d){return o.produce(u,h=>r.call(this,h,...d))}}rs(r)||Wt(6),i!==void 0&&!rs(i)&&Wt(7);let s;if(yt(e)){let n=Gp(this),o=Ol(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?Cl(n):Al(n)}return Wp(n,i),Qp(s,n)}else if(!e||!_l(e)){if(s=r(e),s===void 0&&(s=e),s===Yp&&(s=void 0),this.autoFreeze_&&bo(s,!0),i){let n=[],o=[];Si(El).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Wt(1,e)},this.produceWithPatches=(e,r)=>{if(rs(e))return(o,...a)=>this.produceWithPatches(o,u=>e(u,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},yl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),yl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),yl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){yt(t)||Wt(8),lr(t)&&(t=nh(t));let e=Gp(this),r=Ol(e,t,void 0);return r[He].isManual_=!0,Al(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&Wt(9);let{scope_:i}=r;return Wp(i,e),Qp(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 s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Si(El).applyPatches_;return lr(t)?i(t,e):this.produce(t,s=>i(s,e))}};TS=globalThis.Iterator,a0=typeof TS?.from=="function",kS=new RS,Tl=kS.produce});function lh(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var ch,uh,dh=l(()=>{ch=lh(),uh=lh});function tn(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(cr(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>i!=null&&i.type===t&&zp(i),r}function ph(t){return yt(t)?Tl(t,()=>{}):t}function So(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function IS(t){return typeof t=="boolean"}function mh(t){let e=$S(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(io(r))u=fl(r);else throw new Error(cr(1));let d;typeof i=="function"?d=i(e):d=e();let h=Gs;s&&(h=LS({trace:!1,...typeof s=="object"&&s}));let p=Vp(...d),m=NS(p),S=typeof a=="function"?a(m):m(),w=h(...S);return hl(u,o,w)}function gh(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(cr(28));if(a in e)throw new Error(cr(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function FS(t){return typeof t=="function"}function BS(t,e){let[r,i,s]=gh(e),n;if(FS(t))n=()=>ph(t());else{let u=ph(t);n=()=>u}function o(u,d,h){if(lr(u)){let p=d(u,h);return p===void 0?u:p}else{if(yt(u))return Tl(u,p=>d(p,h));{let p=d(u,h);if(p===void 0){if(u===null)return u;throw new Error(cr(9))}return p}}}function a(u=n(),d){let h=r[d.type],p;for(let{matcher:m,reducer:S}of i)m(d)&&S&&(p??=[]).push(S);if(!h&&!p)return s?o(u,s,d):u;if(h&&(u=o(u,h,d)),p)for(let m of p)u=o(u,m,d);return u}return a.getInitialState=n,a}function VS(t,e){return`${t}/${e}`}function zS({creators:t}={}){let e=t?.asyncThunk?.[US];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(cr(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(jS()):i.reducers)||{},a=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(_,N){let re=typeof _=="string"?_:_.type;if(!re)throw new Error(cr(12));if(re in u.sliceCaseReducersByType)throw new Error(cr(13));return u.sliceCaseReducersByType[re]=N,d},addMatcher(_,N){return u.sliceMatchers.push({matcher:_,reducer:N}),d},exposeAction(_,N){return u.actionCreators[_]=N,d},exposeCaseReducer(_,N){return u.sliceCaseReducersByName[_]=N,d}};a.forEach(_=>{let N=o[_],re={reducerName:_,type:VS(s,_),createNotation:typeof i.reducers=="function"};KS(N)?GS(re,N,d,e):qS(re,N,d)});function h(){let[_={},N=[],re=void 0]=typeof i.extraReducers=="function"?gh(i.extraReducers):[i.extraReducers],_e={..._,...u.sliceCaseReducersByType};return BS(i.initialState,mt=>{for(let ze in _e)mt.addCase(ze,_e[ze]);for(let ze of u.sliceMatchers)mt.addMatcher(ze.matcher,ze.reducer);for(let ze of N)mt.addMatcher(ze.matcher,ze.reducer);re&&mt.addDefaultCase(re)})}let p=_=>_,m=new Map,S=new WeakMap,w;function B(_,N){return w||(w=h()),w(_,N)}function E(){return w||(w=h()),w.getInitialState()}function H(_,N=!1){function re(mt){let ze=mt[_];return typeof ze>"u"&&N&&(ze=So(S,re,E)),ze}function _e(mt=p){return So(So(m,N,()=>new WeakMap),mt,()=>{let ze={};for(let[Dn,Tt]of Object.entries(i.selectors??{}))ze[Dn]=HS(Tt,mt,()=>So(S,mt,E),N);return ze})}return{reducerPath:_,getSelectors:_e,get selectors(){return _e(re)},selectSlice:re}}let Z={name:s,reducer:B,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...H(n),injectInto(_,{reducerPath:N,...re}={}){let _e=N??n;return _.inject({reducerPath:_e,reducer:B},re),{...Z,...H(_e,!0)}}};return Z}}function HS(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}function jS(){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 qS({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!WS(i))throw new Error(cr(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?tn(t,o):tn(t))}function KS(t){return t._reducerDefinitionType==="asyncThunk"}function WS(t){return t._reducerDefinitionType==="reducerWithPrepare"}function GS({type:t,reducerName:e},r,i,s){if(!s)throw new Error(cr(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:u,settled:d,options:h}=r,p=s(t,n,h);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),u&&i.addCase(p.rejected,u),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:o||Eo,pending:a||Eo,rejected:u||Eo,settled:d||Eo})}function Eo(){}function cr(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 LS,fh,$S,DS,hh,PS,MS,NS,US,yh,bh,vh,xh,m0,g0,y0,b0,Sh,kl,QS,v0,XS,Eh=l(()=>{ml();ah();dh();ml();LS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gs:Gs.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;fh=class en extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,en.prototype)}static get[Symbol.species](){return en}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new en(...e[0].concat(this)):new en(...e.concat(this))}};$S=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new fh;return r&&(IS(r)?o.push(ch):o.push(uh(r.extraArgument))),o},DS="RTK_autoBatch",hh=t=>e=>{setTimeout(e,t)},PS=(t,e,r)=>i=>{let s=!1,n,o,a=()=>{s||(s=!0,e?.(n),clearTimeout(o),i())};n=t(a),o=setTimeout(a,r)},MS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?PS(window.requestAnimationFrame,window.cancelAnimationFrame,100):hh(10):t.type==="callback"?t.queueNotification:hh(t.timeout),d=()=>{o=!1,n&&(n=!1,a.forEach(h=>h()))};return Object.assign({},i,{subscribe(h){let p=()=>s&&h(),m=i.subscribe(p);return a.add(h),()=>{m(),a.delete(h)}},dispatch(h){try{return s=!h?.meta?.[DS],n=!s,n&&(o||(o=!0,u(d))),i.dispatch(h)}finally{s=!0}}})},NS=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fh(t);return i&&s.push(MS(typeof i=="object"?i:void 0)),s};US=Symbol.for("rtk-slice-createasyncthunk");yh=zS();bh="listener",vh="completed",xh="cancelled",m0=`task-${xh}`,g0=`task-${vh}`,y0=`${bh}-${xh}`,b0=`${bh}-${vh}`,{assign:Sh}=Object,kl="listenerMiddleware",QS=Sh(tn(`${kl}/add`),{withTypes:()=>QS}),v0=tn(`${kl}/removeAll`),XS=Sh(tn(`${kl}/remove`),{withTypes:()=>XS})});var YS,Co,Ch=l(()=>{"use strict";bi();YS=Qn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Co=class extends YS(Object){}});var Ah,wh=l(()=>{"use strict";Eh();to();dl();Ch();bi();window.ftReduxStores||(window.ftReduxStores={});Ah=class t extends Co{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(eo(n))return n;if(s==null)return;let o=yh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let h=qs(o.getInitialState());for(let p of d.keeping)h[p]=(u??h)[p];return h}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return o.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new Xn,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,u)=>{let d=a,h=o[d];return h?(...p)=>{let m=h(...p.map(n));return this.reduxStore.dispatch(m),m}:p=>{let m=d,S=this.getState()[m];Ji(S,p)||this.setState({[m]:n(p)})}}}),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 Oh=l(()=>{"use strict";bi()});var _h=l(()=>{"use strict"});var Rh=l(()=>{"use strict";_p();dl();Bp();wh();to();Oh();_h()});var Ao,Th=l(()=>{"use strict";Ao=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?u:s?`${a} ${u}`: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 wo,ZS,ur,rn,JS,x,je=l(()=>{"use strict";wo=c(f()),ZS="ft-app-info",ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ur.eventName="authentication-change";rn=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rn.eventName="ui-locale-changed";JS={session:(t,e)=>{(0,wo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>x.dispatchEvent(new ur(e.payload)),0))}},x=wo.FtReduxStore.get({name:ZS,reducers:JS,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Ll,kh,Oo,W0,Lh=l(()=>{"use strict";Ll=c(P());Rh();Th();je();kh=c(f()),Oo=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},W0=(0,kh.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(x)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Ao.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Oo([(0,Ll.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Oo([(0,Ll.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Oo([ul({store:x.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Oo([ul({store:x.name})],e.prototype,"uiLocale",void 0),e})});var Il=l(()=>{});var Ih,$h,Dh,jr,Ph,Mh,Nh,Ei,Fh,Bh,Uh,Vh,zh,Hh,jh,qh,Kh,_o,Wh,Gh,ss,Qh,Ro,Xh,Yh,dr,ns,Zh,pe,Lt,Jh,$l=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ih||(Ih={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})($h||($h={}));(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"})(Dh||(Dh={}));(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"})(jr||(jr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ph||(Ph={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Mh||(Mh={}));(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Nh||(Nh={}));(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"})(Ei||(Ei={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Fh||(Fh={}));(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Bh||(Bh={}));(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",t.DOC_DIFF="DOC_DIFF"})(Uh||(Uh={}));(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"})(Vh||(Vh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(zh||(zh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hh||(Hh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(jh||(jh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(qh||(qh={}));(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"})(Kh||(Kh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(_o||(_o={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Wh||(Wh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Gh||(Gh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ss||(ss={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Qh||(Qh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ro||(Ro={}));(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"})(Xh||(Xh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yh||(Yh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(dr||(dr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ns||(ns={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Zh||(Zh={}));(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={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Lt||(Lt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Jh||(Jh={}))});var ef,tf,rf,sf,nf,of,af,lf,cf,uf,df,pf,hf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ef||(ef={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(tf||(tf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rf||(rf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sf||(sf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(nf||(nf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(of||(of={}));(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(af||(af={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(lf||(lf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(cf||(cf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(uf||(uf={}));(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"})(df||(df={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(pf||(pf={}))});var ff=l(()=>{$l();hf()});function mf(t,e){return t===e||(eE[t]??[]).some(r=>mf(r,e))}function sn(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=>mf(i,e))}function gf(t,...e){return t==null?!1:e.some(r=>sn(t,r))}var eE,yf=l(()=>{$l();eE={[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]}});var bf=l(()=>{});var qr=l(()=>{Il();ff();yf();bf();Il()});var Ci,Dl=l(()=>{"use strict";je();Ci=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=x.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=x.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var os,Pl=l(()=>{"use strict";Dl();os=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ci.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ci.await()}}});var Ml,qe,Kr=l(()=>{"use strict";Ml=c(f());Pl();qe=class extends os{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Ml.CacheRegistry,this.cache=e?s.commonCache:new Ml.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 To,Nl=l(()=>{"use strict";je();qr();Kr();To=class extends qe{async listMySearches(){let{session:e}=x.getState();return sn(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var ko,Fl=l(()=>{"use strict";je();Kr();ko=class extends qe{async listMyBookmarks(){let e=x.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var Lo,vf=l(()=>{"use strict";je();Kr();Lo=class extends qe{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=x.getState().session;return!!e?.sessionAuthenticated}}});var Io,xf=l(()=>{"use strict";Kr();je();Io=class extends qe{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=x.getState().session;return!!e?.sessionAuthenticated}}});var $o,tE,rE,Cf,Bl,Ul,Sf,Ef,Xe,Vl,iE,zl=l(()=>{"use strict";qr();$o=c(f());Nl();Fl();je();vf();xf();tE="ft-user-assets",rE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Lt).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:s}=e.payload;Ul(t,r,[...Bl(t,r),s]),Sf(t,r,1,i),Ef(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ul(t,r,Bl(t,r).map(s=>s.id===i.id?i:s)),Ef(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ul(t,r,Bl(t,r).filter(n=>n.id!==s)),Sf(t,r,-1,i)}},Cf={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Bl=(t,e)=>{var r;let i=Cf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ul=(t,e,r)=>{let i=Cf[e];i&&(t[i]=r)},Sf=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Lt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},Ef=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Xe=$o.FtReduxStore.get({name:tE,reducers:rE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vl=class{constructor(e=new Lo,r=new Io){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=x.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new To,x.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=x.getState();(0,$o.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(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.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;Xe.actions.bookmarks(r)}}},iE=new Vl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=iE)});var Af=l(()=>{"use strict";qr();zl()});var Hl,wf=l(()=>{"use strict";je();Hl=class{addCommand(e,r=!1){x.commands.add(e,r)}consumeCommand(e){return x.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hl});var It,Of,as,sE,Do,ls,Po,_f=l(()=>{"use strict";je();It=c(f());Kr();as=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},sE=Symbol("clearAfterUnitTest"),Do=class extends(0,It.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Of]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=x.getState().uiLocale,x.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=x.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 s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,It.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,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 s;let n=e.toLowerCase(),o=this.resolveContext(n);return new It.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},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(s){!(s instanceof It.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new as({loadedContexts:e})),this.dispatchEvent(new as({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new as({loadedContexts:[e]})),this.dispatchEvent(new as({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,It.delay)(0).then(()=>i()).catch(()=>null)))}};Of=sE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});ls=window.FluidTopicsI18nService,Po=window.FluidTopicsCustomI18nService});var Rf,jl,Tf=l(()=>{"use strict";Rf=c(f()),jl=class{highlightHtml(e,r,i){(0,Rf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new jl});var kf,ql,Lf=l(()=>{"use strict";kf=c(f());je();ql=class{isDate(e){var r,i,s,n;return(n=(i=((s=(r=x.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return kf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:x.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ql});var If,_r,Kl=l(()=>{"use strict";If=c(f());je();_r=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:n}=x.getState()){var o;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=n[0])===null||o===void 0?void 0:o.lang}return new If.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,n)}}});var Mo,$f=l(()=>{"use strict";Kr();Mo=class extends qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,s])=>Array.isArray(s)?[i,s.map(n=>typeof n=="object"&&n!=null&&!Array.isArray(n)?this.sortEventArrays(n):n).sort((n,o)=>typeof n=="object"&&n!==null&&"key"in n?n.key.localeCompare(o.key):typeof n=="string"&&typeof o=="string"?n.localeCompare(o):String(n).localeCompare(String(o)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(s=>(console.info(r),console.debug(s),i)),1e3)}}});var Wl,Df=l(()=>{"use strict";Kl();Wl=class{urlToSearchRequest(e){return _r.get().parse(e)}searchRequestToUrl(e){return _r.get().serialize(e)}};window.FluidTopicsUrlService=new Wl});var Ai,wi,Pf=l(()=>{"use strict";Ai=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ai.eventName="before-location-change";wi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};wi.eventName="change"});var Gl,Mf,Nf=l(()=>{"use strict";Gl=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))}},Mf=new Gl});var Rr,No,Ff=l(()=>{"use strict";Rr=c(f());Pf();Nf();No=class t extends Rr.WithEventBus{static build(){return new t(window.history,Mf,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,Rr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new wi(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let u=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),d=new Ai(u);this.dispatchEvent(d);let h=r(),p={...h===this.currentIndex?this.currentState:void 0,...n,index:h,href:d.detail.nextLocation.href};i.apply(s,[p,o,p.href]),this.setCurrentState(p,!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)}addBeforeLocationChangeListener(e){this.addEventListener(Ai.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ai.eventName,e)}addHistoryChangeListener(e){this.addEventListener(wi.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(wi.eventName,e)}currentItem(){return(0,Rr.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,Rr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Rr.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,Rr.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 s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}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 s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}}});var Bf=l(()=>{"use strict";Ff();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=No.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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var Uf=l(()=>{"use strict";je()});var Fo=l(()=>{"use strict";Fl();Dl();wf();_f();Kr();Tf();Nl();Lf();Kl();$f();Df();Bf();Uf()});var Vf,zf,Ql=l(()=>{"use strict";Vf=c(y()),zf=Vf.css`
273
- `});var Hf=l(()=>{"use strict"});function jf(t,e){let{authenticationRequired:r,session:i}=x.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var qf=l(()=>{"use strict";je()});var Bo,Kf=l(()=>{"use strict";Pl();Bo=class extends os{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var pr,Xl,Oi,Yl=l(()=>{"use strict";pr=c(f());je();qf();Fo();qr();Kf();Xl=class t extends pr.FtStateManager{static build(e){return new t(x,e)}constructor(e,r){super(),this.store=e,this.cache=new pr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Bo,this.knownContexts=new pr.AbstractRegistry,this.knownCustomComponents=new pr.AbstractRegistry,this.cleanSessionDebouncer=new pr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new pr.Debouncer(500),this.apiProvider=r??(()=>Ci.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ur.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ur.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",()=>jf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}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 rn(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)}userHasAnyRole(...e){return gf(x.getState().session,...e)}},Oi=Xl.build()});var _i,nn=l(()=>{_i=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}}});var Wf=l(()=>{});var Zl=l(()=>{nn();});var Gf=l(()=>{});var Jl=l(()=>{nn();Gf();});var on,Qf=l(()=>{nn();on=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:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new _i(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(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 Xf=l(()=>{Jl();});var Yf=l(()=>{Zl();});var Zf=l(()=>{nn();Wf();Zl();Jl();Qf();Xf();Yf()});var Jf,Ye,Ri,Re,ue,ec=l(()=>{"use strict";Jf=c(y()),Ye=c(P()),Ri=c(f());Ql();Fo();Yl();Zf();Re=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ue=class extends Ri.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=Oi,this.contextRoot=new on}render(){return Jf.html`
272
+ `});function Gd(t,e,r){return Ur(t,Fs(e,r))}function Bo(t,e){return typeof t=="function"?t(e):t}function Us(t){return t.split("-")[0]}function Vr(t){return t.split("-")[1]}function rl(t){return t==="x"?"y":"x"}function il(t){return t==="y"?"height":"width"}function Uo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function sl(t){return rl(Uo(t))}function Qd(t,e,r){r===void 0&&(r=!1);let i=Vr(t),s=sl(t),o=il(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=el(n)),[n,el(n)]}function Xd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function el(t){let e=Us(t);return zx[e]+t.slice(e.length)}function Hx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Yd(t){return typeof t!="number"?Hx(t):{top:t,right:t,bottom:t,left:t}}function mi(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var Wd,Kd,tl,Fs,Ur,Bs,nr,zx,Vo=l(()=>{Wd=["top","right","bottom","left"],Kd=["start","end"],tl=Wd.reduce((t,e)=>t.concat(e,e+"-"+Kd[0],e+"-"+Kd[1]),[]),Fs=Math.min,Ur=Math.max,Bs=Math.round,nr=t=>({x:t,y:t}),zx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Zd(t,e,r){let{reference:i,floating:s}=t,o=Uo(e),n=sl(e),a=il(n),u=Us(e),d=o==="y",h=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,S;switch(u){case"top":S={x:h,y:i.y-s.height};break;case"bottom":S={x:h,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:p};break;case"left":S={x:i.x-s.width,y:p};break;default:S={x:i.x,y:i.y}}let w=Vr(e);return w&&(S[n]+=m*(w==="end"?1:-1)*(r&&d?-1:1)),S}async function Jd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:S=0}=Bo(e,t),w=Yd(S),E=a[m?p==="floating"?"reference":"floating":p],H=mi(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(E)))==null||r?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:u})),Z=p==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(_))&&await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1},re=mi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Z,offsetParent:_,strategy:u}):Z);return{top:(H.top-re.top+w.top)/N.y,bottom:(re.bottom-H.bottom+w.bottom)/N.y,left:(H.left-re.left+w.left)/N.x,right:(re.right-H.right+w.right)/N.x}}function qx(t,e,r){return(t?[...r.filter(s=>Vr(s)===t),...r.filter(s=>Vr(s)!==t)]:r.filter(s=>Us(s)===s)).filter(s=>t?Vr(s)===t||(e?Xd(s)!==s:!1):!0)}var jx,ep,tp,rp,ip=l(()=>{Vo();Vo();jx=50,ep=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Jd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:p}=Zd(d,i,u),m=i,S=0,w={};for(let B=0;B<o.length;B++){let E=o[B];if(!E)continue;let{name:H,fn:Z}=E,{x:_,y:N,data:re,reset:_e}=await Z({x:h,y:p,initialPlacement:i,placement:m,strategy:s,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});h=_??h,p=N??p,w[H]={...w[H],...re},_e&&S<jx&&(S++,typeof _e=="object"&&(_e.placement&&(m=_e.placement),_e.rects&&(d=_e.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):_e.rects),{x:h,y:p}=Zd(d,m,u)),B=-1)}return{x:h,y:p,placement:m,strategy:s,middlewareData:w}};tp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:o,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:m=tl,autoAlignment:S=!0,...w}=Bo(t,e),B=p!==void 0||m===tl?qx(p||null,S,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,H=B[E];if(H==null)return{};if(a!==H)return{reset:{placement:B[0]}};let Z=await u.detectOverflow(e,w),_=Qd(H,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Z[Us(H)],Z[_[0]],Z[_[1]]],re=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:H,overflows:N}],_e=B[E+1];if(_e)return{data:{index:E+1,overflows:re},reset:{placement:_e}};let mt=re.map(Tt=>{let Ls=Vr(Tt.placement);return[Tt.placement,Ls&&h?Tt.overflows.slice(0,2).reduce((Tx,kx)=>Tx+kx,0):Tt.overflows[0],Tt.overflows]}).sort((Tt,Ls)=>Tt[1]-Ls[1]),Do=((s=mt.filter(Tt=>Tt[2].slice(0,Vr(Tt[0])?2:3).every(Ls=>Ls<=0))[0])==null?void 0:s[0])||mt[0][0];return Do!==a?{data:{index:E+1,overflows:re},reset:{placement:Do}}:{}}}},rp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:o}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Z=>{let{x:_,y:N}=Z;return{x:_,y:N}}},...d}=Bo(t,e),h={x:r,y:i},p=await o.detectOverflow(e,d),m=Uo(s),S=rl(m),w=h[S],B=h[m],E=(Z,_)=>Gd(_+p[Z==="y"?"top":"left"],_,_-p[Z==="y"?"bottom":"right"]);n&&(w=E(S,w)),a&&(B=E(m,B));let H=u.fn({...e,[S]:w,[m]:B});return{...H,data:{x:H.x-r,y:H.y-i,enabled:{[S]:n,[m]:a}}}}}}});function Ho(){return typeof window<"u"}function yi(t){return op(t)?(t.nodeName||"").toLowerCase():"#document"}function lt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ar(t){var e;return(e=(op(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function op(t){return Ho()?t instanceof Node||t instanceof lt(t).Node:!1}function qt(t){return Ho()?t instanceof Element||t instanceof lt(t).Element:!1}function wr(t){return Ho()?t instanceof HTMLElement||t instanceof lt(t).HTMLElement:!1}function sp(t){return!Ho()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function Vs(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Kt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function np(t){return/^(table|td|th)$/.test(yi(t))}function zs(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=qt(t)?Kt(t):t;return gi(e.transform)||gi(e.translate)||gi(e.scale)||gi(e.rotate)||gi(e.perspective)||!jo()&&(gi(e.backdropFilter)||gi(e.filter))||Kx.test(e.willChange||"")||Wx.test(e.contain||"")}function ap(t){let e=zr(t);for(;wr(e)&&!Yi(e);){if(Xi(e))return e;if(zs(e))return null;e=zr(e)}return null}function jo(){return ol==null&&(ol=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ol}function Yi(t){return/^(html|body|#document)$/.test(yi(t))}function Kt(t){return lt(t).getComputedStyle(t)}function Hs(t){return qt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function zr(t){if(yi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sp(t)&&t.host||Ar(t);return sp(e)?e.host:e}function lp(t){let e=zr(t);return Yi(e)?(t.ownerDocument||t).body:wr(e)&&Vs(e)?e:lp(e)}function zo(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=lp(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=lt(s);if(o){let a=qo(n);return e.concat(n,n.visualViewport||[],Vs(s)?s:[],a&&r?zo(a):[])}else return e.concat(s,zo(s,[],r))}function qo(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Kx,Wx,gi,ol,nl=l(()=>{Kx=/transform|translate|scale|rotate|perspective|filter/,Wx=/paint|layout|strict|content/,gi=t=>!!t&&t!=="none"});function dp(t){let e=Kt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=wr(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=Bs(r)!==o||Bs(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function pp(t){return qt(t)?t:t.contextElement}function Zi(t){let e=pp(t);if(!wr(e))return nr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=dp(e),n=(o?Bs(r.width):r.width)/i,a=(o?Bs(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function hp(t){let e=lt(t);return!jo()||!e.visualViewport?Gx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===lt(t)}function js(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=pp(t),n=nr(1);e&&(i?qt(i)&&(n=Zi(i)):n=Zi(t));let a=Qx(o,r,i)?hp(o):nr(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,h=s.width/n.x,p=s.height/n.y;if(o&&i){let m=lt(o),S=qt(i)?lt(i):i,w=m,B=qo(w);for(;B&&S!==w;){let E=Zi(B),H=B.getBoundingClientRect(),Z=Kt(B),_=H.left+(B.clientLeft+parseFloat(Z.paddingLeft))*E.x,N=H.top+(B.clientTop+parseFloat(Z.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,p*=E.y,u+=_,d+=N,w=lt(B),B=qo(w)}}return mi({width:h,height:p,x:u,y:d})}function Ko(t,e){let r=Hs(t).scrollLeft;return e?e.left+r:js(Ar(t)).left+r}function fp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ko(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Xx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=Ar(i),a=e?zs(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=nr(1),h=nr(0),p=wr(i);if((p||!o)&&((yi(i)!=="body"||Vs(n))&&(u=Hs(i)),p)){let S=js(i);d=Zi(i),h.x=S.x+i.clientLeft,h.y=S.y+i.clientTop}let m=n&&!p&&!o?fp(n,u):nr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+h.x+m.x,y:r.y*d.y-u.scrollTop*d.y+h.y+m.y}}function Yx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Zx(t){let e=Hs(t),r=t.ownerDocument.body,i=Ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Ko(t),n=-e.scrollTop;return Kt(r).direction==="rtl"&&(o+=Ur(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function eS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=lt(t),o=Ar(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,h=0;if(n){let m=!jo()||e==="fixed";i?m||(d=-n.offsetLeft,h=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,h=n.offsetTop))}if(Ko(o)<=0){let m=o.ownerDocument,S=m.body,w=getComputedStyle(S),B=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(o.clientWidth-S.clientWidth-B),H=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;H<=Jx&&(a-=H)}return{width:a,height:u,x:d,y:h}}function tS(t,e){let r=js(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Zi(t),n=t.clientWidth*o.x,a=t.clientHeight*o.y,u=s*o.x,d=i*o.y;return{width:n,height:a,x:u,y:d}}function cp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=eS(t,r,e);else if(e==="document")i=Zx(Ar(t));else if(qt(e))i=tS(e,r);else{let s=hp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return mi(i)}function rS(t,e){let r=e.get(t);if(r)return r;let i=zo(t,[],!1).filter(a=>qt(a)&&yi(a)!=="body"),s=null,o=Kt(t).position==="fixed",n=o?zr(t):t;for(;qt(n)&&!Yi(n);){let a=Kt(n),u=Xi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==n):s=a,n=zr(n)}return e.set(t,i),i}function iS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?zs(e)?[]:rS(e,this._c):[].concat(r),i],a=cp(e,n[0],s),u=a.top,d=a.right,h=a.bottom,p=a.left;for(let m=1;m<n.length;m++){let S=cp(e,n[m],s);u=Ur(S.top,u),d=Fs(S.right,d),h=Fs(S.bottom,h),p=Ur(S.left,p)}return{width:d-p,height:h-u,x:p,y:u}}function sS(t){let{width:e,height:r}=dp(t);return{width:e,height:r}}function oS(t,e,r){let i=wr(e),s=Ar(e),o=r==="fixed",n=js(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=nr(0);if((i||!o)&&((yi(e)!=="body"||Vs(s))&&(a=Hs(e)),i)){let m=js(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Ko(s));let d=s&&!i&&!o?fp(s,a):nr(0),h=n.left+a.scrollLeft-u.x-d.x,p=n.top+a.scrollTop-u.y-d.y;return{x:h,y:p,width:n.width,height:n.height}}function al(t){return Kt(t).position==="static"}function up(t,e){if(!wr(t)||Kt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ar(t)===r&&(r=r.ownerDocument.body),r}function mp(t,e){let r=lt(t);if(zs(t))return r;if(!wr(t)){let s=zr(t);for(;s&&!Yi(s);){if(qt(s)&&!al(s))return s;s=zr(s)}return r}let i=up(t,e);for(;i&&np(i)&&al(i);)i=up(i,e);return i&&Yi(i)&&al(i)&&!Xi(i)?r:i||ap(t)||r}function aS(t){return Kt(t).direction==="rtl"}var Gx,Jx,nS,Wo,gp,yp,bp,vp=l(()=>{ip();Vo();nl();Gx=nr(0);Jx=25;nS=async function(t){let e=this.getOffsetParent||mp,r=this.getDimensions,i=await r(t.floating);return{reference:oS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Wo={convertOffsetParentRelativeRectToViewportRelativeRect:Xx,getDocumentElement:Ar,getClippingRect:iS,getOffsetParent:mp,getElementRects:nS,getClientRects:Yx,getDimensions:sS,getScale:Zi,isElement:qt,isRTL:aS},gp=tp,yp=rp,bp=(t,e,r)=>{let i=new Map,s=r??{},o={...Wo,...s.platform,_c:i};return ep(t,e,{...s,platform:o})}});function xp(t){return lS(t)}function ll(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function lS(t){for(let e=t;e;e=ll(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ll(t);e;e=ll(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xi(r)||e.tagName==="BODY"))return e}return null}var Sp=l(()=>{nl()});async function Ep(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},bp(t,e,{strategy:i.strategy,platform:{...Wo,getOffsetParent:s=>Wo.getOffsetParent(s,xp)},middleware:[yp({crossAxis:!0}),gp({allowedPlacements:[i.placement]})]})}var Cp=l(()=>{"use strict";vp();Sp()});function wp(t,e){return(0,Ap.property)({type:Object,converter:cS(t),hasChanged:Ks,...e??{}})}var Ap,cl,cS,Go=l(()=>{"use strict";Ap=c(P(),1);bi();cl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},cS=t=>({fromAttribute:e=>{if(e==null)return qs(t);try{return JSON.parse(e)}catch{return qs(t)}},toAttribute:e=>JSON.stringify(e)})});function uS(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(!Ji(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(!Ji(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 s=n=>Object.keys(n).filter(a=>n[a]!=null),o=s(t);if(r=o.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let n=o[i];if(!Ji(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ji(t,e){try{return uS(t,e)}catch{return!1}}function Ks(t,e){return!Ji(t,e)}function qs(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Qo(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var bi=l(()=>{"use strict";Go()});var Op,ul,_p=l(()=>{"use strict";bi();Op=c(P(),1),ul=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:Ks,attribute:!1,...e};(0,Op.property)(o)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var Xo,dl=l(()=>{"use strict";Xo=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 Yo,Rp=l(()=>{"use strict";Yo=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 s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){s(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Jo,Zo,Tp=l(()=>{"use strict";Jo=c(y(),1);Go();Zo=class extends Jo.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(0,Jo.adoptStyles)(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){cl(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 kp(t,e,...r){var i;let s=t.querySelector(e);for(let o of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return s}var Lp=l(()=>{"use strict"});var vi,ts,Pp,Ip,$p,Mp,Dp,es,ar,Np=l(()=>{"use strict";vi=c(P(),1);Go();Rp();Tp();Lp();ts=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Ip=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Mp=Symbol("exportpartsDebouncer"),Dp=Symbol("dynamicDependenciesLoaded"),es=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};es.eventName="exportparts-updated";ar=class extends Zo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Pp]=new Yo(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[Mp].run(()=>{var s,o;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$p]=this.constructor.name,this[Ip]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Ip])}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[Dp]||(r[Dp]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(es.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(es.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 es)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let o=[...s??[],i];r=kp(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,s,o,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(n=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&n!==void 0?n:[],w=(a=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],B=[...S,...w].filter(u).map(E=>E.trim());for(let E of B)h.add(E)}if(h.size===0){this.exportparts=void 0;return}let p=[...h.values()].flatMap(m=>d.map(S=>`${m}:${S}--${m}`));this.exportparts=[...this.part,...p].join(", ")}};Pp=Mp;ts([(0,vi.property)()],ar.prototype,"exportpartsPrefix",void 0);ts([wp([])],ar.prototype,"exportpartsPrefixes",void 0);ts([(0,vi.property)({reflect:!0})],ar.prototype,"exportparts",void 0);ts([(0,vi.property)()],ar.prototype,"customStylesheet",void 0);ts([(0,vi.property)()],ar.prototype,"elementToFocus",void 0);ts([(0,vi.state)()],ar.prototype,"useAdoptedStyleSheets",void 0)});function en(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var tn=l(()=>{"use strict"});var Ws,Hr,xi,dS,Fp,Bp=l(()=>{"use strict";Np();tn();bi();Ws=Symbol("internalReduxEventsUnsubscribers"),Hr=Symbol("internalStoresUnsubscribers"),xi=Symbol("internalStores"),dS=Qo(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[xi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[xi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[xi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xi].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[Hr].has(n.store):this[Hr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u,d;this[Hr].set(n,a.subscribe(()=>this.updateFromStores())),this[Ws].set(n,[]),en(a)&&(!((u=a.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((h,p)=>{this.getStore(h.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((h,p)=>{if(typeof this[p]=="function"&&(!h.store||a.name===h.store)){let m=S=>this[p](S);a.addEventListener(h.eventName,m),this[Ws].get(n).push(()=>a.removeEventListener(h.eventName,m))}}))),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Hr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Hr].has(n)&&this[Hr].get(n)(),this[Hr].delete(n),(a=this[Ws].get(n))===null||a===void 0||a.forEach(u=>u()),this[Ws].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Hr,r=xi,i=Ws,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Fp=class extends dS(ar){}});function Me(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. `}function sn(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 hl(t,e,r){if(typeof t!="function")throw new Error(Me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(hl)(t,e)}let i=t,s=e,o=new Map,n=o,a=0,u=!1;function d(){n===o&&(n=new Map,o.forEach((E,H)=>{n.set(H,E)}))}function h(){if(u)throw new Error(Me(3));return s}function p(E){if(typeof E!="function")throw new Error(Me(4));if(u)throw new Error(Me(5));let H=!0;d();let Z=a++;return n.set(Z,E),function(){if(H){if(u)throw new Error(Me(6));H=!1,d(),n.delete(Z),o=null}}}function m(E){if(!sn(E))throw new Error(Me(7));if(typeof E.type>"u")throw new Error(Me(8));if(typeof E.type!="string")throw new Error(Me(17));if(u)throw new Error(Me(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Z=>{Z()}),E}function S(E){if(typeof E!="function")throw new Error(Me(10));i=E,m({type:rn.REPLACE})}function w(){let E=p;return{subscribe(H){if(typeof H!="object"||H===null)throw new Error(Me(11));function Z(){let N=H;N.next&&N.next(h())}return Z(),{unsubscribe:E(Z)}},[Up](){return this}}}return m({type:rn.INIT}),{dispatch:m,subscribe:p,getState:h,replaceReducer:S,[Up]:w}}function fS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:rn.INIT})>"u")throw new Error(Me(12));if(typeof r(void 0,{type:rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function fl(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,o;try{fS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,h={};for(let p=0;p<i.length;p++){let m=i[p],S=r[m],w=a[m],B=S(w,u);if(typeof B>"u"){let E=u&&u.type;throw new Error(Me(14))}h[m]=B,d=d||B!==w}return d=d||i.length!==Object.keys(a).length,d?h:a}}function Gs(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vp(...t){return e=>(r,i)=>{let s=e(r,i),o=()=>{throw new Error(Me(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Gs(...a)(s.dispatch),{...s,dispatch:o}}}function zp(t){return sn(t)&&"type"in t&&typeof t.type=="string"}var pS,Up,pl,hS,rn,ml=l(()=>{pS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Up=pS,pl=()=>Math.random().toString(36).substring(7).split("").join("."),hS={INIT:`@@redux/INIT${pl()}`,REPLACE:`@@redux/REPLACE${pl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pl()}`},rn=hS});function Wt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function yt(t){return t?Zp(t)||gn(t)||!!t[Hp]||!!t[ln]?.[Hp]||yn(t)||Js(t):!1}function Zp(t){if(!t||!_l(t))return!1;let e=is(t);if(e===null||e===gt[fn])return!0;let r=gt.hasOwnProperty.call(e,ln)&&e[ln];if(r===Object)return!0;if(!rs(r))return!1;let i=jp.get(r);return i===void 0&&(i=Function.toString.call(r),jp.set(r,i)),i===mS}function mn(t,e,r=!0){Zs(t)===0?(r?Reflect.ownKeys(t):gt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Zs(t){let e=t[He];return e?e.type_:gn(t)?1:yn(t)?2:Js(t)?3:0}function gS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function yS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function Sl(t,e){if(yn(t))return new Map(t);if(Js(t))return new Set(t);if(gn(t))return Array[fn].slice.call(t);let r=Zp(t);if(e===!0||e==="class_only"&&!r){let i=gt.getOwnPropertyDescriptors(t);delete i[He];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){let n=s[o],a=i[n];a[nn]===!1&&(a[nn]=!0,a[vl]=!0),(a.get||a.set)&&(i[n]={[vl]:!0,[nn]:!0,[cn]:a[cn],[Qs]:t[n]})}return gt.create(is(t),i)}else{let i=is(t);if(i!==null&&r)return{...t};let s=gt.create(i);return gt.assign(s,t)}}function bn(t,e=!1){return vn(t)||lr(t)||!yt(t)||(Zs(t)>1&&gt.defineProperties(t,{set:on,add:on,clear:on,delete:on}),gt.freeze(t),e&&mn(t,(r,i)=>{bn(i,!0)},!1)),t}function bS(){Wt(2)}function vn(t){return t===null||!_l(t)?!0:gt.isFrozen(t)}function Si(t){let e=Jp[t];return e||Wt(0,t),e}function Wp(t,e){e&&(t.patchPlugin_=Si(El),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Cl(t){Al(t),t.drafts_.forEach(xS),t.drafts_=null}function Al(t){t===Xs&&(Xs=t.parent_)}function xS(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(Cl(e),Wt(4)),yt(t)&&(t=Xp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Xp(e,r);return SS(e,t,!0),Cl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yp?t:void 0}function Xp(t,e){if(vn(e))return e;let r=e[He];if(!r)return pn(e,t.handledSet_,t);if(!xn(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);ih(r,t)}return r.copy_}function SS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&bn(e,r)}function th(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function rh(t,e,r,i){let s=Or(t),o=t.type_;if(i!==void 0&&xl(s,i,o)===e){un(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;mn(s,(u,d)=>{if(lr(d)){let h=a.get(d)||[];h.push(u),a.set(d,h)}})}let n=t.draftLocations_.get(e)??ES;for(let a of n)un(s,a,r,o)}function CS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!xn(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=Rl(o);rh(t,o.draft_??o,n,r),ih(o,s)})}function ih(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 s=i.getPath(t);s&&i.generatePatches_(t,s,e)}th(t)}}function AS(t,e,r){let{scope_:i}=t;if(lr(r)){let s=r[He];xn(s,i)&&s.callbacks_.push(function(){an(t);let n=Rl(s);rh(t,r,n,e)})}else yt(r)&&t.callbacks_.push(function(){let o=Or(t);t.type_===3?o.has(r)&&pn(r,i.handledSet_,i):xl(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&pn(xl(t.copy_,e,t.type_),i.handledSet_,i)})}function pn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||lr(t)||e.has(t)||!yt(t)||vn(t)||(e.add(t),mn(t,(i,s)=>{if(lr(s)){let o=s[He];if(xn(o,r)){let n=Rl(o);un(t,i,n,t.type_),th(o)}}else yt(s)&&pn(s,e,r)})),t}function wS(t,e){let r=gn(t),i={type_:r?1:0,scope_:e?e.scope_:eh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,o=hn;r&&(s=[i],o=Ys);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function bl(t,e){let r=t[He];return(r?Or(r):t)[e]}function OS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!yt(r)||r[He]?!1:t.baseRefs_.has(r)}function _S(t,e,r){let i=sh(e,r);return i?Qs in i?i[Qs]:i.get?.call(t.draft_):void 0}function sh(t,e){if(!(e in t))return;let r=is(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=is(r)}}function wl(t){t.modified_||(t.modified_=!0,t.parent_&&wl(t.parent_))}function an(t){t.copy_||(t.assigned_=new Map,t.copy_=Sl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Ol(t,e,r,i){let[s,o]=yn(e)?Si(dn).proxyMap_(e,r):Js(e)?Si(dn).proxySet_(e,r):wS(e,r);return(r?.scope_??eh()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?CS(r,o,i):o.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=u;o.modified_&&d&&d.generatePatches_(o,[],u)}),s}function oh(t){return lr(t)||Wt(10,t),nh(t)}function nh(t){if(!yt(t)||vn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Sl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Sl(t,!0);let s=r;return Js(r)&&(r=new Set),mn(s,(o,n)=>{un(r,o,nh(n))},i),e&&(e.finalized_=!1),r}var Yp,Hp,He,gt,is,ln,fn,vl,cn,nn,Qs,lr,mS,jp,gl,xl,un,gn,yn,Js,_l,rs,yl,Or,Rl,on,dn,El,qp,Jp,Kp,Xs,eh,vS,Gp,xn,ES,hn,Ys,RS,TS,a0,kS,Tl,ah=l(()=>{Yp=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");gt=Object,is=gt.getPrototypeOf,ln="constructor",fn="prototype",vl="configurable",cn="enumerable",nn="writable",Qs="value",lr=t=>!!t&&!!t[He];mS=gt[fn][ln].toString(),jp=new WeakMap;gl=(t,e,r=Zs(t))=>r===2?t.has(e):gt[fn].hasOwnProperty.call(t,e),xl=(t,e,r=Zs(t))=>r===2?t.get(e):t[e],un=(t,e,r,i=Zs(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};gn=Array.isArray,yn=t=>t instanceof Map,Js=t=>t instanceof Set,_l=t=>typeof t=="object",rs=t=>typeof t=="function",yl=t=>typeof t=="boolean";Or=t=>t.copy_||t.base_,Rl=t=>t.modified_?t.copy_:t.base_;on={[Qs]:bS};dn="MapSet",El="Patches",qp="ArrayMethods",Jp={};Kp=t=>!!Jp[t],eh=()=>Xs,vS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kp(dn)?Si(dn):void 0,arrayMethodsPlugin_:Kp(qp)?Si(qp):void 0});Gp=t=>Xs=vS(Xs,t);xn=(t,e)=>t.scope_===e,ES=[];hn={get(t,e){if(e===He)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 s=Or(t);if(!gl(s,e,t.type_))return _S(t,s,e);let o=s[e];if(t.finalized_||!yt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&yS(e))return o;if(o===bl(t.base_,e)||OS(t,e,o)){an(t);let n=t.type_===1?+e:e,a=Ol(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Or(t)},ownKeys(t){return Reflect.ownKeys(Or(t))},set(t,e,r){let i=sh(Or(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=bl(Or(t),e),o=s?.[He];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(gS(r,s)&&(r!==void 0||gl(t.base_,e,t.type_)))return!0;an(t),wl(t)}return t.copy_[e]===r&&(r!==void 0||gl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),AS(t,e,r)),!0},deleteProperty(t,e){return an(t),bl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),wl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[nn]:!0,[vl]:t.type_!==1||e!=="length",[cn]:i[cn],[Qs]:r[e]}},defineProperty(){Wt(11)},getPrototypeOf(t){return is(t.base_)},setPrototypeOf(){Wt(12)}},Ys={};for(let t in hn){let e=hn[t];Ys[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ys.deleteProperty=function(t,e){return Ys.set.call(this,t,e,void 0)};Ys.set=function(t,e,r){return hn.set.call(this,t[0],e,r,t[0])};RS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(rs(e)&&!rs(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,h=>r.call(this,h,...d))}}rs(r)||Wt(6),i!==void 0&&!rs(i)&&Wt(7);let s;if(yt(e)){let o=Gp(this),n=Ol(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?Cl(o):Al(o)}return Wp(o,i),Qp(s,o)}else if(!e||!_l(e)){if(s=r(e),s===void 0&&(s=e),s===Yp&&(s=void 0),this.autoFreeze_&&bn(s,!0),i){let o=[],n=[];Si(El).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else Wt(1,e)},this.produceWithPatches=(e,r)=>{if(rs(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,s;return[this.produce(e,r,(n,a)=>{i=n,s=a}),i,s]},yl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),yl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),yl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){yt(t)||Wt(8),lr(t)&&(t=oh(t));let e=Gp(this),r=Ol(e,t,void 0);return r[He].isManual_=!0,Al(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&Wt(9);let{scope_:i}=r;return Wp(i,e),Qp(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 s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Si(El).applyPatches_;return lr(t)?i(t,e):this.produce(t,s=>i(s,e))}};TS=globalThis.Iterator,a0=typeof TS?.from=="function",kS=new RS,Tl=kS.produce});function lh(t){return({dispatch:r,getState:i})=>s=>o=>typeof o=="function"?o(r,i,t):s(o)}var ch,uh,dh=l(()=>{ch=lh(),uh=lh});function to(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(cr(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>i!=null&&i.type===t&&zp(i),r}function ph(t){return yt(t)?Tl(t,()=>{}):t}function Sn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function IS(t){return typeof t=="boolean"}function mh(t){let e=$S(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:o=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(sn(r))u=fl(r);else throw new Error(cr(1));let d;typeof i=="function"?d=i(e):d=e();let h=Gs;s&&(h=LS({trace:!1,...typeof s=="object"&&s}));let p=Vp(...d),m=NS(p),S=typeof a=="function"?a(m):m(),w=h(...S);return hl(u,n,w)}function gh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(cr(28));if(a in e)throw new Error(cr(29));return e[a]=n,s},addAsyncThunk(o,n){return n.pending&&(e[o.pending.type]=n.pending),n.rejected&&(e[o.rejected.type]=n.rejected),n.fulfilled&&(e[o.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:o.settled,reducer:n.settled}),s},addMatcher(o,n){return r.push({matcher:o,reducer:n}),s},addDefaultCase(o){return i=o,s}};return t(s),[e,r,i]}function FS(t){return typeof t=="function"}function BS(t,e){let[r,i,s]=gh(e),o;if(FS(t))o=()=>ph(t());else{let u=ph(t);o=()=>u}function n(u,d,h){if(lr(u)){let p=d(u,h);return p===void 0?u:p}else{if(yt(u))return Tl(u,p=>d(p,h));{let p=d(u,h);if(p===void 0){if(u===null)return u;throw new Error(cr(9))}return p}}}function a(u=o(),d){let h=r[d.type],p;for(let{matcher:m,reducer:S}of i)m(d)&&S&&(p??=[]).push(S);if(!h&&!p)return s?n(u,s,d):u;if(h&&(u=n(u,h,d)),p)for(let m of p)u=n(u,m,d);return u}return a.getInitialState=o,a}function VS(t,e){return`${t}/${e}`}function zS({creators:t}={}){let e=t?.asyncThunk?.[US];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(cr(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(jS()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(_,N){let re=typeof _=="string"?_:_.type;if(!re)throw new Error(cr(12));if(re in u.sliceCaseReducersByType)throw new Error(cr(13));return u.sliceCaseReducersByType[re]=N,d},addMatcher(_,N){return u.sliceMatchers.push({matcher:_,reducer:N}),d},exposeAction(_,N){return u.actionCreators[_]=N,d},exposeCaseReducer(_,N){return u.sliceCaseReducersByName[_]=N,d}};a.forEach(_=>{let N=n[_],re={reducerName:_,type:VS(s,_),createNotation:typeof i.reducers=="function"};KS(N)?GS(re,N,d,e):qS(re,N,d)});function h(){let[_={},N=[],re=void 0]=typeof i.extraReducers=="function"?gh(i.extraReducers):[i.extraReducers],_e={..._,...u.sliceCaseReducersByType};return BS(i.initialState,mt=>{for(let ze in _e)mt.addCase(ze,_e[ze]);for(let ze of u.sliceMatchers)mt.addMatcher(ze.matcher,ze.reducer);for(let ze of N)mt.addMatcher(ze.matcher,ze.reducer);re&&mt.addDefaultCase(re)})}let p=_=>_,m=new Map,S=new WeakMap,w;function B(_,N){return w||(w=h()),w(_,N)}function E(){return w||(w=h()),w.getInitialState()}function H(_,N=!1){function re(mt){let ze=mt[_];return typeof ze>"u"&&N&&(ze=Sn(S,re,E)),ze}function _e(mt=p){return Sn(Sn(m,N,()=>new WeakMap),mt,()=>{let ze={};for(let[Do,Tt]of Object.entries(i.selectors??{}))ze[Do]=HS(Tt,mt,()=>Sn(S,mt,E),N);return ze})}return{reducerPath:_,getSelectors:_e,get selectors(){return _e(re)},selectSlice:re}}let Z={name:s,reducer:B,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...H(o),injectInto(_,{reducerPath:N,...re}={}){let _e=N??o;return _.inject({reducerPath:_e,reducer:B},re),{...Z,...H(_e,!0)}}};return Z}}function HS(t,e,r,i){function s(o,...n){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return s.unwrapped=t,s}function jS(){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 qS({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!WS(i))throw new Error(cr(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?to(t,n):to(t))}function KS(t){return t._reducerDefinitionType==="asyncThunk"}function WS(t){return t._reducerDefinitionType==="reducerWithPrepare"}function GS({type:t,reducerName:e},r,i,s){if(!s)throw new Error(cr(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:h}=r,p=s(t,o,h);i.exposeAction(e,p),n&&i.addCase(p.fulfilled,n),a&&i.addCase(p.pending,a),u&&i.addCase(p.rejected,u),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:n||En,pending:a||En,rejected:u||En,settled:d||En})}function En(){}function cr(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 LS,fh,$S,DS,hh,PS,MS,NS,US,yh,bh,vh,xh,m0,g0,y0,b0,Sh,kl,QS,v0,XS,Eh=l(()=>{ml();ah();dh();ml();LS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gs:Gs.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;fh=class eo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,eo.prototype)}static get[Symbol.species](){return eo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new eo(...e[0].concat(this)):new eo(...e.concat(this))}};$S=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new fh;return r&&(IS(r)?n.push(ch):n.push(uh(r.extraArgument))),n},DS="RTK_autoBatch",hh=t=>e=>{setTimeout(e,t)},PS=(t,e,r)=>i=>{let s=!1,o,n,a=()=>{s||(s=!0,e?.(o),clearTimeout(n),i())};o=t(a),n=setTimeout(a,r)},MS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,o=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?PS(window.requestAnimationFrame,window.cancelAnimationFrame,100):hh(10):t.type==="callback"?t.queueNotification:hh(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(h=>h()))};return Object.assign({},i,{subscribe(h){let p=()=>s&&h(),m=i.subscribe(p);return a.add(h),()=>{m(),a.delete(h)}},dispatch(h){try{return s=!h?.meta?.[DS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(h)}finally{s=!0}}})},NS=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fh(t);return i&&s.push(MS(typeof i=="object"?i:void 0)),s};US=Symbol.for("rtk-slice-createasyncthunk");yh=zS();bh="listener",vh="completed",xh="cancelled",m0=`task-${xh}`,g0=`task-${vh}`,y0=`${bh}-${xh}`,b0=`${bh}-${vh}`,{assign:Sh}=Object,kl="listenerMiddleware",QS=Sh(to(`${kl}/add`),{withTypes:()=>QS}),v0=to(`${kl}/removeAll`),XS=Sh(to(`${kl}/remove`),{withTypes:()=>XS})});var YS,Cn,Ch=l(()=>{"use strict";bi();YS=Qo(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Cn=class extends YS(Object){}});var Ah,wh=l(()=>{"use strict";Eh();tn();dl();Ch();bi();window.ftReduxStores||(window.ftReduxStores={});Ah=class t extends Cn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(en(o))return o;if(s==null)return;let n=yh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let h=qs(n.getInitialState());for(let p of d.keeping)h[p]=(u??h)[p];return h}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(n,a,s.eventBus,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new Xo,this.injectInto=(n,a)=>this.reduxSlice.injectInto(n,a),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,u)=>{let d=a,h=n[d];return h?(...p)=>{let m=h(...p.map(o));return this.reduxStore.dispatch(m),m}:p=>{let m=d,S=this.getState()[m];Ji(S,p)||this.setState({[m]:o(p)})}}}),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 Oh=l(()=>{"use strict";bi()});var _h=l(()=>{"use strict"});var Rh=l(()=>{"use strict";_p();dl();Bp();wh();tn();Oh();_h()});var An,Th=l(()=>{"use strict";An=class{static format(e,r,i,s,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!o)):this.getIntlDateTime(e,r,i,s,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,o){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return o?u:s?`${a} ${u}`: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 wn,ZS,ur,ro,JS,x,je=l(()=>{"use strict";wn=c(f()),ZS="ft-app-info",ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ur.eventName="authentication-change";ro=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ro.eventName="ui-locale-changed";JS={session:(t,e)=>{(0,wn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>x.dispatchEvent(new ur(e.payload)),0))}},x=wn.FtReduxStore.get({name:ZS,reducers:JS,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Ll,kh,On,W0,Lh=l(()=>{"use strict";Ll=c(P());Rh();Th();je();kh=c(f()),On=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},W0=(0,kh.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(x)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,o;return((o=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1)?a=>An.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return On([(0,Ll.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),On([(0,Ll.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),On([ul({store:x.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),On([ul({store:x.name})],e.prototype,"uiLocale",void 0),e})});var Il=l(()=>{});var Ih,$h,Dh,jr,Ph,Mh,Nh,Ei,Fh,Bh,Uh,Vh,zh,Hh,jh,qh,Kh,_n,Wh,Gh,ss,Qh,Rn,Xh,Yh,dr,os,Zh,pe,Lt,Jh,$l=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ih||(Ih={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})($h||($h={}));(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"})(Dh||(Dh={}));(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"})(jr||(jr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ph||(Ph={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Mh||(Mh={}));(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Nh||(Nh={}));(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"})(Ei||(Ei={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Fh||(Fh={}));(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Bh||(Bh={}));(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",t.DOC_DIFF="DOC_DIFF"})(Uh||(Uh={}));(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"})(Vh||(Vh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(zh||(zh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hh||(Hh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(jh||(jh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(qh||(qh={}));(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"})(Kh||(Kh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(_n||(_n={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Wh||(Wh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Gh||(Gh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ss||(ss={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Qh||(Qh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rn||(Rn={}));(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"})(Xh||(Xh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yh||(Yh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(dr||(dr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(os||(os={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Zh||(Zh={}));(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={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Lt||(Lt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Jh||(Jh={}))});var ef,tf,rf,sf,of,nf,af,lf,cf,uf,df,pf,hf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ef||(ef={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(tf||(tf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rf||(rf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sf||(sf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(of||(of={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(nf||(nf={}));(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(af||(af={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(lf||(lf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(cf||(cf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(uf||(uf={}));(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"})(df||(df={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(pf||(pf={}))});var ff=l(()=>{$l();hf()});function mf(t,e){return t===e||(eE[t]??[]).some(r=>mf(r,e))}function io(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=>mf(i,e))}function gf(t,...e){return t==null?!1:e.some(r=>io(t,r))}var eE,yf=l(()=>{$l();eE={[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]}});var bf=l(()=>{});var qr=l(()=>{Il();ff();yf();bf();Il()});var Ci,Dl=l(()=>{"use strict";je();Ci=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=x.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=x.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var ns,Pl=l(()=>{"use strict";Dl();ns=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ci.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ci.await()}}});var Ml,qe,Kr=l(()=>{"use strict";Ml=c(f());Pl();qe=class extends ns{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Ml.CacheRegistry,this.cache=e?s.commonCache:new Ml.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 Tn,Nl=l(()=>{"use strict";je();qr();Kr();Tn=class extends qe{async listMySearches(){let{session:e}=x.getState();return io(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var kn,Fl=l(()=>{"use strict";je();Kr();kn=class extends qe{async listMyBookmarks(){let e=x.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var Ln,vf=l(()=>{"use strict";je();Kr();Ln=class extends qe{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(`/api/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(`/api/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=x.getState().session;return!!e?.sessionAuthenticated}}});var In,xf=l(()=>{"use strict";Kr();je();In=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/api/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=x.getState().session;return!!e?.sessionAuthenticated}}});var $n,tE,rE,Cf,Bl,Ul,Sf,Ef,Xe,Vl,iE,zl=l(()=>{"use strict";qr();$n=c(f());Nl();Fl();je();vf();xf();tE="ft-user-assets",rE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Lt).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:s}=e.payload;Ul(t,r,[...Bl(t,r),s]),Sf(t,r,1,i),Ef(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ul(t,r,Bl(t,r).map(s=>s.id===i.id?i:s)),Ef(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ul(t,r,Bl(t,r).filter(o=>o.id!==s)),Sf(t,r,-1,i)}},Cf={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Bl=(t,e)=>{var r;let i=Cf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ul=(t,e,r)=>{let i=Cf[e];i&&(t[i]=r)},Sf=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Lt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Ef=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Xe=$n.FtReduxStore.get({name:tE,reducers:rE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vl=class{constructor(e=new Ln,r=new In){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=x.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new kn,this.savedSearchesService=new Tn,x.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=x.getState();(0,$n.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(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.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;Xe.actions.bookmarks(r)}}},iE=new Vl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=iE)});var Af=l(()=>{"use strict";qr();zl()});var Hl,wf=l(()=>{"use strict";je();Hl=class{addCommand(e,r=!1){x.commands.add(e,r)}consumeCommand(e){return x.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hl});var It,Of,as,sE,Dn,ls,Pn,_f=l(()=>{"use strict";je();It=c(f());Kr();as=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},sE=Symbol("clearAfterUnitTest"),Dn=class extends(0,It.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Of]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=x.getState().uiLocale,x.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=x.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 s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,It.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,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 s;let o=e.toLowerCase(),n=this.resolveContext(o);return new It.ParametrizedLabelResolver((s=this.defaultMessages[o])!==null&&s!==void 0?s:{},n).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(s){!(s instanceof It.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new as({loadedContexts:e})),this.dispatchEvent(new as({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new as({loadedContexts:[e]})),this.dispatchEvent(new as({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,It.delay)(0).then(()=>i()).catch(()=>null)))}};Of=sE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});ls=window.FluidTopicsI18nService,Pn=window.FluidTopicsCustomI18nService});var Rf,jl,Tf=l(()=>{"use strict";Rf=c(f()),jl=class{highlightHtml(e,r,i){(0,Rf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new jl});var kf,ql,Lf=l(()=>{"use strict";kf=c(f());je();ql=class{isDate(e){var r,i,s,o;return(o=(i=((s=(r=x.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return kf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:x.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ql});var If,_r,Kl=l(()=>{"use strict";If=c(f());je();_r=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:o}=x.getState()){var n;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||o.length>0&&!o.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(n=o[0])===null||n===void 0?void 0:n.lang}return new If.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,o)}}});var Mn,$f=l(()=>{"use strict";Kr();Mn=class extends qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,s])=>Array.isArray(s)?[i,s.map(o=>typeof o=="object"&&o!=null&&!Array.isArray(o)?this.sortEventArrays(o):o).sort((o,n)=>typeof o=="object"&&o!==null&&"key"in o?o.key.localeCompare(n.key):typeof o=="string"&&typeof n=="string"?o.localeCompare(n):String(o).localeCompare(String(n)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(s=>(console.info(r),console.debug(s),i)),1e3)}}});var Wl,Df=l(()=>{"use strict";Kl();Wl=class{urlToSearchRequest(e){return _r.get().parse(e)}searchRequestToUrl(e){return _r.get().serialize(e)}};window.FluidTopicsUrlService=new Wl});var Ai,wi,Pf=l(()=>{"use strict";Ai=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ai.eventName="before-location-change";wi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};wi.eventName="change"});var Gl,Mf,Nf=l(()=>{"use strict";Gl=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))}},Mf=new Gl});var Rr,Nn,Ff=l(()=>{"use strict";Rr=c(f());Pf();Nf();Nn=class t extends Rr.WithEventBus{static build(){return new t(window.history,Mf,()=>window.location,!1)}constructor(e,r,i,s){var o,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,Rr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new wi(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),d=new Ai(u);this.dispatchEvent(d);let h=r(),p={...h===this.currentIndex?this.currentState:void 0,...o,index:h,href:d.detail.nextLocation.href};i.apply(s,[p,n,p.href]),this.setCurrentState(p,!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)}addBeforeLocationChangeListener(e){this.addEventListener(Ai.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ai.eventName,e)}addHistoryChangeListener(e){this.addEventListener(wi.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(wi.eventName,e)}currentItem(){return(0,Rr.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,Rr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Rr.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,Rr.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 s=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(s=o),o++;return s}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 s=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=s}}});var Bf=l(()=>{"use strict";Ff();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Nn.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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var Uf=l(()=>{"use strict";je()});var Fn=l(()=>{"use strict";Fl();Dl();wf();_f();Kr();Tf();Nl();Lf();Kl();$f();Df();Bf();Uf()});var Vf,zf,Ql=l(()=>{"use strict";Vf=c(y()),zf=Vf.css`
273
+ `});var Hf=l(()=>{"use strict"});function jf(t,e){let{authenticationRequired:r,session:i}=x.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var qf=l(()=>{"use strict";je()});var Bn,Kf=l(()=>{"use strict";Pl();Bn=class extends ns{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var pr,Xl,Oi,Yl=l(()=>{"use strict";pr=c(f());je();qf();Fn();qr();Kf();Xl=class t extends pr.FtStateManager{static build(e){return new t(x,e)}constructor(e,r){super(),this.store=e,this.cache=new pr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Bn,this.knownContexts=new pr.AbstractRegistry,this.knownCustomComponents=new pr.AbstractRegistry,this.cleanSessionDebouncer=new pr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new pr.Debouncer(500),this.apiProvider=r??(()=>Ci.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ur.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ur.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",()=>jf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}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 ro(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)}userHasAnyRole(...e){return gf(x.getState().session,...e)}},Oi=Xl.build()});var _i,so=l(()=>{_i=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}}});var Wf=l(()=>{});var Zl=l(()=>{so();});var Gf=l(()=>{});var Jl=l(()=>{so();Gf();});var oo,Qf=l(()=>{so();oo=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:s,callbackRef:o}of i){let n=s.deref(),a=o.deref();n===void 0||a===void 0||n.dispatchEvent(new _i(e.context,n,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let o=s.callbacks.get(r);o===void 0&&s.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),s.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 Xf=l(()=>{Jl();});var Yf=l(()=>{Zl();});var Zf=l(()=>{so();Wf();Zl();Jl();Qf();Xf();Yf()});var Jf,Ye,Ri,Re,ue,ec=l(()=>{"use strict";Jf=c(y()),Ye=c(P()),Ri=c(f());Ql();Fn();Yl();Zf();Re=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ue=class extends Ri.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=Oi,this.contextRoot=new oo}render(){return Jf.html`
274
274
  <slot></slot>
275
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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=>ls.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())}};ue.elementDefinitions={};ue.styles=zf;Re([(0,Ye.property)()],ue.prototype,"baseUrl",void 0);Re([(0,Ye.property)()],ue.prototype,"tenantId",void 0);Re([(0,Ye.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);Re([(0,Ye.property)()],ue.prototype,"apiIntegrationAppVersion",void 0);Re([(0,Ye.property)()],ue.prototype,"uiLocale",void 0);Re([(0,Ri.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);Re([(0,Ri.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"editorMode",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"noCustom",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);Re([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);Re([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomCode",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"authenticationRequired",void 0);Re([(0,Ri.jsonProperty)([])],ue.prototype,"messageContexts",void 0);Re([(0,Ri.jsonProperty)(void 0)],ue.prototype,"session",void 0)});var em,tm=l(()=>{"use strict";ec();em={"ft-app-context":ue}});var rm,im=l(()=>{"use strict";rm=c(f());tm();(0,rm.customElements)(em)});var Gt=l(()=>{"use strict";Lh();je();zl();Af();Fo();Ql();Hf();ec();Yl();im()});var tc,cs,Uo=l(()=>{"use strict";tc=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-]+$/)}},cs=new tc});var us,sm,aE,ln,nm,om,Vo,an,ct,zo,Ho,cn=l(()=>{"use strict";us=c(f());Gt();sm=c(P());Uo();aE=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ln=Symbol("i18nAttributes"),nm=Symbol("i18nListAttributes"),om=Symbol("i18nProperties"),Vo=Symbol("i18nContexts"),an=Symbol("i18nUnsubs"),ct=(0,us.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(n){return n??this.useCustomMessageContexts?Po:ls}i18n(n){let{context:o,key:a,message:u}=n,{custom:d,args:h,argsProvider:p}=n;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,d);let m=h??(p?p(this):[]);return this.getI18nService(d).resolveMessage(o,a,...m)}return u}async awaitI18n(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(cs.isI18nKey(n)){let[a,u]=n.split(".");return this.i18n({custom:!0,context:a,key:u,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,u)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let u=this,d=(h,p,m)=>m?.context&&m.key&&n(h,p,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(o=this[ln])===null||o===void 0||o.forEach((h,p)=>u[p]=d(h,p,u[p])),(a=this[nm])===null||a===void 0||a.forEach((h,p)=>{var m;return u[p]=(m=u[p])===null||m===void 0?void 0:m.map(S=>d(h,p,S))})}updateI18nProperties(n){var o;(o=this[om])===null||o===void 0||o.forEach((a,u)=>{n(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let u=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Vo].set(u,{isCustomContext:a}),this[an].has(u)||this[an].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,o)}hasI18nContext(n){return this[Vo].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vo].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[an].forEach(n=>n()),this[an].clear()}}return e=Vo,r=an,aE([(0,sm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),zo=class extends ct(us.FtLitElement){},Ho=class extends ct(us.FtLitElementRedux){}});var rc,lE,am=l(()=>{"use strict";Uo();rc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?cs.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lE=new rc});var lm,Ti,jo=l(()=>{"use strict";cn();lm=c(f());Uo();am();Ti=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:lm.hasChanged,converter:cs,...e}),r[ln]=(s=r[ln])!==null&&s!==void 0?s:new Map,r[ln].set(i,t??{})}});var $t,cm=l(()=>{"use strict";Gt();$t=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?Po:ls}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let n=s;return o=>({context:this.name,key:n,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...n)=>this.service.resolveMessage(this.name,s,...n)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}}});var um=l(()=>{"use strict";cn()});var dm,pm,ic=l(()=>{"use strict";dm=c(y()),pm=dm.css`
276
- `});var hm=l(()=>{"use strict"});var qo,ps,Ko,ds,Dt,sc=l(()=>{"use strict";qo=c(y()),ps=c(P()),Ko=c(f());ic();cn();Gt();ds=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Dt=class extends Ho{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(x)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:qo.nothing:qo.html`
275
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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=>ls.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())}};ue.elementDefinitions={};ue.styles=zf;Re([(0,Ye.property)()],ue.prototype,"baseUrl",void 0);Re([(0,Ye.property)()],ue.prototype,"tenantId",void 0);Re([(0,Ye.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);Re([(0,Ye.property)()],ue.prototype,"apiIntegrationAppVersion",void 0);Re([(0,Ye.property)()],ue.prototype,"uiLocale",void 0);Re([(0,Ri.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);Re([(0,Ri.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"editorMode",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"noCustom",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);Re([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);Re([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomCode",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);Re([(0,Ye.property)({type:Boolean})],ue.prototype,"authenticationRequired",void 0);Re([(0,Ri.jsonProperty)([])],ue.prototype,"messageContexts",void 0);Re([(0,Ri.jsonProperty)(void 0)],ue.prototype,"session",void 0)});var em,tm=l(()=>{"use strict";ec();em={"ft-app-context":ue}});var rm,im=l(()=>{"use strict";rm=c(f());tm();(0,rm.customElements)(em)});var Gt=l(()=>{"use strict";Lh();je();zl();Af();Fn();Ql();Hf();ec();Yl();im()});var tc,cs,Un=l(()=>{"use strict";tc=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-]+$/)}},cs=new tc});var us,sm,aE,ao,om,nm,Vn,no,ct,zn,Hn,lo=l(()=>{"use strict";us=c(f());Gt();sm=c(P());Un();aE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ao=Symbol("i18nAttributes"),om=Symbol("i18nListAttributes"),nm=Symbol("i18nProperties"),Vn=Symbol("i18nContexts"),no=Symbol("i18nUnsubs"),ct=(0,us.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(o){return o??this.useCustomMessageContexts?Pn:ls}i18n(o){let{context:n,key:a,message:u}=o,{custom:d,args:h,argsProvider:p}=o;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=h??(p?p(this):[]);return this.getI18nService(d).resolveMessage(n,a,...m)}return u}async awaitI18n(o){let{context:n,custom:a}=o;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(o)}customI18n(o,n){if(cs.isI18nKey(o)){let[a,u]=o.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((n,a,u)=>o.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(n=>n.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var n,a;let u=this,d=(h,p,m)=>m?.context&&m.key&&o(h,p,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(n=this[ao])===null||n===void 0||n.forEach((h,p)=>u[p]=d(h,p,u[p])),(a=this[om])===null||a===void 0||a.forEach((h,p)=>{var m;return u[p]=(m=u[p])===null||m===void 0?void 0:m.map(S=>d(h,p,S))})}updateI18nProperties(o){var n;(n=this[nm])===null||n===void 0||n.forEach((a,u)=>{o(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(o,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,n,a)}addI18nContext(o,n,a){let u=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Vn].set(u,{isCustomContext:a}),this[no].has(u)||this[no].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(o){return this[Vn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vn].forEach((o,n)=>this.addI18nContext(n,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[no].forEach(o=>o()),this[no].clear()}}return e=Vn,r=no,aE([(0,sm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),zn=class extends ct(us.FtLitElement){},Hn=class extends ct(us.FtLitElementRedux){}});var rc,lE,am=l(()=>{"use strict";Un();rc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?cs.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lE=new rc});var lm,Ti,jn=l(()=>{"use strict";lo();lm=c(f());Un();am();Ti=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:lm.hasChanged,converter:cs,...e}),r[ao]=(s=r[ao])!==null&&s!==void 0?s:new Map,r[ao].set(i,t??{})}});var $t,cm=l(()=>{"use strict";Gt();$t=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?Pn:ls}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let o=s;return n=>({context:this.name,key:o,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...o)=>this.service.resolveMessage(this.name,s,...o)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}}});var um=l(()=>{"use strict";lo()});var dm,pm,ic=l(()=>{"use strict";dm=c(y()),pm=dm.css`
276
+ `});var hm=l(()=>{"use strict"});var qn,ps,Kn,ds,Dt,sc=l(()=>{"use strict";qn=c(y()),ps=c(P()),Kn=c(f());ic();lo();Gt();ds=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Dt=class extends Hn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(x)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:qn.nothing:qn.html`
277
277
  <span class="ft-i18n">
278
278
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
279
279
  </span>
280
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Dt.elementDefinitions={};Dt.styles=pm;ds([(0,Ko.redux)()],Dt.prototype,"editorMode",void 0);ds([(0,ps.property)()],Dt.prototype,"context",void 0);ds([(0,ps.property)()],Dt.prototype,"key",void 0);ds([(0,Ko.jsonProperty)([])],Dt.prototype,"args",void 0);ds([(0,ps.property)()],Dt.prototype,"defaultMessage",void 0);ds([(0,ps.state)()],Dt.prototype,"editorMessage",void 0)});var fm,mm=l(()=>{"use strict";sc();fm={"ft-i18n":Dt}});var gm,ym=l(()=>{"use strict";gm=c(f());mm();(0,gm.customElements)(fm)});var bt=l(()=>{"use strict";cm();cn();um();ic();hm();sc();ym()});var bm,Mt,Pt,Qt,ye,nc=l(()=>{"use strict";bm=c(y()),Mt=c(P()),Pt=c(f());ge();Ja();Cp();jo();bt();Qt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ye=class extends zo{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Pt.Debouncer,this.revealDebouncer=new Pt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return bm.html`
280
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Dt.elementDefinitions={};Dt.styles=pm;ds([(0,Kn.redux)()],Dt.prototype,"editorMode",void 0);ds([(0,ps.property)()],Dt.prototype,"context",void 0);ds([(0,ps.property)()],Dt.prototype,"key",void 0);ds([(0,Kn.jsonProperty)([])],Dt.prototype,"args",void 0);ds([(0,ps.property)()],Dt.prototype,"defaultMessage",void 0);ds([(0,ps.state)()],Dt.prototype,"editorMessage",void 0)});var fm,mm=l(()=>{"use strict";sc();fm={"ft-i18n":Dt}});var gm,ym=l(()=>{"use strict";gm=c(f());mm();(0,gm.customElements)(fm)});var bt=l(()=>{"use strict";cm();lo();um();ic();hm();sc();ym()});var bm,Mt,Pt,Qt,ye,oc=l(()=>{"use strict";bm=c(y()),Mt=c(P()),Pt=c(f());ge();Ja();Cp();jn();bt();Qt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ye=class extends zn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Pt.Debouncer,this.revealDebouncer=new Pt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return bm.html`
281
281
  <div part="container"
282
282
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
283
283
  <slot part="slot"></slot>
@@ -292,7 +292,7 @@
292
292
  </div>
293
293
  </div>
294
294
  </div>
295
- `}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 s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Ep(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 ${Pt.designSystemVariables.transitionDuration}, left ${Pt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Pt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ye.elementDefinitions={"ft-typography":V};ye.styles=qd;Qt([Ti()],ye.prototype,"text",void 0);Qt([(0,Mt.property)({type:Boolean})],ye.prototype,"manual",void 0);Qt([(0,Mt.property)({type:Boolean})],ye.prototype,"inline",void 0);Qt([(0,Pt.numberProperty)()],ye.prototype,"delay",void 0);Qt([(0,Mt.property)()],ye.prototype,"position",void 0);Qt([(0,Pt.jsonProperty)([])],ye.prototype,"ignoreMatchingElements",void 0);Qt([(0,Mt.queryAssignedNodes)()],ye.prototype,"slotNodes",void 0);Qt([(0,Mt.query)(".ft-tooltip--container")],ye.prototype,"container",void 0);Qt([(0,Mt.query)(".ft-tooltip")],ye.prototype,"tooltip",void 0);Qt([(0,Mt.query)(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0);Qt([(0,Mt.state)()],ye.prototype,"visible",void 0)});var vm=l(()=>{"use strict"});var xm,Sm=l(()=>{"use strict";nc();xm={"ft-tooltip":ye}});var Em,Cm=l(()=>{"use strict";Em=c(f());Sm();(0,Em.customElements)(xm)});var oc=l(()=>{"use strict";nc();Ja();vm();Cm()});var Am,Xt,Ze,wm,hs=l(()=>{"use strict";Am=c(y()),Xt=c(f()),Ze={size:Xt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Xt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wm=[Am.css`
295
+ `}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 s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Ep(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 ${Pt.designSystemVariables.transitionDuration}, left ${Pt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Pt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ye.elementDefinitions={"ft-typography":V};ye.styles=qd;Qt([Ti()],ye.prototype,"text",void 0);Qt([(0,Mt.property)({type:Boolean})],ye.prototype,"manual",void 0);Qt([(0,Mt.property)({type:Boolean})],ye.prototype,"inline",void 0);Qt([(0,Pt.numberProperty)()],ye.prototype,"delay",void 0);Qt([(0,Mt.property)()],ye.prototype,"position",void 0);Qt([(0,Pt.jsonProperty)([])],ye.prototype,"ignoreMatchingElements",void 0);Qt([(0,Mt.queryAssignedNodes)()],ye.prototype,"slotNodes",void 0);Qt([(0,Mt.query)(".ft-tooltip--container")],ye.prototype,"container",void 0);Qt([(0,Mt.query)(".ft-tooltip")],ye.prototype,"tooltip",void 0);Qt([(0,Mt.query)(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0);Qt([(0,Mt.state)()],ye.prototype,"visible",void 0)});var vm=l(()=>{"use strict"});var xm,Sm=l(()=>{"use strict";oc();xm={"ft-tooltip":ye}});var Em,Cm=l(()=>{"use strict";Em=c(f());Sm();(0,Em.customElements)(xm)});var nc=l(()=>{"use strict";oc();Ja();vm();Cm()});var Am,Xt,Ze,wm,hs=l(()=>{"use strict";Am=c(y()),Xt=c(f()),Ze={size:Xt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Xt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wm=[Am.css`
296
296
  :host, i.ft-icon {
297
297
  display: inline-flex;
298
298
  align-items: center;
@@ -340,12 +340,12 @@
340
340
  .ft-icon--material {
341
341
  font-family: ${Ze.materialFontFamily}, "Material Icons", sans-serif;
342
342
  }
343
- `,Xt.noTextSelect]});var Je,ac=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}))});var Wo=Wi((b_,Om)=>{Om.exports=ftGlobals.litUnsafeHTML});function Go(t,e){var r,i,s,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=cE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(s=(i=lc.get(a))!==null&&i!==void 0?i:lc.get(e))!==null&&s!==void 0?s:lc.get(o))!==null&&n!==void 0?n:b.UNKNOWN}var Ae,b,lc,cE,v_,cc=l(()=>{"use strict";(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;"})(Ae||(Ae={}));(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;"})(b||(b={}));lc=new Map([...["abw"].map(t=>[t,b.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,b.AUDIO]),...["avi"].map(t=>[t,b.AVI]),...["chm","xhs"].map(t=>[t,b.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,b.CODE]),...["csv"].map(t=>[t,b.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,b.DITA]),...["epub"].map(t=>[t,b.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,b.EXCEL]),...["flac"].map(t=>[t,b.FLAC]),...["gif"].map(t=>[t,b.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,b.GZIP]),...["html","htm","xhtml"].map(t=>[t,b.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,b.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,b.JPEG]),...["json"].map(t=>[t,b.JSON]),...["m4a","m4p"].map(t=>[t,b.M4A]),...["mov","qt"].map(t=>[t,b.MOV]),...["mp3"].map(t=>[t,b.MP3]),...["mp4","m4v"].map(t=>[t,b.MP4]),...["ogg","oga"].map(t=>[t,b.OGG]),...["pdf","ps"].map(t=>[t,b.PDF]),...["png"].map(t=>[t,b.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,b.POWERPOINT]),...["rar"].map(t=>[t,b.RAR]),...["stp"].map(t=>[t,b.STP]),...["txt","rtf","md","mdown"].map(t=>[t,b.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,b.VIDEO]),...["wav"].map(t=>[t,b.WAV]),...["wma"].map(t=>[t,b.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,b.WORD]),...["xml","xsl","rdf"].map(t=>[t,b.XML]),...["yaml","yml","x-yaml"].map(t=>[t,b.YAML]),...["zip"].map(t=>[t,b.ZIP])]),cE=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"]]);v_={[b.ABW]:"#91ABC6",[b.AUDIO]:"#1795E3",[b.AVI]:"#E63324",[b.CHM]:"#71C3EB",[b.CODE]:"#71C3EB",[b.CSV]:"#1F7345",[b.DITA]:"#71C3EB",[b.EPUB]:"#85B926",[b.EXCEL]:"#1F7345",[b.FLAC]:"#1795E3",[b.GIF]:"#59B031",[b.GZIP]:"#F8AB36",[b.HTML]:"#71C3EB",[b.IMAGE]:"#59B031",[b.JPEG]:"#59B031",[b.JSON]:"#71C3EB",[b.M4A]:"#1795E3",[b.MOV]:"#E63324",[b.MP3]:"#1795E3",[b.MP4]:"#E63324",[b.OGG]:"#1795E3",[b.PDF]:"#E44948",[b.PNG]:"#59B031",[b.POWERPOINT]:"#B54A2B",[b.RAR]:"#F8AB36",[b.STP]:"#3764B1",[b.TEXT]:"#3162AB",[b.UNKNOWN]:"#999999",[b.VIDEO]:"#E63324",[b.WAV]:"#1795E3",[b.WMA]:"#1795E3",[b.WORD]:"#3162AB",[b.XML]:"#71C3EB",[b.YAML]:"#71C3EB",[b.ZIP]:"#F8AB36"}});var un,Wr,_m,Rm,dn,oe,uc=l(()=>{"use strict";un=c(y()),Wr=c(P()),_m=c(f()),Rm=c(Wo());cc();hs();ac();dn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends _m.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=un.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,r=e!==Je.material||!!this.value;return un.html`
343
+ `,Xt.noTextSelect]});var Je,ac=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}))});var Wn=Wi((b_,Om)=>{Om.exports=ftGlobals.litUnsafeHTML});function Gn(t,e){var r,i,s,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=cE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(s=(i=lc.get(a))!==null&&i!==void 0?i:lc.get(e))!==null&&s!==void 0?s:lc.get(n))!==null&&o!==void 0?o:b.UNKNOWN}var Ae,b,lc,cE,v_,cc=l(()=>{"use strict";(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;"})(Ae||(Ae={}));(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;"})(b||(b={}));lc=new Map([...["abw"].map(t=>[t,b.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,b.AUDIO]),...["avi"].map(t=>[t,b.AVI]),...["chm","xhs"].map(t=>[t,b.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,b.CODE]),...["csv"].map(t=>[t,b.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,b.DITA]),...["epub"].map(t=>[t,b.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,b.EXCEL]),...["flac"].map(t=>[t,b.FLAC]),...["gif"].map(t=>[t,b.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,b.GZIP]),...["html","htm","xhtml"].map(t=>[t,b.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,b.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,b.JPEG]),...["json"].map(t=>[t,b.JSON]),...["m4a","m4p"].map(t=>[t,b.M4A]),...["mov","qt"].map(t=>[t,b.MOV]),...["mp3"].map(t=>[t,b.MP3]),...["mp4","m4v"].map(t=>[t,b.MP4]),...["ogg","oga"].map(t=>[t,b.OGG]),...["pdf","ps"].map(t=>[t,b.PDF]),...["png"].map(t=>[t,b.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,b.POWERPOINT]),...["rar"].map(t=>[t,b.RAR]),...["stp"].map(t=>[t,b.STP]),...["txt","rtf","md","mdown"].map(t=>[t,b.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,b.VIDEO]),...["wav"].map(t=>[t,b.WAV]),...["wma"].map(t=>[t,b.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,b.WORD]),...["xml","xsl","rdf"].map(t=>[t,b.XML]),...["yaml","yml","x-yaml"].map(t=>[t,b.YAML]),...["zip"].map(t=>[t,b.ZIP])]),cE=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"]]);v_={[b.ABW]:"#91ABC6",[b.AUDIO]:"#1795E3",[b.AVI]:"#E63324",[b.CHM]:"#71C3EB",[b.CODE]:"#71C3EB",[b.CSV]:"#1F7345",[b.DITA]:"#71C3EB",[b.EPUB]:"#85B926",[b.EXCEL]:"#1F7345",[b.FLAC]:"#1795E3",[b.GIF]:"#59B031",[b.GZIP]:"#F8AB36",[b.HTML]:"#71C3EB",[b.IMAGE]:"#59B031",[b.JPEG]:"#59B031",[b.JSON]:"#71C3EB",[b.M4A]:"#1795E3",[b.MOV]:"#E63324",[b.MP3]:"#1795E3",[b.MP4]:"#E63324",[b.OGG]:"#1795E3",[b.PDF]:"#E44948",[b.PNG]:"#59B031",[b.POWERPOINT]:"#B54A2B",[b.RAR]:"#F8AB36",[b.STP]:"#3764B1",[b.TEXT]:"#3162AB",[b.UNKNOWN]:"#999999",[b.VIDEO]:"#E63324",[b.WAV]:"#1795E3",[b.WMA]:"#1795E3",[b.WORD]:"#3162AB",[b.XML]:"#71C3EB",[b.YAML]:"#71C3EB",[b.ZIP]:"#F8AB36"}});var co,Wr,_m,Rm,uo,ne,uc=l(()=>{"use strict";co=c(y()),Wr=c(P()),_m=c(f()),Rm=c(Wn());cc();hs();ac();uo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ne=class extends _m.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=co.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,r=e!==Je.material||!!this.value;return co.html`
344
344
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
345
345
  ${(0,Rm.unsafeHTML)(this.resolvedIcon)}
346
346
  <slot ?hidden=${r}></slot>
347
347
  </i>
348
- `}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 Je.file_format:this.resolvedIcon=(e=b[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Je.material:this.resolvedIcon=this.value||un.nothing;break;default:this.resolvedIcon=(r=Ae[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=wm;dn([(0,Wr.property)()],oe.prototype,"variant",void 0);dn([(0,Wr.property)()],oe.prototype,"value",void 0);dn([(0,Wr.property)({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);dn([(0,Wr.state)()],oe.prototype,"resolvedIcon",void 0);dn([(0,Wr.query)("slot")],oe.prototype,"slottedContent",void 0)});var Tm,km=l(()=>{"use strict";uc();Tm={"ft-icon":oe}});var Lm,Im=l(()=>{"use strict";Lm=c(f());km();(0,Lm.customElements)(Tm)});var Tr=l(()=>{"use strict";hs();ac();uc();cc();Im()});var $m,pn,ki,Dm,Qo=l(()=>{"use strict";$m=c(y()),pn=c(f()),ki={color:pn.FtCssVariableFactory.extend("--ft-loader-color","",pn.designSystemVariables.colorPrimary),size:pn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Dm=$m.css`
348
+ `}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 Je.file_format:this.resolvedIcon=(e=b[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Je.material:this.resolvedIcon=this.value||co.nothing;break;default:this.resolvedIcon=(r=Ae[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ne.elementDefinitions={};ne.styles=wm;uo([(0,Wr.property)()],ne.prototype,"variant",void 0);uo([(0,Wr.property)()],ne.prototype,"value",void 0);uo([(0,Wr.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);uo([(0,Wr.state)()],ne.prototype,"resolvedIcon",void 0);uo([(0,Wr.query)("slot")],ne.prototype,"slottedContent",void 0)});var Tm,km=l(()=>{"use strict";uc();Tm={"ft-icon":ne}});var Lm,Im=l(()=>{"use strict";Lm=c(f());km();(0,Lm.customElements)(Tm)});var Tr=l(()=>{"use strict";hs();ac();uc();cc();Im()});var $m,po,ki,Dm,Qn=l(()=>{"use strict";$m=c(y()),po=c(f()),ki={color:po.FtCssVariableFactory.extend("--ft-loader-color","",po.designSystemVariables.colorPrimary),size:po.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Dm=$m.css`
349
349
  :host {
350
350
  line-height: 0;
351
351
  }
@@ -414,14 +414,14 @@
414
414
  transform: translate(calc(0.35 * ${ki.size}), 0);
415
415
  }
416
416
  }
417
- `});var Pm=l(()=>{"use strict"});var Mm,Nm,Li,dc=l(()=>{"use strict";Mm=c(y()),Nm=c(f());Qo();Li=class extends Nm.FtLitElement{render(){return Mm.html`
417
+ `});var Pm=l(()=>{"use strict"});var Mm,Nm,Li,dc=l(()=>{"use strict";Mm=c(y()),Nm=c(f());Qn();Li=class extends Nm.FtLitElement{render(){return Mm.html`
418
418
  <div class="ft-loader">
419
419
  <div></div>
420
420
  <div></div>
421
421
  <div></div>
422
422
  <div></div>
423
423
  </div>
424
- `}};Li.styles=Dm});var Fm,Bm=l(()=>{"use strict";dc();Fm={"ft-loader":Li}});var Um,Vm=l(()=>{"use strict";Um=c(f());Bm();(0,Um.customElements)(Fm)});var zm=l(()=>{"use strict";Qo();Pm();dc();Vm()});var vt,Hm=l(()=>{Wa();vt=t=>t??Ee});var hn=l(()=>{Hm()});var Xo,L,jm,k,qm,pc,Yt,Km,Ii=l(()=>{"use strict";Xo=c(y()),L=c(f());Er();jt();Qo();hs();jm=L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorPrimary),k={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorSurface),borderRadius:L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusL),color:jm,fontSize:L.FtCssVariableFactory.extend("--ft-button-font-size","",Ht.fontSize),iconSize:L.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:L.FtCssVariableFactory.extend("--ft-button-ripple-color","",jm),verticalPadding:L.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:L.FtCssVariableFactory.external(L.designSystemVariables.colorOpacityDisabled,"Design system")},qm=L.FtCssVariableFactory.extend("--ft-button-primary-color","",L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorOnPrimary)),pc={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-primary-background-color","",L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorPrimary)),color:qm,rippleColor:L.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",qm)},Yt={borderRadius:L.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusM)),verticalPadding:L.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Km=Xo.css`
424
+ `}};Li.styles=Dm});var Fm,Bm=l(()=>{"use strict";dc();Fm={"ft-loader":Li}});var Um,Vm=l(()=>{"use strict";Um=c(f());Bm();(0,Um.customElements)(Fm)});var zm=l(()=>{"use strict";Qn();Pm();dc();Vm()});var vt,Hm=l(()=>{Wa();vt=t=>t??Ee});var ho=l(()=>{Hm()});var Xn,L,jm,k,qm,pc,Yt,Km,Ii=l(()=>{"use strict";Xn=c(y()),L=c(f());Er();jt();Qn();hs();jm=L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorPrimary),k={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorSurface),borderRadius:L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusL),color:jm,fontSize:L.FtCssVariableFactory.extend("--ft-button-font-size","",Ht.fontSize),iconSize:L.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:L.FtCssVariableFactory.extend("--ft-button-ripple-color","",jm),verticalPadding:L.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:L.FtCssVariableFactory.external(L.designSystemVariables.colorOpacityDisabled,"Design system")},qm=L.FtCssVariableFactory.extend("--ft-button-primary-color","",L.FtCssVariableFactory.extend("--ft-button-color","",L.designSystemVariables.colorOnPrimary)),pc={backgroundColor:L.FtCssVariableFactory.extend("--ft-button-primary-background-color","",L.FtCssVariableFactory.extend("--ft-button-background-color","",L.designSystemVariables.colorPrimary)),color:qm,rippleColor:L.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",qm)},Yt={borderRadius:L.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",L.FtCssVariableFactory.extend("--ft-button-border-radius","",L.designSystemVariables.borderRadiusM)),verticalPadding:L.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:L.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:L.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Km=Xn.css`
425
425
  :host {
426
426
  display: inline-block;
427
427
  max-width: 100%;
@@ -526,12 +526,12 @@
526
526
 
527
527
  &.ft-button--round {
528
528
  border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
529
- ${(0,L.setVariable)(U.borderRadius,Xo.css`calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding})`)};
529
+ ${(0,L.setVariable)(U.borderRadius,Xn.css`calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding})`)};
530
530
  }
531
531
 
532
532
  &.ft-button--round.ft-button--dense {
533
533
  border-radius: calc(var(--button-internal-line-height) / 2 + ${Yt.verticalPadding});
534
- ${(0,L.setVariable)(U.borderRadius,Xo.css`calc(var(--button-internal-line-height) / 2 + ${Yt.verticalPadding})`)};
534
+ ${(0,L.setVariable)(U.borderRadius,Xn.css`calc(var(--button-internal-line-height) / 2 + ${Yt.verticalPadding})`)};
535
535
  }
536
536
 
537
537
  &.ft-button--no-text {
@@ -563,7 +563,7 @@
563
563
  ${(0,L.setVariable)(ki.size,k.iconSize)};
564
564
  ${(0,L.setVariable)(ki.color,"var(--button-internal-color)")};
565
565
  }
566
- `});var hr,Gr,Yo,Q,ie,C,hc=l(()=>{"use strict";hr=c(f());Qe();oc();Tr();zm();Gr=c(y()),Yo=c(nt()),Q=c(P());hn();ge();Ii();ie=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},C=class t extends(0,hr.toFtFormComponent)(hr.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":hr.isSafari},n=Gr.html`
566
+ `});var hr,Gr,Yn,Q,ie,C,hc=l(()=>{"use strict";hr=c(f());Qe();nc();Tr();zm();Gr=c(y()),Yn=c(ot()),Q=c(P());ho();ge();Ii();ie=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},C=class t extends(0,hr.toFtFormComponent)(hr.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":hr.isSafari},o=Gr.html`
567
567
  <ft-ripple part="ripple"
568
568
  ?disabled=${this.isDisabled()}
569
569
  ?activated=${this.activated}
@@ -571,28 +571,28 @@
571
571
  <ft-typography part="label"
572
572
  variant="${W.button}"
573
573
  element="span"
574
- class="${(0,Yo.classMap)(s)}">
574
+ class="${(0,Yn.classMap)(s)}">
575
575
  <slot></slot>
576
576
  </ft-typography>
577
577
  ${this.resolveIcon()}
578
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Gr.html`
579
- <a href="${o}"
578
+ `,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?Gr.html`
579
+ <a href="${n}"
580
580
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
581
581
  part="button"
582
- class="${(0,Yo.classMap)(this.buttonClasses)}"
582
+ class="${(0,Yn.classMap)(this.buttonClasses)}"
583
583
  aria-label="${vt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
584
584
  ?disabled=${this.isDisabled()}>
585
- ${n}
585
+ ${o}
586
586
  </a>
587
587
  `:Gr.html`
588
588
  <button part="button"
589
- class="${(0,Yo.classMap)(this.buttonClasses)}"
589
+ class="${(0,Yn.classMap)(this.buttonClasses)}"
590
590
  aria-label="${vt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
591
591
  aria-haspopup="${vt(this.ariaHasPopup)}"
592
592
  aria-pressed="${vt(this.ariaPressed)}"
593
593
  aria-expanded="${vt(this.ariaExpanded)}"
594
594
  ?disabled=${this.isDisabled()}>
595
- ${n}
595
+ ${o}
596
596
  </button>
597
597
  `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Gr.html`
598
598
  <ft-tooltip part="tooltip"
@@ -605,7 +605,7 @@
605
605
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
606
606
  `:Gr.html`
607
607
  <slot part="icon" name="icon"></slot>
608
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":T,"ft-tooltip":ye,"ft-icon":oe,"ft-loader":Li,"ft-typography":V};C.styles=[hr.safariEllipsisFix,Km,hr.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});ie([(0,Q.property)({type:Boolean})],C.prototype,"primary",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"outlined",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"dense",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"round",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"disabled",void 0);ie([(0,Q.property)()],C.prototype,"icon",void 0);ie([(0,Q.property)()],C.prototype,"iconVariant",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);ie([(0,Q.property)()],C.prototype,"label",void 0);ie([(0,Q.property)()],C.prototype,"type",void 0);ie([(0,Q.property)()],C.prototype,"href",void 0);ie([(0,Q.property)()],C.prototype,"target",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"loading",void 0);ie([(0,Q.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);ie([(0,Q.property)()],C.prototype,"ariaHasPopup",void 0);ie([(0,Q.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);ie([(0,Q.property)({attribute:"aria-expanded"})],C.prototype,"ariaExpanded",void 0);ie([(0,Q.property)()],C.prototype,"tooltipPosition",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"activated",void 0);ie([(0,Q.query)(".ft-button")],C.prototype,"button",void 0);ie([(0,Q.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);ie([(0,Q.state)()],C.prototype,"hasTextContent",void 0);ie([(0,Q.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);ie([(0,Q.query)("[part=tooltip]")],C.prototype,"tooltip",void 0)});var Wm=l(()=>{"use strict"});var Gm,Qm=l(()=>{"use strict";hc();Gm={"ft-button":C}});var Xm,Ym=l(()=>{"use strict";Xm=c(f());Qm();(0,Xm.customElements)(Gm)});var Zt=l(()=>{"use strict";hc();Ii();Wm();Ym()});var Zm,J,se,fc,fn=l(()=>{"use strict";Zm=c(y()),J=c(f());Zt();se={height:J.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:J.FtCssVariableFactory.extend("--ft-search-input-border-radius","",J.designSystemVariables.borderRadiusS),desktopFiltersHeight:J.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:J.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:J.FtCssVariableFactory.extend("--ft-search-input-background-color","",J.designSystemVariables.colorSurface),colorOnSurface:J.FtCssVariableFactory.extend("--ft-search-input-color","",J.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:J.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",J.designSystemVariables.colorOnSurfaceMedium),colorOutline:J.FtCssVariableFactory.extend("--ft-search-input-outline-color","",J.designSystemVariables.colorOutline),elevation02:J.FtCssVariableFactory.extend("--ft-search-input-elevation","",J.designSystemVariables.elevation02),focusOutlineColor:J.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",J.designSystemVariables.colorPrimary),buttonColor:J.FtCssVariableFactory.extend("--ft-search-input-button-color","",J.designSystemVariables.colorPrimary),buttonRippleColor:J.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",J.designSystemVariables.colorPrimary)},fc=Zm.css`
608
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":T,"ft-tooltip":ye,"ft-icon":ne,"ft-loader":Li,"ft-typography":V};C.styles=[hr.safariEllipsisFix,Km,hr.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});ie([(0,Q.property)({type:Boolean})],C.prototype,"primary",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"outlined",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"dense",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"round",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"disabled",void 0);ie([(0,Q.property)()],C.prototype,"icon",void 0);ie([(0,Q.property)()],C.prototype,"iconVariant",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);ie([(0,Q.property)()],C.prototype,"label",void 0);ie([(0,Q.property)()],C.prototype,"type",void 0);ie([(0,Q.property)()],C.prototype,"href",void 0);ie([(0,Q.property)()],C.prototype,"target",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"loading",void 0);ie([(0,Q.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);ie([(0,Q.property)()],C.prototype,"ariaHasPopup",void 0);ie([(0,Q.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);ie([(0,Q.property)({attribute:"aria-expanded"})],C.prototype,"ariaExpanded",void 0);ie([(0,Q.property)()],C.prototype,"tooltipPosition",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);ie([(0,Q.property)({type:Boolean})],C.prototype,"activated",void 0);ie([(0,Q.query)(".ft-button")],C.prototype,"button",void 0);ie([(0,Q.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);ie([(0,Q.state)()],C.prototype,"hasTextContent",void 0);ie([(0,Q.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);ie([(0,Q.query)("[part=tooltip]")],C.prototype,"tooltip",void 0)});var Wm=l(()=>{"use strict"});var Gm,Qm=l(()=>{"use strict";hc();Gm={"ft-button":C}});var Xm,Ym=l(()=>{"use strict";Xm=c(f());Qm();(0,Xm.customElements)(Gm)});var Zt=l(()=>{"use strict";hc();Ii();Wm();Ym()});var Zm,J,se,fc,fo=l(()=>{"use strict";Zm=c(y()),J=c(f());Zt();se={height:J.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:J.FtCssVariableFactory.extend("--ft-search-input-border-radius","",J.designSystemVariables.borderRadiusS),desktopFiltersHeight:J.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:J.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:J.FtCssVariableFactory.extend("--ft-search-input-background-color","",J.designSystemVariables.colorSurface),colorOnSurface:J.FtCssVariableFactory.extend("--ft-search-input-color","",J.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:J.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",J.designSystemVariables.colorOnSurfaceMedium),colorOutline:J.FtCssVariableFactory.extend("--ft-search-input-outline-color","",J.designSystemVariables.colorOutline),elevation02:J.FtCssVariableFactory.extend("--ft-search-input-elevation","",J.designSystemVariables.elevation02),focusOutlineColor:J.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",J.designSystemVariables.colorPrimary),buttonColor:J.FtCssVariableFactory.extend("--ft-search-input-button-color","",J.designSystemVariables.colorPrimary),buttonRippleColor:J.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",J.designSystemVariables.colorPrimary)},fc=Zm.css`
609
609
  * {
610
610
  box-sizing: border-box;
611
611
  ${(0,J.setVariable)(k.color,se.buttonColor)};
@@ -679,10 +679,10 @@
679
679
  height: 20px;
680
680
  border-right: 1px solid ${se.colorOutline};
681
681
  }
682
- `});var Jm,eg,Zo,mc,Jo=l(()=>{"use strict";Jm=c(y()),eg=c(f()),Zo={highlightBackgroundColor:eg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},mc=Jm.css`
682
+ `});var Jm,eg,Zn,mc,Jn=l(()=>{"use strict";Jm=c(y()),eg=c(f()),Zn={highlightBackgroundColor:eg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},mc=Jm.css`
683
683
  .kwicmatch {
684
684
  font-weight: 700;
685
- background-color: ${Zo.highlightBackgroundColor};
685
+ background-color: ${Zn.highlightBackgroundColor};
686
686
  }
687
687
  `});var tg,rg,ea,gc,ta=l(()=>{"use strict";tg=c(y()),rg=c(f()),ea={highlightBackgroundColor:rg.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},gc=tg.css`
688
688
  .kwicmatch {
@@ -698,11 +698,11 @@
698
698
  a:focus {
699
699
  outline: revert;
700
700
  }
701
- `});function lg(t){var e;return((e=(0,mn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===Ro.EXTERNAL}function ia(t,e){return lg(t)?(0,mn.accessResult)(t).originUrl:(0,mn.accessResultUrl)(t,e)}function cg(t,e){return vt(e&&lg(t)?"_blank":void 0)}var mn,xc=l(()=>{"use strict";qr();hn();mn=c(f())});var Di,gs,sa,na,oa,yn,bn=l(()=>{"use strict";Di=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},gs=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},sa=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},na=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},oa=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},yn=class t extends Event{constructor(){super(t.eventName)}};yn.eventName="search-context-clear-all-filters"});var fg,pE,Ec,Cc=l(()=>{"use strict";fg=c(y()),pE={},Ec=fg.css`
702
- `});var mg=l(()=>{"use strict"});var Jt,ys=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Jt||(Jt={}))});var gg,hE,yg,bg=l(()=>{"use strict";gg=c(f()),hE={setRequest:(t,e)=>{t.request=e.payload}},yg=t=>gg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:hE,deprecatedKeys:["locales"]})});var aa,vg=l(()=>{"use strict";Gt();aa=class extends qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,s)=>i.id.localeCompare(s.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,s)=>i.localeCompare(s))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var he,xg,Sg,bs,Ac=l(()=>{"use strict";ys();he=c(f());bg();qr();vg();bn();Gt();xg=t=>t.request.virtualField===ss.TITLE_ONLY&&t.request.scope===ns.DOCUMENTS,Sg=t=>t.request.keywordMatch==_o.MANDATORY,bs=class t extends he.FtStateManager{static build(e,r){return new t(yg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new he.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Jt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let s;if(sn(x.getState().session,pe.DEBUG_USER)){let n=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");s=n.overrideEnabled?n.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:s,changedByConfiguration:!0})},this.updateLocales=(i=x.getState().availableContentLocales)=>{this.store.actions.locales(i),i.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new he.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest())),this.buildSearchRequest=(i=this.store.getState())=>{var s;return{...i.request,facets:this.facetIds.map(n=>({id:n})),stickyFiltersId:this.applyStickyFilters?(s=x.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.suggestDebouncer=new he.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest())),this.buildSuggestRequest=(i=this.store.getState())=>{var s,n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(s=x.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.service=r??new aa,this.searchWatcher=new he.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new he.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new he.ReduxWatcher(x,i=>i.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new he.ReduxWatcher(x,i=>{var s;return(s=i.stickyFilters)===null||s===void 0?void 0:s.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),x.addEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(x.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),x.removeEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return x.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,he.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r;let i=this.store.getState().request.contentLocale;return e!==i&&(e=t.findKnownContentLocale(e,i),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=x.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Oi.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:i}=x.getState();if(r.length===0)return e[0];let s=o=>r.some(a=>a.lang==o);for(let o of e)if(s(o))return o;let n=i?.defaultLocales.defaultContentLocale;return n?`${n.lang}-${n.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,he.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let s=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...s},!0),e;let n=(i=this.sortOptions.find(o=>o.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:n.id,...s},!0),n.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:ss.TITLE_ONLY,scope:ns.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ss.EVERYWHERE,scope:ns.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return xg(this.store.getState())}get keywordMatch(){return Sg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new yn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(s=>s!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(s=>({id:s}));this.updateSearchRequest({facets:i})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,valueFilter:{values:r,negative:!1}},n=[...i.filter(o=>!o.valueFilter),...i.filter(o=>o.valueFilter&&o.key!==s.key),s];this.setFilters(n)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,dateFilter:{type:r}},n=[...i.filter(o=>!o.dateFilter),...i.filter(o=>o.dateFilter&&o.key!==s.key),s];this.setFilters(n)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.dateFilter),...r.filter(s=>s.dateFilter&&s.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let s=this.store.getState().request.metadataFilters,n={key:e,rangeFilter:{from:r,to:i}},o=[...s.filter(a=>!a.rangeFilter),...s.filter(a=>a.rangeFilter&&a.key!==n.key),n];this.setFilters(o)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.rangeFilter),...r.filter(s=>s.rangeFilter&&s.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,i,s,n,o;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Jt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,he.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let u=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(a.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((o=e.paging.perPage)!==null&&o!==void 0?o:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof he.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=(0,he.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof he.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Qr,vn,wc,_c,Eg,Oc,fE,mE,Nt,Pi=l(()=>{"use strict";Qr=c(f()),vn=c(P());ys();Ac();wc=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},_c=class extends Qr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},Eg=Symbol("registerInterval"),Oc=Symbol("registerAttempts"),fE=40,mE=(0,Qr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,n,o;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(n=this.stateManager)===null||n===void 0||n.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[Oc]=0,this.tryToRegisterToContext(),this[Eg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Oc]>fE?window.clearInterval(this[Eg]):(this[Oc]++,this.dispatchEvent(new _c({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return wc([(0,vn.state)()],e.prototype,"stateManager",void 0),wc([(0,vn.state)({hasChanged:Qr.hasChanged})],e.prototype,"neededSearchRequests",void 0),wc([(0,vn.property)()],e.prototype,"searchRegistrationId",void 0),e}),Nt=class extends mE(Qr.FtLitElementRedux){}});function xn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Sn(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Rc=l(()=>{"use strict"});var ca,la,Cg=l(()=>{"use strict";ca=c(f());qr();Gt();Rc();la=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,s])=>{if(!this.canSendEvent()||!i||!s)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i,s):this.sendDocumentSearchEvent(n,i,s)},this.eventsService=r??new Mo,this.resultsWatcher=(0,ca.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=x.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=x.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:xn(e.metadataFilters),facets:e.metadataFilters.map(n=>Sn(n))}};this.eventsService.sendKhubSearchEvent(s)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(n=>{var o;return n.key==="ft:publicationId"&&((o=n.valueFilter)===null||o===void 0?void 0:o.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==dr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xn(i.metadataFilters),facets:i.metadataFilters.map(o=>Sn(o))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(n)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==dr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xn(i.metadataFilters),facets:i.metadataFilters.map(o=>Sn(o))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(n)}convertDocument(e){switch(e.type){case dr.MAP:return{id:e.map.mapId,title:e.map.title,type:jr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case dr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:jr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case dr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:jr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case dr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case dr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,ca.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Ag,xt,et,fe,X,Tc=l(()=>{"use strict";Ag=c(y()),xt=c(P()),et=c(f());Cc();Pi();Gt();Cg();bn();fe=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},X=class extends et.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=bs.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new la(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(x)}render(){return Ag.html`
701
+ `});function lg(t){var e;return((e=(0,mo.accessResult)(t))===null||e===void 0?void 0:e.openMode)===Rn.EXTERNAL}function ia(t,e){return lg(t)?(0,mo.accessResult)(t).originUrl:(0,mo.accessResultUrl)(t,e)}function cg(t,e){return vt(e&&lg(t)?"_blank":void 0)}var mo,xc=l(()=>{"use strict";qr();ho();mo=c(f())});var Di,gs,sa,oa,na,yo,bo=l(()=>{"use strict";Di=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},gs=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},sa=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},oa=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},na=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},yo=class t extends Event{constructor(){super(t.eventName)}};yo.eventName="search-context-clear-all-filters"});var fg,pE,Ec,Cc=l(()=>{"use strict";fg=c(y()),pE={},Ec=fg.css`
702
+ `});var mg=l(()=>{"use strict"});var Jt,ys=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Jt||(Jt={}))});var gg,hE,yg,bg=l(()=>{"use strict";gg=c(f()),hE={setRequest:(t,e)=>{t.request=e.payload}},yg=t=>gg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:hE,deprecatedKeys:["locales"]})});var aa,vg=l(()=>{"use strict";Gt();aa=class extends qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,s)=>i.id.localeCompare(s.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,s)=>i.localeCompare(s))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var he,xg,Sg,bs,Ac=l(()=>{"use strict";ys();he=c(f());bg();qr();vg();bo();Gt();xg=t=>t.request.virtualField===ss.TITLE_ONLY&&t.request.scope===os.DOCUMENTS,Sg=t=>t.request.keywordMatch==_n.MANDATORY,bs=class t extends he.FtStateManager{static build(e,r){return new t(yg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new he.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Jt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let s;if(io(x.getState().session,pe.DEBUG_USER)){let o=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");s=o.overrideEnabled?o.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:s,changedByConfiguration:!0})},this.updateLocales=(i=x.getState().availableContentLocales)=>{this.store.actions.locales(i),i.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new he.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest())),this.buildSearchRequest=(i=this.store.getState())=>{var s;return{...i.request,facets:this.facetIds.map(o=>({id:o})),stickyFiltersId:this.applyStickyFilters?(s=x.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.suggestDebouncer=new he.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest())),this.buildSuggestRequest=(i=this.store.getState())=>{var s,o;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(o=i.request.sort)!==null&&o!==void 0?o:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(s=x.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.service=r??new aa,this.searchWatcher=new he.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new he.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new he.ReduxWatcher(x,i=>i.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new he.ReduxWatcher(x,i=>{var s;return(s=i.stickyFilters)===null||s===void 0?void 0:s.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),x.addEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(x.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),x.removeEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return x.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,he.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r;let i=this.store.getState().request.contentLocale;return e!==i&&(e=t.findKnownContentLocale(e,i),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=x.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Oi.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:i}=x.getState();if(r.length===0)return e[0];let s=n=>r.some(a=>a.lang==n);for(let n of e)if(s(n))return n;let o=i?.defaultLocales.defaultContentLocale;return o?`${o.lang}-${o.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,he.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let s=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...s},!0),e;let o=(i=this.sortOptions.find(n=>n.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:o.id,...s},!0),o.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:ss.TITLE_ONLY,scope:os.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ss.EVERYWHERE,scope:os.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return xg(this.store.getState())}get keywordMatch(){return Sg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new yo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(s=>s!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(s=>({id:s}));this.updateSearchRequest({facets:i})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,valueFilter:{values:r,negative:!1}},o=[...i.filter(n=>!n.valueFilter),...i.filter(n=>n.valueFilter&&n.key!==s.key),s];this.setFilters(o)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,dateFilter:{type:r}},o=[...i.filter(n=>!n.dateFilter),...i.filter(n=>n.dateFilter&&n.key!==s.key),s];this.setFilters(o)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.dateFilter),...r.filter(s=>s.dateFilter&&s.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let s=this.store.getState().request.metadataFilters,o={key:e,rangeFilter:{from:r,to:i}},n=[...s.filter(a=>!a.rangeFilter),...s.filter(a=>a.rangeFilter&&a.key!==o.key),o];this.setFilters(n)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.rangeFilter),...r.filter(s=>s.rangeFilter&&s.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,i,s,o,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Jt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,he.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let u=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof he.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=(0,he.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof he.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Qr,vo,wc,_c,Eg,Oc,fE,mE,Nt,Pi=l(()=>{"use strict";Qr=c(f()),vo=c(P());ys();Ac();wc=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},_c=class extends Qr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},Eg=Symbol("registerInterval"),Oc=Symbol("registerAttempts"),fE=40,mE=(0,Qr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,o,n;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(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[Oc]=0,this.tryToRegisterToContext(),this[Eg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Oc]>fE?window.clearInterval(this[Eg]):(this[Oc]++,this.dispatchEvent(new _c({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return wc([(0,vo.state)()],e.prototype,"stateManager",void 0),wc([(0,vo.state)({hasChanged:Qr.hasChanged})],e.prototype,"neededSearchRequests",void 0),wc([(0,vo.property)()],e.prototype,"searchRegistrationId",void 0),e}),Nt=class extends mE(Qr.FtLitElementRedux){}});function xo(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function So(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Rc=l(()=>{"use strict"});var ca,la,Cg=l(()=>{"use strict";ca=c(f());qr();Gt();Rc();la=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,s])=>{if(!this.canSendEvent()||!i||!s)return;let o=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(o,i,s):this.sendDocumentSearchEvent(o,i,s)},this.eventsService=r??new Mn,this.resultsWatcher=(0,ca.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=x.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=x.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:xo(e.metadataFilters),facets:e.metadataFilters.map(o=>So(o))}};this.eventsService.sendKhubSearchEvent(s)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(o=>{var n;return o.key==="ft:publicationId"&&((n=o.valueFilter)===null||n===void 0?void 0:n.values[0])===this.document.id})!==void 0){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(o)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==dr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xo(i.metadataFilters),facets:i.metadataFilters.map(n=>So(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(o)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==dr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xo(i.metadataFilters),facets:i.metadataFilters.map(n=>So(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(o)}convertDocument(e){switch(e.type){case dr.MAP:return{id:e.map.mapId,title:e.map.title,type:jr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case dr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:jr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case dr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:jr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case dr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case dr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,ca.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Ag,xt,et,fe,X,Tc=l(()=>{"use strict";Ag=c(y()),xt=c(P()),et=c(f());Cc();Pi();Gt();Cg();bo();fe=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},X=class extends et.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=bs.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new la(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(x)}render(){return Ag.html`
703
703
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
704
704
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
705
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),Oi.knownContexts.register(this),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),Oi.knownContexts.unregister(this),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new na(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new oa(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r,i,s;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let n=(s=(i=e.detail)===null||i===void 0?void 0:i.target)!==null&&s!==void 0?s:e.composedPath()[0];this.register(n)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new sa(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};X.elementDefinitions={};X.styles=Ec;fe([(0,et.redux)({store:x.name})],X.prototype,"session",void 0);fe([(0,xt.property)()],X.prototype,"query",void 0);fe([(0,xt.property)()],X.prototype,"contentLocale",void 0);fe([(0,et.numberProperty)()],X.prototype,"pageSize",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"searchInDocumentTitlesOnly",void 0);fe([(0,xt.property)()],X.prototype,"keywordMatch",void 0);fe([(0,xt.property)()],X.prototype,"scope",void 0);fe([(0,xt.property)()],X.prototype,"virtualField",void 0);fe([(0,xt.property)()],X.prototype,"registrationId",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"ignoreEmptyQuery",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"applyStickyFilters",void 0);fe([(0,et.redux)({store:x.name})],X.prototype,"openExternalDocumentInNewTab",void 0);fe([(0,et.jsonProperty)([])],X.prototype,"filters",void 0);fe([(0,xt.property)()],X.prototype,"sortId",void 0);fe([(0,et.jsonProperty)([])],X.prototype,"sort",void 0);fe([(0,et.jsonProperty)({})],X.prototype,"otherQueryParams",void 0);fe([(0,et.redux)({store:"search"})],X.prototype,"request",void 0);fe([(0,et.redux)({store:"search"})],X.prototype,"paging",void 0);fe([(0,et.redux)({store:"search",selector:t=>t.spellcheck})],X.prototype,"spellcheckAutocorrect",void 0);fe([(0,et.redux)({store:x.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],X.prototype,"_appIntegrationInfoReady",void 0);fe([(0,xt.property)({attribute:!1})],X.prototype,"searchServiceProvider",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"disableAnalyticsEvents",void 0)});var wg,Og=l(()=>{"use strict";Tc();wg={"ft-search-context":X}});var _g,Rg=l(()=>{"use strict";_g=c(f());Og();(0,_g.customElements)(wg)});var Tg={};ni(Tg,{FtSearchContext:()=>X,FtSearchContextCssVariables:()=>pE,FtSearchStateManager:()=>bs,convertMetadataFilterToAnalyticsFacet:()=>Sn,getAnalyticsLastUpdate:()=>xn,keywordMatchSelector:()=>Sg,searchInDocumentTitlesOnlySelector:()=>xg,styles:()=>Ec});var kg=l(()=>{"use strict";Cc();mg();Tc();Ac();Rc();Rg()});var Lg=l(()=>{"use strict"});var kr,kc=l(()=>{"use strict";bt();kr=$t.build("designedSearchInput")});var Lr=Wi((kT,Ig)=>{Ig.exports=ftGlobals.litRepeat});var Ft,Lc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Ft||(Ft={}))});var $g,Dg,Ic=l(()=>{"use strict";$g=c(y()),Dg=$g.css`
705
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),Oi.knownContexts.register(this),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),Oi.knownContexts.unregister(this),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new oa(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new na(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r,i,s;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let o=(s=(i=e.detail)===null||i===void 0?void 0:i.target)!==null&&s!==void 0?s:e.composedPath()[0];this.register(o)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new sa(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};X.elementDefinitions={};X.styles=Ec;fe([(0,et.redux)({store:x.name})],X.prototype,"session",void 0);fe([(0,xt.property)()],X.prototype,"query",void 0);fe([(0,xt.property)()],X.prototype,"contentLocale",void 0);fe([(0,et.numberProperty)()],X.prototype,"pageSize",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"searchInDocumentTitlesOnly",void 0);fe([(0,xt.property)()],X.prototype,"keywordMatch",void 0);fe([(0,xt.property)()],X.prototype,"scope",void 0);fe([(0,xt.property)()],X.prototype,"virtualField",void 0);fe([(0,xt.property)()],X.prototype,"registrationId",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"ignoreEmptyQuery",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"applyStickyFilters",void 0);fe([(0,et.redux)({store:x.name})],X.prototype,"openExternalDocumentInNewTab",void 0);fe([(0,et.jsonProperty)([])],X.prototype,"filters",void 0);fe([(0,xt.property)()],X.prototype,"sortId",void 0);fe([(0,et.jsonProperty)([])],X.prototype,"sort",void 0);fe([(0,et.jsonProperty)({})],X.prototype,"otherQueryParams",void 0);fe([(0,et.redux)({store:"search"})],X.prototype,"request",void 0);fe([(0,et.redux)({store:"search"})],X.prototype,"paging",void 0);fe([(0,et.redux)({store:"search",selector:t=>t.spellcheck})],X.prototype,"spellcheckAutocorrect",void 0);fe([(0,et.redux)({store:x.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],X.prototype,"_appIntegrationInfoReady",void 0);fe([(0,xt.property)({attribute:!1})],X.prototype,"searchServiceProvider",void 0);fe([(0,xt.property)({type:Boolean})],X.prototype,"disableAnalyticsEvents",void 0)});var wg,Og=l(()=>{"use strict";Tc();wg={"ft-search-context":X}});var _g,Rg=l(()=>{"use strict";_g=c(f());Og();(0,_g.customElements)(wg)});var Tg={};oi(Tg,{FtSearchContext:()=>X,FtSearchContextCssVariables:()=>pE,FtSearchStateManager:()=>bs,convertMetadataFilterToAnalyticsFacet:()=>So,getAnalyticsLastUpdate:()=>xo,keywordMatchSelector:()=>Sg,searchInDocumentTitlesOnlySelector:()=>xg,styles:()=>Ec});var kg=l(()=>{"use strict";Cc();mg();Tc();Ac();Rc();Rg()});var Lg=l(()=>{"use strict"});var kr,kc=l(()=>{"use strict";bt();kr=$t.build("designedSearchInput")});var Lr=Wi((kT,Ig)=>{Ig.exports=ftGlobals.litRepeat});var Ft,Lc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Ft||(Ft={}))});var $g,Dg,Ic=l(()=>{"use strict";$g=c(y()),Dg=$g.css`
706
706
  .ft-size-watcher--pixel {
707
707
  width: 0;
708
708
  height: 0;
@@ -721,11 +721,11 @@
721
721
  .ft-size-watcher--local .ft-size-watcher--watcher {
722
722
  width: 100%;
723
723
  }
724
- `});var Pg,Mi,ua,En,$c,St,Dc=l(()=>{"use strict";Pg=c(y()),Mi=c(P()),ua=c(f());Lc();Ic();En=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},$c=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},St=class extends ua.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Ft.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ua.Debouncer}render(){return Pg.html`
724
+ `});var Pg,Mi,ua,Eo,$c,St,Dc=l(()=>{"use strict";Pg=c(y()),Mi=c(P()),ua=c(f());Lc();Ic();Eo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},$c=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},St=class extends ua.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Ft.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ua.Debouncer}render(){return Pg.html`
725
725
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
726
726
  <div class="ft-size-watcher--watcher"></div>
727
727
  </div>
728
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Ft.S:this.size<976?this.category=Ft.M:this.size<1024?this.category=Ft.L:this.size<1440?this.category=Ft.XL:this.category=Ft.XXL,this.dispatchEvent(new $c(this.size,this.category)))},this.debounceTimeout)}};St.elementDefinitions={};St.styles=Dg;En([(0,Mi.property)({type:Number})],St.prototype,"debounceTimeout",void 0);En([(0,Mi.property)({type:Boolean})],St.prototype,"local",void 0);En([(0,Mi.property)({type:Number,reflect:!0})],St.prototype,"size",void 0);En([(0,Mi.property)({type:String,reflect:!0})],St.prototype,"category",void 0);En([(0,Mi.query)(".ft-size-watcher--watcher")],St.prototype,"watcher",void 0)});var Mg,Ng=l(()=>{"use strict";Dc();Mg={"ft-size-watcher":St}});var Fg,Bg=l(()=>{"use strict";Fg=c(f());Ng();(0,Fg.customElements)(Mg)});var Ug=l(()=>{"use strict";Dc();Ic();Lc();Bg()});function da(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vg(t){return da(t).split("|").pop()}function zg(t){return da(t).split("|").join(" > ")}function Hg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Hg(r,t.selected)),value:t.value}}function jg(t){return(0,Pc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Mc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Hg(e,!1))}}function qg(t){return(0,Pc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Pc,Nc=l(()=>{"use strict";Pc=c(f())});var Kg,ee,Cn,Wg,Fc=l(()=>{"use strict";Kg=c(y()),ee=c(f());Ii();jt();Cn={buttonMoreColor:ee.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ee.designSystemVariables.colorOnSurface),borderRadiusM:ee.FtCssVariableFactory.external(ee.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ee.FtCssVariableFactory.external(Ce.fontFamily,"Body2 typography"),fontSize:ee.FtCssVariableFactory.external(Ce.fontSize,"Body2 typography"),fontWeight:ee.FtCssVariableFactory.external(Ce.fontWeight,"Body2 typography"),letterSpacing:ee.FtCssVariableFactory.external(Ce.letterSpacing,"Body2 typography"),lineHeight:ee.FtCssVariableFactory.external(Ce.lineHeight,"Body2 typography"),textTransform:ee.FtCssVariableFactory.external(Ce.textTransform,"Body2 typography")},Wg=Kg.css`
728
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Ft.S:this.size<976?this.category=Ft.M:this.size<1024?this.category=Ft.L:this.size<1440?this.category=Ft.XL:this.category=Ft.XXL,this.dispatchEvent(new $c(this.size,this.category)))},this.debounceTimeout)}};St.elementDefinitions={};St.styles=Dg;Eo([(0,Mi.property)({type:Number})],St.prototype,"debounceTimeout",void 0);Eo([(0,Mi.property)({type:Boolean})],St.prototype,"local",void 0);Eo([(0,Mi.property)({type:Number,reflect:!0})],St.prototype,"size",void 0);Eo([(0,Mi.property)({type:String,reflect:!0})],St.prototype,"category",void 0);Eo([(0,Mi.query)(".ft-size-watcher--watcher")],St.prototype,"watcher",void 0)});var Mg,Ng=l(()=>{"use strict";Dc();Mg={"ft-size-watcher":St}});var Fg,Bg=l(()=>{"use strict";Fg=c(f());Ng();(0,Fg.customElements)(Mg)});var Ug=l(()=>{"use strict";Dc();Ic();Lc();Bg()});function da(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vg(t){return da(t).split("|").pop()}function zg(t){return da(t).split("|").join(" > ")}function Hg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Hg(r,t.selected)),value:t.value}}function jg(t){return(0,Pc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Mc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Hg(e,!1))}}function qg(t){return(0,Pc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Pc,Nc=l(()=>{"use strict";Pc=c(f())});var Kg,ee,Co,Wg,Fc=l(()=>{"use strict";Kg=c(y()),ee=c(f());Ii();jt();Co={buttonMoreColor:ee.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ee.designSystemVariables.colorOnSurface),borderRadiusM:ee.FtCssVariableFactory.external(ee.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ee.FtCssVariableFactory.external(Ce.fontFamily,"Body2 typography"),fontSize:ee.FtCssVariableFactory.external(Ce.fontSize,"Body2 typography"),fontWeight:ee.FtCssVariableFactory.external(Ce.fontWeight,"Body2 typography"),letterSpacing:ee.FtCssVariableFactory.external(Ce.letterSpacing,"Body2 typography"),lineHeight:ee.FtCssVariableFactory.external(Ce.lineHeight,"Body2 typography"),textTransform:ee.FtCssVariableFactory.external(Ce.textTransform,"Body2 typography")},Wg=Kg.css`
729
729
  .ft-filter-level--container {
730
730
  display: flex;
731
731
  flex-direction: column;
@@ -740,14 +740,14 @@
740
740
  flex-shrink: 0;
741
741
  text-decoration: none;
742
742
  position: relative;
743
- border-radius: ${Cn.borderRadiusM};
743
+ border-radius: ${Co.borderRadiusM};
744
744
  overflow: hidden;
745
745
  display: flex;
746
746
  align-items: center;
747
747
  padding: 4px 4px;
748
748
  gap: 4px;
749
749
  cursor: pointer;
750
- color: ${Cn.colorOnSurface};
750
+ color: ${Co.colorOnSurface};
751
751
  }
752
752
 
753
753
  .ft-filter-level--go-back:focus {
@@ -776,7 +776,7 @@
776
776
  }
777
777
 
778
778
  ft-button {
779
- ${(0,ee.setVariable)(k.color,Cn.colorOnSurface)};
779
+ ${(0,ee.setVariable)(k.color,Co.colorOnSurface)};
780
780
  }
781
781
 
782
782
  .ft-filter-level--display-buttons {
@@ -788,7 +788,7 @@
788
788
  ft-button.ft-filter-level--display-less {
789
789
  flex: 1 1 0;
790
790
  min-width: 0;
791
- ${(0,ee.setVariable)(k.color,Cn.buttonMoreColor)};
791
+ ${(0,ee.setVariable)(k.color,Co.buttonMoreColor)};
792
792
  }
793
793
 
794
794
  ft-radio, ft-checkbox {
@@ -802,7 +802,7 @@
802
802
 
803
803
  .ft-filter-level--no-values {
804
804
  margin: 10px 0;
805
- color: ${Cn.colorOnSurfaceMedium};
805
+ color: ${Co.colorOnSurfaceMedium};
806
806
  }
807
807
  `});var Te,Gg,Et,Qg,Bc=l(()=>{"use strict";Te=c(f()),Gg=c(y());ge();Qe();Et={textColor:Te.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Te.designSystemVariables.colorOnSurfaceHigh),fontSize:Te.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:Te.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Te.designSystemVariables.colorPrimary),checkColor:Te.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Te.designSystemVariables.colorOnPrimary),borderColor:Te.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Te.designSystemVariables.colorOnSurfaceMedium),disabledColor:Te.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Te.designSystemVariables.colorOnSurfaceDisabled),errorColor:Te.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Te.designSystemVariables.colorError)},Qg=Gg.css`
808
808
  * {
@@ -906,7 +906,7 @@
906
906
  .ft-checkbox ft-typography {
907
907
  padding-right: 2px;
908
908
  }
909
- `});var pa,Bt,Xg,Yg,fr,Uc,ke,Vc=l(()=>{"use strict";pa=c(y()),Bt=c(P()),Xg=c(f()),Yg=c(nt());hn();Qe();ge();Bc();fr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Uc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ke=class extends Xg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return pa.html`
909
+ `});var pa,Bt,Xg,Yg,fr,Uc,ke,Vc=l(()=>{"use strict";pa=c(y()),Bt=c(P()),Xg=c(f()),Yg=c(ot());ho();Qe();ge();Bc();fr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Uc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ke=class extends Xg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return pa.html`
910
910
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
911
911
  <ft-ripple part="checkbox-ripple"
912
912
  ?disabled=${this.disabled}
@@ -941,7 +941,7 @@
941
941
  <path class="ft-checkbox--checkmark-path" fill="none"
942
942
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
943
943
  </svg>
944
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Uc(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ke.elementDefinitions={"ft-ripple":T,"ft-typography":V};ke.styles=Qg;fr([(0,Bt.property)()],ke.prototype,"name",void 0);fr([(0,Bt.property)()],ke.prototype,"value",void 0);fr([(0,Bt.property)({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"indeterminate",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"disabled",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"error",void 0);fr([(0,Bt.property)({attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0);fr([(0,Bt.query)(".ft-checkbox")],ke.prototype,"container",void 0);fr([(0,Bt.query)("ft-ripple")],ke.prototype,"ripple",void 0);fr([(0,Bt.query)("input")],ke.prototype,"input",void 0)});var Zg=l(()=>{"use strict"});var Jg,ey=l(()=>{"use strict";Vc();Jg={"ft-checkbox":ke}});var ty,ry=l(()=>{"use strict";ty=c(f());ey();(0,ty.customElements)(Jg)});var iy=l(()=>{"use strict";Vc();Bc();Zg();ry()});var sy,dt,Xr,ny,zc=l(()=>{"use strict";sy=c(y()),dt=c(f());ge();Xr={textColor:dt.FtCssVariableFactory.extend("--ft-radio-text-color","",dt.designSystemVariables.colorOnSurfaceHigh),fontSize:dt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:dt.FtCssVariableFactory.extend("--ft-radio-border-color","",dt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ny=sy.css`
944
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Uc(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ke.elementDefinitions={"ft-ripple":T,"ft-typography":V};ke.styles=Qg;fr([(0,Bt.property)()],ke.prototype,"name",void 0);fr([(0,Bt.property)()],ke.prototype,"value",void 0);fr([(0,Bt.property)({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"indeterminate",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"disabled",void 0);fr([(0,Bt.property)({type:Boolean})],ke.prototype,"error",void 0);fr([(0,Bt.property)({attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0);fr([(0,Bt.query)(".ft-checkbox")],ke.prototype,"container",void 0);fr([(0,Bt.query)("ft-ripple")],ke.prototype,"ripple",void 0);fr([(0,Bt.query)("input")],ke.prototype,"input",void 0)});var Zg=l(()=>{"use strict"});var Jg,ey=l(()=>{"use strict";Vc();Jg={"ft-checkbox":ke}});var ty,ry=l(()=>{"use strict";ty=c(f());ey();(0,ty.customElements)(Jg)});var iy=l(()=>{"use strict";Vc();Bc();Zg();ry()});var sy,dt,Xr,oy,zc=l(()=>{"use strict";sy=c(y()),dt=c(f());ge();Xr={textColor:dt.FtCssVariableFactory.extend("--ft-radio-text-color","",dt.designSystemVariables.colorOnSurfaceHigh),fontSize:dt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:dt.FtCssVariableFactory.extend("--ft-radio-border-color","",dt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},oy=sy.css`
945
945
  * {
946
946
  box-sizing: border-box;
947
947
  }
@@ -1030,7 +1030,7 @@
1030
1030
  .ft-radio ft-typography {
1031
1031
  padding-right: 2px;
1032
1032
  }
1033
- `});var oy,mr,ay,ly,Yr,ha,Le,Hc=l(()=>{"use strict";oy=c(y()),mr=c(P()),ay=c(f()),ly=c(nt());Qe();ge();Fn();zc();Yr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ha=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Le=class extends ay.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 oy.html`
1033
+ `});var ny,mr,ay,ly,Yr,ha,Le,Hc=l(()=>{"use strict";ny=c(y()),mr=c(P()),ay=c(f()),ly=c(ot());Qe();ge();Fo();zc();Yr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ha=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Le=class extends ay.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 ny.html`
1034
1034
  <div class="${(0,ly.classMap)(this.radioClasses)}"
1035
1035
  @click=${this.onClick}>
1036
1036
  <div class="ft-radio--box-container">
@@ -1056,7 +1056,7 @@
1056
1056
  </ft-typography>
1057
1057
  </label>
1058
1058
  </div>
1059
- `}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 ha(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 ha(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())}};Le.elementDefinitions={"ft-ripple":T,"ft-typography":V};Le.styles=ny;Yr([(0,mr.property)()],Le.prototype,"name",void 0);Yr([(0,mr.property)()],Le.prototype,"value",void 0);Yr([(0,mr.property)({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);Yr([(0,mr.property)({attribute:"aria-checked",reflect:!0})],Le.prototype,"ariaChecked",void 0);Yr([(0,mr.property)({type:Boolean})],Le.prototype,"disabled",void 0);Yr([(0,mr.query)(".ft-radio")],Le.prototype,"container",void 0);Yr([(0,mr.query)("ft-ripple")],Le.prototype,"ripple",void 0);Yr([(0,mr.query)("input")],Le.prototype,"input",void 0)});var cy=l(()=>{"use strict"});var uy,dy,jc=l(()=>{"use strict";uy=c(y()),dy=uy.css`
1059
+ `}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 ha(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 ha(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())}};Le.elementDefinitions={"ft-ripple":T,"ft-typography":V};Le.styles=oy;Yr([(0,mr.property)()],Le.prototype,"name",void 0);Yr([(0,mr.property)()],Le.prototype,"value",void 0);Yr([(0,mr.property)({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);Yr([(0,mr.property)({attribute:"aria-checked",reflect:!0})],Le.prototype,"ariaChecked",void 0);Yr([(0,mr.property)({type:Boolean})],Le.prototype,"disabled",void 0);Yr([(0,mr.query)(".ft-radio")],Le.prototype,"container",void 0);Yr([(0,mr.query)("ft-ripple")],Le.prototype,"ripple",void 0);Yr([(0,mr.query)("input")],Le.prototype,"input",void 0)});var cy=l(()=>{"use strict"});var uy,dy,jc=l(()=>{"use strict";uy=c(y()),dy=uy.css`
1060
1060
  :host {
1061
1061
  display: block;
1062
1062
  }
@@ -1064,12 +1064,12 @@
1064
1064
  :host(:focus-visible) {
1065
1065
  outline: none;
1066
1066
  }
1067
- `});var py,Zr,hy,An,Ct,qc=l(()=>{"use strict";py=c(f()),Zr=c(P()),hy=c(y());jc();An=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ct=class extends py.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return hy.html`
1067
+ `});var py,Zr,hy,Ao,Ct,qc=l(()=>{"use strict";py=c(f()),Zr=c(P()),hy=c(y());jc();Ao=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Ct=class extends py.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return hy.html`
1068
1068
  <slot @slotchange=${this.onSlotChange}
1069
1069
  @change=${this.onChange}
1070
1070
  @keydown=${this.onKeyDown}
1071
1071
  ></slot>
1072
- `}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()}};Ct.elementDefinitions={};Ct.styles=dy;An([(0,Zr.property)()],Ct.prototype,"name",void 0);An([(0,Zr.property)({reflect:!0,attribute:"role"})],Ct.prototype,"role",void 0);An([(0,Zr.property)({reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledBy",void 0);An([(0,Zr.queryAssignedElements)()],Ct.prototype,"assignedElements",void 0);An([(0,Zr.state)()],Ct.prototype,"currentSelectedIndex",void 0)});var fy=l(()=>{"use strict"});var my,gy=l(()=>{"use strict";Hc();qc();my={"ft-radio":Le,"ft-radio-group":Ct}});var yy,by=l(()=>{"use strict";yy=c(f());gy();(0,yy.customElements)(my)});var Kc=l(()=>{"use strict";Hc();cy();zc();qc();fy();jc();by()});var Jr,Wc=l(()=>{"use strict";bt();Jr=$t.build("designedFilterComponent")});var Ne,Fe,vy,pt,tt,Gc,be,xy=l(()=>{"use strict";Ne=c(y()),Fe=c(P()),vy=c(Lr()),pt=c(f());Zt();ge();Qe();Tr();iy();Kc();Fc();bt();Wc();tt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Gc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},be=class extends(0,pt.withAnalytics)(ct((0,pt.withAriaNotification)(pt.FtLitElement)),Gc){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new pt.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return Ne.html`
1072
+ `}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()}};Ct.elementDefinitions={};Ct.styles=dy;Ao([(0,Zr.property)()],Ct.prototype,"name",void 0);Ao([(0,Zr.property)({reflect:!0,attribute:"role"})],Ct.prototype,"role",void 0);Ao([(0,Zr.property)({reflect:!0,attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledBy",void 0);Ao([(0,Zr.queryAssignedElements)()],Ct.prototype,"assignedElements",void 0);Ao([(0,Zr.state)()],Ct.prototype,"currentSelectedIndex",void 0)});var fy=l(()=>{"use strict"});var my,gy=l(()=>{"use strict";Hc();qc();my={"ft-radio":Le,"ft-radio-group":Ct}});var yy,by=l(()=>{"use strict";yy=c(f());gy();(0,yy.customElements)(my)});var Kc=l(()=>{"use strict";Hc();cy();zc();qc();fy();jc();by()});var Jr,Wc=l(()=>{"use strict";bt();Jr=$t.build("designedFilterComponent")});var Ne,Fe,vy,pt,tt,Gc,be,xy=l(()=>{"use strict";Ne=c(y()),Fe=c(P()),vy=c(Lr()),pt=c(f());Zt();ge();Qe();Tr();iy();Kc();Fc();bt();Wc();tt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Gc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},be=class extends(0,pt.withAnalytics)(ct((0,pt.withAriaNotification)(pt.FtLitElement)),Gc){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new pt.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return Ne.html`
1073
1073
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1074
1074
  ${this.parent==null?null:Ne.html`
1075
1075
  <div tabindex="0"
@@ -1090,10 +1090,10 @@
1090
1090
  ${Jr.messages.noFilterValuesAvailable()}
1091
1091
  </ft-typography>
1092
1092
  `:Ne.nothing}
1093
- ${(0,vy.repeat)(e,s=>s.value,s=>{var n;return Ne.html`
1093
+ ${(0,vy.repeat)(e,s=>s.value,s=>{var o;return Ne.html`
1094
1094
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1095
1095
  ${this.multivalued?this.buildMultiValuedOption(s):this.buildMonoValuedOption(s)}
1096
- ${this.preventNavigation||s.selected||((n=s.subOptions)!==null&&n!==void 0?n:[]).length===0?Ne.nothing:Ne.html`
1096
+ ${this.preventNavigation||s.selected||((o=s.subOptions)!==null&&o!==void 0?o:[]).length===0?Ne.nothing:Ne.html`
1097
1097
  <ft-button icon="thin_arrow_right"
1098
1098
  part="controls navigate-hierarchy"
1099
1099
  aria-label="Expand node"
@@ -1151,7 +1151,7 @@
1151
1151
  @change=${r=>this.optionsChanged(r,e)}>
1152
1152
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1153
1153
  </ft-radio>
1154
- `}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)})}};be.elementDefinitions={"ft-button":C,"ft-ripple":T,"ft-typography":V,"ft-checkbox":ke,"ft-icon":oe,"ft-radio":Le};be.styles=Wg;tt([(0,Fe.property)({type:String})],be.prototype,"filterId",void 0);tt([(0,Fe.property)({type:Object})],be.prototype,"parent",void 0);tt([(0,Fe.property)({type:Array,hasChanged:pt.hasChanged})],be.prototype,"options",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"multivalued",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"disabled",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"hideSelectedOptions",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"displayCount",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"preventNavigation",void 0);tt([(0,Fe.property)({type:String})],be.prototype,"filter",void 0);tt([(0,Fe.property)()],be.prototype,"filteredOptionsNumberAriaNotification",void 0);tt([(0,pt.numberProperty)()],be.prototype,"displayedValuesMinimum",void 0);tt([(0,Fe.query)(".ft-filter-level--container")],be.prototype,"container",void 0);tt([(0,Fe.state)()],be.prototype,"radios",void 0);tt([(0,Fe.state)()],be.prototype,"displayedPages",void 0);tt([(0,Fe.state)()],be.prototype,"filteredOptions",void 0)});var Sy,er,rt,Ey,fa=l(()=>{"use strict";Sy=c(y()),er=c(f());Ii();rt={buttonsColor:er.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",er.designSystemVariables.colorPrimary),buttonsZIndex:er.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:er.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:er.FtCssVariableFactory.external(er.designSystemVariables.colorSurface,"Design system")},Ey=Sy.css`
1154
+ `}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)})}};be.elementDefinitions={"ft-button":C,"ft-ripple":T,"ft-typography":V,"ft-checkbox":ke,"ft-icon":ne,"ft-radio":Le};be.styles=Wg;tt([(0,Fe.property)({type:String})],be.prototype,"filterId",void 0);tt([(0,Fe.property)({type:Object})],be.prototype,"parent",void 0);tt([(0,Fe.property)({type:Array,hasChanged:pt.hasChanged})],be.prototype,"options",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"multivalued",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"disabled",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"hideSelectedOptions",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"displayCount",void 0);tt([(0,Fe.property)({type:Boolean})],be.prototype,"preventNavigation",void 0);tt([(0,Fe.property)({type:String})],be.prototype,"filter",void 0);tt([(0,Fe.property)()],be.prototype,"filteredOptionsNumberAriaNotification",void 0);tt([(0,pt.numberProperty)()],be.prototype,"displayedValuesMinimum",void 0);tt([(0,Fe.query)(".ft-filter-level--container")],be.prototype,"container",void 0);tt([(0,Fe.state)()],be.prototype,"radios",void 0);tt([(0,Fe.state)()],be.prototype,"displayedPages",void 0);tt([(0,Fe.state)()],be.prototype,"filteredOptions",void 0)});var Sy,er,rt,Ey,fa=l(()=>{"use strict";Sy=c(y()),er=c(f());Ii();rt={buttonsColor:er.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",er.designSystemVariables.colorPrimary),buttonsZIndex:er.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:er.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:er.FtCssVariableFactory.external(er.designSystemVariables.colorSurface,"Design system")},Ey=Sy.css`
1155
1155
  .ft-snap-scroll {
1156
1156
  box-sizing: border-box;
1157
1157
  position: relative;
@@ -1276,7 +1276,7 @@
1276
1276
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1277
1277
  background-color: ${rt.colorSurface};
1278
1278
  }
1279
- `});var Cy,At,Ni,Ay,gr,Qc,we,Xc=l(()=>{"use strict";Cy=c(y()),At=c(P()),Ni=c(f());Zt();Ay=c(nt());fa();gr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Qc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},we=class extends Ni.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 Ni.Debouncer(200),this.updateScrollDebouncer=new Ni.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,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Ay.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":Ni.isSafari}),r=this.controls&&this.withScroll;return Cy.html`
1279
+ `});var Cy,At,Ni,Ay,gr,Qc,we,Xc=l(()=>{"use strict";Cy=c(y()),At=c(P()),Ni=c(f());Zt();Ay=c(ot());fa();gr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Qc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},we=class extends Ni.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 Ni.Debouncer(200),this.updateScrollDebouncer=new Ni.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,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Ay.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":Ni.isSafari}),r=this.controls&&this.withScroll;return Cy.html`
1280
1280
  <div part="container" class="${e}">
1281
1281
  <ft-button
1282
1282
  class="ft-snap-scroll--previous"
@@ -1417,7 +1417,7 @@
1417
1417
  slot:not([name]) {
1418
1418
  display: none;
1419
1419
  }
1420
- `]});var Fi,me,ve,xe,Yc,Y,Zc=l(()=>{"use strict";Fi=c(y()),me=c(P()),ve=c(f());ge();xy();Zt();ma();ga();Wc();xe=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Yc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Y=class extends(0,ve.withAnalytics)(ve.FtLitElement,Gc){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ve.Debouncer(300),this.changeDebouncer=new ve.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Jr.messages.filterInputPlaceHolder(this.label);return Fi.html`
1420
+ `]});var Fi,me,ve,xe,Yc,Y,Zc=l(()=>{"use strict";Fi=c(y()),me=c(P()),ve=c(f());ge();xy();Zt();ma();ga();Wc();xe=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Yc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Y=class extends(0,ve.withAnalytics)(ve.FtLitElement,Gc){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ve.Debouncer(300),this.changeDebouncer=new ve.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Jr.messages.filterInputPlaceHolder(this.label);return Fi.html`
1421
1421
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1422
1422
  part="container">
1423
1423
  ${!this.label&&!e?null:Fi.html`
@@ -1458,7 +1458,7 @@
1458
1458
  @slotchange=${this.updateOptionsFromSlot}
1459
1459
  @option-change=${this.optionsChanged}></slot>
1460
1460
  </div>
1461
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,n,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return Fi.html`
1461
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,o,n,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||n===void 0?void 0:n.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(o=>o.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return Fi.html`
1462
1462
  ${this.raiseSelectedOptions&&r.length>0?Fi.html`
1463
1463
  <ft-filter-level
1464
1464
  filterId="${this.id}"
@@ -1476,9 +1476,9 @@
1476
1476
  `:null}
1477
1477
  <ft-snap-scroll horizontal hideScrollbar
1478
1478
  class="ft-filter--levels"
1479
- @current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1479
+ @current-element-change=${o=>this.levelsScrollDebouncer.run(()=>{for(;o.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1480
1480
  ${this.renderLevel(s,this.options)}
1481
- ${this.displayedLevels.map(n=>e.find(o=>o.value===n)).map((n,o)=>{var a;let u=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(u,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1481
+ ${this.displayedLevels.map(o=>e.find(n=>n.value===o)).map((o,n)=>{var a;let u=o?.value===this.slideIn||o?.value===this.slideOut?"ft-filter--level-right":n===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(u,(a=o?.subOptions)!==null&&a!==void 0?a:[],o)})}
1482
1482
  </ft-snap-scroll>
1483
1483
  `}renderLevel(e,r,i){return Fi.html`
1484
1484
  <ft-filter-level
@@ -1500,13 +1500,13 @@
1500
1500
  .exportpartsPrefixes=${["values","available-values"]}
1501
1501
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1502
1502
  ></ft-filter-level>
1503
- `}goBack(e){this.slideOut=e.detail.value,(0,ve.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,ve.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,ve.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,ve.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Yc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};Y.elementDefinitions={"ft-button":C,"ft-filter-level":be,"ft-snap-scroll":we,"ft-typography":V};Y.styles=Ly;xe([(0,me.property)({type:String})],Y.prototype,"id",void 0);xe([(0,me.property)({type:String})],Y.prototype,"label",void 0);xe([(0,ve.jsonProperty)([])],Y.prototype,"options",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"multivalued",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"disabled",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"raiseSelectedOptions",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"displayCount",void 0);xe([(0,ve.numberProperty)()],Y.prototype,"displayedValuesMinimum",void 0);xe([(0,ve.jsonProperty)(void 0)],Y.prototype,"filteredOptionsNumberAriaNotification",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"hideClearButton",void 0);xe([(0,me.query)(".ft-filter--slot")],Y.prototype,"slotElement",void 0);xe([(0,me.query)(".ft-filter--container")],Y.prototype,"container",void 0);xe([(0,me.query)(".ft-filter--values")],Y.prototype,"valuesContainer",void 0);xe([(0,me.query)(".ft-filter--levels")],Y.prototype,"levelsContainer",void 0);xe([(0,me.state)()],Y.prototype,"lastLevelHasHiddenvalues",void 0);xe([(0,me.query)(".ft-filter--filter input")],Y.prototype,"filterInput",void 0);xe([(0,me.queryAll)(".ft-filter--levels ft-filter-level")],Y.prototype,"levels",void 0);xe([(0,me.state)()],Y.prototype,"withScroll",void 0);xe([(0,me.state)()],Y.prototype,"filter",void 0);xe([(0,me.state)()],Y.prototype,"slideIn",void 0);xe([(0,me.state)()],Y.prototype,"slideOut",void 0)});var Iy=l(()=>{"use strict"});var ya,Bi,$y,vs,wt,Jc=l(()=>{"use strict";ya=c(f()),Bi=c(P()),$y=c(y()),vs=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},wt=class extends ya.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return $y.html`
1503
+ `}goBack(e){this.slideOut=e.detail.value,(0,ve.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,ve.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,ve.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,ve.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Yc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};Y.elementDefinitions={"ft-button":C,"ft-filter-level":be,"ft-snap-scroll":we,"ft-typography":V};Y.styles=Ly;xe([(0,me.property)({type:String})],Y.prototype,"id",void 0);xe([(0,me.property)({type:String})],Y.prototype,"label",void 0);xe([(0,ve.jsonProperty)([])],Y.prototype,"options",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"multivalued",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"disabled",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"raiseSelectedOptions",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"displayCount",void 0);xe([(0,ve.numberProperty)()],Y.prototype,"displayedValuesMinimum",void 0);xe([(0,ve.jsonProperty)(void 0)],Y.prototype,"filteredOptionsNumberAriaNotification",void 0);xe([(0,me.property)({type:Boolean})],Y.prototype,"hideClearButton",void 0);xe([(0,me.query)(".ft-filter--slot")],Y.prototype,"slotElement",void 0);xe([(0,me.query)(".ft-filter--container")],Y.prototype,"container",void 0);xe([(0,me.query)(".ft-filter--values")],Y.prototype,"valuesContainer",void 0);xe([(0,me.query)(".ft-filter--levels")],Y.prototype,"levelsContainer",void 0);xe([(0,me.state)()],Y.prototype,"lastLevelHasHiddenvalues",void 0);xe([(0,me.query)(".ft-filter--filter input")],Y.prototype,"filterInput",void 0);xe([(0,me.queryAll)(".ft-filter--levels ft-filter-level")],Y.prototype,"levels",void 0);xe([(0,me.state)()],Y.prototype,"withScroll",void 0);xe([(0,me.state)()],Y.prototype,"filter",void 0);xe([(0,me.state)()],Y.prototype,"slideIn",void 0);xe([(0,me.state)()],Y.prototype,"slideOut",void 0)});var Iy=l(()=>{"use strict"});var ya,Bi,$y,vs,wt,Jc=l(()=>{"use strict";ya=c(f()),Bi=c(P()),$y=c(y()),vs=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},wt=class extends ya.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return $y.html`
1504
1504
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1505
1505
  `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};wt.elementDefinitions={};vs([(0,Bi.property)({type:String})],wt.prototype,"label",void 0);vs([(0,Bi.property)({type:Object,converter:t=>t})],wt.prototype,"value",void 0);vs([(0,Bi.property)({type:Boolean,reflect:!0})],wt.prototype,"selected",void 0);vs([(0,Bi.property)({type:Object})],wt.prototype,"subOptions",void 0);vs([(0,ya.jsonProperty)({})],wt.prototype,"renderOption",void 0);vs([(0,Bi.query)(".ft-filter-option--slot")],wt.prototype,"slotElement",void 0)});var Dy=l(()=>{"use strict"});var Py,My=l(()=>{"use strict";Zc();Jc();Py={"ft-filter":Y,"ft-filter-option":wt}});var Ny,Fy=l(()=>{"use strict";Ny=c(f());My();(0,Ny.customElements)(Py)});var By=l(()=>{"use strict";Fc();Zc();ga();Iy();Jc();Dy();Fy()});var Uy,Vy,eu=l(()=>{"use strict";Uy=c(y()),Vy=Uy.css`
1506
1506
  .ft-accordion {
1507
1507
  box-sizing: border-box;
1508
1508
  }
1509
- `});var Hy,ba,jy,zy,yr,tu=l(()=>{"use strict";Hy=c(y()),ba=c(P()),jy=c(f());eu();zy=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},yr=class extends jy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Hy.html`
1509
+ `});var Hy,ba,jy,zy,yr,tu=l(()=>{"use strict";Hy=c(y()),ba=c(P()),jy=c(f());eu();zy=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},yr=class extends jy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Hy.html`
1510
1510
  <div class="ft-accordion">
1511
1511
  <slot @activated=${this.onChange}></slot>
1512
1512
  </div>
@@ -1556,7 +1556,7 @@
1556
1556
  .ft-accordion-item--separator {
1557
1557
  border-bottom: 1px solid ${Ui.colorOutline};
1558
1558
  }
1559
- `});var wn,On,Gy,va,Ut,iu=l(()=>{"use strict";wn=c(y()),On=c(P()),Gy=c(f());Qe();ge();Tr();ru();va=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ut=class extends Gy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return wn.html`
1559
+ `});var wo,Oo,Gy,va,Ut,iu=l(()=>{"use strict";wo=c(y()),Oo=c(P()),Gy=c(f());Qe();ge();Tr();ru();va=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Ut=class extends Gy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return wo.html`
1560
1560
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1561
1561
  <div class="ft-accordion-item--toggle"
1562
1562
  part="toggle"
@@ -1567,13 +1567,13 @@
1567
1567
  aria-controls="ft-accordion-item-content"
1568
1568
  aria-expanded="${this.active}">
1569
1569
  <ft-ripple part="toggle-ripple"></ft-ripple>
1570
- ${this.icon?wn.html`
1570
+ ${this.icon?wo.html`
1571
1571
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1572
1572
  `:null}
1573
- ${this.label?wn.html`
1573
+ ${this.label?wo.html`
1574
1574
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1575
1575
  </ft-typography>
1576
- `:wn.html`
1576
+ `:wo.html`
1577
1577
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1578
1578
  `}
1579
1579
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1586,7 +1586,7 @@
1586
1586
  </div>
1587
1587
  <div class="ft-accordion-item--separator" part="separator"></div>
1588
1588
  </div>
1589
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":oe};Ut.styles=Wy;va([(0,On.property)()],Ut.prototype,"icon",void 0);va([(0,On.property)()],Ut.prototype,"iconVariant",void 0);va([(0,On.property)()],Ut.prototype,"label",void 0);va([(0,On.property)({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Qy=l(()=>{"use strict"});var Xy,Yy=l(()=>{"use strict";tu();iu();Xy={"ft-accordion":yr,"ft-accordion-item":Ut}});var Zy,Jy=l(()=>{"use strict";Zy=c(f());Yy();(0,Zy.customElements)(Xy)});var eb=l(()=>{"use strict";tu();eu();qy();iu();ru();Qy();Jy()});var _n,M,tb,Be,rb,su,ib,sb,nu=l(()=>{"use strict";_n=c(y()),M=c(f());Er();jt();hs();Zt();tb=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),Be={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tb,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",Ce.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",Ce.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tb),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rb=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),su={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rb,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rb)},ib={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sb=[M.noTextSelect,_n.css`
1589
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":ne};Ut.styles=Wy;va([(0,Oo.property)()],Ut.prototype,"icon",void 0);va([(0,Oo.property)()],Ut.prototype,"iconVariant",void 0);va([(0,Oo.property)()],Ut.prototype,"label",void 0);va([(0,Oo.property)({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Qy=l(()=>{"use strict"});var Xy,Yy=l(()=>{"use strict";tu();iu();Xy={"ft-accordion":yr,"ft-accordion-item":Ut}});var Zy,Jy=l(()=>{"use strict";Zy=c(f());Yy();(0,Zy.customElements)(Xy)});var eb=l(()=>{"use strict";tu();eu();qy();iu();ru();Qy();Jy()});var _o,M,tb,Be,rb,su,ib,sb,ou=l(()=>{"use strict";_o=c(y()),M=c(f());Er();jt();hs();Zt();tb=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),Be={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tb,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",Ce.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",Ce.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tb),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rb=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),su={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rb,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rb)},ib={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sb=[M.noTextSelect,_o.css`
1590
1590
  :host {
1591
1591
  display: inline-block;
1592
1592
  max-width: 100%;
@@ -1614,7 +1614,7 @@
1614
1614
  border: 1px solid ${Be.borderColor};
1615
1615
  color: ${Be.color};
1616
1616
  ${(0,M.setVariable)(U.color,Be.rippleColor)};
1617
- border-radius: var(${(0,_n.unsafeCSS)(Be.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1617
+ border-radius: var(${(0,_o.unsafeCSS)(Be.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1618
1618
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1619
1619
  background-color: ${Be.backgroundColor};
1620
1620
  line-height: var(--chip-internal-content-height);
@@ -1632,7 +1632,7 @@
1632
1632
  }
1633
1633
 
1634
1634
  .ft-chip--no-content {
1635
- --chip-internal-horizontal-padding: ${Be.horizontalPadding.get(_n.css`var(--chip-internal-vertical-padding)`)};
1635
+ --chip-internal-horizontal-padding: ${Be.horizontalPadding.get(_o.css`var(--chip-internal-vertical-padding)`)};
1636
1636
  }
1637
1637
 
1638
1638
  .ft-chip--disabled {
@@ -1726,8 +1726,8 @@
1726
1726
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1727
1727
  order: -1;
1728
1728
  }
1729
- `]});var zi,Ie,nb,xs,We,xa,de,ou=l(()=>{"use strict";zi=c(y()),Ie=c(P()),nb=c(nt()),xs=c(f());Qe();ge();Tr();nu();Zt();We=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},xa=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends xs.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.accessibleLabelOnIcon=!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":xs.isSafari};return zi.html`
1730
- <div class="${(0,nb.classMap)(r)}"
1729
+ `]});var zi,Ie,ob,xs,We,xa,de,nu=l(()=>{"use strict";zi=c(y()),Ie=c(P()),ob=c(ot()),xs=c(f());Qe();ge();Tr();ou();Zt();We=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},xa=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends xs.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.accessibleLabelOnIcon=!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":xs.isSafari};return zi.html`
1730
+ <div class="${(0,ob.classMap)(r)}"
1731
1731
  aria-label="${this.labelOnIconOnly?zi.nothing:this.getLabel()}"
1732
1732
  tabindex="${this.interactionsOnChip?0:-1}"
1733
1733
  @keyup=${this.onKeyUp}
@@ -1754,7 +1754,7 @@
1754
1754
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1755
1755
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1756
1756
  </div>
1757
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,xs.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":oe,"ft-button":C};de.styles=sb;We([(0,Ie.property)({type:Boolean})],de.prototype,"highlighted",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"removable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"disabled",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"clickable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"iconClickable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"dense",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"multiLine",void 0);We([(0,Ie.property)()],de.prototype,"label",void 0);We([(0,Ie.property)()],de.prototype,"iconLabel",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"hideIconTooltip",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);We([(0,Ie.property)()],de.prototype,"icon",void 0);We([(0,Ie.property)()],de.prototype,"iconVariant",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);We([(0,Ie.property)()],de.prototype,"typographyVariant",void 0);We([(0,Ie.query)("ft-typography slot")],de.prototype,"slottedContent",void 0)});var ob=l(()=>{"use strict"});var ab,lb=l(()=>{"use strict";ou();ab={"ft-chip":de}});var cb,ub=l(()=>{"use strict";cb=c(f());lb();(0,cb.customElements)(ab)});var au=l(()=>{"use strict";ou();nu();ob();ub()});function Rn(t,e,r){return t?e(t):r?.(t)}var db=l(()=>{});var lu=l(()=>{db()});var pb,le,j,hb,Tn=l(()=>{"use strict";pb=c(y()),le=c(f());jt();j={fontSize:le.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:le.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:le.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:le.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:le.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:le.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:le.FtCssVariableFactory.extend("--ft-input-label-border-color","",le.designSystemVariables.colorOutline),textColor:le.FtCssVariableFactory.extend("--ft-input-label-text-color","",le.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:le.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",le.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:le.FtCssVariableFactory.extend("--ft-input-label-background-color","",le.designSystemVariables.colorSurface),borderRadius:le.FtCssVariableFactory.extend("--ft-input-label-border-radius","",le.designSystemVariables.borderRadiusS),colorError:le.FtCssVariableFactory.external(le.designSystemVariables.colorError,"Design system")},hb=pb.css`
1757
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,xs.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":ne,"ft-button":C};de.styles=sb;We([(0,Ie.property)({type:Boolean})],de.prototype,"highlighted",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"removable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"disabled",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"clickable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"iconClickable",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"dense",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"multiLine",void 0);We([(0,Ie.property)()],de.prototype,"label",void 0);We([(0,Ie.property)()],de.prototype,"iconLabel",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"hideIconTooltip",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);We([(0,Ie.property)()],de.prototype,"icon",void 0);We([(0,Ie.property)()],de.prototype,"iconVariant",void 0);We([(0,Ie.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);We([(0,Ie.property)()],de.prototype,"typographyVariant",void 0);We([(0,Ie.query)("ft-typography slot")],de.prototype,"slottedContent",void 0)});var nb=l(()=>{"use strict"});var ab,lb=l(()=>{"use strict";nu();ab={"ft-chip":de}});var cb,ub=l(()=>{"use strict";cb=c(f());lb();(0,cb.customElements)(ab)});var au=l(()=>{"use strict";nu();ou();nb();ub()});function Ro(t,e,r){return t?e(t):r?.(t)}var db=l(()=>{});var lu=l(()=>{db()});var pb,le,j,hb,To=l(()=>{"use strict";pb=c(y()),le=c(f());jt();j={fontSize:le.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:le.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:le.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:le.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:le.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:le.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:le.FtCssVariableFactory.extend("--ft-input-label-border-color","",le.designSystemVariables.colorOutline),textColor:le.FtCssVariableFactory.extend("--ft-input-label-text-color","",le.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:le.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",le.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:le.FtCssVariableFactory.extend("--ft-input-label-background-color","",le.designSystemVariables.colorSurface),borderRadius:le.FtCssVariableFactory.extend("--ft-input-label-border-radius","",le.designSystemVariables.borderRadiusS),colorError:le.FtCssVariableFactory.external(le.designSystemVariables.colorError,"Design system")},hb=pb.css`
1758
1758
  .ft-input-label {
1759
1759
  position: absolute;
1760
1760
  inset: 0;
@@ -1848,16 +1848,16 @@
1848
1848
  border-radius: ${j.borderRadius};
1849
1849
  top: calc((${at.lineHeight} / -2) + 2px);
1850
1850
  }
1851
- `});var cu,uu,mb,gb,fb,Hi,yb=l(()=>{"use strict";cu=c(y()),uu=c(P());lu();mb=c(nt()),gb=c(f()),fb=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Hi=class extends gb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return cu.html`
1851
+ `});var cu,uu,mb,gb,fb,Hi,yb=l(()=>{"use strict";cu=c(y()),uu=c(P());lu();mb=c(ot()),gb=c(f()),fb=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Hi=class extends gb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return cu.html`
1852
1852
  <div class="${(0,mb.classMap)(this.inputLabelClasses)}">
1853
- ${Rn(this.text,()=>cu.html`
1853
+ ${Ro(this.text,()=>cu.html`
1854
1854
  <div class="ft-input-label--text ft-typography--caption">
1855
1855
  <label class="ft-input-label--floating-text">${this.text}</label>
1856
1856
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1857
1857
  </div>
1858
1858
  `)}
1859
1859
  </div>
1860
- `}};Hi.elementDefinitions={};fb([(0,uu.property)({type:String})],Hi.prototype,"text",void 0);fb([(0,uu.property)({type:Boolean})],Hi.prototype,"raised",void 0)});var Sa,du,tr,pu=l(()=>{"use strict";Sa=c(P());jt();Tn();yb();du=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},tr=class extends Hi{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};tr.elementDefinitions={};tr.styles=[Fr,hb];du([(0,Sa.property)({type:Boolean})],tr.prototype,"outlined",void 0);du([(0,Sa.property)({type:Boolean})],tr.prototype,"error",void 0);du([(0,Sa.property)({type:Boolean})],tr.prototype,"disabled",void 0)});var bb=l(()=>{"use strict"});var vb,xb=l(()=>{"use strict";pu();vb={"ft-input-label":tr}});var Sb,Eb=l(()=>{"use strict";Sb=c(f());xb();(0,Sb.customElements)(vb)});var Cb=l(()=>{"use strict";pu();Tn();bb();Eb()});var Ab,D,$,wb,kn=l(()=>{"use strict";Ab=c(y()),D=c(f());Tn();jt();Er();hs();$={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},wb=Ab.css`
1860
+ `}};Hi.elementDefinitions={};fb([(0,uu.property)({type:String})],Hi.prototype,"text",void 0);fb([(0,uu.property)({type:Boolean})],Hi.prototype,"raised",void 0)});var Sa,du,tr,pu=l(()=>{"use strict";Sa=c(P());jt();To();yb();du=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},tr=class extends Hi{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};tr.elementDefinitions={};tr.styles=[Fr,hb];du([(0,Sa.property)({type:Boolean})],tr.prototype,"outlined",void 0);du([(0,Sa.property)({type:Boolean})],tr.prototype,"error",void 0);du([(0,Sa.property)({type:Boolean})],tr.prototype,"disabled",void 0)});var bb=l(()=>{"use strict"});var vb,xb=l(()=>{"use strict";pu();vb={"ft-input-label":tr}});var Sb,Eb=l(()=>{"use strict";Sb=c(f());xb();(0,Sb.customElements)(vb)});var Cb=l(()=>{"use strict";pu();To();bb();Eb()});var Ab,D,$,wb,ko=l(()=>{"use strict";Ab=c(y()),D=c(f());To();jt();Er();hs();$={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},wb=Ab.css`
1861
1861
  *:focus {
1862
1862
  outline: none;
1863
1863
  }
@@ -1933,8 +1933,8 @@
1933
1933
  overflow: hidden;
1934
1934
  white-space: nowrap;
1935
1935
  text-overflow: ellipsis;
1936
- ${(0,D.setVariable)(nr.fontSize,$.selectedOptionSize)};
1937
- ${(0,D.setVariable)(nr.lineHeight,$.selectedOptionSize)};
1936
+ ${(0,D.setVariable)(or.fontSize,$.selectedOptionSize)};
1937
+ ${(0,D.setVariable)(or.lineHeight,$.selectedOptionSize)};
1938
1938
  }
1939
1939
 
1940
1940
  .ft-select--in-error .ft-select--selected-option {
@@ -1993,7 +1993,7 @@
1993
1993
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1994
1994
  opacity: 0;
1995
1995
  }
1996
- `});var hu,Ob,_b,Rb=l(()=>{"use strict";Er();hu=c(f());kn();Ob=c(y()),_b=Ob.css`
1996
+ `});var hu,Ob,_b,Rb=l(()=>{"use strict";Er();hu=c(f());ko();Ob=c(y()),_b=Ob.css`
1997
1997
  .ft-select--option {
1998
1998
  ${(0,hu.setVariable)(U.opacityContentOnSurfaceHover,"0.08")};
1999
1999
  ${(0,hu.setVariable)(U.opacityContentOnSurfacePressed,"0.04")};
@@ -2020,7 +2020,7 @@
2020
2020
  overflow: hidden;
2021
2021
  }
2022
2022
 
2023
- `});var Ea,Ss,Tb,ei,Ln,Ge,kb=l(()=>{"use strict";Ea=c(f());Qe();ge();Ss=c(y()),Tb=c(nt()),ei=c(P());Rb();Ln=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ge=class extends Ea.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return Ss.html`
2023
+ `});var Ea,Ss,Tb,ei,Lo,Ge,kb=l(()=>{"use strict";Ea=c(f());Qe();ge();Ss=c(y()),Tb=c(ot()),ei=c(P());Rb();Lo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Ge=class extends Ea.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return Ss.html`
2024
2024
  <div class="${(0,Tb.classMap)(i)}"
2025
2025
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
2026
2026
  tabindex="0"
@@ -2032,7 +2032,7 @@
2032
2032
  </slot>
2033
2033
  ${this.isSlotEmpty?Ss.html`<span>${this.label}</span>`:Ss.html``}
2034
2034
  </div>
2035
- `}onSlotChange(){this.isSlotEmpty=(0,Ea.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ge.elementDefinitions={"ft-ripple":T};Ge.shadowRootOptions={...Ss.LitElement.shadowRootOptions,delegatesFocus:!0};Ge.styles=[_b,Nr];Ln([(0,ei.property)({type:String})],Ge.prototype,"label",void 0);Ln([(0,ei.property)({type:Object,converter:t=>t})],Ge.prototype,"value",void 0);Ln([(0,ei.property)({type:Boolean,reflect:!0})],Ge.prototype,"selected",void 0);Ln([(0,ei.query)("slot")],Ge.prototype,"slotElement",void 0);Ln([(0,ei.state)()],Ge.prototype,"isSlotEmpty",void 0)});var Es,Oe,Lb,Ib,Vt,Ue,ne,fu=l(()=>{"use strict";Es=c(y()),Oe=c(P()),Lb=c(nt()),Ib=c(Lr());lu();hn();Vt=c(f());ge();Cb();Qe();Tr();kn();kb();Ue=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ne=class t extends Vt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,Vt.last)(this.optionsList)}render(){var e,r,i,s,n;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((s=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&s!==void 0?s:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":o,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Es.html`
2035
+ `}onSlotChange(){this.isSlotEmpty=(0,Ea.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ge.elementDefinitions={"ft-ripple":T};Ge.shadowRootOptions={...Ss.LitElement.shadowRootOptions,delegatesFocus:!0};Ge.styles=[_b,Nr];Lo([(0,ei.property)({type:String})],Ge.prototype,"label",void 0);Lo([(0,ei.property)({type:Object,converter:t=>t})],Ge.prototype,"value",void 0);Lo([(0,ei.property)({type:Boolean,reflect:!0})],Ge.prototype,"selected",void 0);Lo([(0,ei.query)("slot")],Ge.prototype,"slotElement",void 0);Lo([(0,ei.state)()],Ge.prototype,"isSlotEmpty",void 0)});var Es,Oe,Lb,Ib,Vt,Ue,oe,fu=l(()=>{"use strict";Es=c(y()),Oe=c(P()),Lb=c(ot()),Ib=c(Lr());lu();ho();Vt=c(f());ge();Cb();Qe();Tr();ko();kb();Ue=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},oe=class t extends Vt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,Vt.last)(this.optionsList)}render(){var e,r,i,s,o;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((s=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&s!==void 0?s:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Es.html`
2036
2036
  <div class="${(0,Lb.classMap)(d)}" part="container">
2037
2037
  <div class="ft-select--main-panel" part="main-panel">
2038
2038
  <ft-input-label text="${this.label}"
@@ -2040,7 +2040,7 @@
2040
2040
  id="label"
2041
2041
  ?disabled=${a}
2042
2042
  ?outlined=${this.outlined}
2043
- ?raised=${u||o}
2043
+ ?raised=${u||n}
2044
2044
  ?error=${this.error}
2045
2045
  ></ft-input-label>
2046
2046
  <div class="ft-select--input-panel"
@@ -2049,9 +2049,9 @@
2049
2049
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2050
2050
  @keydown=${this.onMainPanelKeyDown}
2051
2051
  aria-label="${vt(this.ariaLabel)}"
2052
- aria-labelledby="${Rn(!this.ariaLabel,()=>"label")}"
2052
+ aria-labelledby="${Ro(!this.ariaLabel,()=>"label")}"
2053
2053
  aria-haspopup="listbox"
2054
- aria-expanded="${o}"
2054
+ aria-expanded="${n}"
2055
2055
  aria-activedescendant="${vt(this.getOptionId(this.selectedOption))}"
2056
2056
  role="combobox">
2057
2057
  <ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
@@ -2059,10 +2059,10 @@
2059
2059
  <ft-typography variant="${W.body1}"
2060
2060
  aria-hidden="${u?"false":"true"}"
2061
2061
  class="ft-select--selected-option">
2062
- ${(n=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:this.label}
2062
+ ${(o=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&o!==void 0?o:this.label}
2063
2063
  </ft-typography>
2064
2064
  </slot>
2065
- <ft-icon aria-hidden="true" .value=${o?Ae.THIN_ARROW_UP:Ae.THIN_ARROW}></ft-icon>
2065
+ <ft-icon aria-hidden="true" .value=${n?Ae.THIN_ARROW_UP:Ae.THIN_ARROW}></ft-icon>
2066
2066
  </div>
2067
2067
  <div class="ft-select--options"
2068
2068
  part="options"
@@ -2073,7 +2073,7 @@
2073
2073
  @option-change=${this.updateOptionsFromSlot}
2074
2074
  >
2075
2075
  </slot>
2076
- ${Rn(this.isSlotEmpty,()=>(0,Ib.repeat)(this.options,h=>h.value,h=>this.renderOption(h)))}
2076
+ ${Ro(this.isSlotEmpty,()=>(0,Ib.repeat)(this.options,h=>h.value,h=>this.renderOption(h)))}
2077
2077
  </div>
2078
2078
  </div>
2079
2079
  <slot name="helper" part="helper">
@@ -2088,7 +2088,7 @@
2088
2088
  label="${e.label}"
2089
2089
  .value=${e.value}
2090
2090
  ></ft-select-option>
2091
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,Vt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",$.optionsHeight,0).then(({x:n,y:o})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${o}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Vt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var n;return((n=s.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Vt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,Vt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Vt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":tr,"ft-typography":V,"ft-ripple":T,"ft-icon":oe,"ft-select-option":Ge};ne.searchTimeoutMilliseconds=2e3;ne.styles=[Fr,wb];Ue([(0,Oe.property)({type:String})],ne.prototype,"label",void 0);Ue([(0,Oe.property)({type:String})],ne.prototype,"ariaLabel",void 0);Ue([(0,Oe.property)({type:String})],ne.prototype,"helper",void 0);Ue([(0,Oe.property)({type:Boolean})],ne.prototype,"outlined",void 0);Ue([(0,Oe.property)({type:Boolean})],ne.prototype,"disabled",void 0);Ue([(0,Oe.property)({type:Boolean})],ne.prototype,"error",void 0);Ue([(0,Oe.property)({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Ue([(0,Oe.property)({type:Array})],ne.prototype,"options",void 0);Ue([(0,Oe.state)()],ne.prototype,"selectedOption",void 0);Ue([(0,Oe.state)()],ne.prototype,"optionsDisplayed",void 0);Ue([(0,Oe.state)()],ne.prototype,"focusOptions",void 0);Ue([(0,Oe.state)()],ne.prototype,"currentSearch",void 0);Ue([(0,Oe.state)()],ne.prototype,"lastSearchInputDate",void 0);Ue([(0,Oe.query)(".ft-select")],ne.prototype,"container",void 0);Ue([(0,Oe.query)(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Ue([(0,Oe.query)(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Ue([(0,Oe.query)("slot:not([name])")],ne.prototype,"optionsSlot",void 0)});var $b=l(()=>{"use strict"});var Db,Pb=l(()=>{"use strict";fu();Db={"ft-select":ne,"ft-select-option":Ge}});var Mb,Nb=l(()=>{"use strict";Mb=c(f());Pb();(0,Mb.customElements)(Db)});var Fb=l(()=>{"use strict";fu();kn();$b();Nb()});var Bb,rr,Ve,Ub,Ca=l(()=>{"use strict";Bb=c(y()),rr=c(f()),Ve={display:rr.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:rr.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:rr.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:rr.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:rr.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:rr.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:rr.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:rr.FtCssVariableFactory.external(rr.designSystemVariables.borderRadiusM,"Design system")},Ub=Bb.css`
2091
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,Vt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",$.optionsHeight,0).then(({x:o,y:n})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${n}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Vt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,o=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var o;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Vt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,Vt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Vt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};oe.elementDefinitions={"ft-input-label":tr,"ft-typography":V,"ft-ripple":T,"ft-icon":ne,"ft-select-option":Ge};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Fr,wb];Ue([(0,Oe.property)({type:String})],oe.prototype,"label",void 0);Ue([(0,Oe.property)({type:String})],oe.prototype,"ariaLabel",void 0);Ue([(0,Oe.property)({type:String})],oe.prototype,"helper",void 0);Ue([(0,Oe.property)({type:Boolean})],oe.prototype,"outlined",void 0);Ue([(0,Oe.property)({type:Boolean})],oe.prototype,"disabled",void 0);Ue([(0,Oe.property)({type:Boolean})],oe.prototype,"error",void 0);Ue([(0,Oe.property)({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);Ue([(0,Oe.property)({type:Array})],oe.prototype,"options",void 0);Ue([(0,Oe.state)()],oe.prototype,"selectedOption",void 0);Ue([(0,Oe.state)()],oe.prototype,"optionsDisplayed",void 0);Ue([(0,Oe.state)()],oe.prototype,"focusOptions",void 0);Ue([(0,Oe.state)()],oe.prototype,"currentSearch",void 0);Ue([(0,Oe.state)()],oe.prototype,"lastSearchInputDate",void 0);Ue([(0,Oe.query)(".ft-select")],oe.prototype,"container",void 0);Ue([(0,Oe.query)(".ft-select--options")],oe.prototype,"optionsMenu",void 0);Ue([(0,Oe.query)(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);Ue([(0,Oe.query)("slot:not([name])")],oe.prototype,"optionsSlot",void 0)});var $b=l(()=>{"use strict"});var Db,Pb=l(()=>{"use strict";fu();Db={"ft-select":oe,"ft-select-option":Ge}});var Mb,Nb=l(()=>{"use strict";Mb=c(f());Pb();(0,Mb.customElements)(Db)});var Fb=l(()=>{"use strict";fu();ko();$b();Nb()});var Bb,rr,Ve,Ub,Ca=l(()=>{"use strict";Bb=c(y()),rr=c(f()),Ve={display:rr.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:rr.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:rr.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:rr.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:rr.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:rr.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:rr.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:rr.FtCssVariableFactory.external(rr.designSystemVariables.borderRadiusM,"Design system")},Ub=Bb.css`
2092
2092
  :host {
2093
2093
  width: ${Ve.width};
2094
2094
  height: ${Ve.height};
@@ -2115,7 +2115,7 @@
2115
2115
  background-position: calc(100vw + ${Ve.glareWidth}) 0, calc(${Ve.glareWidth} * -1) 0;
2116
2116
  }
2117
2117
  }
2118
- `});var I,mu,O,Vb,zb,Aa=l(()=>{"use strict";I=c(f()),mu=c(y());Ii();Tn();kn();Ca();fa();ga();jt();O={height:I.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:I.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",I.designSystemVariables.borderRadiusS),mobileOpenPosition:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:I.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:I.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorSurface,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),elevation02:I.FtCssVariableFactory.external(I.designSystemVariables.elevation02,"Design system"),buttonColor:I.FtCssVariableFactory.external(k.color,"Button"),buttonRippleColor:I.FtCssVariableFactory.external(k.rippleColor,"Button"),activeItemBorderColor:I.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",I.designSystemVariables.colorPrimary)},Vb=mu.css`
2118
+ `});var I,mu,O,Vb,zb,Aa=l(()=>{"use strict";I=c(f()),mu=c(y());Ii();To();ko();Ca();fa();ga();jt();O={height:I.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:I.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",I.designSystemVariables.borderRadiusS),mobileOpenPosition:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:I.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:I.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:I.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorSurface,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),elevation02:I.FtCssVariableFactory.external(I.designSystemVariables.elevation02,"Design system"),buttonColor:I.FtCssVariableFactory.external(k.color,"Button"),buttonRippleColor:I.FtCssVariableFactory.external(k.rippleColor,"Button"),activeItemBorderColor:I.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",I.designSystemVariables.colorPrimary)},Vb=mu.css`
2119
2119
  * {
2120
2120
  box-sizing: border-box;
2121
2121
  }
@@ -2523,7 +2523,7 @@
2523
2523
  </div>
2524
2524
  `)}
2525
2525
  </div>
2526
- `}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"?Je.file_format:Je.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":i=Go(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ae.TOPICS;break;case"HTML_PACKAGE":i=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ae.FILE_CODE;break}return br.html`
2526
+ `}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"?Je.file_format:Je.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":i=Gn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ae.TOPICS;break;case"HTML_PACKAGE":i=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ae.FILE_CODE;break}return br.html`
2527
2527
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2528
2528
  `}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()))}};vr.styles=[Cs.wordWrap,br.css`
2529
2529
  .ft-search-bar--mobile .ft-search-bar--suggestions {
@@ -2626,7 +2626,7 @@
2626
2626
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2627
2627
  </ft-chip>
2628
2628
  `:null}
2629
- ${(0,bu.repeat)(this.searchBar.facets,s=>s.key,s=>{let n=qg(s);return(0,bu.repeat)(n,o=>{let a=s.label+": "+zg(o),u=s.key.replace(":","-"),d=it.html`
2629
+ ${(0,bu.repeat)(this.searchBar.facets,s=>s.key,s=>{let o=qg(s);return(0,bu.repeat)(o,n=>{let a=s.label+": "+zg(n),u=s.key.replace(":","-"),d=it.html`
2630
2630
  <ft-chip
2631
2631
  part="selected-filters selected-filter-${u}"
2632
2632
  ?dense=${this.searchBar.dense&&!e}
@@ -2636,10 +2636,10 @@
2636
2636
  label="${a}"
2637
2637
  title="${r?a:it.nothing}"
2638
2638
  @click=${()=>this.openMobileFilters(s.key)}
2639
- @icon-click=${()=>this.searchBar.setFilter(s.key,n.filter(h=>h!==o))}
2639
+ @icon-click=${()=>this.searchBar.setFilter(s.key,o.filter(h=>h!==n))}
2640
2640
  data-key="${s.key}"
2641
- data-value="${o}">
2642
- ${Vg(o)}
2641
+ data-value="${n}">
2642
+ ${Vg(n)}
2643
2643
  </ft-chip>
2644
2644
  `;return r?d:it.html`
2645
2645
  <ft-tooltip inline text="${a}">
@@ -2695,7 +2695,7 @@
2695
2695
  .ft-search-bar--selected-filters ft-chip {
2696
2696
  flex-grow: 0;
2697
2697
  }
2698
- `});var ir,Yb,Zb,gE,As,Jb=l(()=>{"use strict";ir=c(y());_a();wa();Yb=c(nt()),Zb=c(f()),gE=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},As=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 ir.html`
2698
+ `});var ir,Yb,Zb,gE,As,Jb=l(()=>{"use strict";ir=c(y());_a();wa();Yb=c(ot()),Zb=c(f()),gE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},As=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 ir.html`
2699
2699
  <div class="${(0,Yb.classMap)(r)}" part="container" tabindex="-1">
2700
2700
  <div class="ft-search-bar" role="search">
2701
2701
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2754,7 +2754,7 @@
2754
2754
  </div>
2755
2755
  `}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}};As.styles=ir.css`
2756
2756
 
2757
- `;gE([(0,Zb.ignoreComposingEvents)()],As.prototype,"onSearchBarKeyDown",null)});var st,ev,tv,rv,yE,ws,iv=l(()=>{"use strict";st=c(y()),ev=c(Lr());_a();wa();tv=c(nt()),rv=c(f()),yE=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ws=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 st.html`
2757
+ `;gE([(0,Zb.ignoreComposingEvents)()],As.prototype,"onSearchBarKeyDown",null)});var st,ev,tv,rv,yE,ws,iv=l(()=>{"use strict";st=c(y()),ev=c(Lr());_a();wa();tv=c(ot()),rv=c(f()),yE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ws=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 st.html`
2758
2758
  <div class="${(0,tv.classMap)(r)}" part="container" tabindex="-1">
2759
2759
  <div class="ft-search-bar" part="search-bar" role="search">
2760
2760
  ${this.renderSearchBarLeftAction()}
@@ -2833,7 +2833,7 @@
2833
2833
  </div>
2834
2834
  `}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)}};ws.styles=st.css`
2835
2835
 
2836
- `;yE([(0,rv.ignoreComposingEvents)()],ws.prototype,"onSearchBarKeyDown",null)});var K,z,In,te,F,sv,vu,bE,R,xu=l(()=>{"use strict";K=c(y()),z=c(P()),In=c(Lr()),te=c(f());Ug();ge();Nc();By();Tr();eb();Zt();au();Fb();ma();oc();Qe();Aa();Xb();wa();_a();Jb();iv();Kc();Gt();F=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n};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");sv={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},vu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},bE=()=>{},R=class extends te.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 te.ParametrizedLabelResolver(sv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new te.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Ft.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 vr(this),this.selectedFacetsManager=new xr(this),this.desktopSearchBarManager=new ws(this),this.mobileSearchBarManager=new As(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new te.Debouncer(10),this.updateLocalesDebouncer=new te.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 te.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===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(s=>this.compareFilters(i,s)))}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,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s: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===Ft.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return K.html`
2836
+ `;yE([(0,rv.ignoreComposingEvents)()],ws.prototype,"onSearchBarKeyDown",null)});var K,z,Io,te,F,sv,vu,bE,R,xu=l(()=>{"use strict";K=c(y()),z=c(P()),Io=c(Lr()),te=c(f());Ug();ge();Nc();By();Tr();eb();Zt();au();Fb();ma();nc();Qe();Aa();Xb();wa();_a();Jb();iv();Kc();Gt();F=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};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");sv={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},vu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},bE=()=>{},R=class extends te.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 te.ParametrizedLabelResolver(sv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new te.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Ft.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 vr(this),this.selectedFacetsManager=new xr(this),this.desktopSearchBarManager=new ws(this),this.mobileSearchBarManager=new As(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new te.Debouncer(10),this.updateLocalesDebouncer=new te.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 te.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===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(s=>this.compareFilters(i,s)))}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,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s: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===Ft.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return K.html`
2837
2837
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2838
2838
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2839
2839
  ${this.renderLiveText()}
@@ -2861,13 +2861,13 @@
2861
2861
  </div>
2862
2862
  </ft-accordion-item>
2863
2863
  `:null}
2864
- ${(0,In.repeat)(this.facets,r=>r.key,r=>{let i=Mc(r),s=r.key.replace(":","-"),n=jg(i);return r.rootNodes.length>0?K.html`
2864
+ ${(0,Io.repeat)(this.facets,r=>r.key,r=>{let i=Mc(r),s=r.key.replace(":","-"),o=jg(i);return r.rootNodes.length>0?K.html`
2865
2865
  <ft-accordion-item data-facet-key="${r.key}">
2866
2866
  <div class="ft-search-bar--filter-label" slot="toggle">
2867
2867
  <ft-typography variant="button">${r.label}</ft-typography>
2868
- ${n.length>0?K.html`
2868
+ ${o.length>0?K.html`
2869
2869
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2870
- ${n.join(", ")}
2870
+ ${o.join(", ")}
2871
2871
  </ft-typography>
2872
2872
  `:K.nothing}
2873
2873
  </div>
@@ -2880,7 +2880,7 @@
2880
2880
  raiseSelectedOptions
2881
2881
  .options=${i.options}
2882
2882
  .displayedValuesMinimum=${10}
2883
- @change=${o=>this.setFilter(i.id,o.detail)}
2883
+ @change=${n=>this.setFilter(i.id,n.detail)}
2884
2884
  ></ft-filter>
2885
2885
  </ft-accordion-item>
2886
2886
  `:K.nothing})}
@@ -2888,7 +2888,7 @@
2888
2888
  `}getContentLocaleRadioGroup(){var e;return K.html`
2889
2889
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2890
2890
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2891
- ${(0,In.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return K.html`
2891
+ ${(0,Io.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return K.html`
2892
2892
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2893
2893
  ?checked=${r.lang==this.contentLocale}>
2894
2894
  ${r.label}
@@ -2919,7 +2919,7 @@
2919
2919
  label="${this.labelResolver.resolve("presetsSelector")}"
2920
2920
  outlined
2921
2921
  @change=${r=>this.selectedPreset=r.detail}>
2922
- ${(0,In.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>K.html`
2922
+ ${(0,Io.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>K.html`
2923
2923
  <ft-select-option value="${r.name}"
2924
2924
  label="${r.name}"
2925
2925
  ?selected=${r.name===this.selectedPreset}>
@@ -2951,7 +2951,7 @@
2951
2951
  ${this.getContentLocaleRadioGroup()}
2952
2952
  </div>
2953
2953
  `:K.nothing}
2954
- ${(0,In.repeat)(this.facets,e=>e.key,e=>{let r=Mc(e),i=r.options.some(n=>{var o,a;return((a=(o=n.subOptions)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)>0}),s=e.key.replace(":","-");return K.html`
2954
+ ${(0,Io.repeat)(this.facets,e=>e.key,e=>{let r=Mc(e),i=r.options.some(o=>{var n,a;return((a=(n=o.subOptions)===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}),s=e.key.replace(":","-");return K.html`
2955
2955
  <ft-filter
2956
2956
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2957
2957
  part="filters filter filter-${s}"
@@ -2962,18 +2962,18 @@
2962
2962
  raiseSelectedOptions
2963
2963
  .options=${r.options}
2964
2964
  .displayedValuesMinimum=${10}
2965
- @change=${n=>this.setFilter(r.id,n.detail)}
2965
+ @change=${o=>this.setFilter(r.id,o.detail)}
2966
2966
  ></ft-filter>
2967
2967
  `})}
2968
2968
  </ft-snap-scroll>
2969
- `:K.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,n,o;if(e.has("labels")&&(this.labelResolver=new te.ParametrizedLabelResolver(sv,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=u=>this.availableContentLocales.some(d=>d.lang==u);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")&&((s=this.presets)!==null&&s!==void 0?s:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>da(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(u=>u.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=(i=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.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 vu(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,s;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 n=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);n&&(n.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(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(bE)),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),x.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&(0,te.waitFor)(()=>this.input,50).then(e=>{te.FocusHelper.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),x.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(s=>!s.valueFilter||s.key!==e);this.facets.forEach(s=>{s.key===e&&(0,te.flatDeep)(s.rootNodes,n=>n.childNodes).forEach(n=>n.selected=r.includes(n.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,te.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?K.nothing:K.html`
2969
+ `:K.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,o,n;if(e.has("labels")&&(this.labelResolver=new te.ParametrizedLabelResolver(sv,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=u=>this.availableContentLocales.some(d=>d.lang==u);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")&&((s=this.presets)!==null&&s!==void 0?s:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>da(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).find(u=>u.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=(i=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.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 vu(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,s;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(n=>n.key===this.scrollToFacet));let o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.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(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(bE)),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),x.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&(0,te.waitFor)(()=>this.input,50).then(e=>{te.FocusHelper.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),x.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(s=>!s.valueFilter||s.key!==e);this.facets.forEach(s=>{s.key===e&&(0,te.flatDeep)(s.rootNodes,o=>o.childNodes).forEach(o=>o.selected=r.includes(o.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,te.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?K.nothing:K.html`
2970
2970
  <div class="ft-search-bar--floating-panel"
2971
2971
  id="ft-search-bar-floating-panel"
2972
2972
  @keyup=${this.onFloatingContainerKeyUp}
2973
2973
  part="floating-panel"
2974
2974
  tabindex="-1">
2975
2975
  ${this.renderDesktopMenu()}
2976
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":yr,"ft-accordion-item":Ut,"ft-button":C,"ft-chip":de,"ft-filter":Y,"ft-filter-option":wt,"ft-icon":oe,"ft-ripple":T,"ft-select":ne,"ft-select-option":Ge,"ft-size-watcher":St,"ft-skeleton":ti,"ft-snap-scroll":we,"ft-tooltip":ye,"ft-typography":V,"ft-radio-group":Ct,"ft-radio":Le};R.styles=[Nr,te.noTextInputDefaultClearButton,Vb,zb,xr.styles,vr.styles,te.screenReaderStyles];F([(0,z.property)({type:Boolean})],R.prototype,"dense",void 0);F([(0,z.property)()],R.prototype,"mode",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);F([(0,z.property)()],R.prototype,"baseUrl",void 0);F([(0,z.property)()],R.prototype,"apiIntegrationIdentifier",void 0);F([(0,z.property)()],R.prototype,"contentLocale",void 0);F([(0,z.state)()],R.prototype,"availableContentLocales",void 0);F([(0,z.state)()],R.prototype,"availableContentLocalesInitialized",void 0);F([(0,z.property)()],R.prototype,"uiLocale",void 0);F([(0,te.jsonProperty)({})],R.prototype,"labels",void 0);F([(0,te.jsonProperty)([])],R.prototype,"displayedFilters",void 0);F([(0,te.jsonProperty)([])],R.prototype,"presets",void 0);F([(0,z.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);F([(0,te.jsonProperty)([])],R.prototype,"priors",void 0);F([(0,z.property)()],R.prototype,"searchRequestSerializer",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);F([(0,z.state)()],R.prototype,"metadataFilters",void 0);F([(0,z.state)()],R.prototype,"sizeCategory",void 0);F([(0,z.state)()],R.prototype,"displayFacets",void 0);F([(0,z.state)()],R.prototype,"mobileMenuOpen",void 0);F([(0,z.state)()],R.prototype,"facets",void 0);F([(0,z.state)()],R.prototype,"facetsInitialized",void 0);F([(0,z.query)(".ft-search-bar--container")],R.prototype,"container",void 0);F([(0,z.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);F([(0,z.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);F([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);F([(0,z.query)(".ft-search-bar--input")],R.prototype,"input",void 0);F([(0,z.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);F([(0,z.state)()],R.prototype,"query",void 0);F([(0,z.state)()],R.prototype,"suggestions",void 0);F([(0,z.state)()],R.prototype,"recentSearches",void 0);F([(0,z.state)()],R.prototype,"scrollToFacet",void 0);F([(0,z.state)()],R.prototype,"api",void 0);F([(0,z.state)()],R.prototype,"displaySuggestListbox",void 0);F([(0,z.state)()],R.prototype,"selectedSuggestOptionId",void 0);F([(0,z.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,z.state)()],R.prototype,"facetsLoaded",void 0)});var nv=l(()=>{"use strict"});var ov,av=l(()=>{"use strict";xu();ov={"ft-search-bar":R}});var lv,cv=l(()=>{"use strict";lv=c(f());av();(0,lv.customElements)(ov)});var uv=l(()=>{"use strict";xu();Aa();nv();cv()});var dv,pv,hv,fv=l(()=>{"use strict";dv=c(y());fn();pv=c(f());Qe();uv();hv=dv.css`
2976
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":yr,"ft-accordion-item":Ut,"ft-button":C,"ft-chip":de,"ft-filter":Y,"ft-filter-option":wt,"ft-icon":ne,"ft-ripple":T,"ft-select":oe,"ft-select-option":Ge,"ft-size-watcher":St,"ft-skeleton":ti,"ft-snap-scroll":we,"ft-tooltip":ye,"ft-typography":V,"ft-radio-group":Ct,"ft-radio":Le};R.styles=[Nr,te.noTextInputDefaultClearButton,Vb,zb,xr.styles,vr.styles,te.screenReaderStyles];F([(0,z.property)({type:Boolean})],R.prototype,"dense",void 0);F([(0,z.property)()],R.prototype,"mode",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);F([(0,z.property)()],R.prototype,"baseUrl",void 0);F([(0,z.property)()],R.prototype,"apiIntegrationIdentifier",void 0);F([(0,z.property)()],R.prototype,"contentLocale",void 0);F([(0,z.state)()],R.prototype,"availableContentLocales",void 0);F([(0,z.state)()],R.prototype,"availableContentLocalesInitialized",void 0);F([(0,z.property)()],R.prototype,"uiLocale",void 0);F([(0,te.jsonProperty)({})],R.prototype,"labels",void 0);F([(0,te.jsonProperty)([])],R.prototype,"displayedFilters",void 0);F([(0,te.jsonProperty)([])],R.prototype,"presets",void 0);F([(0,z.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);F([(0,te.jsonProperty)([])],R.prototype,"priors",void 0);F([(0,z.property)()],R.prototype,"searchRequestSerializer",void 0);F([(0,z.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);F([(0,z.state)()],R.prototype,"metadataFilters",void 0);F([(0,z.state)()],R.prototype,"sizeCategory",void 0);F([(0,z.state)()],R.prototype,"displayFacets",void 0);F([(0,z.state)()],R.prototype,"mobileMenuOpen",void 0);F([(0,z.state)()],R.prototype,"facets",void 0);F([(0,z.state)()],R.prototype,"facetsInitialized",void 0);F([(0,z.query)(".ft-search-bar--container")],R.prototype,"container",void 0);F([(0,z.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);F([(0,z.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);F([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);F([(0,z.query)(".ft-search-bar--input")],R.prototype,"input",void 0);F([(0,z.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);F([(0,z.state)()],R.prototype,"query",void 0);F([(0,z.state)()],R.prototype,"suggestions",void 0);F([(0,z.state)()],R.prototype,"recentSearches",void 0);F([(0,z.state)()],R.prototype,"scrollToFacet",void 0);F([(0,z.state)()],R.prototype,"api",void 0);F([(0,z.state)()],R.prototype,"displaySuggestListbox",void 0);F([(0,z.state)()],R.prototype,"selectedSuggestOptionId",void 0);F([(0,z.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,z.state)()],R.prototype,"facetsLoaded",void 0)});var ov=l(()=>{"use strict"});var nv,av=l(()=>{"use strict";xu();nv={"ft-search-bar":R}});var lv,cv=l(()=>{"use strict";lv=c(f());av();(0,lv.customElements)(nv)});var uv=l(()=>{"use strict";xu();Aa();ov();cv()});var dv,pv,hv,fv=l(()=>{"use strict";dv=c(y());fo();pv=c(f());Qe();uv();hv=dv.css`
2977
2977
  * {
2978
2978
  box-sizing: border-box;
2979
2979
  }
@@ -3033,10 +3033,10 @@
3033
3033
  role="listbox"
3034
3034
  aria-label="${kr.messages.suggestionsLabel()}"
3035
3035
  part="container">
3036
- ${(0,Su.repeat)(i,s=>s,(s,n)=>this.renderRecentQuery(n,s,r))}
3037
- ${(0,Su.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,n)=>this.renderSuggestion(i.length+n,s,r))}
3036
+ ${(0,Su.repeat)(i,s=>s,(s,o)=>this.renderRecentQuery(o,s,r))}
3037
+ ${(0,Su.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,o)=>this.renderSuggestion(i.length+o,s,r))}
3038
3038
  </div>
3039
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Je.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?Je.file_format:Je.fluid_topics,n;switch(r.type){case"MAP":n=r.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":n=Go(r.mimeType,r.filenameExtension);break;case"TOPIC":n=Ae.TOPICS;break;case"HTML_PACKAGE":n=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":n=Ae.FILE_CODE;break}return this.renderOption(e,r.value,n,s,!1,i)}renderOption(e,r,i,s,n,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,u=this.ftSearchInput.selectedSuggestOptionRemove,d=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):ji.nothing;return ji.html`
3039
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Je.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?Je.file_format:Je.fluid_topics,o;switch(r.type){case"MAP":o=r.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":o=Gn(r.mimeType,r.filenameExtension);break;case"TOPIC":o=Ae.TOPICS;break;case"HTML_PACKAGE":o=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Ae.FILE_CODE;break}return this.renderOption(e,r.value,o,s,!1,i)}renderOption(e,r,i,s,o,n){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,u=this.ftSearchInput.selectedSuggestOptionRemove,d=this.ftSearchInput.launchSearchPath?n.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):ji.nothing;return ji.html`
3040
3040
  <div part="suggestion-container"
3041
3041
  class="ft-search-input-suggestion--container">
3042
3042
  <a href="${d}"
@@ -3052,7 +3052,7 @@
3052
3052
  <ft-icon variant="${s}" value="${i}" part="suggestion-icon"></ft-icon>
3053
3053
  <ft-typography variant="${W.body1}">${r}</ft-typography>
3054
3054
  </a>
3055
- ${n?ji.html`
3055
+ ${o?ji.html`
3056
3056
  <ft-button icon="${Ae.CLOSE}"
3057
3057
  round
3058
3058
  part="remove-suggestion"
@@ -3066,7 +3066,7 @@
3066
3066
  </ft-button>
3067
3067
  `:ji.nothing}
3068
3068
  </div>
3069
- `}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()}};ri.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":oe,"ft-button":C};ri.styles=[mv.wordWrap,hv]});function xE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,vE)}var Os,ft,Ot,yv,$e,vE,ce,Eu=l(()=>{"use strict";Os=c(y()),ft=c(f());fn();Pi();bt();kc();Ot=c(P()),yv=c(nt());gv();Zt();ge();Gt();jo();$e=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},vE=5;ce=class extends ct(Nt){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 ri(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(kr)}render(){var e,r,i,s,n;let o=this.suggestions.optionsCount()>0,a={"ft-search-input":!0,"ft-search-input--with-suggestions":o,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},u={...this.request,query:this.liveQuery},d=this.useCustomSearchPath?this.launchSearchPath:void 0,h=_r.get().serializeToCurrentPageIfPossible(u,d),p=!this.forceCloseSuggestion&&this.displaySuggestListbox&&o,m=(i=(e=this.placeholder)===null||e===void 0?void 0:e.message)!==null&&i!==void 0?i:kr.messages.placeholder();return Os.html`
3069
+ `}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()}};ri.elementDefinitions={"ft-ripple":T,"ft-typography":V,"ft-icon":ne,"ft-button":C};ri.styles=[mv.wordWrap,hv]});function xE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,vE)}var Os,ft,Ot,yv,$e,vE,ce,Eu=l(()=>{"use strict";Os=c(y()),ft=c(f());fo();Pi();bt();kc();Ot=c(P()),yv=c(ot());gv();Zt();ge();Gt();jn();$e=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},vE=5;ce=class extends ct(Nt){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 ri(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(kr)}render(){var e,r,i,s,o;let n=this.suggestions.optionsCount()>0,a={"ft-search-input":!0,"ft-search-input--with-suggestions":n,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},u={...this.request,query:this.liveQuery},d=this.useCustomSearchPath?this.launchSearchPath:void 0,h=_r.get().serializeToCurrentPageIfPossible(u,d),p=!this.forceCloseSuggestion&&this.displaySuggestListbox&&n,m=(i=(e=this.placeholder)===null||e===void 0?void 0:e.message)!==null&&i!==void 0?i:kr.messages.placeholder();return Os.html`
3070
3070
  <div class="${(0,yv.classMap)(a)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3071
3071
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3072
3072
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3080,7 +3080,7 @@
3080
3080
  aria-autocomplete="list"
3081
3081
  aria-controls="${this.suggestions.listboxId}"
3082
3082
  aria-expanded="${p}"
3083
- aria-activedescendant="${(n=this.suggestions.activeElementId)!==null&&n!==void 0?n:Os.nothing}"
3083
+ aria-activedescendant="${(o=this.suggestions.activeElementId)!==null&&o!==void 0?o:Os.nothing}"
3084
3084
  @input=${this.onInput}
3085
3085
  @click=${this.onClick}
3086
3086
  @focus=${this.onFocus}
@@ -3114,12 +3114,12 @@
3114
3114
  ></ft-button>
3115
3115
  </div>
3116
3116
  </div>
3117
- `}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}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&ft.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};ce.elementDefinitions={"ft-button":C,...ri.elementDefinitions};ce.styles=[Nr,ft.noTextInputDefaultClearButton,fc,...ri.styles,ft.screenReaderStyles];$e([(0,ft.redux)()],ce.prototype,"request",void 0);$e([(0,ft.redux)()],ce.prototype,"liveQuery",void 0);$e([(0,ft.redux)()],ce.prototype,"suggestResults",void 0);$e([(0,ft.redux)({selector:xE})],ce.prototype,"recentQuerySuggestions",void 0);$e([(0,Ot.state)()],ce.prototype,"forceCloseSuggestion",void 0);$e([(0,Ot.state)()],ce.prototype,"displaySuggestListbox",void 0);$e([(0,Ot.state)()],ce.prototype,"selectedSuggestOptionIndex",void 0);$e([(0,Ot.state)()],ce.prototype,"selectedSuggestOptionRemove",void 0);$e([(0,Ot.property)()],ce.prototype,"launchSearchPath",void 0);$e([Ti()],ce.prototype,"placeholder",void 0);$e([Ti()],ce.prototype,"ariaLabelI18n",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"useCustomSearchPath",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"triggerSearchOnClear",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"focusOnDisplay",void 0);$e([(0,Ot.query)(".ft-search-input--input")],ce.prototype,"input",void 0);$e([(0,Ot.query)('[part="launch-search-in-input"]')],ce.prototype,"launchSearchButton",void 0);$e([(0,ft.ignoreComposingEvents)()],ce.prototype,"onSearchBarKeyDown",null);$e([(0,ft.ignoreComposingEvents)()],ce.prototype,"onSearchBarKeyUp",null)});var bv,vv=l(()=>{"use strict";Eu();bv={"ft-search-input":ce}});var xv,Sv=l(()=>{"use strict";xv=c(f());vv();(0,xv.customElements)(bv)});var Ev={};ni(Ev,{FtSearchInput:()=>ce,FtSearchInputCssVariables:()=>se,styles:()=>fc});var Cv=l(()=>{"use strict";fn();Lg();Eu();Sv()});var Av,SE,Cu,Au=l(()=>{"use strict";Av=c(y()),SE={},Cu=Av.css`
3118
- `});var wv=l(()=>{"use strict"});var wu,Ov=l(()=>{"use strict";bt();wu=$t.fromGwt("designedActionBlockAriaLabels")});var Ra,Ou,_v,Ir,_u=l(()=>{"use strict";Ra=c(y()),Ou=c(f());Au();Zt();Pi();bt();Ov();ys();_v=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ir=class extends ct(Nt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(wu)}render(){return this.isLastPage?Ra.nothing:Ra.html`
3117
+ `}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}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&ft.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};ce.elementDefinitions={"ft-button":C,...ri.elementDefinitions};ce.styles=[Nr,ft.noTextInputDefaultClearButton,fc,...ri.styles,ft.screenReaderStyles];$e([(0,ft.redux)()],ce.prototype,"request",void 0);$e([(0,ft.redux)()],ce.prototype,"liveQuery",void 0);$e([(0,ft.redux)()],ce.prototype,"suggestResults",void 0);$e([(0,ft.redux)({selector:xE})],ce.prototype,"recentQuerySuggestions",void 0);$e([(0,Ot.state)()],ce.prototype,"forceCloseSuggestion",void 0);$e([(0,Ot.state)()],ce.prototype,"displaySuggestListbox",void 0);$e([(0,Ot.state)()],ce.prototype,"selectedSuggestOptionIndex",void 0);$e([(0,Ot.state)()],ce.prototype,"selectedSuggestOptionRemove",void 0);$e([(0,Ot.property)()],ce.prototype,"launchSearchPath",void 0);$e([Ti()],ce.prototype,"placeholder",void 0);$e([Ti()],ce.prototype,"ariaLabelI18n",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"useCustomSearchPath",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"triggerSearchOnClear",void 0);$e([(0,Ot.property)({type:Boolean})],ce.prototype,"focusOnDisplay",void 0);$e([(0,Ot.query)(".ft-search-input--input")],ce.prototype,"input",void 0);$e([(0,Ot.query)('[part="launch-search-in-input"]')],ce.prototype,"launchSearchButton",void 0);$e([(0,ft.ignoreComposingEvents)()],ce.prototype,"onSearchBarKeyDown",null);$e([(0,ft.ignoreComposingEvents)()],ce.prototype,"onSearchBarKeyUp",null)});var bv,vv=l(()=>{"use strict";Eu();bv={"ft-search-input":ce}});var xv,Sv=l(()=>{"use strict";xv=c(f());vv();(0,xv.customElements)(bv)});var Ev={};oi(Ev,{FtSearchInput:()=>ce,FtSearchInputCssVariables:()=>se,styles:()=>fc});var Cv=l(()=>{"use strict";fo();Lg();Eu();Sv()});var Av,SE,Cu,Au=l(()=>{"use strict";Av=c(y()),SE={},Cu=Av.css`
3118
+ `});var wv=l(()=>{"use strict"});var wu,Ov=l(()=>{"use strict";bt();wu=$t.fromGwt("designedActionBlockAriaLabels")});var Ra,Ou,_v,Ir,_u=l(()=>{"use strict";Ra=c(y()),Ou=c(f());Au();Zt();Pi();bt();Ov();ys();_v=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Ir=class extends ct(Nt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(wu)}render(){return this.isLastPage?Ra.nothing:Ra.html`
3119
3119
  <ft-button @click=${this.loadMore}>
3120
3120
  ${wu.messages.searchPageLoadMore()}
3121
3121
  </ft-button>
3122
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Ir.elementDefinitions={"ft-button":C};Ir.styles=Cu;_v([(0,Ou.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],Ir.prototype,"currentPage",void 0);_v([(0,Ou.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],Ir.prototype,"isLastPage",void 0)});var Rv,Tv=l(()=>{"use strict";_u();Rv={"ft-search-load-more-button":Ir}});var kv,Lv=l(()=>{"use strict";kv=c(f());Tv();(0,kv.customElements)(Rv)});var Iv={};ni(Iv,{FtSearchLoadMoreButton:()=>Ir,FtSearchLoadMoreButtonCssVariables:()=>SE,styles:()=>Cu});var $v=l(()=>{"use strict";Au();wv();_u();Lv()});var Dv=l(()=>{"use strict"});var Rs,ka,Ta,Tu,Ru,EE,_s,ku=l(()=>{"use strict";Rs=c(f());Pi();ka=c(P()),Ta=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Tu=class extends Rs.FtContextRegistrationEvent{constructor(e){super("register-ft-search-result-component",e)}},Ru=Symbol("registerInterval"),EE=(0,Rs.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ru]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Ru]):this.dispatchEvent(new Tu({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Ru,Ta([(0,ka.property)({attribute:!1})],r.prototype,"cluster",void 0),Ta([(0,ka.property)({attribute:!1})],r.prototype,"result",void 0),Ta([(0,Rs.numberProperty)()],r.prototype,"rank",void 0),Ta([(0,ka.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),_s=class extends EE(Nt){}});var Lu,Pv,Mv,qi,Iu=l(()=>{"use strict";Lu=c(y()),Pv=c(f());ku();Jo();Mv=c(Wo());ge();qi=class extends _s{render(){var e;let r=(e=(0,Pv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Lu.html`
3122
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Ir.elementDefinitions={"ft-button":C};Ir.styles=Cu;_v([(0,Ou.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],Ir.prototype,"currentPage",void 0);_v([(0,Ou.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],Ir.prototype,"isLastPage",void 0)});var Rv,Tv=l(()=>{"use strict";_u();Rv={"ft-search-load-more-button":Ir}});var kv,Lv=l(()=>{"use strict";kv=c(f());Tv();(0,kv.customElements)(Rv)});var Iv={};oi(Iv,{FtSearchLoadMoreButton:()=>Ir,FtSearchLoadMoreButtonCssVariables:()=>SE,styles:()=>Cu});var $v=l(()=>{"use strict";Au();wv();_u();Lv()});var Dv=l(()=>{"use strict"});var Rs,ka,Ta,Tu,Ru,EE,_s,ku=l(()=>{"use strict";Rs=c(f());Pi();ka=c(P()),Ta=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Tu=class extends Rs.FtContextRegistrationEvent{constructor(e){super("register-ft-search-result-component",e)}},Ru=Symbol("registerInterval"),EE=(0,Rs.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ru]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Ru]):this.dispatchEvent(new Tu({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Ru,Ta([(0,ka.property)({attribute:!1})],r.prototype,"cluster",void 0),Ta([(0,ka.property)({attribute:!1})],r.prototype,"result",void 0),Ta([(0,Rs.numberProperty)()],r.prototype,"rank",void 0),Ta([(0,ka.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),_s=class extends EE(Nt){}});var Lu,Pv,Mv,qi,Iu=l(()=>{"use strict";Lu=c(y()),Pv=c(f());ku();Jn();Mv=c(Wn());ge();qi=class extends _s{render(){var e;let r=(e=(0,Pv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Lu.html`
3123
3123
  <ft-typography variant="${W.body1}" part="text">${(0,Mv.unsafeHTML)(r)}</ft-typography>
3124
3124
  `:Lu.html`
3125
3125
  <style>
@@ -3127,7 +3127,7 @@
3127
3127
  display: none !important;
3128
3128
  }
3129
3129
  </style>
3130
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};qi.elementDefinitions={"ft-typography":V};qi.styles=mc});var Nv,Fv=l(()=>{"use strict";Iu();Nv={"ft-search-result-abstract":qi}});var Bv,$u=l(()=>{"use strict";Bv=c(f());Fv();(0,Bv.customElements)(Nv)});var Uv={};ni(Uv,{FtSearchResultAbstract:()=>qi,FtSearchResultAbstractCssVariables:()=>Zo,styles:()=>mc});var Vv=l(()=>{"use strict";Jo();Dv();Iu();$u()});var zv=l(()=>{"use strict"});var $n,Hv,jv,qv,CE,ii,Du=l(()=>{"use strict";$n=c(y()),Hv=c(P()),jv=c(f());ku();ta();ge();qv=c(Wo());xc();bn();CE=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ii=class extends _s{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():$n.html`
3130
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};qi.elementDefinitions={"ft-typography":V};qi.styles=mc});var Nv,Fv=l(()=>{"use strict";Iu();Nv={"ft-search-result-abstract":qi}});var Bv,$u=l(()=>{"use strict";Bv=c(f());Fv();(0,Bv.customElements)(Nv)});var Uv={};oi(Uv,{FtSearchResultAbstract:()=>qi,FtSearchResultAbstractCssVariables:()=>Zn,styles:()=>mc});var Vv=l(()=>{"use strict";Jn();Dv();Iu();$u()});var zv=l(()=>{"use strict"});var $o,Hv,jv,qv,CE,ii,Du=l(()=>{"use strict";$o=c(y()),Hv=c(P()),jv=c(f());ku();ta();ge();qv=c(Wn());xc();bo();CE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ii=class extends _s{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():$o.html`
3131
3131
  <a href="${ia(this.result)}"
3132
3132
  @click=${this.onResultClick}
3133
3133
  @auxclick=${r=>this.onAuxClick(r)}
@@ -3136,9 +3136,9 @@
3136
3136
  part="link">
3137
3137
  ${this.renderTitle()}
3138
3138
  </a>
3139
- `:$n.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return $n.html`
3139
+ `:$o.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return $o.html`
3140
3140
  <ft-typography variant="${W.title}" part="text">${(0,qv.unsafeHTML)((e=(0,jv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3141
- `}onResultClick(){this.dispatchEvent(new Di(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new gs(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ii.elementDefinitions={"ft-typography":V};ii.styles=gc;CE([(0,Hv.property)({type:Boolean})],ii.prototype,"withoutLink",void 0)});var Kv,Wv=l(()=>{"use strict";Du();Kv={"ft-search-result-title":ii}});var Gv,Pu=l(()=>{"use strict";Gv=c(f());Wv();(0,Gv.customElements)(Kv)});var Qv={};ni(Qv,{FtSearchResultTitle:()=>ii,FtSearchResultTitleCssVariables:()=>ea,styles:()=>gc});var Xv=l(()=>{"use strict";ta();zv();Du();Pu()});var Yv,AE,Mu,Nu=l(()=>{"use strict";Yv=c(y()),AE={},Mu=Yv.css`
3141
+ `}onResultClick(){this.dispatchEvent(new Di(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new gs(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ii.elementDefinitions={"ft-typography":V};ii.styles=gc;CE([(0,Hv.property)({type:Boolean})],ii.prototype,"withoutLink",void 0)});var Kv,Wv=l(()=>{"use strict";Du();Kv={"ft-search-result-title":ii}});var Gv,Pu=l(()=>{"use strict";Gv=c(f());Wv();(0,Gv.customElements)(Kv)});var Qv={};oi(Qv,{FtSearchResultTitle:()=>ii,FtSearchResultTitleCssVariables:()=>ea,styles:()=>gc});var Xv=l(()=>{"use strict";ta();zv();Du();Pu()});var Yv,AE,Mu,Nu=l(()=>{"use strict";Yv=c(y()),AE={},Mu=Yv.css`
3142
3142
  [part="no-results-message"] {
3143
3143
  text-align: center;
3144
3144
  padding: 12px;
@@ -3148,25 +3148,25 @@
3148
3148
  color: inherit;
3149
3149
  text-decoration: inherit;
3150
3150
  }
3151
- `});var La,rx=l(()=>{"use strict";La=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var ix,Ts,sx,Ia,Fu,Sr,nx=l(()=>{"use strict";ix=c(y()),Ts=c(P()),sx=c(f());tx();rx();Ia=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Fu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Sr=class extends sx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new La(e=>this.onResultSelected(e))}render(){return ix.html`
3151
+ `});var La,rx=l(()=>{"use strict";La=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var ix,Ts,sx,Ia,Fu,Sr,ox=l(()=>{"use strict";ix=c(y()),Ts=c(P()),sx=c(f());tx();rx();Ia=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Fu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Sr=class extends sx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new La(e=>this.onResultSelected(e))}render(){return ix.html`
3152
3152
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3153
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new Fu(this.result))}registerComponent(e){var r,i;e.stopPropagation();let s=(i=(r=e.detail)===null||r===void 0?void 0:r.target)!==null&&i!==void 0?i:e.composedPath()[0];this.register(s)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Sr.elementDefinitions={};Sr.styles=ex;Ia([(0,Ts.property)({attribute:!1})],Sr.prototype,"cluster",void 0);Ia([(0,Ts.property)({attribute:!1,type:Boolean})],Sr.prototype,"openResultInNewTab",void 0);Ia([(0,Ts.state)()],Sr.prototype,"result",void 0);Ia([(0,Ts.property)()],Sr.prototype,"index",void 0)});var ox,ax=l(()=>{"use strict";nx();ox={"ft-search-result-context":Sr}});var lx,cx=l(()=>{"use strict";lx=c(f());ax();(0,lx.customElements)(ox)});var ks,ux,Bu=l(()=>{"use strict";bt();ks=$t.build("searchResultsNumber"),ux={results:"{0} results","results[\\=1]":"1 result"}});var $a,dx,Da,sr,Ki,_t,Uu=l(()=>{"use strict";$a=c(y()),dx=c(Lr()),Da=c(P()),sr=c(f());Nu();Pi();cx();Pu();$u();bt();Bu();ys();Ki=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},_t=class extends ct(Nt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>$a.html`
3153
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new Fu(this.result))}registerComponent(e){var r,i;e.stopPropagation();let s=(i=(r=e.detail)===null||r===void 0?void 0:r.target)!==null&&i!==void 0?i:e.composedPath()[0];this.register(s)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Sr.elementDefinitions={};Sr.styles=ex;Ia([(0,Ts.property)({attribute:!1})],Sr.prototype,"cluster",void 0);Ia([(0,Ts.property)({attribute:!1,type:Boolean})],Sr.prototype,"openResultInNewTab",void 0);Ia([(0,Ts.state)()],Sr.prototype,"result",void 0);Ia([(0,Ts.property)()],Sr.prototype,"index",void 0)});var nx,ax=l(()=>{"use strict";ox();nx={"ft-search-result-context":Sr}});var lx,cx=l(()=>{"use strict";lx=c(f());ax();(0,lx.customElements)(nx)});var ks,ux,Bu=l(()=>{"use strict";bt();ks=$t.build("searchResultsNumber"),ux={results:"{0} results","results[\\=1]":"1 result"}});var $a,dx,Da,sr,Ki,_t,Uu=l(()=>{"use strict";$a=c(y()),dx=c(Lr()),Da=c(P()),sr=c(f());Nu();Pi();cx();Pu();$u();bt();Bu();ys();Ki=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},_t=class extends ct(Nt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>$a.html`
3154
3154
  <ft-search-result-title></ft-search-result-title>
3155
3155
  <ft-search-result-abstract></ft-search-result-abstract>
3156
3156
  `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(ks)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return $a.html`
3157
3157
  <ft-typography part="no-results-message" variant="body1">${ks.messages.results(0)}</ft-typography>
3158
3158
  `;let e=this.buildClusters();return(0,dx.repeat)(e,r=>r.id,(r,i)=>{var s;return $a.html`
3159
3159
  <ft-search-result-context .cluster=${r} index="${i}"
3160
- @ft-search-result-cluster-change=${n=>this.onClusterChange(r.id,n.detail)}>
3160
+ @ft-search-result-cluster-change=${o=>this.onClusterChange(r.id,o.detail)}>
3161
3161
  ${this.renderResult((s=this.selectedResultByCluster[r.id])!==null&&s!==void 0?s:r.entries[0],i)}
3162
3162
  </ft-search-result-context>
3163
- `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&sr.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:(0,sr.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let s=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(n=>n.entries.map(o=>({id:(0,sr.accessResultId)(o),entries:[o]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?s.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):s}};_t.styles=Mu;Ki([(0,Da.property)({type:String,attribute:"cluster-policy"})],_t.prototype,"clusterPolicy",void 0);Ki([(0,Da.property)({type:Boolean})],_t.prototype,"displayNoResultsMessage",void 0);Ki([(0,Da.property)({attribute:!1})],_t.prototype,"renderResult",void 0);Ki([(0,sr.jsonProperty)([])],_t.prototype,"clusterSortCriterion",void 0);Ki([(0,sr.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],_t.prototype,"requestWithoutPaging",void 0);Ki([(0,sr.redux)({selector:t=>t.request.paging})],_t.prototype,"paging",void 0);Ki([(0,sr.redux)()],_t.prototype,"results",void 0)});var px,hx=l(()=>{"use strict";Uu();px={"ft-search-results":_t}});var fx,mx=l(()=>{"use strict";fx=c(f());hx();(0,fx.customElements)(px)});var gx={};ni(gx,{FtSearchResults:()=>_t,FtSearchResultsCssVariables:()=>AE,styles:()=>Mu});var yx=l(()=>{"use strict";Nu();Zv();Uu();mx()});var bx,wE,Vu,zu=l(()=>{"use strict";bx=c(y()),wE={},Vu=bx.css`
3163
+ `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&sr.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:(0,sr.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let s=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(o=>o.entries.map(n=>({id:(0,sr.accessResultId)(n),entries:[n]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?s.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):s}};_t.styles=Mu;Ki([(0,Da.property)({type:String,attribute:"cluster-policy"})],_t.prototype,"clusterPolicy",void 0);Ki([(0,Da.property)({type:Boolean})],_t.prototype,"displayNoResultsMessage",void 0);Ki([(0,Da.property)({attribute:!1})],_t.prototype,"renderResult",void 0);Ki([(0,sr.jsonProperty)([])],_t.prototype,"clusterSortCriterion",void 0);Ki([(0,sr.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],_t.prototype,"requestWithoutPaging",void 0);Ki([(0,sr.redux)({selector:t=>t.request.paging})],_t.prototype,"paging",void 0);Ki([(0,sr.redux)()],_t.prototype,"results",void 0)});var px,hx=l(()=>{"use strict";Uu();px={"ft-search-results":_t}});var fx,mx=l(()=>{"use strict";fx=c(f());hx();(0,fx.customElements)(px)});var gx={};oi(gx,{FtSearchResults:()=>_t,FtSearchResultsCssVariables:()=>AE,styles:()=>Mu});var yx=l(()=>{"use strict";Nu();Zv();Uu();mx()});var bx,wE,Vu,zu=l(()=>{"use strict";bx=c(y()),wE={},Vu=bx.css`
3164
3164
 
3165
- `});var vx=l(()=>{"use strict"});var Pa,si,xx,$r,Hu=l(()=>{"use strict";Pa=c(y()),si=c(f());zu();Pi();bt();Bu();ge();ys();xx=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},$r=class extends(0,si.withAriaNotification)(ct(Nt)){constructor(){super(),this.ariaNotificationDebouncer=new si.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(ks,ux)}render(){return this.paging==null?Pa.nothing:Pa.html`
3165
+ `});var vx=l(()=>{"use strict"});var Pa,si,xx,$r,Hu=l(()=>{"use strict";Pa=c(y()),si=c(f());zu();Pi();bt();Bu();ge();ys();xx=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},$r=class extends(0,si.withAriaNotification)(ct(Nt)){constructor(){super(),this.ariaNotificationDebouncer=new si.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(ks,ux)}render(){return this.paging==null?Pa.nothing:Pa.html`
3166
3166
  <ft-typography variant="${W.body1}">
3167
3167
  ${ks.messages.results(this.paging.totalClustersCount)}
3168
3168
  </ft-typography>
3169
- `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};$r.elementDefinitions={"ft-typography":V};$r.styles=Vu;xx([(0,si.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);xx([(0,si.redux)()],$r.prototype,"paging",void 0)});var Sx,Ex=l(()=>{"use strict";Hu();Sx={"ft-search-results-number":$r}});var Cx,Ax=l(()=>{"use strict";Cx=c(f());Ex();(0,Cx.customElements)(Sx)});var wx={};ni(wx,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>wE,styles:()=>Vu});var Ox=l(()=>{"use strict";zu();vx();Hu();Ax()});var Rx=c(f());var Rt=c(y()),Dr=c(f());var yc=c(y()),A=c(f());var Ju=c(y()),q=c(f());Er();var G={padding:q.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:q.FtCssVariableFactory.extend("--ft-card-border-radius","",q.designSystemVariables.borderRadiusM),borderStyle:q.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:q.FtCssVariableFactory.extend("--ft-card-border-color","",q.designSystemVariables.colorOutline),hoverBorderColor:q.FtCssVariableFactory.extend("--ft-card-hover-border-color","",q.designSystemVariables.colorPrimary),outlineStyle:q.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:q.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:q.FtCssVariableFactory.extend("--ft-card-outline-color","",q.designSystemVariables.colorPrimary),selectedOutlineStyle:q.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:q.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:q.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",q.designSystemVariables.colorPrimary),selectedBorderRadius:q.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",q.designSystemVariables.borderRadiusM),colorSurface:q.FtCssVariableFactory.extend("--ft-card-background-color","",q.designSystemVariables.colorSurface),colorOnSurfaceMedium:q.FtCssVariableFactory.extend("--ft-card-content-color","",q.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:q.FtCssVariableFactory.extend("--ft-card-title-color","",q.designSystemVariables.colorOnSurfaceHigh),elevation02:q.FtCssVariableFactory.extend("--ft-card-elevation","",q.designSystemVariables.elevation02),elevation04:q.FtCssVariableFactory.extend("--ft-card-selected-elevation","",q.designSystemVariables.elevation04)},ed=Ju.css`
3169
+ `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};$r.elementDefinitions={"ft-typography":V};$r.styles=Vu;xx([(0,si.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);xx([(0,si.redux)()],$r.prototype,"paging",void 0)});var Sx,Ex=l(()=>{"use strict";Hu();Sx={"ft-search-results-number":$r}});var Cx,Ax=l(()=>{"use strict";Cx=c(f());Ex();(0,Cx.customElements)(Sx)});var wx={};oi(wx,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>wE,styles:()=>Vu});var Ox=l(()=>{"use strict";zu();vx();Hu();Ax()});var Rx=c(f());var Rt=c(y()),Dr=c(f());var yc=c(y()),A=c(f());var Ju=c(y()),q=c(f());Er();var G={padding:q.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:q.FtCssVariableFactory.extend("--ft-card-border-radius","",q.designSystemVariables.borderRadiusM),borderStyle:q.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:q.FtCssVariableFactory.extend("--ft-card-border-color","",q.designSystemVariables.colorOutline),hoverBorderColor:q.FtCssVariableFactory.extend("--ft-card-hover-border-color","",q.designSystemVariables.colorPrimary),outlineStyle:q.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:q.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:q.FtCssVariableFactory.extend("--ft-card-outline-color","",q.designSystemVariables.colorPrimary),selectedOutlineStyle:q.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:q.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:q.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",q.designSystemVariables.colorPrimary),selectedBorderRadius:q.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",q.designSystemVariables.borderRadiusM),colorSurface:q.FtCssVariableFactory.extend("--ft-card-background-color","",q.designSystemVariables.colorSurface),colorOnSurfaceMedium:q.FtCssVariableFactory.extend("--ft-card-content-color","",q.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:q.FtCssVariableFactory.extend("--ft-card-title-color","",q.designSystemVariables.colorOnSurfaceHigh),elevation02:q.FtCssVariableFactory.extend("--ft-card-elevation","",q.designSystemVariables.elevation02),elevation04:q.FtCssVariableFactory.extend("--ft-card-selected-elevation","",q.designSystemVariables.elevation04)},ed=Ju.css`
3170
3170
  :host {
3171
3171
  display: block;
3172
3172
  }
@@ -3255,7 +3255,7 @@
3255
3255
  #action {
3256
3256
  grid-area: actions;
3257
3257
  }
3258
- `;fn();Jo();Er();ta();var Ke={searchFieldBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",A.designSystemVariables.colorSurface),searchFieldBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",A.designSystemVariables.colorOutline),searchFieldTextColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",A.designSystemVariables.colorOnSurface),searchFieldBorderRadius:A.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",A.designSystemVariables.borderRadiusS),searchButtonColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",A.designSystemVariables.colorPrimary),resultsNumberColor:A.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",A.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",A.designSystemVariables.colorSurface),resultBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",A.designSystemVariables.colorOutline),resultBorderRadius:A.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",A.designSystemVariables.borderRadiusS),resultTitleTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",A.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",A.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",A.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:A.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",A.designSystemVariables.colorPrimary),resultHoverBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",A.designSystemVariables.colorPrimary)},ig=yc.css`
3258
+ `;fo();Jn();Er();ta();var Ke={searchFieldBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",A.designSystemVariables.colorSurface),searchFieldBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",A.designSystemVariables.colorOutline),searchFieldTextColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",A.designSystemVariables.colorOnSurface),searchFieldBorderRadius:A.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",A.designSystemVariables.borderRadiusS),searchButtonColor:A.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",A.designSystemVariables.colorPrimary),resultsNumberColor:A.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",A.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",A.designSystemVariables.colorSurface),resultBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",A.designSystemVariables.colorOutline),resultBorderRadius:A.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",A.designSystemVariables.borderRadiusS),resultTitleTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",A.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",A.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:A.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",A.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:A.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:A.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",A.designSystemVariables.colorPrimary),resultHoverBorderColor:A.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",A.designSystemVariables.colorPrimary)},ig=yc.css`
3259
3259
  .ft-search-in-doc--container {
3260
3260
  display: flex;
3261
3261
  flex-direction: column;
@@ -3304,7 +3304,7 @@
3304
3304
 
3305
3305
  ft-search-result-abstract {
3306
3306
  color: ${Ke.resultContentTextColor};
3307
- ${(0,A.setVariable)(Zo.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3307
+ ${(0,A.setVariable)(Zn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3308
3308
  }
3309
3309
 
3310
3310
  ft-card:hover {
@@ -3322,11 +3322,11 @@
3322
3322
  text-decoration: none;
3323
3323
  color: inherit;
3324
3324
  }
3325
- `;bt();var fs=c(f()),ag=c(P());var ng;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(ng||(ng={}));var og;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(og||(og={}));var uE=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},vc=class extends fs.FtContextRegistrationEvent{constructor(e){super("register-ft-reader-component",e)}},bc=Symbol("registerInterval"),dE=(0,fs.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[bc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bc]):this.dispatchEvent(new vc({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bc,uE([(0,ag.state)()],r.prototype,"stateManager",void 0),r}),ra=class extends dE(fs.FtLitElementRedux){};var Pr=c(P());xc();bt();var Sc=$t.build("designedReaderSearchInDocument");var gn=c(y()),$i=c(P()),ug=c(f());Qe();ge();var dg=c(nt()),ms=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ut=class extends ug.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return gn.html`
3325
+ `;bt();var fs=c(f()),ag=c(P());var og;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(og||(og={}));var ng;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ng||(ng={}));var uE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},vc=class extends fs.FtContextRegistrationEvent{constructor(e){super("register-ft-reader-component",e)}},bc=Symbol("registerInterval"),dE=(0,fs.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[bc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bc]):this.dispatchEvent(new vc({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bc,uE([(0,ag.state)()],r.prototype,"stateManager",void 0),r}),ra=class extends dE(fs.FtLitElementRedux){};var Pr=c(P());xc();bt();var Sc=$t.build("designedReaderSearchInDocument");var go=c(y()),$i=c(P()),ug=c(f());Qe();ge();var dg=c(ot()),ms=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ut=class extends ug.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return go.html`
3326
3326
  <div id="container" part="container" class="${(0,dg.classMap)(e)}">
3327
- ${this.clickable?gn.html`
3327
+ ${this.clickable?go.html`
3328
3328
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
3329
- `:gn.nothing}
3329
+ `:go.nothing}
3330
3330
  <div id="header" part="header">
3331
3331
  <ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
3332
3332
  <slot name="header"></slot>
@@ -3340,7 +3340,7 @@
3340
3340
  </ft-typography>
3341
3341
  </div>
3342
3342
  </div>
3343
- `}};ut.elementDefinitions={"ft-ripple":T,"ft-typography":V};ut.styles=ed;ms([(0,$i.property)()],ut.prototype,"title",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"clickable",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"selected",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"noHeader",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"noContent",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"oneLineHeader",void 0);var hg=c(f());var pg={"ft-card":ut};(0,hg.customElements)(pg);bn();ge();jo();var zt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},De=class t extends ct(ra){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.metadataFilters=[],this.uniqueId=(0,Dr.randomId)(6,"search-in-document-"),this.addI18nContext(Sc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}},...this.metadataFilters]}renderResult(e,r){var i;return Rt.html`
3343
+ `}};ut.elementDefinitions={"ft-ripple":T,"ft-typography":V};ut.styles=ed;ms([(0,$i.property)()],ut.prototype,"title",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"clickable",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"selected",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"noHeader",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"noContent",void 0);ms([(0,$i.property)({type:Boolean})],ut.prototype,"oneLineHeader",void 0);var hg=c(f());var pg={"ft-card":ut};(0,hg.customElements)(pg);bo();ge();jn();var zt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},De=class t extends ct(ra){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.metadataFilters=[],this.uniqueId=(0,Dr.randomId)(6,"search-in-document-"),this.addI18nContext(Sc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}},...this.metadataFilters]}renderResult(e,r){var i;return Rt.html`
3344
3344
  <style> ${sg}</style>
3345
3345
  <a href="${ia(e,this.metadataFilters)}" @click=${s=>this.onLinkClick(s,e,r)}
3346
3346
  @auxclick=${s=>this.onAuxClick(s,e,r)}
@@ -3385,7 +3385,7 @@
3385
3385
  </slot>
3386
3386
  </div>
3387
3387
  </ft-search-context>
3388
- `:Rt.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,Dr.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r,i){var s,n;this.dispatchEvent(new Di(r,i)),(s=this.stateManager)===null||s===void 0||s.navigateToTopic((n=r.topic)===null||n===void 0?void 0:n.tocId,void 0,void 0),e.preventDefault()}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(kg(),Tg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Cv(),Ev)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>($v(),Iv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(Vv(),Uv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Xv(),Qv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(yx(),gx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Ox(),wx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};De.elementDefinitions={"ft-card":ut};De.styles=ig;zt([(0,Dr.redux)()],De.prototype,"map",void 0);zt([(0,Dr.redux)()],De.prototype,"searchInDocumentQuery",void 0);zt([(0,Dr.redux)()],De.prototype,"applyStickyFilters",void 0);zt([(0,Pr.query)("ft-search-results")],De.prototype,"searchResults",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultTitle",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultBreadcrumb",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultAbstract",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultsNumber",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"emptyResultOnClear",void 0);zt([(0,Pr.query)('[part="search-context"]')],De.prototype,"searchContext",void 0);zt([Ti()],De.prototype,"placeholder",void 0);zt([(0,Dr.redux)({store:"reader"})],De.prototype,"metadataFilters",void 0);var _x={"ft-reader-search-in-document":De};(0,Rx.customElements)(_x);})();
3388
+ `:Rt.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,Dr.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r,i){var s,o;this.dispatchEvent(new Di(r,i)),(s=this.stateManager)===null||s===void 0||s.navigateToTopic((o=r.topic)===null||o===void 0?void 0:o.tocId,void 0,void 0),e.preventDefault()}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(kg(),Tg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Cv(),Ev)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>($v(),Iv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(Vv(),Uv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Xv(),Qv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(yx(),gx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Ox(),wx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};De.elementDefinitions={"ft-card":ut};De.styles=ig;zt([(0,Dr.redux)()],De.prototype,"map",void 0);zt([(0,Dr.redux)()],De.prototype,"searchInDocumentQuery",void 0);zt([(0,Dr.redux)()],De.prototype,"applyStickyFilters",void 0);zt([(0,Pr.query)("ft-search-results")],De.prototype,"searchResults",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultTitle",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultBreadcrumb",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultAbstract",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultsNumber",void 0);zt([(0,Pr.property)({type:Boolean})],De.prototype,"emptyResultOnClear",void 0);zt([(0,Pr.query)('[part="search-context"]')],De.prototype,"searchContext",void 0);zt([Ti()],De.prototype,"placeholder",void 0);zt([(0,Dr.redux)({store:"reader"})],De.prototype,"metadataFilters",void 0);var _x={"ft-reader-search-in-document":De};(0,Rx.customElements)(_x);})();
3389
3389
  /*! Bundled license information:
3390
3390
 
3391
3391
  .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js: