@fluid-topics/ft-reader-search-in-document 2.2.17 → 2.2.19

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 Dx=Object.create;var $a=Object.defineProperty;var Px=Object.getOwnPropertyDescriptor;var Mx=Object.getOwnPropertyNames;var Nx=Object.getPrototypeOf,Fx=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 ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ii=(t,e)=>{for(var r in e)$a(t,r,{get:e[r],enumerable:!0})},Bx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mx(e))!Fx.call(t,s)&&s!==r&&$a(t,s,{get:()=>e[s],enumerable:!(i=Px(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Dx(Nx(t)):{},Bx(e||!t||!t.__esModule?$a(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((BE,Uu)=>{Uu.exports=ftGlobals.wcUtils});var y=ji((UE,Vu)=>{Vu.exports=ftGlobals.lit});var Wu,Ce,zu,j,Hu,ju,qu,Ku,Gu,vr=l(()=>{"use strict";Wu=c(y()),Ce=c(f()),zu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorContent),j={color:zu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",zu),opacityContentOnSurfacePressed:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorPrimary),ju={color:Hu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu)},qu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorSecondary),Ku={color:qu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",qu)},Gu=Wu.css`
1
+ "use strict";(()=>{var Dx=Object.create;var Ia=Object.defineProperty;var Mx=Object.getOwnPropertyDescriptor;var Nx=Object.getOwnPropertyNames;var Fx=Object.getPrototypeOf,Bx=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 ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},si=(t,e)=>{for(var r in e)Ia(t,r,{get:e[r],enumerable:!0})},Ux=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Nx(e))!Bx.call(t,o)&&o!==r&&Ia(t,o,{get:()=>e[o],enumerable:!(i=Mx(e,o))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Dx(Fx(t)):{},Ux(e||!t||!t.__esModule?Ia(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((VE,Vu)=>{Vu.exports=ftGlobals.wcUtils});var y=ji((zE,zu)=>{zu.exports=ftGlobals.lit});var Gu,Ae,Hu,j,ju,qu,Ku,Wu,Qu,br=l(()=>{"use strict";Gu=c(y()),Ae=c(f()),Hu=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorContent),j={color:Hu,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu),opacityContentOnSurfacePressed:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ae.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ju=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorPrimary),qu={color:ju,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",ju)},Ku=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorSecondary),Wu={color:Ku,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ku)},Qu=Gu.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -53,19 +53,19 @@
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${Ku.backgroundColor};
56
+ background-color: ${Wu.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${Ku.color};
60
+ background-color: ${Wu.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${ju.backgroundColor};
64
+ background-color: ${qu.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${ju.color};
68
+ background-color: ${qu.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -110,31 +110,21 @@
110
110
  opacity: ${j.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `});var F=ji((jE,Yu)=>{Yu.exports=ftGlobals.litDecorators});var nt=ji((qE,Zu)=>{Zu.exports=ftGlobals.litClassMap});var Ju,Ie,ed,ko,at,k,Ia=l(()=>{"use strict";Ju=c(y()),Ie=c(F()),ed=c(nt()),ko=c(f());vr();at=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},k=class extends ko.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 ko.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 ko.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 Ju.html`
113
+ `});var F=ji((KE,Zu)=>{Zu.exports=ftGlobals.litDecorators});var nt=ji((WE,Ju)=>{Ju.exports=ftGlobals.litClassMap});var ed,Ie,td,Ts,at,k,Pa=l(()=>{"use strict";ed=c(y()),Ie=c(F()),td=c(nt()),Ts=c(f());br();at=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},k=class extends Ts.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 Ts.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 Ts.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:s}=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(o!=null?o-n.x:n.width/2),this.originY=Math.round(s!=null?s-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 ed.html`
114
114
  <style>
115
115
  .ft-ripple .ft-ripple--effect {
116
116
  left: ${this.originX}px;
117
117
  top: ${this.originY}px;
118
118
  }
119
119
  </style>
120
- <div class="${(0,ed.classMap)(e)}">
120
+ <div class="${(0,td.classMap)(e)}">
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>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()}};k.elementDefinitions={};k.styles=Gu;at([(0,Ie.property)({type:Boolean})],k.prototype,"primary",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"secondary",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"unbounded",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"activated",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"selected",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"disabled",void 0);at([(0,Ie.state)()],k.prototype,"hovered",void 0);at([(0,Ie.state)()],k.prototype,"focused",void 0);at([(0,Ie.state)()],k.prototype,"pressed",void 0);at([(0,Ie.state)()],k.prototype,"rippling",void 0);at([(0,Ie.state)()],k.prototype,"originX",void 0);at([(0,Ie.state)()],k.prototype,"originY",void 0);at([(0,Ie.query)(".ft-ripple")],k.prototype,"ripple",void 0);at([(0,Ie.query)(".ft-ripple--effect")],k.prototype,"rippleEffect",void 0)});var td=l(()=>{"use strict"});var rd,id=l(()=>{"use strict";Ia();rd={"ft-ripple":k}});var od,sd=l(()=>{"use strict";od=c(f());id();(0,od.customElements)(rd)});var Xe=l(()=>{"use strict";Ia();vr();td();sd()});function vd(t,e){if(!Va(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ad!==void 0?ad.createHTML(e):e}function qi(t,e,r=t,i){if(e===Io)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,o=$o(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=qi(t,s._$AS(t,e.values),s,i)),e}var Ua,nd,Rs,ad,hd,Dr,fd,Ux,ni,Ts,$o,Va,Vx,Da,Lo,ld,cd,oi,ud,dd,md,za,gd,yd,bd,Io,Ae,pd,si,zx,Do,Pa,ks,Ki,Ma,Na,Fa,Ba,Hx,Ha=l(()=>{Ua=globalThis,nd=t=>t,Rs=Ua.trustedTypes,ad=Rs?Rs.createPolicy("lit-html",{createHTML:t=>t}):void 0,hd="$lit$",Dr=`lit$${Math.random().toFixed(9).slice(2)}$`,fd="?"+Dr,Ux=`<${fd}>`,ni=document,Ts=()=>ni.createComment(""),$o=t=>t===null||typeof t!="object"&&typeof t!="function",Va=Array.isArray,Vx=t=>Va(t)||typeof t?.[Symbol.iterator]=="function",Da=`[
125
- \f\r]`,Lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ld=/-->/g,cd=/>/g,oi=RegExp(`>|${Da}(?:([^\\s"'>=/]+)(${Da}*=${Da}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ud=/'/g,dd=/"/g,md=/^(?:script|style|textarea|title)$/i,za=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gd=za(1),yd=za(2),bd=za(3),Io=Symbol.for("lit-noChange"),Ae=Symbol.for("lit-nothing"),pd=new WeakMap,si=ni.createTreeWalker(ni,129);zx=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=Lo;for(let a=0;a<r;a++){let u=t[a],d,p,h=-1,m=0;for(;m<u.length&&(n.lastIndex=m,p=n.exec(u),p!==null);)m=n.lastIndex,n===Lo?p[1]==="!--"?n=ld:p[1]!==void 0?n=cd:p[2]!==void 0?(md.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=oi):p[3]!==void 0&&(n=oi):n===oi?p[0]===">"?(n=s??Lo,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?oi:p[3]==='"'?dd:ud):n===dd||n===ud?n=oi:n===ld||n===cd?n=Lo:(n=oi,s=void 0);let x=n===oi&&t[a+1].startsWith("/>")?" ":"";o+=n===Lo?u+Ux:h>=0?(i.push(d),u.slice(0,h)+hd+u.slice(h)+Dr+x):u+Dr+(h===-2?a:x)}return[vd(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Do=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,p]=zx(e,r);if(this.el=t.createElement(d,i),si.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=si.nextNode())!==null&&u.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(hd)){let m=p[n++],x=s.getAttribute(h).split(Dr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:C[2],strings:x,ctor:C[1]==="."?Ma:C[1]==="?"?Na:C[1]==="@"?Fa:Ki}),s.removeAttribute(h)}else h.startsWith(Dr)&&(u.push({type:6,index:o}),s.removeAttribute(h));if(md.test(s.tagName)){let h=s.textContent.split(Dr),m=h.length-1;if(m>0){s.textContent=Rs?Rs.emptyScript:"";for(let x=0;x<m;x++)s.append(h[x],Ts()),si.nextNode(),u.push({type:2,index:++o});s.append(h[m],Ts())}}}else if(s.nodeType===8)if(s.data===fd)u.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(Dr,h+1))!==-1;)u.push({type:7,index:o}),h+=Dr.length-1}o++}}static createElement(e,r){let i=ni.createElement("template");return i.innerHTML=e,i}};Pa=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??ni).importNode(r,!0);si.currentNode=s;let o=si.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new ks(o,o.nextSibling,this,e):u.type===1?d=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(d=new Ba(o,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(o=si.nextNode(),n++)}return si.currentNode=ni,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++}},ks=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=Ae,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=qi(this,e,r),$o(e)?e===Ae||e==null||e===""?(this._$AH!==Ae&&this._$AR(),this._$AH=Ae):e!==this._$AH&&e!==Io&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Vx(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!==Ae&&$o(this._$AH)?this._$AA.nextSibling.data=e:this.T(ni.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=Do.createElement(vd(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let o=new Pa(s,this),n=o.u(this.options);o.p(r),this.T(n),this._$AH=o}}_$AC(e){let r=pd.get(e.strings);return r===void 0&&pd.set(e.strings,r=new Do(e)),r}k(e){Va(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(Ts()),this.O(Ts()),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=nd(e).nextSibling;nd(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ki=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=Ae,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=Ae}_$AI(e,r=this,i,s){let o=this.strings,n=!1;if(o===void 0)e=qi(this,e,r,0),n=!$o(e)||e!==this._$AH&&e!==Io,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=qi(this,a[i+u],r,u),d===Io&&(d=this._$AH[u]),n||=!$o(d)||d!==this._$AH[u],d===Ae?e=Ae:e!==Ae&&(e+=(d??"")+o[u+1]),this._$AH[u]=d}n&&!s&&this.j(e)}j(e){e===Ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ma=class extends Ki{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ae?void 0:e}},Na=class extends Ki{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ae)}},Fa=class extends Ki{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=qi(this,e,r,0)??Ae)===Io)return;let i=this._$AH,s=e===Ae&&i!==Ae||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Ae&&(i===Ae||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)}},Ba=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){qi(this,e)}},Hx=Ua.litHtmlPolyfillSupport;Hx?.(Do,ks),(Ua.litHtmlVersions??=[]).push("3.3.3")});var Sd,jx,ja,xd,qa,Ka,oC,sC,Ed=l(()=>{Ha();Sd=Symbol.for(""),jx=t=>{if(t?.r===Sd)return t?._$litStatic$},ja=t=>({_$litStatic$:t,r:Sd}),xd=new Map,qa=t=>(e,...r)=>{let i=r.length,s,o,n=[],a=[],u,d=0,p=!1;for(;d<i;){for(u=e[d];d<i&&(o=r[d],(s=jx(o))!==void 0);)u+=s+e[++d],p=!0;d!==i&&a.push(o),n.push(u),d++}if(d===i&&n.push(e[i]),p){let h=n.join("$$lit$$");(e=xd.get(h))===void 0&&(n.raw=n,xd.set(h,e=n)),r=a}return t(e,...r)},Ka=qa(gd),oC=qa(yd),sC=qa(bd)});var Cd=l(()=>{Ed()});var X,Ls=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"})(X||(X={}))});var _t,g,Ad,xr,v,ai,li,ci,ui,tr,we,lt,di,pi,Ft,wd,Od,_d,Rd,Td,Pr,Mr,kd,Ld,$d,Id,Bt=l(()=>{"use strict";_t=c(y()),g=c(f()),Ad=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),xr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:xr,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")},ai={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ad),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")},li={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ad),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")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",xr),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")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",xr),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")},tr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",xr),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")},we={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",xr),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")},lt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",xr),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")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",xr),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")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",xr),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")},Ft={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",xr),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")},wd=_t.css`
124
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),s=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",o,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",s,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",o,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",s,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,o,s;return r.x!=null?{x:o,y:s}=r:i.touches!=null&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};k.elementDefinitions={};k.styles=Qu;at([(0,Ie.property)({type:Boolean})],k.prototype,"primary",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"secondary",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"unbounded",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"activated",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"selected",void 0);at([(0,Ie.property)({type:Boolean})],k.prototype,"disabled",void 0);at([(0,Ie.state)()],k.prototype,"hovered",void 0);at([(0,Ie.state)()],k.prototype,"focused",void 0);at([(0,Ie.state)()],k.prototype,"pressed",void 0);at([(0,Ie.state)()],k.prototype,"rippling",void 0);at([(0,Ie.state)()],k.prototype,"originX",void 0);at([(0,Ie.state)()],k.prototype,"originY",void 0);at([(0,Ie.query)(".ft-ripple")],k.prototype,"ripple",void 0);at([(0,Ie.query)(".ft-ripple--effect")],k.prototype,"rippleEffect",void 0)});var rd=l(()=>{"use strict"});var id,sd=l(()=>{"use strict";Pa();id={"ft-ripple":k}});var od,nd=l(()=>{"use strict";od=c(f());sd();(0,od.customElements)(id)});var Xe=l(()=>{"use strict";Pa();br();rd();nd()});function xd(t,e){if(!za(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ld!==void 0?ld.createHTML(e):e}function qi(t,e,r=t,i){if(e===$s)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ls(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=qi(t,o._$AS(t,e.values),o,i)),e}var Va,ad,To,ld,fd,Pr,md,Vx,ai,ko,Ls,za,zx,Da,ks,cd,ud,oi,dd,pd,gd,Ha,yd,vd,bd,$s,we,hd,ni,Hx,Is,Ma,Lo,Ki,Na,Fa,Ba,Ua,jx,ja=l(()=>{Va=globalThis,ad=t=>t,To=Va.trustedTypes,ld=To?To.createPolicy("lit-html",{createHTML:t=>t}):void 0,fd="$lit$",Pr=`lit$${Math.random().toFixed(9).slice(2)}$`,md="?"+Pr,Vx=`<${md}>`,ai=document,ko=()=>ai.createComment(""),Ls=t=>t===null||typeof t!="object"&&typeof t!="function",za=Array.isArray,zx=t=>za(t)||typeof t?.[Symbol.iterator]=="function",Da=`[
125
+ \f\r]`,ks=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cd=/-->/g,ud=/>/g,oi=RegExp(`>|${Da}(?:([^\\s"'>=/]+)(${Da}*=${Da}*(?:[^
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),dd=/'/g,pd=/"/g,gd=/^(?:script|style|textarea|title)$/i,Ha=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),yd=Ha(1),vd=Ha(2),bd=Ha(3),$s=Symbol.for("lit-noChange"),we=Symbol.for("lit-nothing"),hd=new WeakMap,ni=ai.createTreeWalker(ai,129);Hx=(t,e)=>{let r=t.length-1,i=[],o,s=e===2?"<svg>":e===3?"<math>":"",n=ks;for(let a=0;a<r;a++){let u=t[a],d,p,h=-1,m=0;for(;m<u.length&&(n.lastIndex=m,p=n.exec(u),p!==null);)m=n.lastIndex,n===ks?p[1]==="!--"?n=cd:p[1]!==void 0?n=ud:p[2]!==void 0?(gd.test(p[2])&&(o=RegExp("</"+p[2],"g")),n=oi):p[3]!==void 0&&(n=oi):n===oi?p[0]===">"?(n=o??ks,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?oi:p[3]==='"'?pd:dd):n===pd||n===dd?n=oi:n===cd||n===ud?n=ks:(n=oi,o=void 0);let x=n===oi&&t[a+1].startsWith("/>")?" ":"";s+=n===ks?u+Vx:h>=0?(i.push(d),u.slice(0,h)+fd+u.slice(h)+Pr+x):u+Pr+(h===-2?a:x)}return[xd(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Is=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let s=0,n=0,a=e.length-1,u=this.parts,[d,p]=Hx(e,r);if(this.el=t.createElement(d,i),ni.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=ni.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(fd)){let m=p[n++],x=o.getAttribute(h).split(Pr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?Na:C[1]==="?"?Fa:C[1]==="@"?Ba:Ki}),o.removeAttribute(h)}else h.startsWith(Pr)&&(u.push({type:6,index:s}),o.removeAttribute(h));if(gd.test(o.tagName)){let h=o.textContent.split(Pr),m=h.length-1;if(m>0){o.textContent=To?To.emptyScript:"";for(let x=0;x<m;x++)o.append(h[x],ko()),ni.nextNode(),u.push({type:2,index:++s});o.append(h[m],ko())}}}else if(o.nodeType===8)if(o.data===md)u.push({type:2,index:s});else{let h=-1;for(;(h=o.data.indexOf(Pr,h+1))!==-1;)u.push({type:7,index:s}),h+=Pr.length-1}s++}}static createElement(e,r){let i=ai.createElement("template");return i.innerHTML=e,i}};Ma=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,o=(e?.creationScope??ai).importNode(r,!0);ni.currentNode=o;let s=ni.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new Lo(s,s.nextSibling,this,e):u.type===1?d=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(d=new Ua(s,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(s=ni.nextNode(),n++)}return ni.currentNode=ai,o}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++}},Lo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=we,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.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=qi(this,e,r),Ls(e)?e===we||e==null||e===""?(this._$AH!==we&&this._$AR(),this._$AH=we):e!==this._$AH&&e!==$s&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):zx(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!==we&&Ls(this._$AH)?this._$AA.nextSibling.data=e:this.T(ai.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Is.createElement(xd(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Ma(o,this),n=s.u(this.options);s.p(r),this.T(n),this._$AH=s}}_$AC(e){let r=hd.get(e.strings);return r===void 0&&hd.set(e.strings,r=new Is(e)),r}k(e){za(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let s of e)o===r.length?r.push(i=new t(this.O(ko()),this.O(ko()),this,this.options)):i=r[o],i._$AI(s),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ad(e).nextSibling;ad(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ki=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,s){this.type=1,this._$AH=we,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=we}_$AI(e,r=this,i,o){let s=this.strings,n=!1;if(s===void 0)e=qi(this,e,r,0),n=!Ls(e)||e!==this._$AH&&e!==$s,n&&(this._$AH=e);else{let a=e,u,d;for(e=s[0],u=0;u<s.length-1;u++)d=qi(this,a[i+u],r,u),d===$s&&(d=this._$AH[u]),n||=!Ls(d)||d!==this._$AH[u],d===we?e=we:e!==we&&(e+=(d??"")+s[u+1]),this._$AH[u]=d}n&&!o&&this.j(e)}j(e){e===we?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Na=class extends Ki{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===we?void 0:e}},Fa=class extends Ki{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==we)}},Ba=class extends Ki{constructor(e,r,i,o,s){super(e,r,i,o,s),this.type=5}_$AI(e,r=this){if((e=qi(this,e,r,0)??we)===$s)return;let i=this._$AH,o=e===we&&i!==we||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==we&&(i===we||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ua=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){qi(this,e)}},jx=Va.litHtmlPolyfillSupport;jx?.(Is,Lo),(Va.litHtmlVersions??=[]).push("3.3.3")});var Ed,qx,qa,Sd,Ka,Wa,nC,aC,Cd=l(()=>{ja();Ed=Symbol.for(""),qx=t=>{if(t?.r===Ed)return t?._$litStatic$},qa=t=>({_$litStatic$:t,r:Ed}),Sd=new Map,Ka=t=>(e,...r)=>{let i=r.length,o,s,n=[],a=[],u,d=0,p=!1;for(;d<i;){for(u=e[d];d<i&&(s=r[d],(o=qx(s))!==void 0);)u+=o+e[++d],p=!0;d!==i&&a.push(s),n.push(u),d++}if(d===i&&n.push(e[i]),p){let h=n.join("$$lit$$");(e=Sd.get(h))===void 0&&(n.raw=n,Sd.set(h,e=n)),r=a}return t(e,...r)},Wa=Ka(yd),nC=Ka(vd),aC=Ka(bd)});var Ad=l(()=>{Cd()});var X,$o=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"})(X||(X={}))});var _t,g,wd,xr,b,li,ci,ui,di,rr,Oe,lt,pi,hi,Bt,Od,_d,Rd,Td,kd,Dr,Mr,Ld,$d,Id,Pd,Ut=l(()=>{"use strict";_t=c(y()),g=c(f()),wd=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),xr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:xr,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")},li={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",wd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",b.textDecoration,"inherit")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",wd),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",b.textDecoration,"inherit")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",b.textDecoration,"inherit")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",b.textDecoration,"inherit")},rr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",b.textDecoration,"inherit")},Oe={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",b.textDecoration,"inherit")},lt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",b.textDecoration,"inherit")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",b.textDecoration,"inherit")},hi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",b.textDecoration,"inherit")},Bt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",xr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",b.textDecoration,"inherit")},Od=_t.css`
127
127
  .ft-typography--title {
128
- font-family: ${ai.fontFamily};
129
- font-size: ${ai.fontSize};
130
- font-weight: ${ai.fontWeight};
131
- letter-spacing: ${ai.letterSpacing};
132
- line-height: ${ai.lineHeight};
133
- text-transform: ${ai.textTransform};
134
- text-decoration: ${ai.textDecoration};
135
- }
136
- `,Od=_t.css`
137
- .ft-typography--title-dense {
138
128
  font-family: ${li.fontFamily};
139
129
  font-size: ${li.fontSize};
140
130
  font-weight: ${li.fontWeight};
@@ -144,7 +134,7 @@
144
134
  text-decoration: ${li.textDecoration};
145
135
  }
146
136
  `,_d=_t.css`
147
- .ft-typography--subtitle1 {
137
+ .ft-typography--title-dense {
148
138
  font-family: ${ci.fontFamily};
149
139
  font-size: ${ci.fontSize};
150
140
  font-weight: ${ci.fontWeight};
@@ -154,7 +144,7 @@
154
144
  text-decoration: ${ci.textDecoration};
155
145
  }
156
146
  `,Rd=_t.css`
157
- .ft-typography--subtitle2 {
147
+ .ft-typography--subtitle1 {
158
148
  font-family: ${ui.fontFamily};
159
149
  font-size: ${ui.fontSize};
160
150
  font-weight: ${ui.fontWeight};
@@ -163,26 +153,36 @@
163
153
  text-transform: ${ui.textTransform};
164
154
  text-decoration: ${ui.textDecoration};
165
155
  }
166
-
167
156
  `,Td=_t.css`
157
+ .ft-typography--subtitle2 {
158
+ font-family: ${di.fontFamily};
159
+ font-size: ${di.fontSize};
160
+ font-weight: ${di.fontWeight};
161
+ letter-spacing: ${di.letterSpacing};
162
+ line-height: ${di.lineHeight};
163
+ text-transform: ${di.textTransform};
164
+ text-decoration: ${di.textDecoration};
165
+ }
166
+
167
+ `,kd=_t.css`
168
168
  .ft-typography--body1 {
169
- font-family: ${tr.fontFamily};
170
- font-size: ${tr.fontSize};
171
- font-weight: ${tr.fontWeight};
172
- letter-spacing: ${tr.letterSpacing};
173
- line-height: ${tr.lineHeight};
174
- text-transform: ${tr.textTransform};
175
- text-decoration: ${tr.textDecoration};
176
- }
177
- `,Pr=_t.css`
169
+ font-family: ${rr.fontFamily};
170
+ font-size: ${rr.fontSize};
171
+ font-weight: ${rr.fontWeight};
172
+ letter-spacing: ${rr.letterSpacing};
173
+ line-height: ${rr.lineHeight};
174
+ text-transform: ${rr.textTransform};
175
+ text-decoration: ${rr.textDecoration};
176
+ }
177
+ `,Dr=_t.css`
178
178
  .ft-typography--body2 {
179
- font-family: ${we.fontFamily};
180
- font-size: ${we.fontSize};
181
- font-weight: ${we.fontWeight};
182
- letter-spacing: ${we.letterSpacing};
183
- line-height: ${we.lineHeight};
184
- text-transform: ${we.textTransform};
185
- text-decoration: ${we.textDecoration};
179
+ font-family: ${Oe.fontFamily};
180
+ font-size: ${Oe.fontSize};
181
+ font-weight: ${Oe.fontWeight};
182
+ letter-spacing: ${Oe.letterSpacing};
183
+ line-height: ${Oe.lineHeight};
184
+ text-transform: ${Oe.textTransform};
185
+ text-decoration: ${Oe.textDecoration};
186
186
  }
187
187
  `,Mr=_t.css`
188
188
  .ft-typography--caption {
@@ -194,18 +194,8 @@
194
194
  text-transform: ${lt.textTransform};
195
195
  text-decoration: ${lt.textDecoration};
196
196
  }
197
- `,kd=_t.css`
198
- .ft-typography--breadcrumb {
199
- font-family: ${di.fontFamily};
200
- font-size: ${di.fontSize};
201
- font-weight: ${di.fontWeight};
202
- letter-spacing: ${di.letterSpacing};
203
- line-height: ${di.lineHeight};
204
- text-transform: ${di.textTransform};
205
- text-decoration: ${di.textDecoration};
206
- }
207
197
  `,Ld=_t.css`
208
- .ft-typography--overline {
198
+ .ft-typography--breadcrumb {
209
199
  font-family: ${pi.fontFamily};
210
200
  font-size: ${pi.fontSize};
211
201
  font-weight: ${pi.fontWeight};
@@ -215,28 +205,38 @@
215
205
  text-decoration: ${pi.textDecoration};
216
206
  }
217
207
  `,$d=_t.css`
218
- .ft-typography--button {
219
- font-family: ${Ft.fontFamily};
220
- font-size: ${Ft.fontSize};
221
- font-weight: ${Ft.fontWeight};
222
- letter-spacing: ${Ft.letterSpacing};
223
- line-height: ${Ft.lineHeight};
224
- text-transform: ${Ft.textTransform};
225
- text-decoration: ${Ft.textDecoration};
208
+ .ft-typography--overline {
209
+ font-family: ${hi.fontFamily};
210
+ font-size: ${hi.fontSize};
211
+ font-weight: ${hi.fontWeight};
212
+ letter-spacing: ${hi.letterSpacing};
213
+ line-height: ${hi.lineHeight};
214
+ text-transform: ${hi.textTransform};
215
+ text-decoration: ${hi.textDecoration};
226
216
  }
227
217
  `,Id=_t.css`
218
+ .ft-typography--button {
219
+ font-family: ${Bt.fontFamily};
220
+ font-size: ${Bt.fontSize};
221
+ font-weight: ${Bt.fontWeight};
222
+ letter-spacing: ${Bt.letterSpacing};
223
+ line-height: ${Bt.lineHeight};
224
+ text-transform: ${Bt.textTransform};
225
+ text-decoration: ${Bt.textDecoration};
226
+ }
227
+ `,Pd=_t.css`
228
228
  .ft-typography {
229
229
  vertical-align: inherit;
230
230
  }
231
- `});var Wa,Pd,Dd,V,Ga=l(()=>{"use strict";Cd();Wa=c(F()),Pd=c(f());Ls();Bt();Dd=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 Pd.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?Ka`
232
- <${ja(this.element)}
231
+ `});var Ga,Md,Dd,V,Qa=l(()=>{"use strict";Ad();Ga=c(F()),Md=c(f());$o();Ut();Dd=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},V=class extends Md.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?Wa`
232
+ <${qa(this.element)}
233
233
  part="text"
234
234
  class="ft-typography ft-typography--${this.variant}">
235
235
  <slot></slot>
236
- </${ja(this.element)}>
237
- `:Ka`
236
+ </${qa(this.element)}>
237
+ `:Wa`
238
238
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
239
- `}};V.styles=[wd,Od,_d,Rd,Td,Pr,Mr,kd,Ld,$d,Id];Dd([(0,Wa.property)()],V.prototype,"element",void 0);Dd([(0,Wa.property)()],V.prototype,"variant",void 0)});var Md,Nd=l(()=>{"use strict";Ga();Md={"ft-typography":V}});var Fd,Bd=l(()=>{"use strict";Fd=c(f());Nd();(0,Fd.customElements)(Md)});var xe=l(()=>{"use strict";Ga();Bt();Ls();Bd()});var Ud,Nr,Po,Vd,Qa=l(()=>{"use strict";Ud=c(y()),Nr=c(f()),Po={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Vd=Ud.css`
239
+ `}};V.styles=[Od,_d,Rd,Td,kd,Dr,Mr,Ld,$d,Id,Pd];Dd([(0,Ga.property)()],V.prototype,"element",void 0);Dd([(0,Ga.property)()],V.prototype,"variant",void 0)});var Nd,Fd=l(()=>{"use strict";Qa();Nd={"ft-typography":V}});var Bd,Ud=l(()=>{"use strict";Bd=c(f());Fd();(0,Bd.customElements)(Nd)});var xe=l(()=>{"use strict";Qa();Ut();$o();Ud()});var Vd,Nr,Ps,zd,Xa=l(()=>{"use strict";Vd=c(y()),Nr=c(f()),Ps={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},zd=Vd.css`
240
240
  .ft-tooltip--container {
241
241
  display: block;
242
242
  }
@@ -254,28 +254,28 @@
254
254
  box-sizing: border-box;
255
255
  overflow: hidden;
256
256
  width: max-content;
257
- max-width: ${Po.maxWidth};
257
+ max-width: ${Ps.maxWidth};
258
258
  text-align: center;
259
- padding: ${Po.distance};
259
+ padding: ${Ps.distance};
260
260
  }
261
261
 
262
262
  .ft-tooltip--content {
263
263
  padding: 4px 8px;
264
- border-radius: ${Po.borderRadiusS};
265
- background-color: ${Po.backgroundColor};
266
- color: ${Po.color};
264
+ border-radius: ${Ps.borderRadiusS};
265
+ background-color: ${Ps.backgroundColor};
266
+ color: ${Ps.color};
267
267
  position: relative;
268
268
  word-break: break-word;
269
269
  }
270
- `});function jd(t,e,r){return Fr(t,Mo(e,r))}function $s(t,e){return typeof t=="function"?t(e):t}function Fo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Za(t){return t==="x"?"y":"x"}function Ja(t){return t==="y"?"height":"width"}function Is(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function el(t){return Za(Is(t))}function qd(t,e,r){r===void 0&&(r=!1);let i=Br(t),s=el(t),o=Ja(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=Xa(n)),[n,Xa(n)]}function Kd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Xa(t){let e=Fo(t);return qx[e]+t.slice(e.length)}function Kx(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 Wd(t){return typeof t!="number"?Kx(t):{top:t,right:t,bottom:t,left:t}}function hi(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 Hd,zd,Ya,Mo,Fr,No,rr,qx,Ds=l(()=>{Hd=["top","right","bottom","left"],zd=["start","end"],Ya=Hd.reduce((t,e)=>t.concat(e,e+"-"+zd[0],e+"-"+zd[1]),[]),Mo=Math.min,Fr=Math.max,No=Math.round,rr=t=>({x:t,y:t}),qx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Gd(t,e,r){let{reference:i,floating:s}=t,o=Is(e),n=el(e),a=Ja(n),u=Fo(e),d=o==="y",p=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,x;switch(u){case"top":x={x:p,y:i.y-s.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-s.width,y:h};break;default:x={x:i.x,y:i.y}}let C=Br(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function Qd(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:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=$s(e,t),C=Wd(x),E=a[m?h==="floating"?"reference":"floating":h],$=hi(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:p,strategy:u})),Q=h==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},H=hi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:($.top-H.top+C.top)/N.y,bottom:(H.bottom-$.bottom+C.bottom)/N.y,left:($.left-H.left+C.left)/N.x,right:(H.right-$.right+C.right)/N.x}}function Gx(t,e,r){return(t?[...r.filter(s=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Fo(s)===s)).filter(s=>t?Br(s)===t||(e?Kd(s)!==s:!1):!0)}var Wx,Xd,Yd,Zd,Jd=l(()=>{Ds();Ds();Wx=50,Xd=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Qd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:h}=Gd(d,i,u),m=i,x=0,C={};for(let T=0;T<o.length;T++){let E=o[T];if(!E)continue;let{name:$,fn:Q}=E,{x:A,y:N,data:H,reset:be}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=N??h,C[$]={...C[$],...H},be&&x<Wx&&(x++,typeof be=="object"&&(be.placement&&(m=be.placement),be.rects&&(d=be.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):be.rects),{x:p,y:h}=Gd(d,m,u)),T=-1)}return{x:p,y:h,placement:m,strategy:s,middlewareData:C}};Yd=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:p=!1,alignment:h,allowedPlacements:m=Ya,autoAlignment:x=!0,...C}=$s(t,e),T=h!==void 0||m===Ya?Gx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,$=T[E];if($==null)return{};if(a!==$)return{reset:{placement:T[0]}};let Q=await u.detectOverflow(e,C),A=qd($,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Q[Fo($)],Q[A[0]],Q[A[1]]],H=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:N}],be=T[E+1];if(be)return{data:{index:E+1,overflows:H},reset:{placement:be}};let ne=H.map(Ot=>{let ri=Br(Ot.placement);return[Ot.placement,ri&&p?Ot.overflows.slice(0,2).reduce(($x,Ix)=>$x+Ix,0):Ot.overflows[0],Ot.overflows]}).sort((Ot,ri)=>Ot[1]-ri[1]),To=((s=ne.filter(Ot=>Ot[2].slice(0,Br(Ot[0])?2:3).every(ri=>ri<=0))[0])==null?void 0:s[0])||ne[0][0];return To!==a?{data:{index:E+1,overflows:H},reset:{placement:To}}:{}}}},Zd=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:Q=>{let{x:A,y:N}=Q;return{x:A,y:N}}},...d}=$s(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=Is(s),x=Za(m),C=p[x],T=p[m],E=(Q,A)=>jd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(T=E(m,T));let $=u.fn({...e,[x]:C,[m]:T});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[x]:n,[m]:a}}}}}}});function Ms(){return typeof window<"u"}function mi(t){return tp(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(tp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tp(t){return Ms()?t instanceof Node||t instanceof ct(t).Node:!1}function Ut(t){return Ms()?t instanceof Element||t instanceof ct(t).Element:!1}function Er(t){return Ms()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function ep(t){return!Ms()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function rp(t){return/^(table|td|th)$/.test(mi(t))}function Uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Ut(t)?Vt(t):t;return fi(e.transform)||fi(e.translate)||fi(e.scale)||fi(e.rotate)||fi(e.perspective)||!Ns()&&(fi(e.backdropFilter)||fi(e.filter))||Qx.test(e.willChange||"")||Xx.test(e.contain||"")}function ip(t){let e=Ur(t);for(;Er(e)&&!Gi(e);){if(Wi(e))return e;if(Uo(e))return null;e=Ur(e)}return null}function Ns(){return tl==null&&(tl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tl}function Gi(t){return/^(html|body|#document)$/.test(mi(t))}function Vt(t){return ct(t).getComputedStyle(t)}function Vo(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(mi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ep(t)&&t.host||Sr(t);return ep(e)?e.host:e}function op(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Er(e)&&Bo(e)?e:op(e)}function Ps(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=op(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=ct(s);if(o){let a=Fs(n);return e.concat(n,n.visualViewport||[],Bo(s)?s:[],a&&r?Ps(a):[])}else return e.concat(s,Ps(s,[],r))}function Fs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Qx,Xx,fi,tl,rl=l(()=>{Qx=/transform|translate|scale|rotate|perspective|filter/,Xx=/paint|layout|strict|content/,fi=t=>!!t&&t!=="none"});function ap(t){let e=Vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Er(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=No(r)!==o||No(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function lp(t){return Ut(t)?t:t.contextElement}function Qi(t){let e=lp(t);if(!Er(e))return rr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=ap(e),n=(o?No(r.width):r.width)/i,a=(o?No(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function cp(t){let e=ct(t);return!Ns()||!e.visualViewport?Yx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ct(t)}function zo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=lp(t),n=rr(1);e&&(i?Ut(i)&&(n=Qi(i)):n=Qi(t));let a=Zx(o,r,i)?cp(o):rr(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,p=s.width/n.x,h=s.height/n.y;if(o&&i){let m=ct(o),x=Ut(i)?ct(i):i,C=m,T=Fs(C);for(;T&&x!==C;){let E=Qi(T),$=T.getBoundingClientRect(),Q=Vt(T),A=$.left+(T.clientLeft+parseFloat(Q.paddingLeft))*E.x,N=$.top+(T.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=N,C=ct(T),T=Fs(C)}}return hi({width:p,height:h,x:u,y:d})}function Bs(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:zo(Sr(t)).left+r}function up(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Bs(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Jx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=Sr(i),a=e?Uo(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=rr(1),p=rr(0),h=Er(i);if((h||!o)&&((mi(i)!=="body"||Bo(n))&&(u=Vo(i)),h)){let x=zo(i);d=Qi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!o?up(n,u):rr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function eS(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function tS(t){let e=Vo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Bs(t),n=-e.scrollTop;return Vt(r).direction==="rtl"&&(o+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function iS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=ct(t),o=Sr(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Ns()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Bs(o)<=0){let m=o.ownerDocument,x=m.body,C=getComputedStyle(x),T=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(o.clientWidth-x.clientWidth-T),$=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;$<=rS&&(a-=$)}return{width:a,height:u,x:d,y:p}}function oS(t,e){let r=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Qi(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 sp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=iS(t,r,e);else if(e==="document")i=tS(Sr(t));else if(Ut(e))i=oS(e,r);else{let s=cp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return hi(i)}function sS(t,e){let r=e.get(t);if(r)return r;let i=Ps(t,[],!1).filter(a=>Ut(a)&&mi(a)!=="body"),s=null,o=Vt(t).position==="fixed",n=o?Ur(t):t;for(;Ut(n)&&!Gi(n);){let a=Vt(n),u=Wi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function nS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Uo(e)?[]:sS(e,this._c):[].concat(r),i],a=sp(e,n[0],s),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=sp(e,n[m],s);u=Fr(x.top,u),d=Mo(x.right,d),p=Mo(x.bottom,p),h=Fr(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function aS(t){let{width:e,height:r}=ap(t);return{width:e,height:r}}function lS(t,e,r){let i=Er(e),s=Sr(e),o=r==="fixed",n=zo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=rr(0);if((i||!o)&&((mi(e)!=="body"||Bo(s))&&(a=Vo(e)),i)){let m=zo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Bs(s));let d=s&&!i&&!o?up(s,a):rr(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function il(t){return Vt(t).position==="static"}function np(t,e){if(!Er(t)||Vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Sr(t)===r&&(r=r.ownerDocument.body),r}function dp(t,e){let r=ct(t);if(Uo(t))return r;if(!Er(t)){let s=Ur(t);for(;s&&!Gi(s);){if(Ut(s)&&!il(s))return s;s=Ur(s)}return r}let i=np(t,e);for(;i&&rp(i)&&il(i);)i=np(i,e);return i&&Gi(i)&&il(i)&&!Wi(i)?r:i||ip(t)||r}function uS(t){return Vt(t).direction==="rtl"}var Yx,rS,cS,Us,pp,hp,fp,mp=l(()=>{Jd();Ds();rl();Yx=rr(0);rS=25;cS=async function(t){let e=this.getOffsetParent||dp,r=this.getDimensions,i=await r(t.floating);return{reference:lS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Us={convertOffsetParentRelativeRectToViewportRelativeRect:Jx,getDocumentElement:Sr,getClippingRect:nS,getOffsetParent:dp,getElementRects:cS,getClientRects:eS,getDimensions:aS,getScale:Qi,isElement:Ut,isRTL:uS},pp=Yd,hp=Zd,fp=(t,e,r)=>{let i=new Map,s=r??{},o={...Us,...s.platform,_c:i};return Xd(t,e,{...s,platform:o})}});function gp(t){return dS(t)}function ol(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function dS(t){for(let e=t;e;e=ol(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ol(t);e;e=ol(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wi(r)||e.tagName==="BODY"))return e}return null}var yp=l(()=>{rl()});async function bp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},fp(t,e,{strategy:i.strategy,platform:{...Us,getOffsetParent:s=>Us.getOffsetParent(s,gp)},middleware:[hp({crossAxis:!0}),pp({allowedPlacements:[i.placement]})]})}var vp=l(()=>{"use strict";mp();yp()});function Sp(t,e){return(0,xp.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ho(t);try{return JSON.parse(r)}catch{return Ho(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:jo,...e??{}})}var xp,sl,Vs=l(()=>{"use strict";xp=c(F(),1);gi();sl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function pS(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(!Xi(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(!Xi(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(!Xi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Xi(t,e){try{return pS(t,e)}catch{return!1}}function jo(t,e){return!Xi(t,e)}function Ho(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function zs(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 gi=l(()=>{"use strict";Vs()});var Ep,nl,Cp=l(()=>{"use strict";gi();Ep=c(F(),1),nl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:jo,attribute:!1,...e};(0,Ep.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 Hs,al=l(()=>{"use strict";Hs=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 js,Ap=l(()=>{"use strict";js=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 qs,hS,wp,Op=l(()=>{qs=globalThis,hS=qs.ShadowRoot&&(qs.ShadyCSS===void 0||qs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wp=(t,e)=>{if(hS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=qs.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}}});var _p,Ks,Rp=l(()=>{"use strict";_p=c(y(),1);Op();Vs();Ks=class extends _p.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 wp(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){sl(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 Tp(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 kp=l(()=>{"use strict"});var yi,Zi,Dp,Lp,$p,Pp,Ip,Yi,ir,Mp=l(()=>{"use strict";yi=c(F(),1);Vs();Ap();Rp();kp();Zi=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},Lp=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Pp=Symbol("exportpartsDebouncer"),Ip=Symbol("dynamicDependenciesLoaded"),Yi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yi.eventName="exportparts-updated";ir=class extends Ks{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new js(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[Pp].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[Lp]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Lp])}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[Ip]||(r[Ip]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Yi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yi.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 Yi)})}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=Tp(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 p=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(o=(s=m.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&o!==void 0?o:[],C=(a=(n=m.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],T=[...x,...C].filter(u).map(E=>E.trim());for(let E of T)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Dp=Pp;Zi([(0,yi.property)()],ir.prototype,"exportpartsPrefix",void 0);Zi([Sp([])],ir.prototype,"exportpartsPrefixes",void 0);Zi([(0,yi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);Zi([(0,yi.property)()],ir.prototype,"customStylesheet",void 0);Zi([(0,yi.property)()],ir.prototype,"elementToFocus",void 0);Zi([(0,yi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Ws(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gs=l(()=>{"use strict"});var qo,Vr,bi,fS,Np,Fp=l(()=>{"use strict";Mp();Gs();gi();qo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),bi=Symbol("internalStores"),fS=zs(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[bi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[bi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[bi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[bi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[bi].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[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[qo].set(n,[]),Ws(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=m=>this[p](m);a.addEventListener(d.eventName,h),this[qo].get(n).push(()=>a.removeEventListener(d.eventName,h))}})),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[qo].get(n))===null||a===void 0||a.forEach(u=>u()),this[qo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=bi,i=qo,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Np=class extends fS(ir){}});function De(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 Xs(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 cl(t,e,r){if(typeof t!="function")throw new Error(De(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(cl)(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,$)=>{n.set($,E)}))}function p(){if(u)throw new Error(De(3));return s}function h(E){if(typeof E!="function")throw new Error(De(4));if(u)throw new Error(De(5));let $=!0;d();let Q=a++;return n.set(Q,E),function(){if($){if(u)throw new Error(De(6));$=!1,d(),n.delete(Q),o=null}}}function m(E){if(!Xs(E))throw new Error(De(7));if(typeof E.type>"u")throw new Error(De(8));if(typeof E.type!="string")throw new Error(De(17));if(u)throw new Error(De(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Q=>{Q()}),E}function x(E){if(typeof E!="function")throw new Error(De(10));i=E,m({type:Qs.REPLACE})}function C(){let E=h;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(De(11));function Q(){let N=$;N.next&&N.next(p())}return Q(),{unsubscribe:E(Q)}},[Bp](){return this}}}return m({type:Qs.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[Bp]:C}}function yS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Qs.INIT})>"u")throw new Error(De(12));if(typeof r(void 0,{type:Qs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Up(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{yS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],T=x(C,u);if(typeof T>"u"){let E=u&&u.type;throw new Error(De(14))}p[m]=T,d=d||T!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Ko(...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(De(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Ko(...a)(s.dispatch),{...s,dispatch:o}}}function zp(t){return Xs(t)&&"type"in t&&typeof t.type=="string"}var mS,Bp,ll,gS,Qs,ul=l(()=>{mS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bp=mS,ll=()=>Math.random().toString(36).substring(7).split("").join("."),gS={INIT:`@@redux/INIT${ll()}`,REPLACE:`@@redux/REPLACE${ll()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ll()}`},Qs=gS});function zt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Zp(t)||cn(t)||!!t[Hp]||!!t[en]?.[Hp]||un(t)||dn(t):!1}function Zp(t){if(!t||!El(t))return!1;let e=eo(t);if(e===null||e===mt[an])return!0;let r=mt.hasOwnProperty.call(e,en)&&e[en];if(r===Object)return!0;if(!Ji(r))return!1;let i=jp.get(r);return i===void 0&&(i=Function.toString.call(r),jp.set(r,i)),i===bS}function ln(t,e,r=!0){Xo(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Xo(t){let e=t[He];return e?e.type_:cn(t)?1:un(t)?2:dn(t)?3:0}function vS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function xS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function gl(t,e){if(un(t))return new Map(t);if(dn(t))return new Set(t);if(cn(t))return Array[an].slice.call(t);let r=Zp(t);if(e===!0||e==="class_only"&&!r){let i=mt.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[Zs]===!1&&(a[Zs]=!0,a[fl]=!0),(a.get||a.set)&&(i[n]={[fl]:!0,[Zs]:!0,[tn]:a[tn],[Wo]:t[n]})}return mt.create(eo(t),i)}else{let i=eo(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function Al(t,e=!1){return pn(t)||or(t)||!gt(t)||(Xo(t)>1&&mt.defineProperties(t,{set:Ys,add:Ys,clear:Ys,delete:Ys}),mt.freeze(t),e&&ln(t,(r,i)=>{Al(i,!0)},!1)),t}function SS(){zt(2)}function pn(t){return t===null||!El(t)?!0:mt.isFrozen(t)}function vi(t){let e=Jp[t];return e||zt(0,t),e}function Wp(t,e){e&&(t.patchPlugin_=vi(yl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function bl(t){vl(t),t.drafts_.forEach(CS),t.drafts_=null}function vl(t){t===Go&&(Go=t.parent_)}function CS(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_&&(bl(e),zt(4)),gt(t)&&(t=Xp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Xp(e,r);return AS(e,t,!0),bl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yp?t:void 0}function Xp(t,e){if(pn(e))return e;let r=e[He];if(!r)return sn(e,t.handledSet_,t);if(!hn(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 AS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Al(e,r)}function th(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function rh(t,e,r,i){let s=Cr(t),o=t.type_;if(i!==void 0&&ml(s,i,o)===e){rn(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;ln(s,(u,d)=>{if(or(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??wS;for(let a of n)rn(s,a,r,o)}function OS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!hn(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=Cl(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 _S(t,e,r){let{scope_:i}=t;if(or(r)){let s=r[He];hn(s,i)&&s.callbacks_.push(function(){Js(t);let n=Cl(s);rh(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Cr(t);t.type_===3?o.has(r)&&sn(r,i.handledSet_,i):ml(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&sn(ml(t.copy_,e,t.type_),i.handledSet_,i)})}function sn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||or(t)||e.has(t)||!gt(t)||pn(t)||(e.add(t),ln(t,(i,s)=>{if(or(s)){let o=s[He];if(hn(o,r)){let n=Cl(o);rn(t,i,n,t.type_),th(o)}}else gt(s)&&sn(s,e,r)})),t}function RS(t,e){let r=cn(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=nn;r&&(s=[i],o=Qo);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function hl(t,e){let r=t[He];return(r?Cr(r):t)[e]}function TS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[He]?!1:t.baseRefs_.has(r)}function kS(t,e,r){let i=oh(e,r);return i?Wo in i?i[Wo]:i.get?.call(t.draft_):void 0}function oh(t,e){if(!(e in t))return;let r=eo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=eo(r)}}function xl(t){t.modified_||(t.modified_=!0,t.parent_&&xl(t.parent_))}function Js(t){t.copy_||(t.assigned_=new Map,t.copy_=gl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Sl(t,e,r,i){let[s,o]=un(e)?vi(on).proxyMap_(e,r):dn(e)?vi(on).proxySet_(e,r):RS(e,r);return(r?.scope_??eh()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?OS(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 sh(t){return or(t)||zt(10,t),nh(t)}function nh(t){if(!gt(t)||pn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=gl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=gl(t,!0);return ln(r,(s,o)=>{rn(r,s,nh(o))},i),e&&(e.finalized_=!1),r}var Yp,Hp,He,mt,eo,en,an,fl,tn,Zs,Wo,or,bS,jp,dl,ml,rn,cn,un,dn,El,Ji,pl,Cr,Cl,Ys,on,yl,qp,Jp,Kp,Go,eh,ES,Gp,hn,wS,nn,Qo,LS,$S,S0,IS,wl,ah=l(()=>{Yp=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");mt=Object,eo=mt.getPrototypeOf,en="constructor",an="prototype",fl="configurable",tn="enumerable",Zs="writable",Wo="value",or=t=>!!t&&!!t[He];bS=mt[an][en].toString(),jp=new WeakMap;dl=(t,e,r=Xo(t))=>r===2?t.has(e):mt[an].hasOwnProperty.call(t,e),ml=(t,e,r=Xo(t))=>r===2?t.get(e):t[e],rn=(t,e,r,i=Xo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};cn=Array.isArray,un=t=>t instanceof Map,dn=t=>t instanceof Set,El=t=>typeof t=="object",Ji=t=>typeof t=="function",pl=t=>typeof t=="boolean";Cr=t=>t.copy_||t.base_,Cl=t=>t.modified_?t.copy_:t.base_;Ys={[Wo]:SS};on="MapSet",yl="Patches",qp="ArrayMethods",Jp={};Kp=t=>!!Jp[t],eh=()=>Go,ES=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kp(on)?vi(on):void 0,arrayMethodsPlugin_:Kp(qp)?vi(qp):void 0});Gp=t=>Go=ES(Go,t);hn=(t,e)=>t.scope_===e,wS=[];nn={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=Cr(t);if(!dl(s,e,t.type_))return kS(t,s,e);let o=s[e];if(t.finalized_||!gt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&xS(e))return o;if(o===hl(t.base_,e)||TS(t,e,o)){Js(t);let n=t.type_===1?+e:e,a=Sl(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Cr(t)},ownKeys(t){return Reflect.ownKeys(Cr(t))},set(t,e,r){let i=oh(Cr(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=hl(Cr(t),e),o=s?.[He];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(vS(r,s)&&(r!==void 0||dl(t.base_,e,t.type_)))return!0;Js(t),xl(t)}return t.copy_[e]===r&&(r!==void 0||dl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),_S(t,e,r)),!0},deleteProperty(t,e){return Js(t),hl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),xl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Zs]:!0,[fl]:t.type_!==1||e!=="length",[tn]:i[tn],[Wo]:r[e]}},defineProperty(){zt(11)},getPrototypeOf(t){return eo(t.base_)},setPrototypeOf(){zt(12)}},Qo={};for(let t in nn){let e=nn[t];Qo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)};Qo.set=function(t,e,r){return nn.set.call(this,t[0],e,r,t[0])};LS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Ji(e)&&!Ji(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||zt(6),i!==void 0&&!Ji(i)&&zt(7);let s;if(gt(e)){let o=Gp(this),n=Sl(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?bl(o):vl(o)}return Wp(o,i),Qp(s,o)}else if(!e||!El(e)){if(s=r(e),s===void 0&&(s=e),s===Yp&&(s=void 0),this.autoFreeze_&&Al(s,!0),i){let o=[],n=[];vi(yl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else zt(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(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]},pl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),pl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),pl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||zt(8),or(t)&&(t=sh(t));let e=Gp(this),r=Sl(e,t,void 0);return r[He].isManual_=!0,vl(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&zt(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=vi(yl).applyPatches_;return or(t)?i(t,e):this.produce(t,s=>i(s,e))}};$S=globalThis.Iterator,S0=typeof $S?.from=="function",IS=new LS,wl=IS.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 zr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Ar(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=>zp(i)&&i.type===t,r}function ph(t){return gt(t)?wl(t,()=>{}):t}function fn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function MS(t){return typeof t=="boolean"}function yh(t){let e=NS(),{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(Xs(r))u=Up(r);else throw new Error(Ar(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ko;s&&(p=DS({trace:!1,...typeof s=="object"&&s}));let h=Vp(...d),m=VS(h),x=typeof a=="function"?a(m):m(),C=p(...x);return cl(u,n,C)}function bh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ar(28));if(a in e)throw new Error(Ar(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 zS(t){return typeof t=="function"}function HS(t,e){let[r,i,s]=bh(e),o;if(zS(t))o=()=>ph(t());else{let a=ph(t);o=()=>a}function n(a=o(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[s]),d.reduce((p,h)=>{if(h)if(or(p)){let x=h(p,u);return x===void 0?p:x}else{if(gt(p))return wl(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return p},a)}return n.getInitialState=o,n}function qS(...t){return e=>t.some(r=>jS(r,e))}function YS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ZS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function JS(t,e){return`${t}/${e}`}function eE({creators:t}={}){let e=t?.asyncThunk?.[vh];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(Ar(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(rE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,N){let H=typeof A=="string"?A:A.type;if(!H)throw new Error(Ar(12));if(H in u.sliceCaseReducersByType)throw new Error(Ar(13));return u.sliceCaseReducersByType[H]=N,d},addMatcher(A,N){return u.sliceMatchers.push({matcher:A,reducer:N}),d},exposeAction(A,N){return u.actionCreators[A]=N,d},exposeCaseReducer(A,N){return u.sliceCaseReducersByName[A]=N,d}};a.forEach(A=>{let N=n[A],H={reducerName:A,type:JS(s,A),createNotation:typeof i.reducers=="function"};oE(N)?nE(H,N,d,e):iE(H,N,d)});function p(){let[A={},N=[],H=void 0]=typeof i.extraReducers=="function"?bh(i.extraReducers):[i.extraReducers],be={...A,...u.sliceCaseReducersByType};return HS(i.initialState,ne=>{for(let ve in be)ne.addCase(ve,be[ve]);for(let ve of u.sliceMatchers)ne.addMatcher(ve.matcher,ve.reducer);for(let ve of N)ne.addMatcher(ve.matcher,ve.reducer);H&&ne.addDefaultCase(H)})}let h=A=>A,m=new Map,x=new WeakMap,C;function T(A,N){return C||(C=p()),C(A,N)}function E(){return C||(C=p()),C.getInitialState()}function $(A,N=!1){function H(ne){let ve=ne[A];return typeof ve>"u"&&N&&(ve=fn(x,H,E)),ve}function be(ne=h){let ve=fn(m,N,()=>new WeakMap);return fn(ve,ne,()=>{let To={};for(let[Ot,ri]of Object.entries(i.selectors??{}))To[Ot]=tE(ri,ne,()=>fn(x,ne,E),N);return To})}return{reducerPath:A,getSelectors:be,get selectors(){return be(H)},selectSlice:H}}let Q={name:s,reducer:T,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...$(o),injectInto(A,{reducerPath:N,...H}={}){let be=N??o;return A.inject({reducerPath:be,reducer:T},H),{...Q,...$(be,!0)}}};return Q}}function tE(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 rE(){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 iE({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!sE(i))throw new Error(Ar(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?zr(t,n):zr(t))}function oE(t){return t._reducerDefinitionType==="asyncThunk"}function sE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function nE({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Ar(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=s(t,o,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||mn,pending:a||mn,rejected:u||mn,settled:d||mn})}function mn(){}function Ar(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 DS,R0,PS,gh,NS,FS,hh,BS,US,VS,jS,KS,WS,GS,Ol,fh,QS,mh,XS,vh,k0,xh,Sh,Eh,Ch,L0,$0,I0,D0,Ah,_l,aE,P0,lE,wh=l(()=>{ul();ah();ul();dh();DS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ko:Ko.apply(null,arguments)},R0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},PS=t=>t&&typeof t.match=="function";gh=class Yo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Yo(...e[0].concat(this)):new Yo(...e.concat(this))}};NS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new gh;return r&&(MS(r)?n.push(ch):n.push(uh(r.extraArgument))),n},FS="RTK_autoBatch",hh=t=>e=>{setTimeout(e,t)},BS=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())},o=t(s),n=setTimeout(s,e)},US=(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?BS(window.requestAnimationFrame,100):hh(10):t.type==="callback"?t.queueNotification:hh(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>s&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[FS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(p)}finally{s=!0}}})},VS=t=>function(r){let{autoBatch:i=!0}=r??{},s=new gh(t);return i&&s.push(US(typeof i=="object"?i:void 0)),s};jS=(t,e)=>PS(t)?t.match(e):t(e);KS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",WS=(t=21)=>{let e="",r=t;for(;r--;)e+=KS[Math.random()*64|0];return e},GS=["name","message","stack","code"],Ol=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},fh=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},QS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of GS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},mh="External signal was aborted",XS=(()=>{function t(e,r,i){let s=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||QS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):WS(),C=new AbortController,T,E;function $(A){E=A,C.abort()}d&&(d.aborted?$(mh):d.addEventListener("abort",()=>$(mh),{once:!0}));let Q=(async function(){let A;try{let H=i?.condition?.(u,{getState:h,extra:m});if(ZS(H)&&(H=await H),H===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let be=new Promise((ne,ve)=>{T=()=>{ve({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});p(o(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([be,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:$,rejectWithValue:((ne,ve)=>new Ol(ne,ve)),fulfillWithValue:((ne,ve)=>new fh(ne,ve))})).then(ne=>{if(ne instanceof Ol)throw ne;return ne instanceof fh?s(ne.payload,x,u,ne.meta):s(ne,x,u)})])}catch(H){A=H instanceof Ol?n(null,x,u,H.payload,H.meta):n(H,x,u)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:$,requestId:x,arg:u,unwrap(){return Q.then(YS)}})}}return Object.assign(a,{pending:o,rejected:n,fulfilled:s,settled:qS(n,s),typePrefix:e})}return t.withTypes=()=>t,t})();vh=Symbol.for("rtk-slice-createasyncthunk"),k0={[vh]:XS};xh=eE();Sh="listener",Eh="completed",Ch="cancelled",L0=`task-${Ch}`,$0=`task-${Eh}`,I0=`${Sh}-${Ch}`,D0=`${Sh}-${Eh}`,{assign:Ah}=Object,_l="listenerMiddleware",aE=Ah(zr(`${_l}/add`),{withTypes:()=>aE}),P0=zr(`${_l}/removeAll`),lE=Ah(zr(`${_l}/remove`),{withTypes:()=>lE})});var cE,gn,Oh=l(()=>{"use strict";gi();cE=zs(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)}}}),gn=class extends cE(Object){}});var _h,Rh=l(()=>{"use strict";wh();Gs();al();Oh();gi();window.ftReduxStores||(window.ftReduxStores={});_h=class t extends gn{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(Ws(o))return o;if(s==null)return;let n=xh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=yh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Ho(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}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)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Hs,this.injectInto=(o,n)=>this.reduxSlice.injectInto(o,n),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let u=n,d=o[u];return d?(...p)=>{let h=d(...p.map(s));return this.reduxStore.dispatch(h),h}:p=>{let h=u,m=this.getState()[h];Xi(m,p)||this.setState({[h]:s(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 Th=l(()=>{"use strict";gi()});var kh=l(()=>{"use strict"});var Lh=l(()=>{"use strict";Cp();al();Fp();Rh();Gs();Th();kh()});var yn,$h=l(()=>{"use strict";yn=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 bn,uE,sr,Zo,dE,S,je=l(()=>{"use strict";bn=c(f()),uE="ft-app-info",sr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};sr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";dE={session:(t,e)=>{(0,bn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new sr(e.payload)),0))}},S=bn.FtReduxStore.get({name:uE,reducers:dE,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 Rl,Ih,vn,dA,Dh=l(()=>{"use strict";Rl=c(F());Lh();$h();je();Ih=c(f()),vn=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},dA=(0,Ih.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(S)}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=>yn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return vn([(0,Rl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),vn([(0,Rl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),vn([nl({store:S.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),vn([nl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var Tl=l(()=>{});var Ph,Mh,Nh,Hr,Fh,Bh,Uh,xi,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,xn,Qh,Xh,to,Yh,Sn,Zh,Jh,nr,ro,ef,ge,Rt,tf,kl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ph||(Ph={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Mh||(Mh={}));(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"})(Nh||(Nh={}));(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"})(Hr||(Hr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fh||(Fh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Bh||(Bh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Uh||(Uh={}));(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"})(xi||(xi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Vh||(Vh={}));(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"})(zh||(zh={}));(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"})(Hh||(Hh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(jh||(jh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(qh||(qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Kh||(Kh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wh||(Wh={}));(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"})(Gh||(Gh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(xn||(xn={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Qh||(Qh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xh||(Xh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(to||(to={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Yh||(Yh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sn||(Sn={}));(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"})(Zh||(Zh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jh||(Jh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ro||(ro={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ef||(ef={}));(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"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Rt||(Rt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(tf||(tf={}))});var rf,of,sf,nf,af,lf,cf,uf,df,pf,hf,ff=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(rf||(rf={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(of||(of={}));(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"})(sf||(sf={}));(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.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(lf||(lf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cf||(cf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(uf||(uf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(df||(df={}));(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"})(pf||(pf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hf||(hf={}))});var mf=l(()=>{kl();ff()});function gf(t,e){return t===e||(pE[t]??[]).some(r=>gf(r,e))}function Jo(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=>gf(i,e))}function yf(t,...e){return t==null?!1:e.some(r=>Jo(t,r))}var pE,bf=l(()=>{kl();pE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var vf=l(()=>{});var jr=l(()=>{Tl();mf();bf();vf();Tl()});var Si,Ll=l(()=>{"use strict";je();Si=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.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=S.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var io,$l=l(()=>{"use strict";Ll();io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Si.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Si.await()}}});var Il,qe,qr=l(()=>{"use strict";Il=c(f());$l();qe=class extends io{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 Il.CacheRegistry,this.cache=e?s.commonCache:new Il.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 En,Dl=l(()=>{"use strict";je();jr();qr();En=class extends qe{async listMySearches(){let{session:e}=S.getState();return Jo(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Cn,Pl=l(()=>{"use strict";je();qr();Cn=class extends qe{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var An,xf=l(()=>{"use strict";je();qr();An=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=S.getState().session;return!!e?.sessionAuthenticated}}});var wn,Sf=l(()=>{"use strict";qr();je();wn=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=S.getState().session;return!!e?.sessionAuthenticated}}});var On,hE,fE,Af,Ml,Nl,Ef,Cf,Ye,Fl,mE,Bl=l(()=>{"use strict";jr();On=c(f());Dl();Pl();je();xf();Sf();hE="ft-user-assets",fE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Rt).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;Nl(t,r,[...Ml(t,r),s]),Ef(t,r,1,i),Cf(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Nl(t,r,Ml(t,r).map(s=>s.id===i.id?i:s)),Cf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Nl(t,r,Ml(t,r).filter(o=>o.id!==s)),Ef(t,r,-1,i)}},Af={[Rt.SEARCHES]:"savedSearches",[Rt.BOOKMARKS]:"bookmarks",[Rt.BOOKS]:void 0,[Rt.COLLECTIONS]:void 0},Ml=(t,e)=>{var r;let i=Af[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Nl=(t,e,r)=>{let i=Af[e];i&&(t[i]=r)},Ef=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Rt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Cf=(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)},Ye=On.FtReduxStore.get({name:hE,reducers:fE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Fl=class{constructor(e=new An,r=new wn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Cn,this.savedSearchesService=new En,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,On.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(),Ye.actions.clearAssetCount(),Ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ye.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ye.getState().assetCounts.allAsset[e]!==r.count&&Ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ye.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ye.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ye.getState().assetCounts.bookmarkByMap).length!==0;e===Rt.BOOKMARKS&&r&&Ye.actions.clearBookmarkCountByMap(),Ye.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;Ye.actions.bookmarks(r)}}},mE=new Fl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=mE)});var wf=l(()=>{"use strict";jr();Bl()});var Ul,Of=l(()=>{"use strict";je();Ul=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ul});var Tt,_f,oo,gE,_n,so,Rn,Rf=l(()=>{"use strict";je();Tt=c(f());qr();oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},gE=Symbol("clearAfterUnitTest"),_n=class extends(0,Tt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_f]=()=>{this.defaultMessages={},this.cache=new Tt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.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,Tt.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 Tt.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 Tt.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 oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Tt.delay)(0).then(()=>i()).catch(()=>null)))}};_f=gE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});so=window.FluidTopicsI18nService,Rn=window.FluidTopicsCustomI18nService});var Tf,Vl,kf=l(()=>{"use strict";Tf=c(f()),Vl=class{highlightHtml(e,r,i){(0,Tf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vl});var Lf,zl,$f=l(()=>{"use strict";Lf=c(f());je();zl=class{isDate(e){var r,i,s,o;return(o=(s=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return Lf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.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 zl});var If,wr,Hl=l(()=>{"use strict";If=c(f());je();wr=class{static get(e,r){var i,s,o,n;let a=S.getState(),{lang:u,region:d}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new If.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${u}-${d}`)}}});var Tn,Df=l(()=>{"use strict";qr();Tn=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 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 jl,Pf=l(()=>{"use strict";Hl();jl=class{urlToSearchRequest(e){return wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new jl});var Ei,Ci,Mf=l(()=>{"use strict";Ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ei.eventName="before-location-change";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ci.eventName="change"});var ql,Nf,Ff=l(()=>{"use strict";ql=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))}},Nf=new ql});var Or,kn,Bf=l(()=>{"use strict";Or=c(f());Mf();Ff();kn=class t extends Or.WithEventBus{static build(){return new t(window.history,Nf,()=>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,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ci(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ei(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:u.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(Ei.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ei.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ci.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ci.eventName,e)}currentItem(){return(0,Or.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,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.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,Or.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 Uf=l(()=>{"use strict";Bf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=kn.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 Vf=l(()=>{"use strict";je()});var Ln=l(()=>{"use strict";Pl();Ll();Of();Rf();qr();kf();Dl();$f();Hl();Df();Pf();Uf();Vf()});var zf,Hf,Kl=l(()=>{"use strict";zf=c(y()),Hf=zf.css`
271
- `});var jf=l(()=>{"use strict"});function qf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Kf=l(()=>{"use strict";je()});var $n,Wf=l(()=>{"use strict";$l();$n=class extends io{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ai,Wl,es,Gl=l(()=>{"use strict";Ai=c(f());je();Kf();Ln();jr();Wf();Wl=class t extends Ai.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new Ai.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new $n,this.cleanSessionDebouncer=new Ai.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ai.Debouncer(500),this.apiProvider=r??(()=>Si.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(sr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(sr.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",()=>qf(()=>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 Zo(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 yf(S.getState().session,...e)}},es=Wl.build()});var wi,ts=l(()=>{wi=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 Gf=l(()=>{});var Ql=l(()=>{ts();});var Qf=l(()=>{});var Xl=l(()=>{ts();Qf();});var rs,Xf=l(()=>{ts();rs=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 wi(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 Yf=l(()=>{Xl();});var Zf=l(()=>{Ql();});var Jf=l(()=>{ts();Gf();Ql();Xl();Xf();Yf();Zf()});var em,Ze,Oi,Le,pe,Yl=l(()=>{"use strict";em=c(y()),Ze=c(F()),Oi=c(f());Kl();Ln();Gl();Jf();Le=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},pe=class extends Oi.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=es,this.contextRoot=new rs}render(){return em.html`
270
+ `});function qd(t,e,r){return Fr(t,Ds(e,r))}function Io(t,e){return typeof t=="function"?t(e):t}function Ns(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Ja(t){return t==="x"?"y":"x"}function el(t){return t==="y"?"height":"width"}function Po(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function tl(t){return Ja(Po(t))}function Kd(t,e,r){r===void 0&&(r=!1);let i=Br(t),o=tl(t),s=el(o),n=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=Ya(n)),[n,Ya(n)]}function Wd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ya(t){let e=Ns(t);return Kx[e]+t.slice(e.length)}function Wx(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function Gd(t){return typeof t!="number"?Wx(t):{top:t,right:t,bottom:t,left:t}}function fi(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}var jd,Hd,Za,Ds,Fr,Ms,ir,Kx,Do=l(()=>{jd=["top","right","bottom","left"],Hd=["start","end"],Za=jd.reduce((t,e)=>t.concat(e,e+"-"+Hd[0],e+"-"+Hd[1]),[]),Ds=Math.min,Fr=Math.max,Ms=Math.round,ir=t=>({x:t,y:t}),Kx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Qd(t,e,r){let{reference:i,floating:o}=t,s=Po(e),n=tl(e),a=el(n),u=Ns(e),d=s==="y",p=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,m=i[a]/2-o[a]/2,x;switch(u){case"top":x={x:p,y:i.y-o.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-o.width,y:h};break;default:x={x:i.x,y:i.y}}let C=Br(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function Xd(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:s,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=Io(e,t),C=Gd(x),E=a[m?h==="floating"?"reference":"floating":h],$=fi(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(E)))==null||r?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),Q=h==="floating"?{x:i,y:o,width:n.floating.width,height:n.floating.height}:n.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),N=await(s.isElement==null?void 0:s.isElement(A))&&await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1},H=fi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:($.top-H.top+C.top)/N.y,bottom:(H.bottom-$.bottom+C.bottom)/N.y,left:($.left-H.left+C.left)/N.x,right:(H.right-$.right+C.right)/N.x}}function Qx(t,e,r){return(t?[...r.filter(o=>Br(o)===t),...r.filter(o=>Br(o)!==t)]:r.filter(o=>Ns(o)===o)).filter(o=>t?Br(o)===t||(e?Wd(o)!==o:!1):!0)}var Gx,Yd,Zd,Jd,ep=l(()=>{Do();Do();Gx=50,Yd=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Xd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:o}),{x:p,y:h}=Qd(d,i,u),m=i,x=0,C={};for(let T=0;T<s.length;T++){let E=s[T];if(!E)continue;let{name:$,fn:Q}=E,{x:A,y:N,data:H,reset:ve}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:o,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=N??h,C[$]={...C[$],...H},ve&&x<Gx&&(x++,typeof ve=="object"&&(ve.placement&&(m=ve.placement),ve.rects&&(d=ve.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:o}):ve.rects),{x:p,y:h}=Qd(d,m,u)),T=-1)}return{x:p,y:h,placement:m,strategy:o,middlewareData:C}};Zd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:s,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=Za,autoAlignment:x=!0,...C}=Io(t,e),T=h!==void 0||m===Za?Qx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,$=T[E];if($==null)return{};if(a!==$)return{reset:{placement:T[0]}};let Q=await u.detectOverflow(e,C),A=Kd($,s,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Q[Ns($)],Q[A[0]],Q[A[1]]],H=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:N}],ve=T[E+1];if(ve)return{data:{index:E+1,overflows:H},reset:{placement:ve}};let ne=H.map(Ot=>{let ii=Br(Ot.placement);return[Ot.placement,ii&&p?Ot.overflows.slice(0,2).reduce((Ix,Px)=>Ix+Px,0):Ot.overflows[0],Ot.overflows]}).sort((Ot,ii)=>Ot[1]-ii[1]),Rs=((o=ne.filter(Ot=>Ot[2].slice(0,Br(Ot[0])?2:3).every(ii=>ii<=0))[0])==null?void 0:o[0])||ne[0][0];return Rs!==a?{data:{index:E+1,overflows:H},reset:{placement:Rs}}:{}}}},Jd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:s}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Q=>{let{x:A,y:N}=Q;return{x:A,y:N}}},...d}=Io(t,e),p={x:r,y:i},h=await s.detectOverflow(e,d),m=Po(o),x=Ja(m),C=p[x],T=p[m],E=(Q,A)=>qd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(T=E(m,T));let $=u.fn({...e,[x]:C,[m]:T});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[x]:n,[m]:a}}}}}}});function No(){return typeof window<"u"}function gi(t){return rp(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(rp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function rp(t){return No()?t instanceof Node||t instanceof ct(t).Node:!1}function Vt(t){return No()?t instanceof Element||t instanceof ct(t).Element:!1}function Er(t){return No()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function tp(t){return!No()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Fs(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ip(t){return/^(table|td|th)$/.test(gi(t))}function Bs(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Vt(t)?zt(t):t;return mi(e.transform)||mi(e.translate)||mi(e.scale)||mi(e.rotate)||mi(e.perspective)||!Fo()&&(mi(e.backdropFilter)||mi(e.filter))||Xx.test(e.willChange||"")||Yx.test(e.contain||"")}function sp(t){let e=Ur(t);for(;Er(e)&&!Gi(e);){if(Wi(e))return e;if(Bs(e))return null;e=Ur(e)}return null}function Fo(){return rl==null&&(rl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rl}function Gi(t){return/^(html|body|#document)$/.test(gi(t))}function zt(t){return ct(t).getComputedStyle(t)}function Us(t){return Vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(gi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||tp(t)&&t.host||Sr(t);return tp(e)?e.host:e}function op(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Er(e)&&Fs(e)?e:op(e)}function Mo(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=op(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),n=ct(o);if(s){let a=Bo(n);return e.concat(n,n.visualViewport||[],Fs(o)?o:[],a&&r?Mo(a):[])}else return e.concat(o,Mo(o,[],r))}function Bo(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Xx,Yx,mi,rl,il=l(()=>{Xx=/transform|translate|scale|rotate|perspective|filter/,Yx=/paint|layout|strict|content/,mi=t=>!!t&&t!=="none"});function lp(t){let e=zt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Er(t),s=o?t.offsetWidth:r,n=o?t.offsetHeight:i,a=Ms(r)!==s||Ms(i)!==n;return a&&(r=s,i=n),{width:r,height:i,$:a}}function cp(t){return Vt(t)?t:t.contextElement}function Qi(t){let e=cp(t);if(!Er(e))return ir(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:s}=lp(e),n=(s?Ms(r.width):r.width)/i,a=(s?Ms(r.height):r.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function up(t){let e=ct(t);return!Fo()||!e.visualViewport?Zx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Jx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ct(t)}function Vs(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),s=cp(t),n=ir(1);e&&(i?Vt(i)&&(n=Qi(i)):n=Qi(t));let a=Jx(s,r,i)?up(s):ir(0),u=(o.left+a.x)/n.x,d=(o.top+a.y)/n.y,p=o.width/n.x,h=o.height/n.y;if(s&&i){let m=ct(s),x=Vt(i)?ct(i):i,C=m,T=Bo(C);for(;T&&x!==C;){let E=Qi(T),$=T.getBoundingClientRect(),Q=zt(T),A=$.left+(T.clientLeft+parseFloat(Q.paddingLeft))*E.x,N=$.top+(T.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=N,C=ct(T),T=Bo(C)}}return fi({width:p,height:h,x:u,y:d})}function Uo(t,e){let r=Us(t).scrollLeft;return e?e.left+r:Vs(Sr(t)).left+r}function dp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Uo(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function eS(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,s=o==="fixed",n=Sr(i),a=e?Bs(e.floating):!1;if(i===n||a&&s)return r;let u={scrollLeft:0,scrollTop:0},d=ir(1),p=ir(0),h=Er(i);if((h||!s)&&((gi(i)!=="body"||Fs(n))&&(u=Us(i)),h)){let x=Vs(i);d=Qi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!s?dp(n,u):ir(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function tS(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function rS(t){let e=Us(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Uo(t),n=-e.scrollTop;return zt(r).direction==="rtl"&&(s+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:n}}function sS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=ct(t),s=Sr(t),n=o.visualViewport,a=s.clientWidth,u=s.clientHeight,d=0,p=0;if(n){let m=!Fo()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Uo(s)<=0){let m=s.ownerDocument,x=m.body,C=getComputedStyle(x),T=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(s.clientWidth-x.clientWidth-T),$=getComputedStyle(s).scrollbarGutter==="stable both-edges"?E/2:E;$<=iS&&(a-=$)}return{width:a,height:u,x:d,y:p}}function oS(t,e){let r=Vs(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,s=Qi(t),n=t.clientWidth*s.x,a=t.clientHeight*s.y,u=o*s.x,d=i*s.y;return{width:n,height:a,x:u,y:d}}function np(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=sS(t,r,e);else if(e==="document")i=rS(Sr(t));else if(Vt(e))i=oS(e,r);else{let o=up(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return fi(i)}function nS(t,e){let r=e.get(t);if(r)return r;let i=Mo(t,[],!1).filter(a=>Vt(a)&&gi(a)!=="body"),o=null,s=zt(t).position==="fixed",n=s?Ur(t):t;for(;Vt(n)&&!Gi(n);){let a=zt(n),u=Wi(n),d=o?o.position:s?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):o=a,n=Ur(n)}return e.set(t,i),i}function aS(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,n=[...r==="clippingAncestors"?Bs(e)?[]:nS(e,this._c):[].concat(r),i],a=np(e,n[0],o),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=np(e,n[m],o);u=Fr(x.top,u),d=Ds(x.right,d),p=Ds(x.bottom,p),h=Fr(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function lS(t){let{width:e,height:r}=lp(t);return{width:e,height:r}}function cS(t,e,r){let i=Er(e),o=Sr(e),s=r==="fixed",n=Vs(t,!0,s,e),a={scrollLeft:0,scrollTop:0},u=ir(0);if((i||!s)&&((gi(e)!=="body"||Fs(o))&&(a=Us(e)),i)){let m=Vs(e,!0,s,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&o&&(u.x=Uo(o));let d=o&&!i&&!s?dp(o,a):ir(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function sl(t){return zt(t).position==="static"}function ap(t,e){if(!Er(t)||zt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Sr(t)===r&&(r=r.ownerDocument.body),r}function pp(t,e){let r=ct(t);if(Bs(t))return r;if(!Er(t)){let o=Ur(t);for(;o&&!Gi(o);){if(Vt(o)&&!sl(o))return o;o=Ur(o)}return r}let i=ap(t,e);for(;i&&ip(i)&&sl(i);)i=ap(i,e);return i&&Gi(i)&&sl(i)&&!Wi(i)?r:i||sp(t)||r}function dS(t){return zt(t).direction==="rtl"}var Zx,iS,uS,Vo,hp,fp,mp,gp=l(()=>{ep();Do();il();Zx=ir(0);iS=25;uS=async function(t){let e=this.getOffsetParent||pp,r=this.getDimensions,i=await r(t.floating);return{reference:cS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Vo={convertOffsetParentRelativeRectToViewportRelativeRect:eS,getDocumentElement:Sr,getClippingRect:aS,getOffsetParent:pp,getElementRects:uS,getClientRects:tS,getDimensions:lS,getScale:Qi,isElement:Vt,isRTL:dS},hp=Zd,fp=Jd,mp=(t,e,r)=>{let i=new Map,o=r??{},s={...Vo,...o.platform,_c:i};return Yd(t,e,{...o,platform:s})}});function yp(t){return pS(t)}function ol(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function pS(t){for(let e=t;e;e=ol(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ol(t);e;e=ol(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wi(r)||e.tagName==="BODY"))return e}return null}var vp=l(()=>{il()});async function bp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},mp(t,e,{strategy:i.strategy,platform:{...Vo,getOffsetParent:o=>Vo.getOffsetParent(o,yp)},middleware:[fp({crossAxis:!0}),hp({allowedPlacements:[i.placement]})]})}var xp=l(()=>{"use strict";gp();vp()});function Ep(t,e){return(0,Sp.property)({type:Object,converter:hS(t),hasChanged:Hs,...e??{}})}var Sp,nl,hS,zo=l(()=>{"use strict";Sp=c(F(),1);yi();nl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},hS=t=>({fromAttribute:e=>{if(e==null)return zs(t);try{return JSON.parse(e)}catch{return zs(t)}},toAttribute:e=>JSON.stringify(e)})});function fS(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(!Xi(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(!Xi(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 o=n=>Object.keys(n).filter(a=>n[a]!=null),s=o(t);if(r=s.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let n=s[i];if(!Xi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Xi(t,e){try{return fS(t,e)}catch{return!1}}function Hs(t,e){return!Xi(t,e)}function zs(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ho(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var yi=l(()=>{"use strict";zo()});var Cp,al,Ap=l(()=>{"use strict";yi();Cp=c(F(),1),al=t=>{let e=t??{};return(r,i)=>{var o;let s={hasChanged:Hs,attribute:!1,...e};(0,Cp.property)(s)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var jo,ll=l(()=>{"use strict";jo=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 qo,wp=l(()=>{"use strict";qo=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 o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){o(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Ko,mS,Op,_p=l(()=>{Ko=globalThis,mS=Ko.ShadowRoot&&(Ko.ShadyCSS===void 0||Ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Op=(t,e)=>{if(mS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=Ko.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}}});var Rp,Wo,Tp=l(()=>{"use strict";Rp=c(y(),1);_p();zo();Wo=class extends Rp.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 Op(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){nl(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 o=t.querySelector(e);for(let s of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return o}var Lp=l(()=>{"use strict"});var vi,Zi,Dp,$p,Ip,Mp,Pp,Yi,sr,Np=l(()=>{"use strict";vi=c(F(),1);zo();wp();Tp();Lp();Zi=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},$p=Symbol("constructorPrototype"),Ip=Symbol("constructorName"),Mp=Symbol("exportpartsDebouncer"),Pp=Symbol("dynamicDependenciesLoaded"),Yi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yi.eventName="exportparts-updated";sr=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new qo(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 o,s;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ip]=this.constructor.name,this[$p]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ip]&&Object.setPrototypeOf(this,this[$p])}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[Pp]||(r[Pp]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Yi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yi.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 Yi)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let s=[...o??[],i];r=kp(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,o,s,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 p=new Set;for(let m of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let x=(n=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&n!==void 0?n:[],C=(a=(o=m.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],T=[...x,...C].filter(u).map(E=>E.trim());for(let E of T)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Dp=Mp;Zi([(0,vi.property)()],sr.prototype,"exportpartsPrefix",void 0);Zi([Ep([])],sr.prototype,"exportpartsPrefixes",void 0);Zi([(0,vi.property)({reflect:!0})],sr.prototype,"exportparts",void 0);Zi([(0,vi.property)()],sr.prototype,"customStylesheet",void 0);Zi([(0,vi.property)()],sr.prototype,"elementToFocus",void 0);Zi([(0,vi.state)()],sr.prototype,"useAdoptedStyleSheets",void 0)});function Go(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qo=l(()=>{"use strict"});var js,Vr,bi,gS,Fp,Bp=l(()=>{"use strict";Np();Qo();yi();js=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),bi=Symbol("internalStores"),gS=Ho(Symbol("withRedux"),function(t){var e,r,i;class o 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[bi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[bi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[bi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[bi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[bi].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[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[js].set(n,[]),Go(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=m=>this[p](m);a.addEventListener(d.eventName,h),this[js].get(n).push(()=>a.removeEventListener(d.eventName,h))}})),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[js].get(n))===null||a===void 0||a.forEach(u=>u()),this[js].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=bi,i=js,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Fp=class extends gS(sr){}});function Pe(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 Yo(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 ul(t,e,r){if(typeof t!="function")throw new Error(Pe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(1));return r(ul)(t,e)}let i=t,o=e,s=new Map,n=s,a=0,u=!1;function d(){n===s&&(n=new Map,s.forEach((E,$)=>{n.set($,E)}))}function p(){if(u)throw new Error(Pe(3));return o}function h(E){if(typeof E!="function")throw new Error(Pe(4));if(u)throw new Error(Pe(5));let $=!0;d();let Q=a++;return n.set(Q,E),function(){if($){if(u)throw new Error(Pe(6));$=!1,d(),n.delete(Q),s=null}}}function m(E){if(!Yo(E))throw new Error(Pe(7));if(typeof E.type>"u")throw new Error(Pe(8));if(typeof E.type!="string")throw new Error(Pe(17));if(u)throw new Error(Pe(9));try{u=!0,o=i(o,E)}finally{u=!1}return(s=n).forEach(Q=>{Q()}),E}function x(E){if(typeof E!="function")throw new Error(Pe(10));i=E,m({type:Xo.REPLACE})}function C(){let E=h;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Pe(11));function Q(){let N=$;N.next&&N.next(p())}return Q(),{unsubscribe:E(Q)}},[Up](){return this}}}return m({type:Xo.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[Up]:C}}function bS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Xo.INIT})>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:Xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Vp(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),o,s;try{bS(r)}catch(n){s=n}return function(a={},u){if(s)throw s;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],T=x(C,u);if(typeof T>"u"){let E=u&&u.type;throw new Error(Pe(14))}p[m]=T,d=d||T!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function qs(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zp(...t){return e=>(r,i)=>{let o=e(r,i),s=()=>{throw new Error(Pe(15))},n={getState:o.getState,dispatch:(u,...d)=>s(u,...d)},a=t.map(u=>u(n));return s=qs(...a)(o.dispatch),{...o,dispatch:s}}}function Hp(t){return Yo(t)&&"type"in t&&typeof t.type=="string"}var yS,Up,cl,vS,Xo,dl=l(()=>{yS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Up=yS,cl=()=>Math.random().toString(36).substring(7).split("").join("."),vS={INIT:`@@redux/INIT${cl()}`,REPLACE:`@@redux/REPLACE${cl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cl()}`},Xo=vS});function Ht(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Jp(t)||un(t)||!!t[jp]||!!t[tn]?.[jp]||dn(t)||pn(t):!1}function Jp(t){if(!t||!Cl(t))return!1;let e=es(t);if(e===null||e===mt[ln])return!0;let r=mt.hasOwnProperty.call(e,tn)&&e[tn];if(r===Object)return!0;if(!Ji(r))return!1;let i=qp.get(r);return i===void 0&&(i=Function.toString.call(r),qp.set(r,i)),i===xS}function cn(t,e,r=!0){Qs(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Qs(t){let e=t[je];return e?e.type_:un(t)?1:dn(t)?2:pn(t)?3:0}function SS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ES(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function yl(t,e){if(dn(t))return new Map(t);if(pn(t))return new Set(t);if(un(t))return Array[ln].slice.call(t);let r=Jp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[je];let o=Reflect.ownKeys(i);for(let s=0;s<o.length;s++){let n=o[s],a=i[n];a[Jo]===!1&&(a[Jo]=!0,a[ml]=!0),(a.get||a.set)&&(i[n]={[ml]:!0,[Jo]:!0,[rn]:a[rn],[Ks]:t[n]})}return mt.create(es(t),i)}else{let i=es(t);if(i!==null&&r)return{...t};let o=mt.create(i);return mt.assign(o,t)}}function wl(t,e=!1){return hn(t)||or(t)||!gt(t)||(Qs(t)>1&&mt.defineProperties(t,{set:Zo,add:Zo,clear:Zo,delete:Zo}),mt.freeze(t),e&&cn(t,(r,i)=>{wl(i,!0)},!1)),t}function CS(){Ht(2)}function hn(t){return t===null||!Cl(t)?!0:mt.isFrozen(t)}function xi(t){let e=eh[t];return e||Ht(0,t),e}function Gp(t,e){e&&(t.patchPlugin_=xi(vl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function bl(t){xl(t),t.drafts_.forEach(wS),t.drafts_=null}function xl(t){t===Ws&&(Ws=t.parent_)}function wS(t){let e=t[je];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Xp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[je].modified_&&(bl(e),Ht(4)),gt(t)&&(t=Yp(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[je].base_,t,e)}else t=Yp(e,r);return OS(e,t,!0),bl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Zp?t:void 0}function Yp(t,e){if(hn(e))return e;let r=e[je];if(!r)return nn(e,t.handledSet_,t);if(!fn(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);sh(r,t)}return r.copy_}function OS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&wl(e,r)}function rh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function ih(t,e,r,i){let o=Cr(t),s=t.type_;if(i!==void 0&&gl(o,i,s)===e){sn(o,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;cn(o,(u,d)=>{if(or(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??_S;for(let a of n)sn(o,a,r,s)}function RS(t,e,r){t.callbacks_.push(function(o){let s=e;if(!s||!fn(s,o))return;o.mapSetPlugin_?.fixSetContents(s);let n=Al(s);ih(t,s.draft_??s,n,r),sh(s,o)})}function sh(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 o=i.getPath(t);o&&i.generatePatches_(t,o,e)}rh(t)}}function TS(t,e,r){let{scope_:i}=t;if(or(r)){let o=r[je];fn(o,i)&&o.callbacks_.push(function(){en(t);let n=Al(o);ih(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let s=Cr(t);t.type_===3?s.has(r)&&nn(r,i.handledSet_,i):gl(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&nn(gl(t.copy_,e,t.type_),i.handledSet_,i)})}function nn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||or(t)||e.has(t)||!gt(t)||hn(t)||(e.add(t),cn(t,(i,o)=>{if(or(o)){let s=o[je];if(fn(s,r)){let n=Al(s);sn(t,i,n,t.type_),rh(s)}}else gt(o)&&nn(o,e,r)})),t}function kS(t,e){let r=un(t),i={type_:r?1:0,scope_:e?e.scope_:th(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,s=an;r&&(o=[i],s=Gs);let{revoke:n,proxy:a}=Proxy.revocable(o,s);return i.draft_=a,i.revoke_=n,[a,i]}function fl(t,e){let r=t[je];return(r?Cr(r):t)[e]}function LS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[je]?!1:t.baseRefs_.has(r)}function $S(t,e,r){let i=oh(e,r);return i?Ks in i?i[Ks]:i.get?.call(t.draft_):void 0}function oh(t,e){if(!(e in t))return;let r=es(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=es(r)}}function Sl(t){t.modified_||(t.modified_=!0,t.parent_&&Sl(t.parent_))}function en(t){t.copy_||(t.assigned_=new Map,t.copy_=yl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function El(t,e,r,i){let[o,s]=dn(e)?xi(on).proxyMap_(e,r):pn(e)?xi(on).proxySet_(e,r):kS(e,r);return(r?.scope_??th()).drafts_.push(o),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?RS(r,s,i):s.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:d}=u;s.modified_&&d&&d.generatePatches_(s,[],u)}),o}function nh(t){return or(t)||Ht(10,t),ah(t)}function ah(t){if(!gt(t)||hn(t))return t;let e=t[je],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=yl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=yl(t,!0);return cn(r,(o,s)=>{sn(r,o,ah(s))},i),e&&(e.finalized_=!1),r}var Zp,jp,je,mt,es,tn,ln,ml,rn,Jo,Ks,or,xS,qp,pl,gl,sn,un,dn,pn,Cl,Ji,hl,Cr,Al,Zo,on,vl,Kp,eh,Wp,Ws,th,AS,Qp,fn,_S,an,Gs,IS,PS,C0,DS,Ol,lh=l(()=>{Zp=Symbol.for("immer-nothing"),jp=Symbol.for("immer-draftable"),je=Symbol.for("immer-state");mt=Object,es=mt.getPrototypeOf,tn="constructor",ln="prototype",ml="configurable",rn="enumerable",Jo="writable",Ks="value",or=t=>!!t&&!!t[je];xS=mt[ln][tn].toString(),qp=new WeakMap;pl=(t,e,r=Qs(t))=>r===2?t.has(e):mt[ln].hasOwnProperty.call(t,e),gl=(t,e,r=Qs(t))=>r===2?t.get(e):t[e],sn=(t,e,r,i=Qs(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};un=Array.isArray,dn=t=>t instanceof Map,pn=t=>t instanceof Set,Cl=t=>typeof t=="object",Ji=t=>typeof t=="function",hl=t=>typeof t=="boolean";Cr=t=>t.copy_||t.base_,Al=t=>t.modified_?t.copy_:t.base_;Zo={[Ks]:CS};on="MapSet",vl="Patches",Kp="ArrayMethods",eh={};Wp=t=>!!eh[t],th=()=>Ws,AS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wp(on)?xi(on):void 0,arrayMethodsPlugin_:Wp(Kp)?xi(Kp):void 0});Qp=t=>Ws=AS(Ws,t);fn=(t,e)=>t.scope_===e,_S=[];an={get(t,e){if(e===je)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 o=Cr(t);if(!pl(o,e,t.type_))return $S(t,o,e);let s=o[e];if(t.finalized_||!gt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&ES(e))return s;if(s===fl(t.base_,e)||LS(t,e,s)){en(t);let n=t.type_===1?+e:e,a=El(t.scope_,s,t,n);return t.copy_[n]=a}return s},has(t,e){return e in Cr(t)},ownKeys(t){return Reflect.ownKeys(Cr(t))},set(t,e,r){let i=oh(Cr(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=fl(Cr(t),e),s=o?.[je];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(SS(r,o)&&(r!==void 0||pl(t.base_,e,t.type_)))return!0;en(t),Sl(t)}return t.copy_[e]===r&&(r!==void 0||pl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),TS(t,e,r)),!0},deleteProperty(t,e){return en(t),fl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Sl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Jo]:!0,[ml]:t.type_!==1||e!=="length",[rn]:i[rn],[Ks]:r[e]}},defineProperty(){Ht(11)},getPrototypeOf(t){return es(t.base_)},setPrototypeOf(){Ht(12)}},Gs={};for(let t in an){let e=an[t];Gs[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Gs.deleteProperty=function(t,e){return Gs.set.call(this,t,e,void 0)};Gs.set=function(t,e,r){return an.set.call(this,t[0],e,r,t[0])};IS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Ji(e)&&!Ji(r)){let s=r;r=e;let n=this;return function(u=s,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||Ht(6),i!==void 0&&!Ji(i)&&Ht(7);let o;if(gt(e)){let s=Qp(this),n=El(s,e,void 0),a=!0;try{o=r(n),a=!1}finally{a?bl(s):xl(s)}return Gp(s,i),Xp(o,s)}else if(!e||!Cl(e)){if(o=r(e),o===void 0&&(o=e),o===Zp&&(o=void 0),this.autoFreeze_&&wl(o,!0),i){let s=[],n=[];xi(vl).generateReplacementPatches_(e,o,{patches_:s,inversePatches_:n}),i(s,n)}return o}else Ht(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,o;return[this.produce(e,r,(n,a)=>{i=n,o=a}),i,o]},hl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),hl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),hl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||Ht(8),or(t)&&(t=nh(t));let e=Qp(this),r=El(e,t,void 0);return r[je].isManual_=!0,xl(e),r}finishDraft(t,e){let r=t&&t[je];(!r||!r.isManual_)&&Ht(9);let{scope_:i}=r;return Gp(i,e),Xp(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 o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=xi(vl).applyPatches_;return or(t)?i(t,e):this.produce(t,o=>i(o,e))}};PS=globalThis.Iterator,C0=typeof PS?.from=="function",DS=new IS,Ol=DS.produce});function ch(t){return({dispatch:r,getState:i})=>o=>s=>typeof s=="function"?s(r,i,t):o(s)}var uh,dh,ph=l(()=>{uh=ch(),dh=ch});function zr(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(Ar(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Hp(i)&&i.type===t,r}function hh(t){return gt(t)?Ol(t,()=>{}):t}function mn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function FS(t){return typeof t=="boolean"}function vh(t){let e=BS(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(Yo(r))u=Vp(r);else throw new Error(Ar(1));let d;typeof i=="function"?d=i(e):d=e();let p=qs;o&&(p=MS({trace:!1,...typeof o=="object"&&o}));let h=zp(...d),m=HS(h),x=typeof a=="function"?a(m):m(),C=p(...x);return ul(u,n,C)}function bh(t){let e={},r=[],i,o={addCase(s,n){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Ar(28));if(a in e)throw new Error(Ar(29));return e[a]=n,o},addAsyncThunk(s,n){return n.pending&&(e[s.pending.type]=n.pending),n.rejected&&(e[s.rejected.type]=n.rejected),n.fulfilled&&(e[s.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:s.settled,reducer:n.settled}),o},addMatcher(s,n){return r.push({matcher:s,reducer:n}),o},addDefaultCase(s){return i=s,o}};return t(o),[e,r,i]}function jS(t){return typeof t=="function"}function qS(t,e){let[r,i,o]=bh(e),s;if(jS(t))s=()=>hh(t());else{let a=hh(t);s=()=>a}function n(a=s(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[o]),d.reduce((p,h)=>{if(h)if(or(p)){let x=h(p,u);return x===void 0?p:x}else{if(gt(p))return Ol(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return p},a)}return n.getInitialState=s,n}function WS(...t){return e=>t.some(r=>KS(r,e))}function JS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function eE(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function tE(t,e){return`${t}/${e}`}function rE({creators:t}={}){let e=t?.asyncThunk?.[xh];return function(i){let{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Ar(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(sE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,N){let H=typeof A=="string"?A:A.type;if(!H)throw new Error(Ar(12));if(H in u.sliceCaseReducersByType)throw new Error(Ar(13));return u.sliceCaseReducersByType[H]=N,d},addMatcher(A,N){return u.sliceMatchers.push({matcher:A,reducer:N}),d},exposeAction(A,N){return u.actionCreators[A]=N,d},exposeCaseReducer(A,N){return u.sliceCaseReducersByName[A]=N,d}};a.forEach(A=>{let N=n[A],H={reducerName:A,type:tE(o,A),createNotation:typeof i.reducers=="function"};nE(N)?lE(H,N,d,e):oE(H,N,d)});function p(){let[A={},N=[],H=void 0]=typeof i.extraReducers=="function"?bh(i.extraReducers):[i.extraReducers],ve={...A,...u.sliceCaseReducersByType};return qS(i.initialState,ne=>{for(let be in ve)ne.addCase(be,ve[be]);for(let be of u.sliceMatchers)ne.addMatcher(be.matcher,be.reducer);for(let be of N)ne.addMatcher(be.matcher,be.reducer);H&&ne.addDefaultCase(H)})}let h=A=>A,m=new Map,x=new WeakMap,C;function T(A,N){return C||(C=p()),C(A,N)}function E(){return C||(C=p()),C.getInitialState()}function $(A,N=!1){function H(ne){let be=ne[A];return typeof be>"u"&&N&&(be=mn(x,H,E)),be}function ve(ne=h){let be=mn(m,N,()=>new WeakMap);return mn(be,ne,()=>{let Rs={};for(let[Ot,ii]of Object.entries(i.selectors??{}))Rs[Ot]=iE(ii,ne,()=>mn(x,ne,E),N);return Rs})}return{reducerPath:A,getSelectors:ve,get selectors(){return ve(H)},selectSlice:H}}let Q={name:o,reducer:T,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...$(s),injectInto(A,{reducerPath:N,...H}={}){let ve=N??s;return A.inject({reducerPath:ve,reducer:T},H),{...Q,...$(ve,!0)}}};return Q}}function iE(t,e,r,i){function o(s,...n){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return o.unwrapped=t,o}function sE(){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 oE({type:t,reducerName:e,createNotation:r},i,o){let s,n;if("reducer"in i){if(r&&!aE(i))throw new Error(Ar(17));s=i.reducer,n=i.prepare}else s=i;o.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,n?zr(t,n):zr(t))}function nE(t){return t._reducerDefinitionType==="asyncThunk"}function aE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function lE({type:t,reducerName:e},r,i,o){if(!o)throw new Error(Ar(18));let{payloadCreator:s,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=o(t,s,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||gn,pending:a||gn,rejected:u||gn,settled:d||gn})}function gn(){}function Ar(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 MS,k0,NS,yh,BS,US,fh,VS,zS,HS,KS,GS,QS,XS,_l,mh,YS,gh,ZS,xh,$0,Sh,Eh,Ch,Ah,I0,P0,D0,M0,wh,Rl,cE,N0,uE,Oh=l(()=>{dl();lh();dl();ph();MS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qs:qs.apply(null,arguments)},k0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},NS=t=>t&&typeof t.match=="function";yh=class Xs extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Xs.prototype)}static get[Symbol.species](){return Xs}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Xs(...e[0].concat(this)):new Xs(...e.concat(this))}};BS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=e??{},n=new yh;return r&&(FS(r)?n.push(uh):n.push(dh(r.extraArgument))),n},US="RTK_autoBatch",fh=t=>e=>{setTimeout(e,t)},VS=(t,e)=>r=>{let i=!1,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())},s=t(o),n=setTimeout(o,e)},zS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,s=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?VS(window.requestAnimationFrame,100):fh(10):t.type==="callback"?t.queueNotification:fh(t.timeout),d=()=>{n=!1,s&&(s=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>o&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return o=!p?.meta?.[US],s=!o,s&&(n||(n=!0,u(d))),i.dispatch(p)}finally{o=!0}}})},HS=t=>function(r){let{autoBatch:i=!0}=r??{},o=new yh(t);return i&&o.push(zS(typeof i=="object"?i:void 0)),o};KS=(t,e)=>NS(t)?t.match(e):t(e);GS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",QS=(t=21)=>{let e="",r=t;for(;r--;)e+=GS[Math.random()*64|0];return e},XS=["name","message","stack","code"],_l=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},mh=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},YS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of XS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},gh="External signal was aborted",ZS=(()=>{function t(e,r,i){let o=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),s=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||YS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):QS(),C=new AbortController,T,E;function $(A){E=A,C.abort()}d&&(d.aborted?$(gh):d.addEventListener("abort",()=>$(gh),{once:!0}));let Q=(async function(){let A;try{let H=i?.condition?.(u,{getState:h,extra:m});if(eE(H)&&(H=await H),H===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ve=new Promise((ne,be)=>{T=()=>{be({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});p(s(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([ve,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:$,rejectWithValue:((ne,be)=>new _l(ne,be)),fulfillWithValue:((ne,be)=>new mh(ne,be))})).then(ne=>{if(ne instanceof _l)throw ne;return ne instanceof mh?o(ne.payload,x,u,ne.meta):o(ne,x,u)})])}catch(H){A=H instanceof _l?n(null,x,u,H.payload,H.meta):n(H,x,u)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:$,requestId:x,arg:u,unwrap(){return Q.then(JS)}})}}return Object.assign(a,{pending:s,rejected:n,fulfilled:o,settled:WS(n,o),typePrefix:e})}return t.withTypes=()=>t,t})();xh=Symbol.for("rtk-slice-createasyncthunk"),$0={[xh]:ZS};Sh=rE();Eh="listener",Ch="completed",Ah="cancelled",I0=`task-${Ah}`,P0=`task-${Ch}`,D0=`${Eh}-${Ah}`,M0=`${Eh}-${Ch}`,{assign:wh}=Object,Rl="listenerMiddleware",cE=wh(zr(`${Rl}/add`),{withTypes:()=>cE}),N0=zr(`${Rl}/removeAll`),uE=wh(zr(`${Rl}/remove`),{withTypes:()=>uE})});var dE,yn,_h=l(()=>{"use strict";yi();dE=Ho(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),yn=class extends dE(Object){}});var Rh,Th=l(()=>{"use strict";Oh();Qo();ll();_h();yi();window.ftReduxStores||(window.ftReduxStores={});Rh=class t extends yn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Go(s))return s;if(o==null)return;let n=Sh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=vh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=zs(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[o.name]=new t(n,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new jo,this.injectInto=(s,n)=>this.reduxSlice.injectInto(s,n),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,n,a)=>{let u=n,d=s[u];return d?(...p)=>{let h=d(...p.map(o));return this.reduxStore.dispatch(h),h}:p=>{let h=u,m=this.getState()[h];Xi(m,p)||this.setState({[h]: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 kh=l(()=>{"use strict";yi()});var Lh=l(()=>{"use strict"});var $h=l(()=>{"use strict";Ap();ll();Bp();Th();Qo();kh();Lh()});var vn,Ih=l(()=>{"use strict";vn=class{static format(e,r,i,o,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!s)):this.getIntlDateTime(e,r,i,o,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,s){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 s?u:o?`${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 bn,pE,nr,Ys,hE,S,qe=l(()=>{"use strict";bn=c(f()),pE="ft-app-info",nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nr.eventName="authentication-change";Ys=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ys.eventName="ui-locale-changed";hE={session:(t,e)=>{(0,bn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new nr(e.payload)),0))}},S=bn.FtReduxStore.get({name:pE,reducers:hE,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 Tl,Ph,xn,hA,Dh=l(()=>{"use strict";Tl=c(F());$h();Ih();qe();Ph=c(f()),xn=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},hA=(0,Ph.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(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,s;return((s=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&s!==void 0?s:!1)?a=>vn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return xn([(0,Tl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),xn([(0,Tl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),xn([al({store:S.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),xn([al({store:S.name})],e.prototype,"uiLocale",void 0),e})});var kl=l(()=>{});var Mh,Nh,Fh,Hr,Bh,Uh,Vh,Si,zh,Hh,jh,qh,Kh,Wh,Gh,Qh,Xh,Sn,Yh,Zh,ts,Jh,En,ef,tf,ar,rs,rf,ge,Rt,sf,Ll=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Mh||(Mh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Nh||(Nh={}));(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"})(Fh||(Fh={}));(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"})(Hr||(Hr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Bh||(Bh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Uh||(Uh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Vh||(Vh={}));(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"})(Si||(Si={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(zh||(zh={}));(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Hh||(Hh={}));(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"})(jh||(jh={}));(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"})(qh||(qh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kh||(Kh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Wh||(Wh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Gh||(Gh={}));(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"})(Xh||(Xh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Sn||(Sn={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Yh||(Yh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Zh||(Zh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ts||(ts={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jh||(Jh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(En||(En={}));(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"})(ef||(ef={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tf||(tf={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ar||(ar={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rs||(rs={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rf||(rf={}));(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"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Rt||(Rt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(sf||(sf={}))});var of,nf,af,lf,cf,uf,df,pf,hf,ff,mf,gf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(of||(of={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(nf||(nf={}));(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"})(af||(af={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(lf||(lf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cf||(cf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(uf||(uf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(df||(df={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(pf||(pf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(hf||(hf={}));(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"})(ff||(ff={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mf||(mf={}))});var yf=l(()=>{Ll();gf()});function vf(t,e){return t===e||(fE[t]??[]).some(r=>vf(r,e))}function Zs(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=>vf(i,e))}function bf(t,...e){return t==null?!1:e.some(r=>Zs(t,r))}var fE,xf=l(()=>{Ll();fE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var Sf=l(()=>{});var jr=l(()=>{kl();yf();xf();Sf();kl()});var Ei,$l=l(()=>{"use strict";qe();Ei=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=S.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var is,Il=l(()=>{"use strict";$l();is=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ei.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ei.await()}}});var Pl,Ke,qr=l(()=>{"use strict";Pl=c(f());Il();Ke=class extends is{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new Pl.CacheRegistry,this.cache=e?o.commonCache:new Pl.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 Cn,Dl=l(()=>{"use strict";qe();jr();qr();Cn=class extends Ke{async listMySearches(){let{session:e}=S.getState();return Zs(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var An,Ml=l(()=>{"use strict";qe();qr();An=class extends Ke{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var wn,Ef=l(()=>{"use strict";qe();qr();wn=class extends Ke{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=S.getState().session;return!!e?.sessionAuthenticated}}});var On,Cf=l(()=>{"use strict";qr();qe();On=class extends Ke{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=S.getState().session;return!!e?.sessionAuthenticated}}});var _n,mE,gE,Of,Nl,Fl,Af,wf,Ye,Bl,yE,Ul=l(()=>{"use strict";jr();_n=c(f());Dl();Ml();qe();Ef();Cf();mE="ft-user-assets",gE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Rt).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:o}=e.payload;Fl(t,r,[...Nl(t,r),o]),Af(t,r,1,i),wf(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Fl(t,r,Nl(t,r).map(o=>o.id===i.id?i:o)),wf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;Fl(t,r,Nl(t,r).filter(s=>s.id!==o)),Af(t,r,-1,i)}},Of={[Rt.SEARCHES]:"savedSearches",[Rt.BOOKMARKS]:"bookmarks",[Rt.BOOKS]:void 0,[Rt.COLLECTIONS]:void 0},Nl=(t,e)=>{var r;let i=Of[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Fl=(t,e,r)=>{let i=Of[e];i&&(t[i]=r)},Af=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===Rt.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},wf=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Ye=_n.FtReduxStore.get({name:mE,reducers:gE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bl=class{constructor(e=new wn,r=new On){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new An,this.savedSearchesService=new Cn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.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(),Ye.actions.clearAssetCount(),Ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ye.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ye.getState().assetCounts.allAsset[e]!==r.count&&Ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ye.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ye.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ye.getState().assetCounts.bookmarkByMap).length!==0;e===Rt.BOOKMARKS&&r&&Ye.actions.clearBookmarkCountByMap(),Ye.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;Ye.actions.bookmarks(r)}}},yE=new Bl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=yE)});var _f=l(()=>{"use strict";jr();Ul()});var Vl,Rf=l(()=>{"use strict";qe();Vl=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Vl});var Tt,Tf,ss,vE,Rn,os,Tn,kf=l(()=>{"use strict";qe();Tt=c(f());qr();ss=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},vE=Symbol("clearAfterUnitTest"),Rn=class extends(0,Tt.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Tf]=()=>{this.defaultMessages={},this.cache=new Tt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.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 o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Tt.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,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 o;let s=e.toLowerCase(),n=this.resolveContext(s);return new Tt.ParametrizedLabelResolver((o=this.defaultMessages[s])!==null&&o!==void 0?o:{},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(o){!(o instanceof Tt.CanceledPromiseError)&&r&&console.error(o)}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 o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ss({loadedContexts:e})),this.dispatchEvent(new ss({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ss({loadedContexts:[e]})),this.dispatchEvent(new ss({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Tt.delay)(0).then(()=>i()).catch(()=>null)))}};Tf=vE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});os=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService});var Lf,zl,$f=l(()=>{"use strict";Lf=c(f()),zl=class{highlightHtml(e,r,i){(0,Lf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new zl});var If,Hl,Pf=l(()=>{"use strict";If=c(f());qe();Hl=class{isDate(e){var r,i,o,s;return(s=(i=((o=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,o,s,n;if(e==null)return"";try{return If.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(s=r?.withTime)!==null&&s!==void 0?s:!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 Hl});var Df,wr,jl=l(()=>{"use strict";Df=c(f());qe();wr=class{static get(e,r){var i,o,s,n;let a=S.getState(),{lang:u,region:d}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Df.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${u}-${d}`)}}});var kn,Mf=l(()=>{"use strict";qr();kn=class extends Ke{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,o])=>Array.isArray(o)?[i,o.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,n)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(n.key):typeof s=="string"&&typeof n=="string"?s.localeCompare(n):String(s).localeCompare(String(n)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(o=>(console.info(r),console.debug(o),i)),1e3)}}});var ql,Nf=l(()=>{"use strict";jl();ql=class{urlToSearchRequest(e){return wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new ql});var Ci,Ai,Ff=l(()=>{"use strict";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ci.eventName="before-location-change";Ai=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ai.eventName="change"});var Kl,Bf,Uf=l(()=>{"use strict";Kl=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))}},Bf=new Kl});var Or,Ln,Vf=l(()=>{"use strict";Or=c(f());Ff();Uf();Ln=class t extends Or.WithEventBus{static build(){return new t(window.history,Bf,()=>window.location,!1)}constructor(e,r,i,o){var s,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}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,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ai(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[s,n,a])=>{let u=new Ci(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...s,index:d,href:u.detail.nextLocation.href};i.apply(o,[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(Ci.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ci.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ai.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ai.eventName,e)}currentItem(){return(0,Or.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,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.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,Or.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 o=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(o=s),s++;return o}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 o=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=o}}});var zf=l(()=>{"use strict";Vf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ln.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 Hf=l(()=>{"use strict";qe()});var $n=l(()=>{"use strict";Ml();$l();Rf();kf();qr();$f();Dl();Pf();jl();Mf();Nf();zf();Hf()});var jf,qf,Wl=l(()=>{"use strict";jf=c(y()),qf=jf.css`
271
+ `});var Kf=l(()=>{"use strict"});function Wf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Gf=l(()=>{"use strict";qe()});var In,Qf=l(()=>{"use strict";Il();In=class extends is{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var wi,Gl,Js,Ql=l(()=>{"use strict";wi=c(f());qe();Gf();$n();jr();Qf();Gl=class t extends wi.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new wi.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new In,this.cleanSessionDebouncer=new wi.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new wi.Debouncer(500),this.apiProvider=r??(()=>Ei.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nr.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",()=>Wf(()=>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 Ys(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 bf(S.getState().session,...e)}},Js=Gl.build()});var Oi,eo=l(()=>{Oi=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}}});var Xf=l(()=>{});var Xl=l(()=>{eo();});var Yf=l(()=>{});var Yl=l(()=>{eo();Yf();});var to,Zf=l(()=>{eo();to=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:o,callbackRef:s}of i){let n=o.deref(),a=s.deref();n===void 0||a===void 0||n.dispatchEvent(new Oi(e.context,n,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let s=o.callbacks.get(r);s===void 0&&o.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),o.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 Jf=l(()=>{Yl();});var em=l(()=>{Xl();});var tm=l(()=>{eo();Xf();Xl();Yl();Zf();Jf();em()});var rm,Ze,_i,Le,pe,Zl=l(()=>{"use strict";rm=c(y()),Ze=c(F()),_i=c(f());Wl();$n();Ql();tm();Le=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},pe=class extends _i.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=Js,this.contextRoot=new to}render(){return rm.html`
272
272
  <slot></slot>
273
- `}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=>so.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())}};pe.elementDefinitions={};pe.styles=Hf;Le([(0,Ze.property)()],pe.prototype,"baseUrl",void 0);Le([(0,Ze.property)()],pe.prototype,"tenantId",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Le([(0,Ze.property)()],pe.prototype,"uiLocale",void 0);Le([(0,Oi.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Le([(0,Oi.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomCode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Le([(0,Oi.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Le([(0,Oi.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var tm,rm=l(()=>{"use strict";Yl();tm={"ft-app-context":pe}});var im,om=l(()=>{"use strict";im=c(f());rm();(0,im.customElements)(tm)});var Ht=l(()=>{"use strict";Dh();je();Bl();wf();Ln();Kl();jf();Yl();Gl();om()});var Zl,no,In=l(()=>{"use strict";Zl=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-]+$/)}},no=new Zl});var ao,sm,vE,os,nm,am,Dn,is,ut,Pn,Mn,ss=l(()=>{"use strict";ao=c(f());Ht();sm=c(F());In();vE=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},os=Symbol("i18nAttributes"),nm=Symbol("i18nListAttributes"),am=Symbol("i18nProperties"),Dn=Symbol("i18nContexts"),is=Symbol("i18nUnsubs"),ut=(0,ao.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?Rn:so}i18n(o){let{context:n,key:a,message:u}=o,{custom:d,args:p,argsProvider:h}=o;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=p??(h?h(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(no.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=(p,h,m)=>m?.context&&m.key&&o(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[os])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[nm])===null||a===void 0||a.forEach((p,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(x=>d(p,h,x))})}updateI18nProperties(o){var n;(n=this[am])===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[Dn].set(u,{isCustomContext:a}),this[is].has(u)||this[is].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(o){return this[Dn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Dn].forEach((o,n)=>this.addI18nContext(n,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[is].forEach(o=>o()),this[is].clear()}}return e=Dn,r=is,vE([(0,sm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Pn=class extends ut(ao.FtLitElement){},Mn=class extends ut(ao.FtLitElementRedux){}});var Jl,xE,lm=l(()=>{"use strict";In();Jl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?no.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},xE=new Jl});var cm,lo,Nn=l(()=>{"use strict";ss();cm=c(f());In();lm();lo=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:cm.hasChanged,converter:no,...e}),r[os]=(s=r[os])!==null&&s!==void 0?s:new Map,r[os].set(i,t??{})}});var ar,um=l(()=>{"use strict";Ht();ar=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?Rn:so}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 dm=l(()=>{"use strict";ss()});var pm,hm,ec=l(()=>{"use strict";pm=c(y()),hm=pm.css`
274
- `});var fm=l(()=>{"use strict"});var Fn,uo,Bn,co,kt,tc=l(()=>{"use strict";Fn=c(y()),uo=c(F()),Bn=c(f());ec();ss();Ht();co=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},kt=class extends Mn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Fn.nothing:Fn.html`
273
+ `}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=>os.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())}};pe.elementDefinitions={};pe.styles=qf;Le([(0,Ze.property)()],pe.prototype,"baseUrl",void 0);Le([(0,Ze.property)()],pe.prototype,"tenantId",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Le([(0,Ze.property)()],pe.prototype,"uiLocale",void 0);Le([(0,_i.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Le([(0,_i.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomCode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Le([(0,_i.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Le([(0,_i.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var im,sm=l(()=>{"use strict";Zl();im={"ft-app-context":pe}});var om,nm=l(()=>{"use strict";om=c(f());sm();(0,om.customElements)(im)});var jt=l(()=>{"use strict";Dh();qe();Ul();_f();$n();Wl();Kf();Zl();Ql();nm()});var Jl,ns,Pn=l(()=>{"use strict";Jl=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-]+$/)}},ns=new Jl});var as,am,SE,io,lm,cm,Dn,ro,ut,Mn,Nn,so=l(()=>{"use strict";as=c(f());jt();am=c(F());Pn();SE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},io=Symbol("i18nAttributes"),lm=Symbol("i18nListAttributes"),cm=Symbol("i18nProperties"),Dn=Symbol("i18nContexts"),ro=Symbol("i18nUnsubs"),ut=(0,as.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Tn:os}i18n(s){let{context:n,key:a,message:u}=s,{custom:d,args:p,argsProvider:h}=s;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=p??(h?h(this):[]);return this.getI18nService(d).resolveMessage(n,a,...m)}return u}async awaitI18n(s){let{context:n,custom:a}=s;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(s)}customI18n(s,n){if(ns.isI18nKey(s)){let[a,u]=s.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((n,a,u)=>s.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===s}),this.updateI18nProperties(n=>n.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var n,a;let u=this,d=(p,h,m)=>m?.context&&m.key&&s(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[io])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[lm])===null||a===void 0||a.forEach((p,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(x=>d(p,h,x))})}updateI18nProperties(s){var n;(n=this[cm])===null||n===void 0||n.forEach((a,u)=>{s(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(s,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,n,a)}addI18nContext(s,n,a){let u=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Dn].set(u,{isCustomContext:a}),this[ro].has(u)||this[ro].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(s){return this[Dn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Dn].forEach((s,n)=>this.addI18nContext(n,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ro].forEach(s=>s()),this[ro].clear()}}return e=Dn,r=ro,SE([(0,am.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Mn=class extends ut(as.FtLitElement){},Nn=class extends ut(as.FtLitElementRedux){}});var ec,EE,um=l(()=>{"use strict";Pn();ec=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ns.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},EE=new ec});var dm,ls,Fn=l(()=>{"use strict";so();dm=c(f());Pn();um();ls=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:dm.hasChanged,converter:ns,...e}),r[io]=(o=r[io])!==null&&o!==void 0?o:new Map,r[io].set(i,t??{})}});var lr,pm=l(()=>{"use strict";jt();lr=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?Tn:os}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let s=o;return n=>({context:this.name,key:s,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...s)=>this.service.resolveMessage(this.name,o,...s)}),this.rawMessages=new Proxy({},{get:(i,o)=>this.service.resolveRawMessage(this.name,o)}),this.keys=new Proxy({},{get:(i,o)=>()=>o}),this.attributes=new Proxy({},{get:(i,o)=>()=>({context:this.name,key:o,message:this.service.resolveRawMessage(this.name,o)})})}}});var hm=l(()=>{"use strict";so()});var fm,mm,tc=l(()=>{"use strict";fm=c(y()),mm=fm.css`
274
+ `});var gm=l(()=>{"use strict"});var Bn,us,Un,cs,kt,rc=l(()=>{"use strict";Bn=c(y()),us=c(F()),Un=c(f());tc();so();jt();cs=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},kt=class extends Nn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Bn.nothing:Bn.html`
275
275
  <span class="ft-i18n">
276
276
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
277
277
  </span>
278
- `}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:""})}};kt.elementDefinitions={};kt.styles=hm;co([(0,Bn.redux)()],kt.prototype,"editorMode",void 0);co([(0,uo.property)()],kt.prototype,"context",void 0);co([(0,uo.property)()],kt.prototype,"key",void 0);co([(0,Bn.jsonProperty)([])],kt.prototype,"args",void 0);co([(0,uo.property)()],kt.prototype,"defaultMessage",void 0);co([(0,uo.state)()],kt.prototype,"editorMessage",void 0)});var mm,gm=l(()=>{"use strict";tc();mm={"ft-i18n":kt}});var ym,bm=l(()=>{"use strict";ym=c(f());gm();(0,ym.customElements)(mm)});var Lt=l(()=>{"use strict";um();ss();dm();ec();fm();tc();bm()});var vm,It,$t,jt,Se,rc=l(()=>{"use strict";vm=c(y()),It=c(F()),$t=c(f());xe();Qa();vp();Nn();Lt();jt=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},Se=class extends Pn{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 $t.Debouncer,this.revealDebouncer=new $t.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 vm.html`
278
+ `}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:""})}};kt.elementDefinitions={};kt.styles=mm;cs([(0,Un.redux)()],kt.prototype,"editorMode",void 0);cs([(0,us.property)()],kt.prototype,"context",void 0);cs([(0,us.property)()],kt.prototype,"key",void 0);cs([(0,Un.jsonProperty)([])],kt.prototype,"args",void 0);cs([(0,us.property)()],kt.prototype,"defaultMessage",void 0);cs([(0,us.state)()],kt.prototype,"editorMessage",void 0)});var ym,vm=l(()=>{"use strict";rc();ym={"ft-i18n":kt}});var bm,xm=l(()=>{"use strict";bm=c(f());vm();(0,bm.customElements)(ym)});var Lt=l(()=>{"use strict";pm();so();hm();tc();gm();rc();xm()});var Sm,It,$t,qt,Se,ic=l(()=>{"use strict";Sm=c(y()),It=c(F()),$t=c(f());xe();Xa();xp();Fn();Lt();qt=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Se=class extends Mn{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 $t.Debouncer,this.revealDebouncer=new $t.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 Sm.html`
279
279
  <div part="container"
280
280
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
281
281
  <slot part="slot"></slot>
@@ -290,7 +290,7 @@
290
290
  </div>
291
291
  </div>
292
292
  </div>
293
- `}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&&bp(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 ${$t.designSystemVariables.transitionDuration}, left ${$t.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$t.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Se.elementDefinitions={"ft-typography":V};Se.styles=Vd;jt([lo()],Se.prototype,"text",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"manual",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"inline",void 0);jt([(0,$t.numberProperty)()],Se.prototype,"delay",void 0);jt([(0,It.property)()],Se.prototype,"position",void 0);jt([(0,$t.jsonProperty)([])],Se.prototype,"ignoreMatchingElements",void 0);jt([(0,It.queryAssignedNodes)()],Se.prototype,"slotNodes",void 0);jt([(0,It.query)(".ft-tooltip--container")],Se.prototype,"container",void 0);jt([(0,It.query)(".ft-tooltip")],Se.prototype,"tooltip",void 0);jt([(0,It.query)(".ft-tooltip--content")],Se.prototype,"tooltipContent",void 0);jt([(0,It.state)()],Se.prototype,"visible",void 0)});var xm=l(()=>{"use strict"});var Sm,Em=l(()=>{"use strict";rc();Sm={"ft-tooltip":Se}});var Cm,Am=l(()=>{"use strict";Cm=c(f());Em();(0,Cm.customElements)(Sm)});var ic=l(()=>{"use strict";rc();Qa();xm();Am()});var wm,qt,Je,Om,po=l(()=>{"use strict";wm=c(y()),qt=c(f()),Je={size:qt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Om=[wm.css`
293
+ `}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 o=this.text;this.text={message:e},await this.show(r),this.text=o,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&&bp(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 ${$t.designSystemVariables.transitionDuration}, left ${$t.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$t.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Se.elementDefinitions={"ft-typography":V};Se.styles=zd;qt([ls()],Se.prototype,"text",void 0);qt([(0,It.property)({type:Boolean})],Se.prototype,"manual",void 0);qt([(0,It.property)({type:Boolean})],Se.prototype,"inline",void 0);qt([(0,$t.numberProperty)()],Se.prototype,"delay",void 0);qt([(0,It.property)()],Se.prototype,"position",void 0);qt([(0,$t.jsonProperty)([])],Se.prototype,"ignoreMatchingElements",void 0);qt([(0,It.queryAssignedNodes)()],Se.prototype,"slotNodes",void 0);qt([(0,It.query)(".ft-tooltip--container")],Se.prototype,"container",void 0);qt([(0,It.query)(".ft-tooltip")],Se.prototype,"tooltip",void 0);qt([(0,It.query)(".ft-tooltip--content")],Se.prototype,"tooltipContent",void 0);qt([(0,It.state)()],Se.prototype,"visible",void 0)});var Em=l(()=>{"use strict"});var Cm,Am=l(()=>{"use strict";ic();Cm={"ft-tooltip":Se}});var wm,Om=l(()=>{"use strict";wm=c(f());Am();(0,wm.customElements)(Cm)});var sc=l(()=>{"use strict";ic();Xa();Em();Om()});var _m,Kt,Je,Rm,ds=l(()=>{"use strict";_m=c(y()),Kt=c(f()),Je={size:Kt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Kt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Rm=[_m.css`
294
294
  :host, i.ft-icon {
295
295
  display: inline-flex;
296
296
  align-items: center;
@@ -338,12 +338,12 @@
338
338
  .ft-icon--material {
339
339
  font-family: ${Je.materialFontFamily}, "Material Icons", sans-serif;
340
340
  }
341
- `,qt.noTextSelect]});var et,oc=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(et||(et={}))});var Un=ji((M_,_m)=>{_m.exports=ftGlobals.litUnsafeHTML});function Vn(t,e){var r,i,s,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=SE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(s=(i=sc.get(a))!==null&&i!==void 0?i:sc.get(e))!==null&&s!==void 0?s:sc.get(n))!==null&&o!==void 0?o:b.UNKNOWN}var Oe,b,sc,SE,N_,nc=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;"})(Oe||(Oe={}));(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={}));sc=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])]),SE=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"]]);N_={[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 ns,Kr,Rm,Tm,as,ae,ac=l(()=>{"use strict";ns=c(y()),Kr=c(F()),Rm=c(f()),Tm=c(Un());nc();po();oc();as=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},ae=class extends Rm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ns.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,r=e!==et.material||!!this.value;return ns.html`
341
+ `,Kt.noTextSelect]});var et,oc=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(et||(et={}))});var Vn=ji((F_,Tm)=>{Tm.exports=ftGlobals.litUnsafeHTML});function zn(t,e){var r,i,o,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=CE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(o=(i=nc.get(a))!==null&&i!==void 0?i:nc.get(e))!==null&&o!==void 0?o:nc.get(n))!==null&&s!==void 0?s:v.UNKNOWN}var _e,v,nc,CE,B_,ac=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;"})(_e||(_e={}));(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;"})(v||(v={}));nc=new Map([...["abw"].map(t=>[t,v.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,v.AUDIO]),...["avi"].map(t=>[t,v.AVI]),...["chm","xhs"].map(t=>[t,v.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,v.CODE]),...["csv"].map(t=>[t,v.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,v.DITA]),...["epub"].map(t=>[t,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,v.EXCEL]),...["flac"].map(t=>[t,v.FLAC]),...["gif"].map(t=>[t,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,v.GZIP]),...["html","htm","xhtml"].map(t=>[t,v.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,v.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,v.JPEG]),...["json"].map(t=>[t,v.JSON]),...["m4a","m4p"].map(t=>[t,v.M4A]),...["mov","qt"].map(t=>[t,v.MOV]),...["mp3"].map(t=>[t,v.MP3]),...["mp4","m4v"].map(t=>[t,v.MP4]),...["ogg","oga"].map(t=>[t,v.OGG]),...["pdf","ps"].map(t=>[t,v.PDF]),...["png"].map(t=>[t,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,v.POWERPOINT]),...["rar"].map(t=>[t,v.RAR]),...["stp"].map(t=>[t,v.STP]),...["txt","rtf","md","mdown"].map(t=>[t,v.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,v.VIDEO]),...["wav"].map(t=>[t,v.WAV]),...["wma"].map(t=>[t,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,v.WORD]),...["xml","xsl","rdf"].map(t=>[t,v.XML]),...["yaml","yml","x-yaml"].map(t=>[t,v.YAML]),...["zip"].map(t=>[t,v.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"]]);B_={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"}});var oo,Kr,km,Lm,no,ae,lc=l(()=>{"use strict";oo=c(y()),Kr=c(F()),km=c(f()),Lm=c(Vn());ac();ds();oc();no=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ae=class extends km.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=oo.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,r=e!==et.material||!!this.value;return oo.html`
342
342
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
343
- ${(0,Tm.unsafeHTML)(this.resolvedIcon)}
343
+ ${(0,Lm.unsafeHTML)(this.resolvedIcon)}
344
344
  <slot ?hidden=${r}></slot>
345
345
  </i>
346
- `}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 et.file_format:this.resolvedIcon=(e=b[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case et.material:this.resolvedIcon=this.value||ns.nothing;break;default:this.resolvedIcon=(r=Oe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Om;as([(0,Kr.property)()],ae.prototype,"variant",void 0);as([(0,Kr.property)()],ae.prototype,"value",void 0);as([(0,Kr.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);as([(0,Kr.state)()],ae.prototype,"resolvedIcon",void 0);as([(0,Kr.query)("slot")],ae.prototype,"slottedContent",void 0)});var km,Lm=l(()=>{"use strict";ac();km={"ft-icon":ae}});var $m,Im=l(()=>{"use strict";$m=c(f());Lm();(0,$m.customElements)(km)});var _r=l(()=>{"use strict";po();oc();ac();nc();Im()});var Dm,ls,_i,Pm,zn=l(()=>{"use strict";Dm=c(y()),ls=c(f()),_i={color:ls.FtCssVariableFactory.extend("--ft-loader-color","",ls.designSystemVariables.colorPrimary),size:ls.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Pm=Dm.css`
346
+ `}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 et.file_format:this.resolvedIcon=(e=v[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case et.material:this.resolvedIcon=this.value||oo.nothing;break;default:this.resolvedIcon=(r=_e[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Rm;no([(0,Kr.property)()],ae.prototype,"variant",void 0);no([(0,Kr.property)()],ae.prototype,"value",void 0);no([(0,Kr.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);no([(0,Kr.state)()],ae.prototype,"resolvedIcon",void 0);no([(0,Kr.query)("slot")],ae.prototype,"slottedContent",void 0)});var $m,Im=l(()=>{"use strict";lc();$m={"ft-icon":ae}});var Pm,Dm=l(()=>{"use strict";Pm=c(f());Im();(0,Pm.customElements)($m)});var _r=l(()=>{"use strict";ds();oc();lc();ac();Dm()});var Mm,ao,Ri,Nm,Hn=l(()=>{"use strict";Mm=c(y()),ao=c(f()),Ri={color:ao.FtCssVariableFactory.extend("--ft-loader-color","",ao.designSystemVariables.colorPrimary),size:ao.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Nm=Mm.css`
347
347
  :host {
348
348
  line-height: 0;
349
349
  }
@@ -352,8 +352,8 @@
352
352
  display: inline-block;
353
353
  position: relative;
354
354
 
355
- width: ${_i.size};
356
- height: ${_i.size};
355
+ width: ${Ri.size};
356
+ height: ${Ri.size};
357
357
  }
358
358
 
359
359
  .ft-loader div {
@@ -362,7 +362,7 @@
362
362
  width: 25%;
363
363
  height: 25%;
364
364
  border-radius: 50%;
365
- background: ${_i.color};
365
+ background: ${Ri.color};
366
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
367
367
  }
368
368
 
@@ -409,17 +409,17 @@
409
409
  transform: translate(0, 0);
410
410
  }
411
411
  100% {
412
- transform: translate(calc(0.35 * ${_i.size}), 0);
412
+ transform: translate(calc(0.35 * ${Ri.size}), 0);
413
413
  }
414
414
  }
415
- `});var Mm=l(()=>{"use strict"});var Nm,Fm,Ri,lc=l(()=>{"use strict";Nm=c(y()),Fm=c(f());zn();Ri=class extends Fm.FtLitElement{render(){return Nm.html`
415
+ `});var Fm=l(()=>{"use strict"});var Bm,Um,Ti,cc=l(()=>{"use strict";Bm=c(y()),Um=c(f());Hn();Ti=class extends Um.FtLitElement{render(){return Bm.html`
416
416
  <div class="ft-loader">
417
417
  <div></div>
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  </div>
422
- `}};Ri.styles=Pm});var Bm,Um=l(()=>{"use strict";lc();Bm={"ft-loader":Ri}});var Vm,zm=l(()=>{"use strict";Vm=c(f());Um();(0,Vm.customElements)(Bm)});var Hm=l(()=>{"use strict";zn();Mm();lc();zm()});var lr,jm=l(()=>{Ha();lr=t=>t??Ae});var Hn=l(()=>{jm()});var Wm,D,qm,I,Km,cc,cr,Gm,Ti=l(()=>{"use strict";Wm=c(y()),D=c(f());vr();Bt();zn();po();qm=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),I={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:qm,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ft.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",qm),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Km=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),cc={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Km,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Km)},cr={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Gm=Wm.css`
422
+ `}};Ti.styles=Nm});var Vm,zm=l(()=>{"use strict";cc();Vm={"ft-loader":Ti}});var Hm,jm=l(()=>{"use strict";Hm=c(f());zm();(0,Hm.customElements)(Vm)});var qm=l(()=>{"use strict";Hn();Fm();cc();jm()});var cr,Km=l(()=>{ja();cr=t=>t??we});var jn=l(()=>{Km()});var Qm,P,Wm,I,Gm,uc,ur,Xm,ki=l(()=>{"use strict";Qm=c(y()),P=c(f());br();Ut();Hn();ds();Wm=P.FtCssVariableFactory.extend("--ft-button-color","",P.designSystemVariables.colorPrimary),I={backgroundColor:P.FtCssVariableFactory.extend("--ft-button-background-color","",P.designSystemVariables.colorSurface),borderRadius:P.FtCssVariableFactory.extend("--ft-button-border-radius","",P.designSystemVariables.borderRadiusL),color:Wm,fontSize:P.FtCssVariableFactory.extend("--ft-button-font-size","",Bt.fontSize),iconSize:P.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:P.FtCssVariableFactory.extend("--ft-button-ripple-color","",Wm),verticalPadding:P.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:P.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:P.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},Gm=P.FtCssVariableFactory.extend("--ft-button-primary-color","",P.FtCssVariableFactory.extend("--ft-button-color","",P.designSystemVariables.colorOnPrimary)),uc={backgroundColor:P.FtCssVariableFactory.extend("--ft-button-primary-background-color","",P.FtCssVariableFactory.extend("--ft-button-background-color","",P.designSystemVariables.colorPrimary)),color:Gm,rippleColor:P.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Gm)},ur={borderRadius:P.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",P.FtCssVariableFactory.extend("--ft-button-border-radius","",P.designSystemVariables.borderRadiusM)),verticalPadding:P.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:P.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:P.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xm=Qm.css`
423
423
  :host {
424
424
  display: inline-block;
425
425
  max-width: 100%;
@@ -450,7 +450,7 @@
450
450
  }
451
451
 
452
452
  .ft-button:focus-visible {
453
- outline: 2px solid ${D.designSystemVariables.colorPrimary};
453
+ outline: 2px solid ${P.designSystemVariables.colorPrimary};
454
454
  outline-offset: 2px;
455
455
  }
456
456
 
@@ -466,9 +466,9 @@
466
466
 
467
467
  --button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
468
468
  --button-internal-color: ${I.color};
469
- ${(0,D.setVariable)(Je.size,I.iconSize)};
470
- ${(0,D.setVariable)(j.color,I.rippleColor)};
471
- ${(0,D.setVariable)(j.borderRadius,I.borderRadius)};
469
+ ${(0,P.setVariable)(Je.size,I.iconSize)};
470
+ ${(0,P.setVariable)(j.color,I.rippleColor)};
471
+ ${(0,P.setVariable)(j.borderRadius,I.borderRadius)};
472
472
 
473
473
  border-radius: ${I.borderRadius};
474
474
  padding: ${I.verticalPadding} ${I.horizontalPadding};
@@ -482,13 +482,13 @@
482
482
  }
483
483
 
484
484
  .ft-button.ft-button--dense {
485
- padding: ${cr.verticalPadding} ${cr.horizontalPadding};
486
- border-radius: ${cr.borderRadius};
487
- ${(0,D.setVariable)(j.borderRadius,cr.borderRadius)};
485
+ padding: ${ur.verticalPadding} ${ur.horizontalPadding};
486
+ border-radius: ${ur.borderRadius};
487
+ ${(0,P.setVariable)(j.borderRadius,ur.borderRadius)};
488
488
  }
489
489
 
490
490
  .ft-button.ft-button--dense.ft-button--outlined {
491
- padding: calc(${cr.verticalPadding} - 1px) calc(${cr.horizontalPadding} - 1px);
491
+ padding: calc(${ur.verticalPadding} - 1px) calc(${ur.horizontalPadding} - 1px);
492
492
  }
493
493
 
494
494
  .ft-button:not([disabled]):hover {
@@ -500,7 +500,7 @@
500
500
  }
501
501
 
502
502
  .ft-button--round.ft-button--dense {
503
- border-radius: calc(var(--button-internal-line-height) / 2 + ${cr.verticalPadding});
503
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ur.verticalPadding});
504
504
  }
505
505
 
506
506
  .ft-button[disabled] {
@@ -509,9 +509,9 @@
509
509
  }
510
510
 
511
511
  .ft-button.ft-button--primary {
512
- background-color: ${cc.backgroundColor};
513
- --button-internal-color: ${cc.color};
514
- ${(0,D.setVariable)(j.color,cc.rippleColor)};
512
+ background-color: ${uc.backgroundColor};
513
+ --button-internal-color: ${uc.color};
514
+ ${(0,P.setVariable)(j.color,uc.rippleColor)};
515
515
  }
516
516
 
517
517
  .ft-button--label {
@@ -521,12 +521,12 @@
521
521
  text-overflow: ellipsis;
522
522
  display: block;
523
523
  margin: 0 ${I.iconPadding};
524
- ${(0,D.setVariable)(Ft.fontSize,"1em")};
525
- ${(0,D.setVariable)(Ft.lineHeight,"var(--button-internal-line-height)")};
524
+ ${(0,P.setVariable)(Bt.fontSize,"1em")};
525
+ ${(0,P.setVariable)(Bt.lineHeight,"var(--button-internal-line-height)")};
526
526
  }
527
527
 
528
528
  .ft-button--dense .ft-button--label {
529
- margin: 0 ${cr.iconPadding};
529
+ margin: 0 ${ur.iconPadding};
530
530
  }
531
531
 
532
532
  .ft-button--label.ft-button--label-no-text {
@@ -544,8 +544,8 @@
544
544
  }
545
545
 
546
546
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
547
- margin: 0 calc(${cr.horizontalPadding} * -1);
548
- padding: 0 ${cr.verticalPadding};
547
+ margin: 0 calc(${ur.horizontalPadding} * -1);
548
+ padding: 0 ${ur.verticalPadding};
549
549
  }
550
550
 
551
551
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -553,10 +553,10 @@
553
553
  }
554
554
 
555
555
  ft-loader {
556
- ${(0,D.setVariable)(_i.size,I.iconSize)};
557
- ${(0,D.setVariable)(_i.color,"var(--button-internal-color)")};
556
+ ${(0,P.setVariable)(Ri.size,I.iconSize)};
557
+ ${(0,P.setVariable)(Ri.color,"var(--button-internal-color)")};
558
558
  }
559
- `});var ur,Wr,jn,Z,le,w,uc=l(()=>{"use strict";ur=c(f());Xe();ic();_r();Hm();Wr=c(y()),jn=c(nt()),Z=c(F());Hn();xe();Ti();le=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},w=class t extends(0,ur.toFtFormComponent)(ur.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",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":ur.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Wr.html`
559
+ `});var dr,Wr,qn,Z,le,w,dc=l(()=>{"use strict";dr=c(f());Xe();sc();_r();qm();Wr=c(y()),qn=c(nt()),Z=c(F());jn();xe();ki();le=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},w=class t extends(0,dr.toFtFormComponent)(dr.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",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 o={"ft-button--label":!0,"ft-safari-ellipsis-fix":dr.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=Wr.html`
560
560
  <ft-ripple part="ripple"
561
561
  ?disabled=${this.isDisabled()}
562
562
  ?activated=${this.activated}
@@ -564,7 +564,7 @@
564
564
  <ft-typography part="label"
565
565
  variant="${X.button}"
566
566
  element="span"
567
- class="${(0,jn.classMap)(s)}">
567
+ class="${(0,qn.classMap)(o)}">
568
568
  <slot></slot>
569
569
  </ft-typography>
570
570
  ${this.resolveIcon()}
@@ -572,19 +572,19 @@
572
572
  <a href="${n}"
573
573
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
574
574
  part="button"
575
- class="${(0,jn.classMap)(this.buttonClasses)}"
576
- aria-label="${lr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
575
+ class="${(0,qn.classMap)(this.buttonClasses)}"
576
+ aria-label="${cr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
577
577
  ?disabled=${this.isDisabled()}>
578
- ${o}
578
+ ${s}
579
579
  </a>
580
580
  `:Wr.html`
581
581
  <button part="button"
582
- class="${(0,jn.classMap)(this.buttonClasses)}"
583
- aria-label="${lr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
- aria-haspopup="${lr(this.ariaHasPopup)}"
585
- aria-pressed="${lr(this.ariaPressed)}"
582
+ class="${(0,qn.classMap)(this.buttonClasses)}"
583
+ aria-label="${cr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
+ aria-haspopup="${cr(this.ariaHasPopup)}"
585
+ aria-pressed="${cr(this.ariaPressed)}"
586
586
  ?disabled=${this.isDisabled()}>
587
- ${o}
587
+ ${s}
588
588
  </button>
589
589
  `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Wr.html`
590
590
  <ft-tooltip part="tooltip"
@@ -597,11 +597,11 @@
597
597
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
598
598
  `:Wr.html`
599
599
  <slot part="icon" name="icon"></slot>
600
- `}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)}};w.elementDefinitions={"ft-ripple":k,"ft-tooltip":Se,"ft-icon":ae,"ft-loader":Ri,"ft-typography":V};w.styles=[ur.safariEllipsisFix,Gm,ur.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});le([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);le([(0,Z.property)()],w.prototype,"icon",void 0);le([(0,Z.property)()],w.prototype,"iconVariant",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);le([(0,Z.property)()],w.prototype,"label",void 0);le([(0,Z.property)()],w.prototype,"type",void 0);le([(0,Z.property)()],w.prototype,"href",void 0);le([(0,Z.property)()],w.prototype,"target",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);le([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);le([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);le([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);le([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);le([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);le([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);le([(0,Z.state)()],w.prototype,"hasTextContent",void 0);le([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);le([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Qm=l(()=>{"use strict"});var Xm,Ym=l(()=>{"use strict";uc();Xm={"ft-button":w}});var Zm,Jm=l(()=>{"use strict";Zm=c(f());Ym();(0,Zm.customElements)(Xm)});var Kt=l(()=>{"use strict";uc();Ti();Qm();Jm()});var eg,J,ie,dc,cs=l(()=>{"use strict";eg=c(y()),J=c(f());Kt();ie={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)},dc=eg.css`
600
+ `}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)}};w.elementDefinitions={"ft-ripple":k,"ft-tooltip":Se,"ft-icon":ae,"ft-loader":Ti,"ft-typography":V};w.styles=[dr.safariEllipsisFix,Xm,dr.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});le([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);le([(0,Z.property)()],w.prototype,"icon",void 0);le([(0,Z.property)()],w.prototype,"iconVariant",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);le([(0,Z.property)()],w.prototype,"label",void 0);le([(0,Z.property)()],w.prototype,"type",void 0);le([(0,Z.property)()],w.prototype,"href",void 0);le([(0,Z.property)()],w.prototype,"target",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);le([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);le([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);le([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);le([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);le([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);le([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);le([(0,Z.state)()],w.prototype,"hasTextContent",void 0);le([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);le([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Ym=l(()=>{"use strict"});var Zm,Jm=l(()=>{"use strict";dc();Zm={"ft-button":w}});var eg,tg=l(()=>{"use strict";eg=c(f());Jm();(0,eg.customElements)(Zm)});var Wt=l(()=>{"use strict";dc();ki();Ym();tg()});var rg,ee,ie,pc,lo=l(()=>{"use strict";rg=c(y()),ee=c(f());Wt();ie={height:ee.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ee.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ee.designSystemVariables.borderRadiusS),desktopFiltersHeight:ee.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ee.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ee.FtCssVariableFactory.extend("--ft-search-input-background-color","",ee.designSystemVariables.colorSurface),colorOnSurface:ee.FtCssVariableFactory.extend("--ft-search-input-color","",ee.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ee.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ee.designSystemVariables.colorOnSurfaceMedium),colorOutline:ee.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ee.designSystemVariables.colorOutline),elevation02:ee.FtCssVariableFactory.extend("--ft-search-input-elevation","",ee.designSystemVariables.elevation02),focusOutlineColor:ee.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ee.designSystemVariables.colorPrimary),buttonColor:ee.FtCssVariableFactory.extend("--ft-search-input-button-color","",ee.designSystemVariables.colorPrimary),buttonRippleColor:ee.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ee.designSystemVariables.colorPrimary)},pc=rg.css`
601
601
  * {
602
602
  box-sizing: border-box;
603
- ${(0,J.setVariable)(I.color,ie.buttonColor)};
604
- ${(0,J.setVariable)(I.rippleColor,ie.buttonRippleColor)};
603
+ ${(0,ee.setVariable)(I.color,ie.buttonColor)};
604
+ ${(0,ee.setVariable)(I.rippleColor,ie.buttonRippleColor)};
605
605
  }
606
606
 
607
607
  .ft-search-input {
@@ -659,7 +659,7 @@
659
659
  .ft-search-input > ft-button,
660
660
  .ft-search-input--actions ft-button {
661
661
  flex-shrink: 0;
662
- ${(0,J.setVariable)(I.backgroundColor,"transparent")};
662
+ ${(0,ee.setVariable)(I.backgroundColor,"transparent")};
663
663
  }
664
664
 
665
665
  .ft-search-input .ft-search-input--launch-search,
@@ -671,15 +671,15 @@
671
671
  height: 20px;
672
672
  border-right: 1px solid ${ie.colorOutline};
673
673
  }
674
- `});var tg,rg,qn,pc,Kn=l(()=>{"use strict";tg=c(y()),rg=c(f()),qn={highlightBackgroundColor:rg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},pc=tg.css`
674
+ `});var ig,sg,Kn,hc,Wn=l(()=>{"use strict";ig=c(y()),sg=c(f()),Kn={highlightBackgroundColor:sg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},hc=ig.css`
675
675
  .kwicmatch {
676
676
  font-weight: 700;
677
- background-color: ${qn.highlightBackgroundColor};
677
+ background-color: ${Kn.highlightBackgroundColor};
678
678
  }
679
- `});var ig,og,Wn,hc,Gn=l(()=>{"use strict";ig=c(y()),og=c(f()),Wn={highlightBackgroundColor:og.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},hc=ig.css`
679
+ `});var og,ng,Gn,fc,Qn=l(()=>{"use strict";og=c(y()),ng=c(f()),Gn={highlightBackgroundColor:ng.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},fc=og.css`
680
680
  .kwicmatch {
681
681
  font-weight: 700;
682
- background-color: ${Wn.highlightBackgroundColor};
682
+ background-color: ${Gn.highlightBackgroundColor};
683
683
  }
684
684
 
685
685
  a {
@@ -690,11 +690,11 @@
690
690
  a:focus {
691
691
  outline: revert;
692
692
  }
693
- `});function ug(t){var e;return((e=(0,us.accessResult)(t))===null||e===void 0?void 0:e.openMode)===Sn.EXTERNAL}function Yn(t){return ug(t)?(0,us.accessResult)(t).originUrl:(0,us.accessResultUrl)(t)}function dg(t,e){return lr(e&&ug(t)?"_blank":void 0)}var us,yc=l(()=>{"use strict";jr();Hn();us=c(f())});var Li,fo,Zn,Jn,ea,ps,hs=l(()=>{"use strict";Li=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},fo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Zn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},Jn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},ea=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},ps=class t extends Event{constructor(){super(t.eventName)}};ps.eventName="search-context-clear-all-filters"});var gg,AE,vc,xc=l(()=>{"use strict";gg=c(y()),AE={},vc=gg.css`
694
- `});var yg=l(()=>{"use strict"});var Wt,mo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Wt||(Wt={}))});var bg,wE,vg,xg=l(()=>{"use strict";bg=c(f()),wE={setRequest:(t,e)=>{t.request=e.payload}},vg=t=>bg.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},reducers:wE})});var ta,Sg=l(()=>{"use strict";Ht();ta=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 getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}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 ye,Eg,Cg,go,Sc=l(()=>{"use strict";mo();ye=c(f());xg();jr();Sg();hs();Ht();Eg=t=>t.request.virtualField===to.TITLE_ONLY&&t.request.scope===ro.DOCUMENTS,Cg=t=>t.request.keywordMatch==xn.MANDATORY,go=class t extends ye.FtStateManager{static build(e,r){return new t(vg(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 ye.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Wt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let s;if(Jo(S.getState().session,ge.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.localesDebouncer=new ye.Debouncer(10),this.searchDebouncer=new ye.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=S.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.suggestDebouncer=new ye.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:(s=i.request.sort)!==null&&s!==void 0?s:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(o=S.getState().stickyFilters)===null||o===void 0?void 0:o.id:void 0}},this.service=r??new ta,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new ye.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new ye.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new ye.ReduxWatcher(S,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),S.addEventListener(sr.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(S.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),S.removeEventListener(sr.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return S.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,ye.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,i;let s=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],o=this.store.getState().request.contentLocale;if(e!=o){if(s.length>0){let n=a=>s.some(u=>u.lang==a);n(e)||(e=n(o)?o:s[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=es.store.getState().localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&es.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,ye.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:to.TITLE_ONLY,scope:ro.DOCUMENTS},!0):this.updateSearchRequest({virtualField:to.EVERYWHERE,scope:ro.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Eg(this.store.getState())}get keywordMatch(){return Cg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new ps)}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})}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)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,s,o,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Wt.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,ye.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=((s=this.store.getState().results)!==null&&s!==void 0?s:[]).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 ye.CanceledPromiseError||(console.error(a),(n=this.errorHandler)===null||n===void 0||n.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,ye.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof ye.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 yo,Cc,Ag,Ac,wg,Ec,OE,_E,Dt,$i=l(()=>{"use strict";yo=c(f()),Cc=c(F());mo();Sc();Ag=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},Ac=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},wg=Symbol("registerInterval"),Ec=Symbol("registerAttempts"),OE=40,_E=(0,yo.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,(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[Ec]=0,this.tryToRegisterToContext(),this[wg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ec]>OE?window.clearInterval(this[wg]):(this[Ec]++,this.dispatchEvent(new Ac))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ag([(0,Cc.state)()],e.prototype,"stateManager",void 0),Ag([(0,Cc.state)({hasChanged:yo.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Dt=class extends _E(yo.FtLitElementRedux){}});function fs(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function ms(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 wc=l(()=>{"use strict"});var ia,ra,Og=l(()=>{"use strict";ia=c(f());jr();Ht();wc();ra=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 Tn,this.resultsWatcher=(0,ia.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}=S.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}=S.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:xi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:fs(e.metadataFilters),facets:e.metadataFilters.map(o=>ms(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:xi.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==nr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:xi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:fs(i.metadataFilters),facets:i.metadataFilters.map(n=>ms(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==nr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:xi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:fs(i.metadataFilters),facets:i.metadataFilters.map(n=>ms(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 nr.MAP:return{id:e.map.mapId,title:e.map.title,type:Hr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Hr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Hr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,ia.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var _g,Gt,tt,_e,ee,Oc=l(()=>{"use strict";_g=c(y()),Gt=c(F()),tt=c(f());xc();$i();Ht();Og();hs();_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},ee=class extends tt.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=go.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 ra(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.addStore(S)}render(){return _g.html`
693
+ `});function pg(t){var e;return((e=(0,co.accessResult)(t))===null||e===void 0?void 0:e.openMode)===En.EXTERNAL}function Zn(t,e){return pg(t)?(0,co.accessResult)(t).originUrl:(0,co.accessResultUrl)(t,e)}function hg(t,e){return cr(e&&pg(t)?"_blank":void 0)}var co,vc=l(()=>{"use strict";jr();jn();co=c(f())});var $i,hs,Jn,ea,ta,po,ho=l(()=>{"use strict";$i=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},hs=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Jn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},ea=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},ta=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},po=class t extends Event{constructor(){super(t.eventName)}};po.eventName="search-context-clear-all-filters"});var vg,OE,xc,Sc=l(()=>{"use strict";vg=c(y()),OE={},xc=vg.css`
694
+ `});var bg=l(()=>{"use strict"});var Gt,fs=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Gt||(Gt={}))});var xg,_E,Sg,Eg=l(()=>{"use strict";xg=c(f()),_E={setRequest:(t,e)=>{t.request=e.payload}},Sg=t=>xg.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:_E})});var ra,Cg=l(()=>{"use strict";jt();ra=class extends Ke{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,o)=>i.id.localeCompare(o.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 getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}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,o)=>i.localeCompare(o))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var ye,Ag,wg,ms,Ec=l(()=>{"use strict";fs();ye=c(f());Eg();jr();Cg();ho();jt();Ag=t=>t.request.virtualField===ts.TITLE_ONLY&&t.request.scope===rs.DOCUMENTS,wg=t=>t.request.keywordMatch==Sn.MANDATORY,ms=class t extends ye.FtStateManager{static build(e,r){return new t(Sg(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 ye.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Gt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let o;if(Zs(S.getState().session,ge.DEBUG_USER)){let s=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");o=s.overrideEnabled?s.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:o,changedByConfiguration:!0})},this.localesDebouncer=new ye.Debouncer(10),this.searchDebouncer=new ye.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest())),this.buildSearchRequest=(i=this.store.getState())=>{var o;return{...i.request,facets:this.facetIds.map(s=>({id:s})),stickyFiltersId:this.applyStickyFilters?(o=S.getState().stickyFilters)===null||o===void 0?void 0:o.id:void 0}},this.suggestDebouncer=new ye.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest())),this.buildSuggestRequest=(i=this.store.getState())=>{var o,s;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(s=i.request.sort)!==null&&s!==void 0?s:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(o=S.getState().stickyFilters)===null||o===void 0?void 0:o.id:void 0}},this.service=r??new ra,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new ye.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new ye.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new ye.ReduxWatcher(S,i=>{var o;return(o=i.stickyFilters)===null||o===void 0?void 0:o.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),S.addEventListener(nr.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(S.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),S.removeEventListener(nr.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return S.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,ye.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,i;let o=(i=this.store.getState().locales)!==null&&i!==void 0?i:[],s=this.store.getState().request.contentLocale;if(e!=s){if(o.length>0){let n=a=>o.some(u=>u.lang==a);n(e)||(e=n(s)?s:o[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=Js.store.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Js.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,ye.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 o=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...o},!0),e;let s=(i=this.sortOptions.find(n=>n.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:s.id,...o},!0),s.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:ts.TITLE_ONLY,scope:rs.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ts.EVERYWHERE,scope:rs.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Ag(this.store.getState())}get keywordMatch(){return wg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new po)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(o=>o!=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(o=>({id:o}));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,o={key:e,valueFilter:{values:r,negative:!1}},s=[...i.filter(n=>!n.valueFilter),...i.filter(n=>n.valueFilter&&n.key!==o.key),o];this.setFilters(s)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},s=[...i.filter(n=>!n.dateFilter),...i.filter(n=>n.dateFilter&&n.key!==o.key),o];this.setFilters(s)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.dateFilter),...r.filter(o=>o.dateFilter&&o.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let o=this.store.getState().request.metadataFilters,s={key:e,rangeFilter:{from:r,to:i}},n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==s.key),s];this.setFilters(n)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.rangeFilter),...r.filter(o=>o.rangeFilter&&o.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)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,o,s,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Gt.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,ye.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=((s=this.store.getState().results)!==null&&s!==void 0?s:[]).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 ye.CanceledPromiseError||(console.error(a),(o=this.errorHandler)===null||o===void 0||o.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,ye.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof ye.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 gs,fo,Cc,wc,Og,Ac,RE,TE,Pt,Ii=l(()=>{"use strict";gs=c(f()),fo=c(F());fs();Ec();Cc=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},wc=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Og=Symbol("registerInterval"),Ac=Symbol("registerAttempts"),RE=40,TE=(0,gs.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,s,n;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.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[Ac]=0,this.tryToRegisterToContext(),this[Og]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ac]>RE?window.clearInterval(this[Og]):(this[Ac]++,this.dispatchEvent(new wc(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Cc([(0,fo.state)()],e.prototype,"stateManager",void 0),Cc([(0,fo.state)({hasChanged:gs.hasChanged})],e.prototype,"neededSearchRequests",void 0),Cc([(0,fo.property)()],e.prototype,"searchRegistrationId",void 0),e}),Pt=class extends TE(gs.FtLitElementRedux){}});function mo(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function go(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 Oc=l(()=>{"use strict"});var sa,ia,_g=l(()=>{"use strict";sa=c(f());jr();jt();Oc();ia=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,o])=>{if(!this.canSendEvent()||!i||!o)return;let s=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(s,i,o):this.sendDocumentSearchEvent(s,i,o)},this.eventsService=r??new kn,this.resultsWatcher=(0,sa.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}=S.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}=S.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Si.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:mo(e.metadataFilters),facets:e.metadataFilters.map(s=>go(s))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(s=>{var n;return s.key==="ft:publicationId"&&((n=s.valueFilter)===null||n===void 0?void 0:n.values[0])===this.document.id})!==void 0){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Si.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(s)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==ar.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Si.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mo(i.metadataFilters),facets:i.metadataFilters.map(n=>go(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(s)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==ar.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Si.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mo(i.metadataFilters),facets:i.metadataFilters.map(n=>go(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(s)}convertDocument(e){switch(e.type){case ar.MAP:return{id:e.map.mapId,title:e.map.title,type:Hr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ar.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Hr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ar.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Hr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ar.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ar.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,sa.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Rg,Dt,tt,Ee,J,_c=l(()=>{"use strict";Rg=c(y()),Dt=c(F()),tt=c(f());Sc();Ii();jt();_g();ho();Ee=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},J=class extends tt.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=ms.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 ia(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.addStore(S)}render(){return Rg.html`
695
695
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
696
696
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
697
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Jn(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ea(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Zn(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)}};ee.elementDefinitions={};ee.styles=vc;_e([(0,tt.redux)({store:S.name})],ee.prototype,"session",void 0);_e([(0,Gt.property)()],ee.prototype,"query",void 0);_e([(0,Gt.property)()],ee.prototype,"contentLocale",void 0);_e([(0,tt.numberProperty)()],ee.prototype,"pageSize",void 0);_e([(0,Gt.property)({type:Boolean})],ee.prototype,"searchInDocumentTitlesOnly",void 0);_e([(0,Gt.property)()],ee.prototype,"keywordMatch",void 0);_e([(0,Gt.property)()],ee.prototype,"scope",void 0);_e([(0,Gt.property)()],ee.prototype,"virtualField",void 0);_e([(0,Gt.property)({type:Boolean})],ee.prototype,"ignoreEmptyQuery",void 0);_e([(0,Gt.property)({type:Boolean})],ee.prototype,"applyStickyFilters",void 0);_e([(0,tt.redux)({store:S.name})],ee.prototype,"openExternalDocumentInNewTab",void 0);_e([(0,tt.jsonProperty)([])],ee.prototype,"filters",void 0);_e([(0,Gt.property)()],ee.prototype,"sortId",void 0);_e([(0,tt.jsonProperty)([])],ee.prototype,"sort",void 0);_e([(0,tt.jsonProperty)({})],ee.prototype,"otherQueryParams",void 0);_e([(0,tt.redux)({store:"search"})],ee.prototype,"request",void 0);_e([(0,tt.redux)({store:"search"})],ee.prototype,"paging",void 0);_e([(0,tt.redux)({store:"search",selector:t=>t.spellcheck})],ee.prototype,"spellcheckAutocorrect",void 0);_e([(0,tt.redux)({store:S.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],ee.prototype,"_appIntegrationInfoReady",void 0);_e([(0,Gt.property)({attribute:!1})],ee.prototype,"searchServiceProvider",void 0)});var Rg,Tg=l(()=>{"use strict";Oc();Rg={"ft-search-context":ee}});var kg,Lg=l(()=>{"use strict";kg=c(f());Tg();(0,kg.customElements)(Rg)});var $g={};ii($g,{FtSearchContext:()=>ee,FtSearchContextCssVariables:()=>AE,FtSearchStateManager:()=>go,convertMetadataFilterToAnalyticsFacet:()=>ms,getAnalyticsLastUpdate:()=>fs,keywordMatchSelector:()=>Cg,searchInDocumentTitlesOnlySelector:()=>Eg,styles:()=>vc});var Ig=l(()=>{"use strict";xc();yg();Oc();Sc();wc();Lg()});var Dg=l(()=>{"use strict"});var Rr,_c=l(()=>{"use strict";Lt();Rr=ar.build("designedSearchInput")});var Tr=ji((GT,Pg)=>{Pg.exports=ftGlobals.litRepeat});var Pt,Rc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Pt||(Pt={}))});var Mg,Ng,Tc=l(()=>{"use strict";Mg=c(y()),Ng=Mg.css`
697
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ea(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ta(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){if(e.stopPropagation(),e.detail.registrationId==this.registrationId){let r=e.composedPath()[0];this.register(r)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Jn(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)}};J.elementDefinitions={};J.styles=xc;Ee([(0,tt.redux)({store:S.name})],J.prototype,"session",void 0);Ee([(0,Dt.property)()],J.prototype,"query",void 0);Ee([(0,Dt.property)()],J.prototype,"contentLocale",void 0);Ee([(0,tt.numberProperty)()],J.prototype,"pageSize",void 0);Ee([(0,Dt.property)({type:Boolean})],J.prototype,"searchInDocumentTitlesOnly",void 0);Ee([(0,Dt.property)()],J.prototype,"keywordMatch",void 0);Ee([(0,Dt.property)()],J.prototype,"scope",void 0);Ee([(0,Dt.property)()],J.prototype,"virtualField",void 0);Ee([(0,Dt.property)()],J.prototype,"registrationId",void 0);Ee([(0,Dt.property)({type:Boolean})],J.prototype,"ignoreEmptyQuery",void 0);Ee([(0,Dt.property)({type:Boolean})],J.prototype,"applyStickyFilters",void 0);Ee([(0,tt.redux)({store:S.name})],J.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,tt.jsonProperty)([])],J.prototype,"filters",void 0);Ee([(0,Dt.property)()],J.prototype,"sortId",void 0);Ee([(0,tt.jsonProperty)([])],J.prototype,"sort",void 0);Ee([(0,tt.jsonProperty)({})],J.prototype,"otherQueryParams",void 0);Ee([(0,tt.redux)({store:"search"})],J.prototype,"request",void 0);Ee([(0,tt.redux)({store:"search"})],J.prototype,"paging",void 0);Ee([(0,tt.redux)({store:"search",selector:t=>t.spellcheck})],J.prototype,"spellcheckAutocorrect",void 0);Ee([(0,tt.redux)({store:S.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],J.prototype,"_appIntegrationInfoReady",void 0);Ee([(0,Dt.property)({attribute:!1})],J.prototype,"searchServiceProvider",void 0)});var Tg,kg=l(()=>{"use strict";_c();Tg={"ft-search-context":J}});var Lg,$g=l(()=>{"use strict";Lg=c(f());kg();(0,Lg.customElements)(Tg)});var Ig={};si(Ig,{FtSearchContext:()=>J,FtSearchContextCssVariables:()=>OE,FtSearchStateManager:()=>ms,convertMetadataFilterToAnalyticsFacet:()=>go,getAnalyticsLastUpdate:()=>mo,keywordMatchSelector:()=>wg,searchInDocumentTitlesOnlySelector:()=>Ag,styles:()=>xc});var Pg=l(()=>{"use strict";Sc();bg();_c();Ec();Oc();$g()});var Dg=l(()=>{"use strict"});var Rr,Rc=l(()=>{"use strict";Lt();Rr=lr.build("designedSearchInput")});var Tr=ji((XT,Mg)=>{Mg.exports=ftGlobals.litRepeat});var Mt,Tc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Mt||(Mt={}))});var Ng,Fg,kc=l(()=>{"use strict";Ng=c(y()),Fg=Ng.css`
698
698
  .ft-size-watcher--pixel {
699
699
  width: 0;
700
700
  height: 0;
@@ -713,11 +713,11 @@
713
713
  .ft-size-watcher--local .ft-size-watcher--watcher {
714
714
  width: 100%;
715
715
  }
716
- `});var Fg,Ii,oa,gs,kc,yt,Lc=l(()=>{"use strict";Fg=c(y()),Ii=c(F()),oa=c(f());Rc();Tc();gs=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},kc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},yt=class extends oa.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Pt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new oa.Debouncer}render(){return Fg.html`
716
+ `});var Bg,Pi,oa,yo,Lc,yt,$c=l(()=>{"use strict";Bg=c(y()),Pi=c(F()),oa=c(f());Tc();kc();yo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Lc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},yt=class extends oa.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Mt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new oa.Debouncer}render(){return Bg.html`
717
717
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
718
718
  <div class="ft-size-watcher--watcher"></div>
719
719
  </div>
720
- `}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=Pt.S:this.size<976?this.category=Pt.M:this.size<1024?this.category=Pt.L:this.size<1440?this.category=Pt.XL:this.category=Pt.XXL,this.dispatchEvent(new kc(this.size,this.category)))},this.debounceTimeout)}};yt.elementDefinitions={};yt.styles=Ng;gs([(0,Ii.property)({type:Number})],yt.prototype,"debounceTimeout",void 0);gs([(0,Ii.property)({type:Boolean})],yt.prototype,"local",void 0);gs([(0,Ii.property)({type:Number,reflect:!0})],yt.prototype,"size",void 0);gs([(0,Ii.property)({type:String,reflect:!0})],yt.prototype,"category",void 0);gs([(0,Ii.query)(".ft-size-watcher--watcher")],yt.prototype,"watcher",void 0)});var Bg,Ug=l(()=>{"use strict";Lc();Bg={"ft-size-watcher":yt}});var Vg,zg=l(()=>{"use strict";Vg=c(f());Ug();(0,Vg.customElements)(Bg)});var Hg=l(()=>{"use strict";Lc();Tc();Rc();zg()});function sa(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function jg(t){return sa(t).split("|").pop()}function qg(t){return sa(t).split("|").join(" > ")}function Kg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Kg(r,t.selected)),value:t.value}}function Wg(t){return(0,$c.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ic(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Kg(e,!1))}}function Gg(t){return(0,$c.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var $c,Dc=l(()=>{"use strict";$c=c(f())});var Qg,te,ys,Xg,Pc=l(()=>{"use strict";Qg=c(y()),te=c(f());Ti();Bt();ys={buttonMoreColor:te.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",te.designSystemVariables.colorOnSurface),borderRadiusM:te.FtCssVariableFactory.external(te.designSystemVariables.borderRadiusM,"Design system"),colorOutline:te.FtCssVariableFactory.external(te.designSystemVariables.colorOutline,"Design system"),colorOnSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:te.FtCssVariableFactory.external(te.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:te.FtCssVariableFactory.external(we.fontFamily,"Body2 typography"),fontSize:te.FtCssVariableFactory.external(we.fontSize,"Body2 typography"),fontWeight:te.FtCssVariableFactory.external(we.fontWeight,"Body2 typography"),letterSpacing:te.FtCssVariableFactory.external(we.letterSpacing,"Body2 typography"),lineHeight:te.FtCssVariableFactory.external(we.lineHeight,"Body2 typography"),textTransform:te.FtCssVariableFactory.external(we.textTransform,"Body2 typography")},Xg=Qg.css`
720
+ `}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=Mt.S:this.size<976?this.category=Mt.M:this.size<1024?this.category=Mt.L:this.size<1440?this.category=Mt.XL:this.category=Mt.XXL,this.dispatchEvent(new Lc(this.size,this.category)))},this.debounceTimeout)}};yt.elementDefinitions={};yt.styles=Fg;yo([(0,Pi.property)({type:Number})],yt.prototype,"debounceTimeout",void 0);yo([(0,Pi.property)({type:Boolean})],yt.prototype,"local",void 0);yo([(0,Pi.property)({type:Number,reflect:!0})],yt.prototype,"size",void 0);yo([(0,Pi.property)({type:String,reflect:!0})],yt.prototype,"category",void 0);yo([(0,Pi.query)(".ft-size-watcher--watcher")],yt.prototype,"watcher",void 0)});var Ug,Vg=l(()=>{"use strict";$c();Ug={"ft-size-watcher":yt}});var zg,Hg=l(()=>{"use strict";zg=c(f());Vg();(0,zg.customElements)(Ug)});var jg=l(()=>{"use strict";$c();kc();Tc();Hg()});function na(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function qg(t){return na(t).split("|").pop()}function Kg(t){return na(t).split("|").join(" > ")}function Wg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Wg(r,t.selected)),value:t.value}}function Gg(t){return(0,Ic.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Pc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Wg(e,!1))}}function Qg(t){return(0,Ic.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ic,Dc=l(()=>{"use strict";Ic=c(f())});var Xg,te,vo,Yg,Mc=l(()=>{"use strict";Xg=c(y()),te=c(f());ki();Ut();vo={buttonMoreColor:te.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",te.designSystemVariables.colorOnSurface),borderRadiusM:te.FtCssVariableFactory.external(te.designSystemVariables.borderRadiusM,"Design system"),colorOutline:te.FtCssVariableFactory.external(te.designSystemVariables.colorOutline,"Design system"),colorOnSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:te.FtCssVariableFactory.external(te.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:te.FtCssVariableFactory.external(Oe.fontFamily,"Body2 typography"),fontSize:te.FtCssVariableFactory.external(Oe.fontSize,"Body2 typography"),fontWeight:te.FtCssVariableFactory.external(Oe.fontWeight,"Body2 typography"),letterSpacing:te.FtCssVariableFactory.external(Oe.letterSpacing,"Body2 typography"),lineHeight:te.FtCssVariableFactory.external(Oe.lineHeight,"Body2 typography"),textTransform:te.FtCssVariableFactory.external(Oe.textTransform,"Body2 typography")},Yg=Xg.css`
721
721
  .ft-filter-level--container {
722
722
  display: flex;
723
723
  flex-direction: column;
@@ -732,14 +732,14 @@
732
732
  flex-shrink: 0;
733
733
  text-decoration: none;
734
734
  position: relative;
735
- border-radius: ${ys.borderRadiusM};
735
+ border-radius: ${vo.borderRadiusM};
736
736
  overflow: hidden;
737
737
  display: flex;
738
738
  align-items: center;
739
739
  padding: 4px 4px;
740
740
  gap: 4px;
741
741
  cursor: pointer;
742
- color: ${ys.colorOnSurface};
742
+ color: ${vo.colorOnSurface};
743
743
  }
744
744
 
745
745
  .ft-filter-level--go-back:focus {
@@ -768,11 +768,11 @@
768
768
  }
769
769
 
770
770
  ft-button {
771
- ${(0,te.setVariable)(I.color,ys.colorOnSurface)};
771
+ ${(0,te.setVariable)(I.color,vo.colorOnSurface)};
772
772
  }
773
773
 
774
774
  ft-button.ft-filter-level--display-more {
775
- ${(0,te.setVariable)(I.color,ys.buttonMoreColor)};
775
+ ${(0,te.setVariable)(I.color,vo.buttonMoreColor)};
776
776
  }
777
777
 
778
778
  ft-radio, ft-checkbox {
@@ -786,17 +786,17 @@
786
786
 
787
787
  .ft-filter-level--no-values {
788
788
  margin: 10px 0;
789
- color: ${ys.colorOnSurfaceMedium};
789
+ color: ${vo.colorOnSurfaceMedium};
790
790
  }
791
- `});var Pe,Yg,bt,Zg,Mc=l(()=>{"use strict";Pe=c(f()),Yg=c(y());xe();Xe();bt={textColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Pe.designSystemVariables.colorOnSurfaceHigh),fontSize:Pe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Pe.designSystemVariables.colorPrimary),checkColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Pe.designSystemVariables.colorOnPrimary),borderColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Pe.designSystemVariables.colorOnSurfaceMedium),disabledColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Pe.designSystemVariables.colorOnSurfaceDisabled),errorColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Pe.designSystemVariables.colorError)},Zg=Yg.css`
791
+ `});var De,Zg,vt,Jg,Nc=l(()=>{"use strict";De=c(f()),Zg=c(y());xe();Xe();vt={textColor:De.FtCssVariableFactory.extend("--ft-checkbox-text-color","",De.designSystemVariables.colorOnSurfaceHigh),fontSize:De.FtCssVariableFactory.extend("--ft-checkbox-font-size","",b.fontSize),activeColor:De.FtCssVariableFactory.extend("--ft-checkbox-active-color","",De.designSystemVariables.colorPrimary),checkColor:De.FtCssVariableFactory.extend("--ft-checkbox-check-color","",De.designSystemVariables.colorOnPrimary),borderColor:De.FtCssVariableFactory.extend("--ft-checkbox-border-color","",De.designSystemVariables.colorOnSurfaceMedium),disabledColor:De.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",De.designSystemVariables.colorOnSurfaceDisabled),errorColor:De.FtCssVariableFactory.extend("--ft-checkbox-error-color","",De.designSystemVariables.colorError)},Jg=Zg.css`
792
792
  * {
793
793
  box-sizing: border-box;
794
794
  }
795
795
 
796
796
  .ft-checkbox {
797
797
  box-sizing: border-box;
798
- color: ${bt.textColor};
799
- font-size: ${bt.fontSize};
798
+ color: ${vt.textColor};
799
+ font-size: ${vt.fontSize};
800
800
 
801
801
  display: inline-flex;
802
802
  align-items: center;
@@ -804,7 +804,7 @@
804
804
  }
805
805
 
806
806
  .ft-checkbox--disabled {
807
- color: ${bt.disabledColor};
807
+ color: ${vt.disabledColor};
808
808
  }
809
809
 
810
810
  input {
@@ -828,26 +828,26 @@
828
828
 
829
829
  .ft-checkbox--box {
830
830
  display: flex;
831
- border: 2px solid ${bt.borderColor};
831
+ border: 2px solid ${vt.borderColor};
832
832
  border-radius: 2px;
833
833
 
834
834
  width: 18px;
835
835
  height: 18px;
836
836
 
837
- color: ${bt.checkColor};
837
+ color: ${vt.checkColor};
838
838
  }
839
839
 
840
840
 
841
841
  .ft-checkbox--checked .ft-checkbox--box,
842
842
  .ft-checkbox--indeterminate .ft-checkbox--box {
843
- border-color: ${bt.activeColor};
844
- background-color: ${bt.activeColor};
843
+ border-color: ${vt.activeColor};
844
+ background-color: ${vt.activeColor};
845
845
  }
846
846
 
847
847
  .ft-checkbox--disabled .ft-checkbox--box {
848
- border-color: ${bt.disabledColor};
848
+ border-color: ${vt.disabledColor};
849
849
  background-color: transparent;
850
- color: ${bt.disabledColor};
850
+ color: ${vt.disabledColor};
851
851
  }
852
852
 
853
853
  .ft-checkbox--checkmark {
@@ -868,20 +868,20 @@
868
868
  }
869
869
 
870
870
  .ft-checkbox.ft-checkbox--error {
871
- color: ${bt.errorColor};
872
- ${(0,Pe.setVariable)(j.color,bt.errorColor)};
871
+ color: ${vt.errorColor};
872
+ ${(0,De.setVariable)(j.color,vt.errorColor)};
873
873
 
874
874
  .ft-checkbox--box {
875
- border-color: ${bt.errorColor};
875
+ border-color: ${vt.errorColor};
876
876
  }
877
877
 
878
878
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
879
879
  .ft-checkbox--box {
880
- background-color: ${bt.errorColor};
880
+ background-color: ${vt.errorColor};
881
881
  }
882
882
  }
883
883
  }
884
- `});var na,Qt,Jg,ey,kr,Nc,Me,Fc=l(()=>{"use strict";na=c(y()),Qt=c(F()),Jg=c(f()),ey=c(nt());Xe();xe();Mc();kr=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},Nc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Me=class extends Jg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}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 na.html`
884
+ `});var aa,Qt,ey,ty,kr,Fc,Me,Bc=l(()=>{"use strict";aa=c(y()),Qt=c(F()),ey=c(f()),ty=c(nt());Xe();xe();Nc();kr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Fc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Me=class extends ey.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}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 aa.html`
885
885
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
886
886
  <ft-ripple part="checkbox-ripple"
887
887
  ?disabled=${this.disabled}
@@ -903,19 +903,19 @@
903
903
  @change=${this.onChange}
904
904
  >
905
905
  </div>
906
- `}render(){return na.html`
907
- <label class="${(0,ey.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
906
+ `}render(){return aa.html`
907
+ <label class="${(0,ty.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
908
908
  ${this.renderBoxContainer()}
909
909
  <ft-typography variant="${X.body2}" part="checkbox-body">
910
910
  <slot @slotchange=${this.onSlotchange}></slot>
911
911
  </ft-typography>
912
912
  </label>
913
- `}renderBoxIcon(){return na.html`
913
+ `}renderBoxIcon(){return aa.html`
914
914
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
915
915
  <path class="ft-checkbox--checkmark-path" fill="none"
916
916
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
917
917
  </svg>
918
- `}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 Nc(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)}};Me.elementDefinitions={"ft-ripple":k,"ft-typography":V};Me.styles=Zg;kr([(0,Qt.property)()],Me.prototype,"name",void 0);kr([(0,Qt.property)()],Me.prototype,"value",void 0);kr([(0,Qt.property)({type:Boolean,reflect:!0})],Me.prototype,"checked",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"indeterminate",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"disabled",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"error",void 0);kr([(0,Qt.query)(".ft-checkbox")],Me.prototype,"container",void 0);kr([(0,Qt.query)("ft-ripple")],Me.prototype,"ripple",void 0);kr([(0,Qt.query)("input")],Me.prototype,"input",void 0)});var ty=l(()=>{"use strict"});var ry,iy=l(()=>{"use strict";Fc();ry={"ft-checkbox":Me}});var oy,sy=l(()=>{"use strict";oy=c(f());iy();(0,oy.customElements)(ry)});var ny=l(()=>{"use strict";Fc();Mc();ty();sy()});var ay,pt,Gr,ly,Bc=l(()=>{"use strict";ay=c(y()),pt=c(f());xe();Gr={textColor:pt.FtCssVariableFactory.extend("--ft-radio-text-color","",pt.designSystemVariables.colorOnSurfaceHigh),fontSize:pt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:pt.FtCssVariableFactory.extend("--ft-radio-border-color","",pt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ly=ay.css`
918
+ `}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 Fc(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)}};Me.elementDefinitions={"ft-ripple":k,"ft-typography":V};Me.styles=Jg;kr([(0,Qt.property)()],Me.prototype,"name",void 0);kr([(0,Qt.property)()],Me.prototype,"value",void 0);kr([(0,Qt.property)({type:Boolean,reflect:!0})],Me.prototype,"checked",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"indeterminate",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"disabled",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"error",void 0);kr([(0,Qt.query)(".ft-checkbox")],Me.prototype,"container",void 0);kr([(0,Qt.query)("ft-ripple")],Me.prototype,"ripple",void 0);kr([(0,Qt.query)("input")],Me.prototype,"input",void 0)});var ry=l(()=>{"use strict"});var iy,sy=l(()=>{"use strict";Bc();iy={"ft-checkbox":Me}});var oy,ny=l(()=>{"use strict";oy=c(f());sy();(0,oy.customElements)(iy)});var ay=l(()=>{"use strict";Bc();Nc();ry();ny()});var ly,pt,Gr,cy,Uc=l(()=>{"use strict";ly=c(y()),pt=c(f());xe();Gr={textColor:pt.FtCssVariableFactory.extend("--ft-radio-text-color","",pt.designSystemVariables.colorOnSurfaceHigh),fontSize:pt.FtCssVariableFactory.extend("--ft-radio-font-size","",b.fontSize),colorPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:pt.FtCssVariableFactory.extend("--ft-radio-border-color","",pt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},cy=ly.css`
919
919
  * {
920
920
  box-sizing: border-box;
921
921
  }
@@ -1004,8 +1004,8 @@
1004
1004
  .ft-radio ft-typography {
1005
1005
  padding-right: 2px;
1006
1006
  }
1007
- `});var cy,dr,uy,dy,Qr,aa,$e,Uc=l(()=>{"use strict";cy=c(y()),dr=c(F()),uy=c(f()),dy=c(nt());Xe();xe();Ls();Bc();Qr=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},aa=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},$e=class extends uy.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 cy.html`
1008
- <div class="${(0,dy.classMap)(this.radioClasses)}"
1007
+ `});var uy,pr,dy,py,Qr,la,$e,Vc=l(()=>{"use strict";uy=c(y()),pr=c(F()),dy=c(f()),py=c(nt());Xe();xe();$o();Uc();Qr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},la=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},$e=class extends dy.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 uy.html`
1008
+ <div class="${(0,py.classMap)(this.radioClasses)}"
1009
1009
  @click=${this.onClick}>
1010
1010
  <div class="ft-radio--box-container">
1011
1011
  <ft-ripple
@@ -1030,7 +1030,7 @@
1030
1030
  </ft-typography>
1031
1031
  </label>
1032
1032
  </div>
1033
- `}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 aa(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 aa(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())}};$e.elementDefinitions={"ft-ripple":k,"ft-typography":V};$e.styles=ly;Qr([(0,dr.property)()],$e.prototype,"name",void 0);Qr([(0,dr.property)()],$e.prototype,"value",void 0);Qr([(0,dr.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);Qr([(0,dr.property)({attribute:"aria-checked",reflect:!0})],$e.prototype,"ariaChecked",void 0);Qr([(0,dr.property)({type:Boolean})],$e.prototype,"disabled",void 0);Qr([(0,dr.query)(".ft-radio")],$e.prototype,"container",void 0);Qr([(0,dr.query)("ft-ripple")],$e.prototype,"ripple",void 0);Qr([(0,dr.query)("input")],$e.prototype,"input",void 0)});var py=l(()=>{"use strict"});var hy,fy,Vc=l(()=>{"use strict";hy=c(y()),fy=hy.css`
1033
+ `}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 la(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 la(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())}};$e.elementDefinitions={"ft-ripple":k,"ft-typography":V};$e.styles=cy;Qr([(0,pr.property)()],$e.prototype,"name",void 0);Qr([(0,pr.property)()],$e.prototype,"value",void 0);Qr([(0,pr.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);Qr([(0,pr.property)({attribute:"aria-checked",reflect:!0})],$e.prototype,"ariaChecked",void 0);Qr([(0,pr.property)({type:Boolean})],$e.prototype,"disabled",void 0);Qr([(0,pr.query)(".ft-radio")],$e.prototype,"container",void 0);Qr([(0,pr.query)("ft-ripple")],$e.prototype,"ripple",void 0);Qr([(0,pr.query)("input")],$e.prototype,"input",void 0)});var hy=l(()=>{"use strict"});var fy,my,zc=l(()=>{"use strict";fy=c(y()),my=fy.css`
1034
1034
  :host {
1035
1035
  display: block;
1036
1036
  }
@@ -1038,12 +1038,12 @@
1038
1038
  :host(:focus-visible) {
1039
1039
  outline: none;
1040
1040
  }
1041
- `});var my,Xr,gy,bs,vt,zc=l(()=>{"use strict";my=c(f()),Xr=c(F()),gy=c(y());Vc();bs=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},vt=class extends my.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 gy.html`
1041
+ `});var gy,Xr,yy,bo,bt,Hc=l(()=>{"use strict";gy=c(f()),Xr=c(F()),yy=c(y());zc();bo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},bt=class extends gy.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 yy.html`
1042
1042
  <slot @slotchange=${this.onSlotChange}
1043
1043
  @change=${this.onChange}
1044
1044
  @keydown=${this.onKeyDown}
1045
1045
  ></slot>
1046
- `}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()}};vt.elementDefinitions={};vt.styles=fy;bs([(0,Xr.property)()],vt.prototype,"name",void 0);bs([(0,Xr.property)({reflect:!0,attribute:"role"})],vt.prototype,"role",void 0);bs([(0,Xr.property)({reflect:!0,attribute:"aria-labelledby"})],vt.prototype,"ariaLabelledBy",void 0);bs([(0,Xr.queryAssignedElements)()],vt.prototype,"assignedElements",void 0);bs([(0,Xr.state)()],vt.prototype,"currentSelectedIndex",void 0)});var yy=l(()=>{"use strict"});var by,vy=l(()=>{"use strict";Uc();zc();by={"ft-radio":$e,"ft-radio-group":vt}});var xy,Sy=l(()=>{"use strict";xy=c(f());vy();(0,xy.customElements)(by)});var Hc=l(()=>{"use strict";Uc();py();Bc();zc();yy();Vc();Sy()});var xt,ke,Ey,ht,Ne,jc,fe,Cy=l(()=>{"use strict";xt=c(y()),ke=c(F()),Ey=c(Tr()),ht=c(f());Kt();xe();Xe();_r();ny();Hc();Pc();Lt();Ne=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},jc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},fe=class extends(0,ht.withAnalytics)(ut((0,ht.withAriaNotification)(ht.FtLitElement)),jc){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ht.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return xt.html`
1046
+ `}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()}};bt.elementDefinitions={};bt.styles=my;bo([(0,Xr.property)()],bt.prototype,"name",void 0);bo([(0,Xr.property)({reflect:!0,attribute:"role"})],bt.prototype,"role",void 0);bo([(0,Xr.property)({reflect:!0,attribute:"aria-labelledby"})],bt.prototype,"ariaLabelledBy",void 0);bo([(0,Xr.queryAssignedElements)()],bt.prototype,"assignedElements",void 0);bo([(0,Xr.state)()],bt.prototype,"currentSelectedIndex",void 0)});var vy=l(()=>{"use strict"});var by,xy=l(()=>{"use strict";Vc();Hc();by={"ft-radio":$e,"ft-radio-group":bt}});var Sy,Ey=l(()=>{"use strict";Sy=c(f());xy();(0,Sy.customElements)(by)});var jc=l(()=>{"use strict";Vc();hy();Uc();Hc();vy();zc();Ey()});var xt,ke,Cy,ht,Ne,qc,fe,Ay=l(()=>{"use strict";xt=c(y()),ke=c(F()),Cy=c(Tr()),ht=c(f());Wt();xe();Xe();_r();ay();jc();Mc();Lt();Ne=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},qc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},fe=class extends(0,ht.withAnalytics)(ut((0,ht.withAriaNotification)(ht.FtLitElement)),qc){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ht.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return xt.html`
1047
1047
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1048
1048
  ${this.parent==null?null:xt.html`
1049
1049
  <div tabindex="0"
@@ -1064,7 +1064,7 @@
1064
1064
  ${this.noValuesLabel}
1065
1065
  </ft-typography>
1066
1066
  `:xt.nothing}
1067
- ${(0,Ey.repeat)(e,r=>r.value,r=>{var i;return xt.html`
1067
+ ${(0,Cy.repeat)(e,r=>r.value,r=>{var i;return xt.html`
1068
1068
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1069
1069
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1070
1070
  ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?xt.nothing:xt.html`
@@ -1096,7 +1096,7 @@
1096
1096
  data-value="${e.value}"
1097
1097
  .checked=${e.selected}
1098
1098
  .disabled=${this.disabled}
1099
- .indeterminate=${(0,ht.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
1099
+ .indeterminate=${(0,ht.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var o;return(o=i.subOptions)!==null&&o!==void 0?o:[]}).some(i=>i.selected)}
1100
1100
  @change=${i=>this.optionsChanged(i,e)}>
1101
1101
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1102
1102
  </ft-checkbox>
@@ -1111,7 +1111,7 @@
1111
1111
  @change=${r=>this.optionsChanged(r,e)}>
1112
1112
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1113
1113
  </ft-radio>
1114
- `}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)})}};fe.elementDefinitions={"ft-button":w,"ft-ripple":k,"ft-typography":V,"ft-checkbox":Me,"ft-icon":ae,"ft-radio":$e};fe.styles=Xg;Ne([(0,ke.property)({type:String})],fe.prototype,"filterId",void 0);Ne([(0,ke.property)({type:Object})],fe.prototype,"parent",void 0);Ne([(0,ke.property)({type:Array,hasChanged:ht.hasChanged})],fe.prototype,"options",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"multivalued",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"displayCount",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"preventNavigation",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"filter",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"noValuesLabel",void 0);Ne([(0,ke.property)()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,ht.numberProperty)()],fe.prototype,"displayedValuesLimit",void 0);Ne([(0,ke.query)(".ft-filter-level--container")],fe.prototype,"container",void 0);Ne([(0,ke.state)()],fe.prototype,"radios",void 0);Ne([(0,ke.state)()],fe.prototype,"displayedPages",void 0);Ne([(0,ke.state)()],fe.prototype,"filteredOptions",void 0)});var Ay,Xt,rt,wy,la=l(()=>{"use strict";Ay=c(y()),Xt=c(f());Ti();rt={buttonsColor:Xt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Xt.designSystemVariables.colorPrimary),buttonsZIndex:Xt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Xt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Xt.FtCssVariableFactory.external(Xt.designSystemVariables.colorSurface,"Design system")},wy=Ay.css`
1114
+ `}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)})}};fe.elementDefinitions={"ft-button":w,"ft-ripple":k,"ft-typography":V,"ft-checkbox":Me,"ft-icon":ae,"ft-radio":$e};fe.styles=Yg;Ne([(0,ke.property)({type:String})],fe.prototype,"filterId",void 0);Ne([(0,ke.property)({type:Object})],fe.prototype,"parent",void 0);Ne([(0,ke.property)({type:Array,hasChanged:ht.hasChanged})],fe.prototype,"options",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"multivalued",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"displayCount",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"preventNavigation",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"filter",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"noValuesLabel",void 0);Ne([(0,ke.property)()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,ht.numberProperty)()],fe.prototype,"displayedValuesLimit",void 0);Ne([(0,ke.query)(".ft-filter-level--container")],fe.prototype,"container",void 0);Ne([(0,ke.state)()],fe.prototype,"radios",void 0);Ne([(0,ke.state)()],fe.prototype,"displayedPages",void 0);Ne([(0,ke.state)()],fe.prototype,"filteredOptions",void 0)});var wy,Xt,rt,Oy,ca=l(()=>{"use strict";wy=c(y()),Xt=c(f());ki();rt={buttonsColor:Xt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Xt.designSystemVariables.colorPrimary),buttonsZIndex:Xt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Xt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Xt.FtCssVariableFactory.external(Xt.designSystemVariables.colorSurface,"Design system")},Oy=wy.css`
1115
1115
  .ft-snap-scroll {
1116
1116
  box-sizing: border-box;
1117
1117
  position: relative;
@@ -1236,7 +1236,7 @@
1236
1236
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1237
1237
  background-color: ${rt.colorSurface};
1238
1238
  }
1239
- `});var Oy,St,Di,_y,pr,qc,Re,Kc=l(()=>{"use strict";Oy=c(y()),St=c(F()),Di=c(f());Kt();_y=c(nt());la();pr=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}})}},Re=class extends Di.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 Di.Debouncer(200),this.updateScrollDebouncer=new Di.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,_y.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":Di.isSafari}),r=this.controls&&this.withScroll;return Oy.html`
1239
+ `});var _y,St,Di,Ry,hr,Kc,Re,Wc=l(()=>{"use strict";_y=c(y()),St=c(F()),Di=c(f());Wt();Ry=c(nt());ca();hr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Kc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Re=class extends Di.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 Di.Debouncer(200),this.updateScrollDebouncer=new Di.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,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||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,Ry.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":Di.isSafari}),r=this.controls&&this.withScroll;return _y.html`
1240
1240
  <div part="container" class="${e}">
1241
1241
  <ft-button
1242
1242
  class="ft-snap-scroll--previous"
@@ -1260,7 +1260,7 @@
1260
1260
  @click=${this.next}
1261
1261
  ></ft-button>
1262
1262
  </div>
1263
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new qc(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Re.elementDefinitions={"ft-button":w};Re.styles=wy;pr([(0,St.property)({type:Boolean})],Re.prototype,"horizontal",void 0);pr([(0,St.property)({type:Boolean})],Re.prototype,"hideScrollbar",void 0);pr([(0,St.property)({type:Boolean})],Re.prototype,"controls",void 0);pr([(0,St.property)({type:Boolean})],Re.prototype,"limitSize",void 0);pr([(0,St.state)()],Re.prototype,"elements",void 0);pr([(0,St.state)()],Re.prototype,"currentElement",void 0);pr([(0,St.state)()],Re.prototype,"withScroll",void 0);pr([(0,St.state)()],Re.prototype,"startReached",void 0);pr([(0,St.state)()],Re.prototype,"endReached",void 0);pr([(0,St.query)(".ft-snap-scroll--content")],Re.prototype,"contentSlot",void 0)});var Ry=l(()=>{"use strict"});var Ty,ky=l(()=>{"use strict";Kc();Ty={"ft-snap-scroll":Re}});var Ly,$y=l(()=>{"use strict";Ly=c(f());ky();(0,Ly.customElements)(Ty)});var ca=l(()=>{"use strict";Kc();la();Ry();$y()});var Iy,ce,ft,Dy,ua=l(()=>{"use strict";Iy=c(y()),ce=c(f());Bt();Ti();ft={colorOutline:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ce.FtCssVariableFactory.extend("--ft-filter-label-color","",ce.designSystemVariables.colorOnSurface),labelFontSize:ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},Dy=[Mr,ce.noTextInputDefaultClearButton,Iy.css`
1263
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Kc(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Re.elementDefinitions={"ft-button":w};Re.styles=Oy;hr([(0,St.property)({type:Boolean})],Re.prototype,"horizontal",void 0);hr([(0,St.property)({type:Boolean})],Re.prototype,"hideScrollbar",void 0);hr([(0,St.property)({type:Boolean})],Re.prototype,"controls",void 0);hr([(0,St.property)({type:Boolean})],Re.prototype,"limitSize",void 0);hr([(0,St.state)()],Re.prototype,"elements",void 0);hr([(0,St.state)()],Re.prototype,"currentElement",void 0);hr([(0,St.state)()],Re.prototype,"withScroll",void 0);hr([(0,St.state)()],Re.prototype,"startReached",void 0);hr([(0,St.state)()],Re.prototype,"endReached",void 0);hr([(0,St.query)(".ft-snap-scroll--content")],Re.prototype,"contentSlot",void 0)});var Ty=l(()=>{"use strict"});var ky,Ly=l(()=>{"use strict";Wc();ky={"ft-snap-scroll":Re}});var $y,Iy=l(()=>{"use strict";$y=c(f());Ly();(0,$y.customElements)(ky)});var ua=l(()=>{"use strict";Wc();ca();Ty();Iy()});var Py,ce,ft,Dy,da=l(()=>{"use strict";Py=c(y()),ce=c(f());Ut();ki();ft={colorOutline:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ce.FtCssVariableFactory.extend("--ft-filter-label-color","",ce.designSystemVariables.colorOnSurface),labelFontSize:ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",b.fontSize,"16px")},Dy=[Mr,ce.noTextInputDefaultClearButton,Py.css`
1264
1264
  :host {
1265
1265
  display: flex;
1266
1266
  max-height: 100%;
@@ -1302,8 +1302,8 @@
1302
1302
  word-break: break-word;
1303
1303
  color: ${ft.labelColor};
1304
1304
  font-size: ${ft.labelFontSize};
1305
- ${(0,ce.setVariable)(v.lineHeight,"22px")};
1306
- ${(0,ce.setVariable)(v.fontWeight,"bold")};
1305
+ ${(0,ce.setVariable)(b.lineHeight,"22px")};
1306
+ ${(0,ce.setVariable)(b.fontWeight,"bold")};
1307
1307
  }
1308
1308
 
1309
1309
  .ft-filter--filter {
@@ -1377,10 +1377,10 @@
1377
1377
  slot:not([name]) {
1378
1378
  display: none;
1379
1379
  }
1380
- `]});var Pi,oe,Ee,ue,Wc,W,Gc=l(()=>{"use strict";Pi=c(y()),oe=c(F()),Ee=c(f());xe();Cy();Kt();ca();ua();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},Wc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,Ee.withAnalytics)(Ee.FtLitElement,jc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Ee.Debouncer(300),this.changeDebouncer=new Ee.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Ee.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Ee.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=this.filterPlaceHolder.replace("{0}",this.label);return Pi.html`
1380
+ `]});var Mi,se,Ce,ue,Gc,W,Qc=l(()=>{"use strict";Mi=c(y()),se=c(F()),Ce=c(f());xe();Ay();Wt();ua();da();ue=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Gc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,Ce.withAnalytics)(Ce.FtLitElement,qc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Ce.Debouncer(300),this.changeDebouncer=new Ce.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Ce.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Ce.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(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Mi.html`
1381
1381
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1382
1382
  part="container">
1383
- ${!this.label&&!e?null:Pi.html`
1383
+ ${!this.label&&!e?null:Mi.html`
1384
1384
 
1385
1385
  <div class="ft-filter--header" part="header">
1386
1386
  <div class="filter-label" id="id-group-${this.id}">
@@ -1389,7 +1389,7 @@
1389
1389
  </ft-typography>
1390
1390
  <slot name="label"></slot>
1391
1391
  </div>
1392
- ${e&&!this.hideClearButton?Pi.html`
1392
+ ${e&&!this.hideClearButton?Mi.html`
1393
1393
  <ft-button icon="close"
1394
1394
  aria-label="${this.clearButtonLabel+" "+this.label}"
1395
1395
  dense
@@ -1417,8 +1417,8 @@
1417
1417
  @slotchange=${this.updateOptionsFromSlot}
1418
1418
  @option-change=${this.optionsChanged}></slot>
1419
1419
  </div>
1420
- `}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 Pi.html`
1421
- ${this.raiseSelectedOptions&&r.length>0?Pi.html`
1420
+ `}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,o,s,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&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(n=(s=this.shadowRoot)===null||s===void 0?void 0:s.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(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Mi.html`
1421
+ ${this.raiseSelectedOptions&&r.length>0?Mi.html`
1422
1422
  <ft-filter-level
1423
1423
  filterId="${this.id}"
1424
1424
  ?multivalued=${this.multivalued}
@@ -1435,11 +1435,11 @@
1435
1435
  `:null}
1436
1436
  <ft-snap-scroll horizontal hideScrollbar
1437
1437
  class="ft-filter--levels"
1438
- @current-element-change=${o=>this.levelsScrollDebouncer.run(()=>{for(;o.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1439
- ${this.renderLevel(s,this.options)}
1440
- ${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)})}
1438
+ @current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1439
+ ${this.renderLevel(o,this.options)}
1440
+ ${this.displayedLevels.map(s=>e.find(n=>n.value===s)).map((s,n)=>{var a;let u=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":n===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(u,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
1441
1441
  </ft-snap-scroll>
1442
- `}renderLevel(e,r,i){return Pi.html`
1442
+ `}renderLevel(e,r,i){return Mi.html`
1443
1443
  <ft-filter-level
1444
1444
  class="${e}"
1445
1445
  filterId="${this.id}"
@@ -1461,21 +1461,21 @@
1461
1461
  noValuesLabel="${this.noValuesLabel}"
1462
1462
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1463
1463
  ></ft-filter-level>
1464
- `}goBack(e){this.slideOut=e.detail.value,(0,Ee.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,Ee.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,Ee.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,Ee.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Wc(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)}};W.elementDefinitions={"ft-button":w,"ft-filter-level":fe,"ft-snap-scroll":Re,"ft-typography":V};W.styles=Dy;ue([(0,oe.property)({type:String})],W.prototype,"id",void 0);ue([(0,oe.property)({type:String})],W.prototype,"label",void 0);ue([(0,oe.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ue([(0,oe.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"noValuesLabel",void 0);ue([(0,Ee.jsonProperty)([])],W.prototype,"options",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"multivalued",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"disabled",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"displayCount",void 0);ue([(0,Ee.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ue([(0,Ee.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ue([(0,oe.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ue([(0,oe.query)(".ft-filter--container")],W.prototype,"container",void 0);ue([(0,oe.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ue([(0,oe.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ue([(0,oe.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,oe.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ue([(0,oe.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ue([(0,oe.state)()],W.prototype,"withScroll",void 0);ue([(0,oe.state)()],W.prototype,"filter",void 0);ue([(0,oe.state)()],W.prototype,"slideIn",void 0);ue([(0,oe.state)()],W.prototype,"slideOut",void 0)});var Py=l(()=>{"use strict"});var da,Mi,My,bo,Et,Qc=l(()=>{"use strict";da=c(f()),Mi=c(F()),My=c(y()),bo=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},Et=class extends da.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return My.html`
1464
+ `}goBack(e){this.slideOut=e.detail.value,(0,Ce.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,Ce.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,Ce.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(s=>s.value===e.detail.value);i.selected=!i.selected;let o=s=>{var n;s!==i&&(s.selected=!1),(n=s.subOptions)===null||n===void 0||n.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),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,Ce.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Gc(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)}};W.elementDefinitions={"ft-button":w,"ft-filter-level":fe,"ft-snap-scroll":Re,"ft-typography":V};W.styles=Dy;ue([(0,se.property)({type:String})],W.prototype,"id",void 0);ue([(0,se.property)({type:String})],W.prototype,"label",void 0);ue([(0,se.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ue([(0,se.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ue([(0,se.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ue([(0,se.property)({type:String})],W.prototype,"noValuesLabel",void 0);ue([(0,Ce.jsonProperty)([])],W.prototype,"options",void 0);ue([(0,se.property)({type:Boolean})],W.prototype,"multivalued",void 0);ue([(0,se.property)({type:Boolean})],W.prototype,"disabled",void 0);ue([(0,se.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ue([(0,se.property)({type:Boolean})],W.prototype,"displayCount",void 0);ue([(0,Ce.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ue([(0,Ce.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,se.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ue([(0,se.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ue([(0,se.query)(".ft-filter--container")],W.prototype,"container",void 0);ue([(0,se.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ue([(0,se.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ue([(0,se.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,se.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ue([(0,se.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ue([(0,se.state)()],W.prototype,"withScroll",void 0);ue([(0,se.state)()],W.prototype,"filter",void 0);ue([(0,se.state)()],W.prototype,"slideIn",void 0);ue([(0,se.state)()],W.prototype,"slideOut",void 0)});var My=l(()=>{"use strict"});var pa,Ni,Ny,ys,Et,Xc=l(()=>{"use strict";pa=c(f()),Ni=c(F()),Ny=c(y()),ys=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Et=class extends pa.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Ny.html`
1465
1465
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1466
- `}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}))}};Et.elementDefinitions={};bo([(0,Mi.property)({type:String})],Et.prototype,"label",void 0);bo([(0,Mi.property)({type:Object,converter:t=>t})],Et.prototype,"value",void 0);bo([(0,Mi.property)({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);bo([(0,Mi.property)({type:Object})],Et.prototype,"subOptions",void 0);bo([(0,da.jsonProperty)({})],Et.prototype,"renderOption",void 0);bo([(0,Mi.query)(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var Ny=l(()=>{"use strict"});var Fy,By=l(()=>{"use strict";Gc();Qc();Fy={"ft-filter":W,"ft-filter-option":Et}});var Uy,Vy=l(()=>{"use strict";Uy=c(f());By();(0,Uy.customElements)(Fy)});var zy=l(()=>{"use strict";Pc();Gc();ua();Py();Qc();Ny();Vy()});var Hy,jy,Xc=l(()=>{"use strict";Hy=c(y()),jy=Hy.css`
1466
+ `}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}))}};Et.elementDefinitions={};ys([(0,Ni.property)({type:String})],Et.prototype,"label",void 0);ys([(0,Ni.property)({type:Object,converter:t=>t})],Et.prototype,"value",void 0);ys([(0,Ni.property)({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);ys([(0,Ni.property)({type:Object})],Et.prototype,"subOptions",void 0);ys([(0,pa.jsonProperty)({})],Et.prototype,"renderOption",void 0);ys([(0,Ni.query)(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var Fy=l(()=>{"use strict"});var By,Uy=l(()=>{"use strict";Qc();Xc();By={"ft-filter":W,"ft-filter-option":Et}});var Vy,zy=l(()=>{"use strict";Vy=c(f());Uy();(0,Vy.customElements)(By)});var Hy=l(()=>{"use strict";Mc();Qc();da();My();Xc();Fy();zy()});var jy,qy,Yc=l(()=>{"use strict";jy=c(y()),qy=jy.css`
1467
1467
  .ft-accordion {
1468
1468
  box-sizing: border-box;
1469
1469
  }
1470
- `});var Ky,pa,Wy,qy,hr,Yc=l(()=>{"use strict";Ky=c(y()),pa=c(F()),Wy=c(f());Xc();qy=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},hr=class extends Wy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Ky.html`
1470
+ `});var Wy,ha,Gy,Ky,fr,Zc=l(()=>{"use strict";Wy=c(y()),ha=c(F()),Gy=c(f());Yc();Ky=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},fr=class extends Gy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Wy.html`
1471
1471
  <div class="ft-accordion">
1472
1472
  <slot @activated=${this.onChange}></slot>
1473
1473
  </div>
1474
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};hr.elementDefinitions={};hr.styles=jy;qy([(0,pa.property)({type:Boolean})],hr.prototype,"multi",void 0);qy([(0,pa.query)("slot")],hr.prototype,"content",void 0)});var Gy=l(()=>{"use strict"});var Qy,Fi,Ni,Xy,Zc=l(()=>{"use strict";Qy=c(y()),Fi=c(f()),Ni={horizontalSpacing:Fi.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Fi.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Fi.FtCssVariableFactory.external(Fi.designSystemVariables.colorOutline,"Design system"),backgroundColor:Fi.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Xy=Qy.css`
1474
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};fr.elementDefinitions={};fr.styles=qy;Ky([(0,ha.property)({type:Boolean})],fr.prototype,"multi",void 0);Ky([(0,ha.query)("slot")],fr.prototype,"content",void 0)});var Qy=l(()=>{"use strict"});var Xy,Bi,Fi,Yy,Jc=l(()=>{"use strict";Xy=c(y()),Bi=c(f()),Fi={horizontalSpacing:Bi.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Bi.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Bi.FtCssVariableFactory.external(Bi.designSystemVariables.colorOutline,"Design system"),backgroundColor:Bi.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Yy=Xy.css`
1475
1475
  .ft-accordion-item {
1476
1476
  display: flex;
1477
1477
  flex-direction: column;
1478
- background-color: ${Ni.backgroundColor};
1478
+ background-color: ${Fi.backgroundColor};
1479
1479
  }
1480
1480
 
1481
1481
  .ft-accordion-item--toggle {
@@ -1485,8 +1485,8 @@
1485
1485
  display: flex;
1486
1486
  align-items: center;
1487
1487
  cursor: pointer;
1488
- padding: ${Ni.verticalSpacing} ${Ni.horizontalSpacing};
1489
- gap: calc(${Ni.horizontalSpacing} / 2);
1488
+ padding: ${Fi.verticalSpacing} ${Fi.horizontalSpacing};
1489
+ gap: calc(${Fi.horizontalSpacing} / 2);
1490
1490
  outline: none;
1491
1491
  }
1492
1492
 
@@ -1511,13 +1511,13 @@
1511
1511
  .ft-accordion-item--active .ft-accordion-item--content {
1512
1512
  height: initial;
1513
1513
  overflow: visible;
1514
- padding: ${Ni.verticalSpacing} ${Ni.horizontalSpacing};
1514
+ padding: ${Fi.verticalSpacing} ${Fi.horizontalSpacing};
1515
1515
  }
1516
1516
 
1517
1517
  .ft-accordion-item--separator {
1518
- border-bottom: 1px solid ${Ni.colorOutline};
1518
+ border-bottom: 1px solid ${Fi.colorOutline};
1519
1519
  }
1520
- `});var vs,xs,Yy,ha,Mt,Jc=l(()=>{"use strict";vs=c(y()),xs=c(F()),Yy=c(f());Xe();xe();_r();Zc();ha=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},Mt=class extends Yy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return vs.html`
1520
+ `});var xo,So,Zy,fa,Nt,eu=l(()=>{"use strict";xo=c(y()),So=c(F()),Zy=c(f());Xe();xe();_r();Jc();fa=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Nt=class extends Zy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return xo.html`
1521
1521
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1522
1522
  <div class="ft-accordion-item--toggle"
1523
1523
  part="toggle"
@@ -1528,13 +1528,13 @@
1528
1528
  aria-controls="ft-accordion-item-content"
1529
1529
  aria-expanded="${this.active}">
1530
1530
  <ft-ripple part="toggle-ripple"></ft-ripple>
1531
- ${this.icon?vs.html`
1531
+ ${this.icon?xo.html`
1532
1532
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1533
1533
  `:null}
1534
- ${this.label?vs.html`
1534
+ ${this.label?xo.html`
1535
1535
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1536
1536
  </ft-typography>
1537
- `:vs.html`
1537
+ `:xo.html`
1538
1538
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1539
1539
  `}
1540
1540
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1547,7 +1547,7 @@
1547
1547
  </div>
1548
1548
  <div class="ft-accordion-item--separator" part="separator"></div>
1549
1549
  </div>
1550
- `}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)}};Mt.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae};Mt.styles=Xy;ha([(0,xs.property)()],Mt.prototype,"icon",void 0);ha([(0,xs.property)()],Mt.prototype,"iconVariant",void 0);ha([(0,xs.property)()],Mt.prototype,"label",void 0);ha([(0,xs.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Zy=l(()=>{"use strict"});var Jy,eb=l(()=>{"use strict";Yc();Jc();Jy={"ft-accordion":hr,"ft-accordion-item":Mt}});var tb,rb=l(()=>{"use strict";tb=c(f());eb();(0,tb.customElements)(Jy)});var ib=l(()=>{"use strict";Yc();Xc();Gy();Jc();Zc();Zy();rb()});var Ss,B,ob,Fe,sb,eu,nb,ab,tu=l(()=>{"use strict";Ss=c(y()),B=c(f());vr();Bt();po();Kt();ob=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ob,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ob),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},sb=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),eu={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:sb,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",sb)},nb={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},ab=[B.noTextSelect,Ss.css`
1550
+ `}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)}};Nt.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae};Nt.styles=Yy;fa([(0,So.property)()],Nt.prototype,"icon",void 0);fa([(0,So.property)()],Nt.prototype,"iconVariant",void 0);fa([(0,So.property)()],Nt.prototype,"label",void 0);fa([(0,So.property)({type:Boolean,reflect:!0})],Nt.prototype,"active",void 0)});var Jy=l(()=>{"use strict"});var ev,tv=l(()=>{"use strict";Zc();eu();ev={"ft-accordion":fr,"ft-accordion-item":Nt}});var rv,iv=l(()=>{"use strict";rv=c(f());tv();(0,rv.customElements)(ev)});var sv=l(()=>{"use strict";Zc();Yc();Qy();eu();Jc();Jy();iv()});var Eo,B,ov,Fe,nv,tu,av,lv,ru=l(()=>{"use strict";Eo=c(y()),B=c(f());br();Ut();ds();Wt();ov=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ov,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",Oe.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",Oe.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ov),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},nv=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),tu={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:nv,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",nv)},av={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lv=[B.noTextSelect,Eo.css`
1551
1551
  :host {
1552
1552
  display: inline-block;
1553
1553
  max-width: 100%;
@@ -1575,7 +1575,7 @@
1575
1575
  border: 1px solid ${Fe.borderColor};
1576
1576
  color: ${Fe.color};
1577
1577
  ${(0,B.setVariable)(j.color,Fe.rippleColor)};
1578
- border-radius: var(${(0,Ss.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1578
+ border-radius: var(${(0,Eo.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1579
1579
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1580
1580
  background-color: ${Fe.backgroundColor};
1581
1581
  line-height: var(--chip-internal-content-height);
@@ -1587,13 +1587,13 @@
1587
1587
 
1588
1588
  .ft-chip--dense {
1589
1589
  --chip-internal-icon-padding: 3px;
1590
- --chip-internal-vertical-padding: ${nb.verticalPadding};
1591
- --chip-internal-horizontal-padding: ${nb.horizontalPadding};
1590
+ --chip-internal-vertical-padding: ${av.verticalPadding};
1591
+ --chip-internal-horizontal-padding: ${av.horizontalPadding};
1592
1592
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1593
1593
  }
1594
1594
 
1595
1595
  .ft-chip--no-content {
1596
- --chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(Ss.css`var(--chip-internal-vertical-padding)`)};
1596
+ --chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(Eo.css`var(--chip-internal-vertical-padding)`)};
1597
1597
  }
1598
1598
 
1599
1599
  .ft-chip--disabled {
@@ -1606,9 +1606,9 @@
1606
1606
  .ft-chip--highlighted {
1607
1607
  border: none;
1608
1608
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1609
- background-color: ${eu.backgroundColor};
1610
- ${(0,B.setVariable)(j.color,eu.rippleColor)};
1611
- color: ${eu.color};
1609
+ background-color: ${tu.backgroundColor};
1610
+ ${(0,B.setVariable)(j.color,tu.rippleColor)};
1611
+ color: ${tu.color};
1612
1612
  }
1613
1613
 
1614
1614
  .ft-chip--clickable {
@@ -1649,9 +1649,9 @@
1649
1649
  vertical-align: bottom;
1650
1650
  display: block;
1651
1651
  margin: 0 var(--chip-internal-horizontal-padding);
1652
- ${(0,B.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
1653
- ${(0,B.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
1654
- ${(0,B.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
1652
+ ${(0,B.setVariable)(Oe.fontSize,"var(--chip-internal-font-size)")};
1653
+ ${(0,B.setVariable)(Oe.fontWeight,"var(--chip-internal-font-weight)")};
1654
+ ${(0,B.setVariable)(Oe.lineHeight,"var(--chip-internal-content-height)")};
1655
1655
  }
1656
1656
 
1657
1657
  .ft-chip--safari-fix .ft-chip--label {
@@ -1687,8 +1687,8 @@
1687
1687
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1688
1688
  order: -1;
1689
1689
  }
1690
- `]});var fa,Be,lb,vo,it,ma,me,ru=l(()=>{"use strict";fa=c(y()),Be=c(F()),lb=c(nt()),vo=c(f());Xe();xe();_r();tu();Kt();it=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},ma=class extends CustomEvent{constructor(){super("icon-click")}},me=class extends vo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":vo.isSafari};return fa.html`
1691
- <div class="${(0,lb.classMap)(r)}"
1690
+ `]});var ma,Be,cv,vs,it,ga,me,iu=l(()=>{"use strict";ma=c(y()),Be=c(F()),cv=c(nt()),vs=c(f());Xe();xe();_r();ru();Wt();it=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ga=class extends CustomEvent{constructor(){super("icon-click")}},me=class extends vs.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":vs.isSafari};return ma.html`
1691
+ <div class="${(0,cv.classMap)(r)}"
1692
1692
  aria-label="${this.getLabel()}"
1693
1693
  tabindex="${this.interactionsOnChip?0:-1}"
1694
1694
  @keyup=${this.onKeyUp}
@@ -1699,7 +1699,7 @@
1699
1699
  </ft-typography>
1700
1700
  ${this.internalIcon?this.renderIcon():null}
1701
1701
  </div>
1702
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?fa.html`
1702
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?ma.html`
1703
1703
  <ft-button round
1704
1704
  class="ft-chip--icon-button"
1705
1705
  @click=${this.onIconClick}
@@ -1710,11 +1710,11 @@
1710
1710
  part="icon-button"
1711
1711
  ?hideTooltip=${this.hideIconTooltip}
1712
1712
  ></ft-button>
1713
- `:fa.html`
1713
+ `:ma.html`
1714
1714
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1715
1715
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1716
1716
  </div>
1717
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ma))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ma))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};me.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};me.styles=ab;it([(0,Be.property)({type:Boolean})],me.prototype,"highlighted",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"removable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"disabled",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"clickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"iconClickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"dense",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"multiLine",void 0);it([(0,Be.property)()],me.prototype,"label",void 0);it([(0,Be.property)()],me.prototype,"iconLabel",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"hideIconTooltip",void 0);it([(0,Be.property)()],me.prototype,"icon",void 0);it([(0,Be.property)()],me.prototype,"iconVariant",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"trailingIcon",void 0);it([(0,Be.property)()],me.prototype,"typographyVariant",void 0);it([(0,Be.query)("ft-typography slot")],me.prototype,"slottedContent",void 0)});var cb=l(()=>{"use strict"});var ub,db=l(()=>{"use strict";ru();ub={"ft-chip":me}});var pb,hb=l(()=>{"use strict";pb=c(f());db();(0,pb.customElements)(ub)});var iu=l(()=>{"use strict";ru();tu();cb();hb()});function Es(t,e,r){return t?e(t):r?.(t)}var fb=l(()=>{});var ou=l(()=>{fb()});var mb,de,q,gb,Cs=l(()=>{"use strict";mb=c(y()),de=c(f());Bt();q={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},gb=mb.css`
1717
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ga))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ga))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vs.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};me.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};me.styles=lv;it([(0,Be.property)({type:Boolean})],me.prototype,"highlighted",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"removable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"disabled",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"clickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"iconClickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"dense",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"multiLine",void 0);it([(0,Be.property)()],me.prototype,"label",void 0);it([(0,Be.property)()],me.prototype,"iconLabel",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"hideIconTooltip",void 0);it([(0,Be.property)()],me.prototype,"icon",void 0);it([(0,Be.property)()],me.prototype,"iconVariant",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"trailingIcon",void 0);it([(0,Be.property)()],me.prototype,"typographyVariant",void 0);it([(0,Be.query)("ft-typography slot")],me.prototype,"slottedContent",void 0)});var uv=l(()=>{"use strict"});var dv,pv=l(()=>{"use strict";iu();dv={"ft-chip":me}});var hv,fv=l(()=>{"use strict";hv=c(f());pv();(0,hv.customElements)(dv)});var su=l(()=>{"use strict";iu();ru();uv();fv()});function Co(t,e,r){return t?e(t):r?.(t)}var mv=l(()=>{});var ou=l(()=>{mv()});var gv,de,q,yv,Ao=l(()=>{"use strict";gv=c(y()),de=c(f());Ut();q={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},yv=gv.css`
1718
1718
  .ft-input-label {
1719
1719
  position: absolute;
1720
1720
  inset: 0;
@@ -1808,16 +1808,16 @@
1808
1808
  border-radius: ${q.borderRadius};
1809
1809
  top: calc((${lt.lineHeight} / -2) + 2px);
1810
1810
  }
1811
- `});var su,nu,bb,vb,yb,Bi,xb=l(()=>{"use strict";su=c(y()),nu=c(F());ou();bb=c(nt()),vb=c(f()),yb=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},Bi=class extends vb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return su.html`
1812
- <div class="${(0,bb.classMap)(this.inputLabelClasses)}">
1813
- ${Es(this.text,()=>su.html`
1811
+ `});var nu,au,bv,xv,vv,Ui,Sv=l(()=>{"use strict";nu=c(y()),au=c(F());ou();bv=c(nt()),xv=c(f()),vv=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ui=class extends xv.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return nu.html`
1812
+ <div class="${(0,bv.classMap)(this.inputLabelClasses)}">
1813
+ ${Co(this.text,()=>nu.html`
1814
1814
  <div class="ft-input-label--text ft-typography--caption">
1815
1815
  <label class="ft-input-label--floating-text">${this.text}</label>
1816
1816
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1817
1817
  </div>
1818
1818
  `)}
1819
1819
  </div>
1820
- `}};Bi.elementDefinitions={};yb([(0,nu.property)({type:String})],Bi.prototype,"text",void 0);yb([(0,nu.property)({type:Boolean})],Bi.prototype,"raised",void 0)});var ga,au,Yt,lu=l(()=>{"use strict";ga=c(F());Bt();Cs();xb();au=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},Yt=class extends Bi{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}}};Yt.elementDefinitions={};Yt.styles=[Mr,gb];au([(0,ga.property)({type:Boolean})],Yt.prototype,"outlined",void 0);au([(0,ga.property)({type:Boolean})],Yt.prototype,"error",void 0);au([(0,ga.property)({type:Boolean})],Yt.prototype,"disabled",void 0)});var Sb=l(()=>{"use strict"});var Eb,Cb=l(()=>{"use strict";lu();Eb={"ft-input-label":Yt}});var Ab,wb=l(()=>{"use strict";Ab=c(f());Cb();(0,Ab.customElements)(Eb)});var Ob=l(()=>{"use strict";lu();Cs();Sb();wb()});var _b,M,P,Rb,As=l(()=>{"use strict";_b=c(y()),M=c(f());Cs();Bt();vr();po();P={labelSize:M.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:M.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:M.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:M.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:M.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:M.FtCssVariableFactory.extend("--ft-select-selected-option-color","",M.designSystemVariables.colorOnSurface),helperColor:M.FtCssVariableFactory.extend("--ft-select-helper-color","",M.designSystemVariables.colorOnSurfaceMedium),optionsColor:M.FtCssVariableFactory.extend("--ft-select-options-color","",M.designSystemVariables.colorOnSurface),optionsZIndex:M.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:M.FtCssVariableFactory.extend("--ft-select-background-color","",M.designSystemVariables.colorSurface),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusS,"Design system"),elevation02:M.FtCssVariableFactory.external(M.designSystemVariables.elevation02,"Design system"),colorError:M.FtCssVariableFactory.external(M.designSystemVariables.colorError,"Design system")},Rb=_b.css`
1820
+ `}};Ui.elementDefinitions={};vv([(0,au.property)({type:String})],Ui.prototype,"text",void 0);vv([(0,au.property)({type:Boolean})],Ui.prototype,"raised",void 0)});var ya,lu,Yt,cu=l(()=>{"use strict";ya=c(F());Ut();Ao();Sv();lu=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Yt=class extends Ui{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}}};Yt.elementDefinitions={};Yt.styles=[Mr,yv];lu([(0,ya.property)({type:Boolean})],Yt.prototype,"outlined",void 0);lu([(0,ya.property)({type:Boolean})],Yt.prototype,"error",void 0);lu([(0,ya.property)({type:Boolean})],Yt.prototype,"disabled",void 0)});var Ev=l(()=>{"use strict"});var Cv,Av=l(()=>{"use strict";cu();Cv={"ft-input-label":Yt}});var wv,Ov=l(()=>{"use strict";wv=c(f());Av();(0,wv.customElements)(Cv)});var _v=l(()=>{"use strict";cu();Ao();Ev();Ov()});var Rv,M,D,Tv,wo=l(()=>{"use strict";Rv=c(y()),M=c(f());Ao();Ut();br();ds();D={labelSize:M.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:M.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:M.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:M.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:M.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:M.FtCssVariableFactory.extend("--ft-select-selected-option-color","",M.designSystemVariables.colorOnSurface),helperColor:M.FtCssVariableFactory.extend("--ft-select-helper-color","",M.designSystemVariables.colorOnSurfaceMedium),optionsColor:M.FtCssVariableFactory.extend("--ft-select-options-color","",M.designSystemVariables.colorOnSurface),optionsZIndex:M.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:M.FtCssVariableFactory.extend("--ft-select-background-color","",M.designSystemVariables.colorSurface),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusS,"Design system"),elevation02:M.FtCssVariableFactory.external(M.designSystemVariables.elevation02,"Design system"),colorError:M.FtCssVariableFactory.external(M.designSystemVariables.colorError,"Design system")},Tv=Rv.css`
1821
1821
  *:focus {
1822
1822
  outline: none;
1823
1823
  }
@@ -1832,7 +1832,7 @@
1832
1832
  .ft-select--main-panel {
1833
1833
  position: relative;
1834
1834
  display: flex;
1835
- height: calc(4 * ${P.verticalSpacing} + ${P.labelSize} + ${P.selectedOptionSize});
1835
+ height: calc(4 * ${D.verticalSpacing} + ${D.labelSize} + ${D.selectedOptionSize});
1836
1836
  }
1837
1837
 
1838
1838
  .ft-select--input-panel {
@@ -1841,11 +1841,11 @@
1841
1841
  display: flex;
1842
1842
  align-items: center;
1843
1843
  overflow: hidden;
1844
- padding-left: ${P.horizontalSpacing};
1845
- padding-right: ${P.horizontalSpacing};
1844
+ padding-left: ${D.horizontalSpacing};
1845
+ padding-right: ${D.horizontalSpacing};
1846
1846
  gap: 8px;
1847
- color: ${P.selectedOptionColor};
1848
- ${(0,M.setVariable)(j.color,P.selectedOptionColor)};
1847
+ color: ${D.selectedOptionColor};
1848
+ ${(0,M.setVariable)(j.color,D.selectedOptionColor)};
1849
1849
  }
1850
1850
 
1851
1851
  .ft-select--input-panel,
@@ -1860,7 +1860,7 @@
1860
1860
 
1861
1861
  .ft-select--disabled .ft-select--input-panel,
1862
1862
  .ft-select--disabled .ft-select--options {
1863
- color: ${P.colorOnSurfaceDisabled};
1863
+ color: ${D.colorOnSurfaceDisabled};
1864
1864
  }
1865
1865
 
1866
1866
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1869,21 +1869,21 @@
1869
1869
  }
1870
1870
 
1871
1871
  ft-input-label {
1872
- ${(0,M.setVariable)(q.fontSize,P.selectedOptionSize)};
1873
- ${(0,M.setVariable)(q.raisedFontSize,P.labelSize)};
1874
- ${(0,M.setVariable)(q.verticalSpacing,P.verticalSpacing)};
1875
- ${(0,M.setVariable)(q.horizontalSpacing,P.horizontalSpacing)};
1876
- ${(0,M.setVariable)(q.backgroundColor,P.backgroundColor)};
1872
+ ${(0,M.setVariable)(q.fontSize,D.selectedOptionSize)};
1873
+ ${(0,M.setVariable)(q.raisedFontSize,D.labelSize)};
1874
+ ${(0,M.setVariable)(q.verticalSpacing,D.verticalSpacing)};
1875
+ ${(0,M.setVariable)(q.horizontalSpacing,D.horizontalSpacing)};
1876
+ ${(0,M.setVariable)(q.backgroundColor,D.backgroundColor)};
1877
1877
  ${(0,M.setVariable)(q.labelMaxWidth,`calc(100% - ${Je.size} - 8px)`)};
1878
1878
  }
1879
1879
 
1880
1880
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1881
- color: ${P.colorPrimary};
1881
+ color: ${D.colorPrimary};
1882
1882
  }
1883
1883
 
1884
1884
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1885
- ${(0,M.setVariable)(q.borderColor,P.colorPrimary)};
1886
- ${(0,M.setVariable)(q.textColor,P.colorPrimary)};
1885
+ ${(0,M.setVariable)(q.borderColor,D.colorPrimary)};
1886
+ ${(0,M.setVariable)(q.textColor,D.colorPrimary)};
1887
1887
  }
1888
1888
 
1889
1889
  .ft-select--selected-option {
@@ -1893,12 +1893,12 @@
1893
1893
  overflow: hidden;
1894
1894
  white-space: nowrap;
1895
1895
  text-overflow: ellipsis;
1896
- ${(0,M.setVariable)(tr.fontSize,P.selectedOptionSize)};
1897
- ${(0,M.setVariable)(tr.lineHeight,P.selectedOptionSize)};
1896
+ ${(0,M.setVariable)(rr.fontSize,D.selectedOptionSize)};
1897
+ ${(0,M.setVariable)(rr.lineHeight,D.selectedOptionSize)};
1898
1898
  }
1899
1899
 
1900
1900
  .ft-select--in-error .ft-select--selected-option {
1901
- color: ${P.colorError};
1901
+ color: ${D.colorError};
1902
1902
  }
1903
1903
 
1904
1904
  ft-icon {
@@ -1908,26 +1908,26 @@
1908
1908
 
1909
1909
 
1910
1910
  .ft-select--filled .ft-select--input-panel {
1911
- border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
1911
+ border-radius: ${D.borderRadiusS} ${D.borderRadiusS} 0 0;
1912
1912
  }
1913
1913
 
1914
1914
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1915
1915
  align-self: stretch;
1916
- padding-top: calc(${P.labelSize} + 2 * ${P.verticalSpacing});
1916
+ padding-top: calc(${D.labelSize} + 2 * ${D.verticalSpacing});
1917
1917
  }
1918
1918
 
1919
1919
  .ft-select--outlined .ft-select--input-panel {
1920
- border-radius: ${P.borderRadiusS};
1920
+ border-radius: ${D.borderRadiusS};
1921
1921
  }
1922
1922
 
1923
1923
  .ft-select--options {
1924
1924
  display: none;
1925
1925
  position: absolute;
1926
1926
  top: 100%;
1927
- color: ${P.optionsColor};
1928
- background: ${P.backgroundColor};
1929
- z-index: ${P.optionsZIndex};
1930
- box-shadow: ${P.elevation02};
1927
+ color: ${D.optionsColor};
1928
+ background: ${D.backgroundColor};
1929
+ z-index: ${D.optionsZIndex};
1930
+ box-shadow: ${D.elevation02};
1931
1931
  width: max-content;
1932
1932
  }
1933
1933
 
@@ -1937,26 +1937,26 @@
1937
1937
 
1938
1938
  .ft-select--options-displayed .ft-select--options {
1939
1939
  display: block;
1940
- max-height: ${P.optionsHeight};
1940
+ max-height: ${D.optionsHeight};
1941
1941
  overflow-y: auto;
1942
1942
  }
1943
1943
 
1944
1944
  .ft-select--helper-text {
1945
- padding: 0 ${P.horizontalSpacing};
1946
- color: ${P.helperColor};
1945
+ padding: 0 ${D.horizontalSpacing};
1946
+ color: ${D.helperColor};
1947
1947
  }
1948
1948
 
1949
1949
  .ft-select--in-error .ft-select--helper-text {
1950
- color: ${P.colorError};
1950
+ color: ${D.colorError};
1951
1951
  }
1952
1952
 
1953
1953
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1954
1954
  opacity: 0;
1955
1955
  }
1956
- `});var cu,Tb,kb,Lb=l(()=>{"use strict";vr();cu=c(f());As();Tb=c(y()),kb=Tb.css`
1956
+ `});var uu,kv,Lv,$v=l(()=>{"use strict";br();uu=c(f());wo();kv=c(y()),Lv=kv.css`
1957
1957
  .ft-select--option {
1958
- ${(0,cu.setVariable)(j.opacityContentOnSurfaceHover,"0.08")};
1959
- ${(0,cu.setVariable)(j.opacityContentOnSurfacePressed,"0.04")};
1958
+ ${(0,uu.setVariable)(j.opacityContentOnSurfaceHover,"0.08")};
1959
+ ${(0,uu.setVariable)(j.opacityContentOnSurfacePressed,"0.04")};
1960
1960
  }
1961
1961
 
1962
1962
  .ft-select--option > *:not(ft-ripple) {
@@ -1965,14 +1965,14 @@
1965
1965
 
1966
1966
  .ft-select--option {
1967
1967
  position: relative;
1968
- padding: 4px ${P.horizontalSpacing};
1968
+ padding: 4px ${D.horizontalSpacing};
1969
1969
  min-height: 32px;
1970
1970
  display: flex;
1971
1971
  align-items: center;
1972
1972
  }
1973
1973
 
1974
1974
  .ft-select--option:hover {
1975
- border-left: 2px ${P.colorPrimary} solid;
1975
+ border-left: 2px ${D.colorPrimary} solid;
1976
1976
  }
1977
1977
 
1978
1978
  .ft-select--option span {
@@ -1980,8 +1980,8 @@
1980
1980
  overflow: hidden;
1981
1981
  }
1982
1982
 
1983
- `});var ya,xo,$b,Yr,ws,We,Ib=l(()=>{"use strict";ya=c(f());Xe();xe();xo=c(y()),$b=c(nt()),Yr=c(F());Lb();ws=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},We=class extends ya.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 xo.html`
1984
- <div class="${(0,$b.classMap)(i)}"
1983
+ `});var va,bs,Iv,Yr,Oo,Ge,Pv=l(()=>{"use strict";va=c(f());Xe();xe();bs=c(y()),Iv=c(nt()),Yr=c(F());$v();Oo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ge=class extends va.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 bs.html`
1984
+ <div class="${(0,Iv.classMap)(i)}"
1985
1985
  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,"")}"
1986
1986
  tabindex="0"
1987
1987
  aria-label="${this.label}"
@@ -1990,10 +1990,10 @@
1990
1990
  <ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
1991
1991
  <slot @slotchange=${this.onSlotChange}>
1992
1992
  </slot>
1993
- ${this.isSlotEmpty?xo.html`<span>${this.label}</span>`:xo.html``}
1993
+ ${this.isSlotEmpty?bs.html`<span>${this.label}</span>`:bs.html``}
1994
1994
  </div>
1995
- `}onSlotChange(){this.isSlotEmpty=(0,ya.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}))}};We.elementDefinitions={"ft-ripple":k};We.shadowRootOptions={...xo.LitElement.shadowRootOptions,delegatesFocus:!0};We.styles=[kb,Pr];ws([(0,Yr.property)({type:String})],We.prototype,"label",void 0);ws([(0,Yr.property)({type:Object,converter:t=>t})],We.prototype,"value",void 0);ws([(0,Yr.property)({type:Boolean,reflect:!0})],We.prototype,"selected",void 0);ws([(0,Yr.query)("slot")],We.prototype,"slotElement",void 0);ws([(0,Yr.state)()],We.prototype,"isSlotEmpty",void 0)});var So,Te,Db,Pb,Nt,Ue,se,uu=l(()=>{"use strict";So=c(y()),Te=c(F()),Db=c(nt()),Pb=c(Tr());ou();Hn();Nt=c(f());xe();Ob();Xe();_r();As();Ib();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},se=class t extends Nt.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,Nt.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||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").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 So.html`
1996
- <div class="${(0,Db.classMap)(d)}" part="container">
1995
+ `}onSlotChange(){this.isSlotEmpty=(0,va.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":k};Ge.shadowRootOptions={...bs.LitElement.shadowRootOptions,delegatesFocus:!0};Ge.styles=[Lv,Dr];Oo([(0,Yr.property)({type:String})],Ge.prototype,"label",void 0);Oo([(0,Yr.property)({type:Object,converter:t=>t})],Ge.prototype,"value",void 0);Oo([(0,Yr.property)({type:Boolean,reflect:!0})],Ge.prototype,"selected",void 0);Oo([(0,Yr.query)("slot")],Ge.prototype,"slotElement",void 0);Oo([(0,Yr.state)()],Ge.prototype,"isSlotEmpty",void 0)});var xs,Te,Dv,Mv,Ft,Ue,oe,du=l(()=>{"use strict";xs=c(y()),Te=c(F()),Dv=c(nt()),Mv=c(Tr());ou();jn();Ft=c(f());xe();_v();Xe();_r();wo();Pv();Ue=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},oe=class t extends Ft.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,Ft.last)(this.optionsList)}render(){var e,r,i,o,s;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:"").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 xs.html`
1996
+ <div class="${(0,Dv.classMap)(d)}" part="container">
1997
1997
  <div class="ft-select--main-panel" part="main-panel">
1998
1998
  <ft-input-label text="${this.label}"
1999
1999
  part="label"
@@ -2008,21 +2008,21 @@
2008
2008
  tabindex="${a?"-1":"0"}"
2009
2009
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2010
2010
  @keydown=${this.onMainPanelKeyDown}
2011
- aria-label="${lr(this.ariaLabel)}"
2012
- aria-labelledby="${Es(!this.ariaLabel,()=>"label")}"
2011
+ aria-label="${cr(this.ariaLabel)}"
2012
+ aria-labelledby="${Co(!this.ariaLabel,()=>"label")}"
2013
2013
  aria-haspopup="listbox"
2014
2014
  aria-expanded="${n}"
2015
- aria-activedescendant="${lr(this.getOptionId(this.selectedOption))}"
2015
+ aria-activedescendant="${cr(this.getOptionId(this.selectedOption))}"
2016
2016
  role="combobox">
2017
2017
  <ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
2018
2018
  <slot name="input-value">
2019
2019
  <ft-typography variant="${X.body1}"
2020
2020
  aria-hidden="${u?"false":"true"}"
2021
2021
  class="ft-select--selected-option">
2022
- ${(o=(s=this.selectedOption)===null||s===void 0?void 0:s.label)!==null&&o!==void 0?o:this.label}
2022
+ ${(s=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&s!==void 0?s:this.label}
2023
2023
  </ft-typography>
2024
2024
  </slot>
2025
- <ft-icon aria-hidden="true" .value=${n?Oe.THIN_ARROW_UP:Oe.THIN_ARROW}></ft-icon>
2025
+ <ft-icon aria-hidden="true" .value=${n?_e.THIN_ARROW_UP:_e.THIN_ARROW}></ft-icon>
2026
2026
  </div>
2027
2027
  <div class="ft-select--options"
2028
2028
  part="options"
@@ -2033,22 +2033,22 @@
2033
2033
  @option-change=${this.updateOptionsFromSlot}
2034
2034
  >
2035
2035
  </slot>
2036
- ${Es(this.isSlotEmpty,()=>(0,Pb.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
2036
+ ${Co(this.isSlotEmpty,()=>(0,Mv.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
2037
2037
  </div>
2038
2038
  </div>
2039
2039
  <slot name="helper" part="helper">
2040
- ${this.helper?So.html`
2040
+ ${this.helper?xs.html`
2041
2041
  <ft-typography class="ft-select--helper-text" variant="${X.caption}">${this.helper}
2042
- </ft-typography>`:So.nothing}
2042
+ </ft-typography>`:xs.nothing}
2043
2043
  </slot>
2044
2044
  </div>
2045
- `}renderOption(e){let r=this.selectedOption===e;return So.html`
2045
+ `}renderOption(e){let r=this.selectedOption===e;return xs.html`
2046
2046
  <ft-select-option
2047
2047
  ?selected=${r}
2048
2048
  label="${e.label}"
2049
2049
  .value=${e.value}
2050
2050
  ></ft-select-option>
2051
- `}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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.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,Nt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",P.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,Nt.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,Nt.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,Nt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Nt.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}};se.elementDefinitions={"ft-input-label":Yt,"ft-typography":V,"ft-ripple":k,"ft-icon":ae,"ft-select-option":We};se.searchTimeoutMilliseconds=2e3;se.styles=[Mr,Rb];Ue([(0,Te.property)({type:String})],se.prototype,"label",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"ariaLabel",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"helper",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"outlined",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"disabled",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"error",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"fixedMenuPosition",void 0);Ue([(0,Te.property)({type:Array})],se.prototype,"options",void 0);Ue([(0,Te.state)()],se.prototype,"selectedOption",void 0);Ue([(0,Te.state)()],se.prototype,"optionsDisplayed",void 0);Ue([(0,Te.state)()],se.prototype,"focusOptions",void 0);Ue([(0,Te.state)()],se.prototype,"currentSearch",void 0);Ue([(0,Te.state)()],se.prototype,"lastSearchInputDate",void 0);Ue([(0,Te.query)(".ft-select")],se.prototype,"container",void 0);Ue([(0,Te.query)(".ft-select--options")],se.prototype,"optionsMenu",void 0);Ue([(0,Te.query)(".ft-select--input-panel")],se.prototype,"mainPanel",void 0);Ue([(0,Te.query)("slot:not([name])")],se.prototype,"optionsSlot",void 0)});var Mb=l(()=>{"use strict"});var Nb,Fb=l(()=>{"use strict";uu();Nb={"ft-select":se,"ft-select-option":We}});var Bb,Ub=l(()=>{"use strict";Bb=c(f());Fb();(0,Bb.customElements)(Nb)});var Vb=l(()=>{"use strict";uu();As();Mb();Ub()});var zb,Zt,Ve,Hb,ba=l(()=>{"use strict";zb=c(y()),Zt=c(f()),Ve={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},Hb=zb.css`
2051
+ `}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 o=["bottom","top"];(0,Ft.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",D.optionsHeight,0).then(({x:s,y:n})=>{this.optionsMenu.style.left=`${s}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,Ft.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);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 o,s=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(),o=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(s+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.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(o=>{var s;return((s=o.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Ft.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(o=>(0,Ft.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,Ft.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};oe.elementDefinitions={"ft-input-label":Yt,"ft-typography":V,"ft-ripple":k,"ft-icon":ae,"ft-select-option":Ge};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Mr,Tv];Ue([(0,Te.property)({type:String})],oe.prototype,"label",void 0);Ue([(0,Te.property)({type:String})],oe.prototype,"ariaLabel",void 0);Ue([(0,Te.property)({type:String})],oe.prototype,"helper",void 0);Ue([(0,Te.property)({type:Boolean})],oe.prototype,"outlined",void 0);Ue([(0,Te.property)({type:Boolean})],oe.prototype,"disabled",void 0);Ue([(0,Te.property)({type:Boolean})],oe.prototype,"error",void 0);Ue([(0,Te.property)({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);Ue([(0,Te.property)({type:Array})],oe.prototype,"options",void 0);Ue([(0,Te.state)()],oe.prototype,"selectedOption",void 0);Ue([(0,Te.state)()],oe.prototype,"optionsDisplayed",void 0);Ue([(0,Te.state)()],oe.prototype,"focusOptions",void 0);Ue([(0,Te.state)()],oe.prototype,"currentSearch",void 0);Ue([(0,Te.state)()],oe.prototype,"lastSearchInputDate",void 0);Ue([(0,Te.query)(".ft-select")],oe.prototype,"container",void 0);Ue([(0,Te.query)(".ft-select--options")],oe.prototype,"optionsMenu",void 0);Ue([(0,Te.query)(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);Ue([(0,Te.query)("slot:not([name])")],oe.prototype,"optionsSlot",void 0)});var Nv=l(()=>{"use strict"});var Fv,Bv=l(()=>{"use strict";du();Fv={"ft-select":oe,"ft-select-option":Ge}});var Uv,Vv=l(()=>{"use strict";Uv=c(f());Bv();(0,Uv.customElements)(Fv)});var zv=l(()=>{"use strict";du();wo();Nv();Vv()});var Hv,Zt,Ve,jv,ba=l(()=>{"use strict";Hv=c(y()),Zt=c(f()),Ve={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},jv=Hv.css`
2052
2052
  :host {
2053
2053
  width: ${Ve.width};
2054
2054
  height: ${Ve.height};
@@ -2075,7 +2075,7 @@
2075
2075
  background-position: calc(100vw + ${Ve.glareWidth}) 0, calc(${Ve.glareWidth} * -1) 0;
2076
2076
  }
2077
2077
  }
2078
- `});var L,du,_,jb,qb,va=l(()=>{"use strict";L=c(f()),du=c(y());Ti();Cs();As();ba();la();ua();Bt();_={height:L.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:L.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",L.designSystemVariables.borderRadiusS),mobileOpenPosition:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:L.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:L.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorSurface,"Design system"),colorOnSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:L.FtCssVariableFactory.external(L.designSystemVariables.colorOutline,"Design system"),colorPrimary:L.FtCssVariableFactory.external(L.designSystemVariables.colorPrimary,"Design system"),elevation02:L.FtCssVariableFactory.external(L.designSystemVariables.elevation02,"Design system"),buttonColor:L.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:L.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:L.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",L.designSystemVariables.colorPrimary)},jb=du.css`
2078
+ `});var L,pu,_,qv,Kv,xa=l(()=>{"use strict";L=c(f()),pu=c(y());ki();Ao();wo();ba();ca();da();Ut();_={height:L.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:L.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",L.designSystemVariables.borderRadiusS),mobileOpenPosition:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:L.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:L.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorSurface,"Design system"),colorOnSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:L.FtCssVariableFactory.external(L.designSystemVariables.colorOutline,"Design system"),colorPrimary:L.FtCssVariableFactory.external(L.designSystemVariables.colorPrimary,"Design system"),elevation02:L.FtCssVariableFactory.external(L.designSystemVariables.elevation02,"Design system"),buttonColor:L.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:L.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:L.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",L.designSystemVariables.colorPrimary)},qv=pu.css`
2079
2079
  * {
2080
2080
  box-sizing: border-box;
2081
2081
  }
@@ -2212,7 +2212,7 @@
2212
2212
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2213
2213
  ${(0,L.setVariable)(q.borderColor,"transparent")};
2214
2214
  ${(0,L.setVariable)(q.borderRadius,`calc(${_.borderRadius} - 1px)`)};
2215
- ${(0,L.setVariable)(P.selectedOptionColor,_.buttonColor)};
2215
+ ${(0,L.setVariable)(D.selectedOptionColor,_.buttonColor)};
2216
2216
  }
2217
2217
 
2218
2218
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2256,7 +2256,7 @@
2256
2256
  flex-shrink: 0;
2257
2257
  padding: 0 10px;
2258
2258
  margin-bottom: 8px;
2259
- ${(0,L.setVariable)(v.fontSize,"14px")};
2259
+ ${(0,L.setVariable)(b.fontSize,"14px")};
2260
2260
  }
2261
2261
 
2262
2262
  [part="content-locale-selector-label"] {
@@ -2264,18 +2264,18 @@
2264
2264
  flex-shrink: 1;
2265
2265
  flex-grow: 1;
2266
2266
  word-break: break-word;
2267
- ${(0,L.setVariable)(v.lineHeight,"22px")};
2268
- ${(0,L.setVariable)(v.fontWeight,"bold")};
2267
+ ${(0,L.setVariable)(b.lineHeight,"22px")};
2268
+ ${(0,L.setVariable)(b.fontWeight,"bold")};
2269
2269
  }
2270
2270
 
2271
- `,qb=du.css`
2271
+ `,Kv=pu.css`
2272
2272
  .ft-search-bar--presets {
2273
2273
  min-width: 200px;
2274
2274
  }
2275
2275
 
2276
2276
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2277
2277
  margin-right: auto;
2278
- ${(0,L.setVariable)(P.optionsZIndex,"2")};
2278
+ ${(0,L.setVariable)(D.optionsZIndex,"2")};
2279
2279
  }
2280
2280
 
2281
2281
  .ft-search-bar--desktop-menu {
@@ -2429,16 +2429,16 @@
2429
2429
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2430
2430
  margin: 0;
2431
2431
  }
2432
- `});var Kb,Wb,Zr,pu=l(()=>{"use strict";Kb=c(y()),Wb=c(f());ba();Zr=class extends Wb.FtLitElement{render(){return Kb.html`
2433
- `}};Zr.elementDefinitions={};Zr.styles=Hb});var Gb=l(()=>{"use strict"});var Qb,Xb=l(()=>{"use strict";pu();Qb={"ft-skeleton":Zr}});var Yb,Zb=l(()=>{"use strict";Yb=c(f());Xb();(0,Yb.customElements)(Qb)});var Jb=l(()=>{"use strict";pu();ba();Gb();Zb()});var fr,hu,Eo,mr,xa=l(()=>{"use strict";fr=c(y()),hu=c(Tr());_r();Eo=c(f());va();Xe();mr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Eo.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return fr.html`
2432
+ `});var Wv,Gv,Zr,hu=l(()=>{"use strict";Wv=c(y()),Gv=c(f());ba();Zr=class extends Gv.FtLitElement{render(){return Wv.html`
2433
+ `}};Zr.elementDefinitions={};Zr.styles=jv});var Qv=l(()=>{"use strict"});var Xv,Yv=l(()=>{"use strict";hu();Xv={"ft-skeleton":Zr}});var Zv,Jv=l(()=>{"use strict";Zv=c(f());Yv();(0,Zv.customElements)(Xv)});var eb=l(()=>{"use strict";hu();ba();Qv();Jv()});var mr,fu,Ss,gr,Sa=l(()=>{"use strict";mr=c(y()),fu=c(Tr());_r();Ss=c(f());xa();Xe();gr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Ss.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return mr.html`
2434
2434
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2435
2435
  id="${this.listboxId}"
2436
2436
  role="listbox"
2437
2437
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2438
2438
  part="suggestions-container">
2439
- ${(0,hu.repeat)(e.slice(0,5),r=>r,(r,i)=>fr.html`
2439
+ ${(0,fu.repeat)(e.slice(0,5),r=>r,(r,i)=>mr.html`
2440
2440
  <div part="suggestion-container"
2441
- class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":fr.nothing}">
2441
+ class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":mr.nothing}">
2442
2442
  <a href="${this.getRequestWithQuery(r)}"
2443
2443
  part="suggestions"
2444
2444
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
@@ -2447,7 +2447,7 @@
2447
2447
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
2448
2448
  tabindex="-1"
2449
2449
  aria-label="${r}"
2450
- @click=${s=>this.onSuggestClick(s,r)}>
2450
+ @click=${o=>this.onSuggestClick(o,r)}>
2451
2451
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
2452
2452
  <ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
2453
2453
  <ft-typography variant="body1">${r}</ft-typography>
@@ -2461,13 +2461,13 @@
2461
2461
  tooltipPosition="left"
2462
2462
  tabindex="-1"
2463
2463
  ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
2464
- @click=${s=>this.removeRecentSearch(s,r)}>
2464
+ @click=${o=>this.removeRecentSearch(o,r)}>
2465
2465
  </ft-button>
2466
2466
  </div>
2467
2467
  `)}
2468
- ${(0,hu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>fr.html`
2468
+ ${(0,fu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>mr.html`
2469
2469
  <div part="suggestion-container"
2470
- class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":fr.nothing}">
2470
+ class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":mr.nothing}">
2471
2471
  <a href="${this.getRequestWithQuery(r.value)}"
2472
2472
  part="suggestions"
2473
2473
  class="ft-search-bar--suggestion"
@@ -2475,7 +2475,7 @@
2475
2475
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
2476
2476
  role="option"
2477
2477
  tabindex="-1"
2478
- @click=${s=>this.onSuggestClick(s,r.value)}>
2478
+ @click=${o=>this.onSuggestClick(o,r.value)}>
2479
2479
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
2480
2480
  ${this.getIcon(r)}
2481
2481
  <ft-typography variant="body1">${r.value}</ft-typography>
@@ -2483,9 +2483,9 @@
2483
2483
  </div>
2484
2484
  `)}
2485
2485
  </div>
2486
- `}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"?et.file_format:et.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Oe.BOOK:Oe.ARTICLE;break;case"DOCUMENT":i=Vn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Oe.TOPICS;break;case"HTML_PACKAGE":i=Oe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Oe.FILE_CODE;break}return fr.html`
2486
+ `}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"?et.file_format:et.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?_e.BOOK:_e.ARTICLE;break;case"DOCUMENT":i=zn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=_e.TOPICS;break;case"HTML_PACKAGE":i=_e.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=_e.FILE_CODE;break}return mr.html`
2487
2487
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2488
- `}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()))}};mr.styles=[Eo.wordWrap,fr.css`
2488
+ `}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()))}};gr.styles=[Ss.wordWrap,mr.css`
2489
2489
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2490
2490
  flex-grow: 1;
2491
2491
  flex-shrink: 1;
@@ -2573,10 +2573,10 @@
2573
2573
  }
2574
2574
 
2575
2575
  ft-ripple {
2576
- ${(0,Eo.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
2576
+ ${(0,Ss.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
2577
2577
  }
2578
- `]});var ot,fu,Sa,gr,Ea=l(()=>{"use strict";ot=c(y()),fu=c(Tr());Dc();Sa=c(f());ca();iu();gr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return ot.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=ot.html`
2579
- ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?ot.html`
2578
+ `]});var st,mu,Ea,yr,Ca=l(()=>{"use strict";st=c(y()),mu=c(Tr());Dc();Ea=c(f());ua();su();yr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return st.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=st.html`
2579
+ ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?st.html`
2580
2580
  <ft-chip part="selected-filters selected-filter-ft-locale"
2581
2581
  ?dense=${this.searchBar.dense&&!e}
2582
2582
  ?clickable=${e}
@@ -2586,46 +2586,46 @@
2586
2586
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2587
2587
  </ft-chip>
2588
2588
  `:null}
2589
- ${(0,fu.repeat)(this.searchBar.facets,s=>s.key,s=>{let o=Gg(s);return(0,fu.repeat)(o,n=>{let a=s.label+": "+qg(n),u=s.key.replace(":","-"),d=ot.html`
2589
+ ${(0,mu.repeat)(this.searchBar.facets,o=>o.key,o=>{let s=Qg(o);return(0,mu.repeat)(s,n=>{let a=o.label+": "+Kg(n),u=o.key.replace(":","-"),d=st.html`
2590
2590
  <ft-chip
2591
2591
  part="selected-filters selected-filter-${u}"
2592
2592
  ?dense=${this.searchBar.dense&&!e}
2593
2593
  ?clickable=${e}
2594
2594
  ?removable=${!e}
2595
- icon="${e?ot.nothing:"close"}"
2595
+ icon="${e?st.nothing:"close"}"
2596
2596
  label="${a}"
2597
- title="${r?a:ot.nothing}"
2598
- @click=${()=>this.openMobileFilters(s.key)}
2599
- @icon-click=${()=>this.searchBar.setFilter(s.key,o.filter(p=>p!==n))}
2600
- data-key="${s.key}"
2597
+ title="${r?a:st.nothing}"
2598
+ @click=${()=>this.openMobileFilters(o.key)}
2599
+ @icon-click=${()=>this.searchBar.setFilter(o.key,s.filter(p=>p!==n))}
2600
+ data-key="${o.key}"
2601
2601
  data-value="${n}">
2602
- ${jg(n)}
2602
+ ${qg(n)}
2603
2603
  </ft-chip>
2604
- `;return r?d:ot.html`
2604
+ `;return r?d:st.html`
2605
2605
  <ft-tooltip inline text="${a}">
2606
2606
  ${d}
2607
2607
  </ft-tooltip>
2608
2608
  `})})}
2609
- ${e?ot.html`
2609
+ ${e?st.html`
2610
2610
  <ft-chip part="selected-filters mobile-filters-opener"
2611
2611
  icon="plus"
2612
2612
  clickable
2613
2613
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2614
2614
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2615
2615
  </ft-chip>
2616
- `:ot.nothing}
2617
- `;return r?ot.html`
2616
+ `:st.nothing}
2617
+ `;return r?st.html`
2618
2618
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2619
2619
  class="ft-search-bar--selected-filters"
2620
2620
  part="selected-filters-container"
2621
2621
  exportpartsPrefix="selected-filters-container">
2622
2622
  ${i}
2623
2623
  </ft-snap-scroll>
2624
- `:ot.html`
2624
+ `:st.html`
2625
2625
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2626
2626
  ${i}
2627
2627
  </div>
2628
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var s;return((s=i.lang)!==null&&s!==void 0?s:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};gr.styles=ot.css`
2628
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};yr.styles=st.css`
2629
2629
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2630
2630
  flex-shrink: 0;
2631
2631
  display: flex;
@@ -2636,7 +2636,7 @@
2636
2636
 
2637
2637
  ft-snap-scroll.ft-search-bar--selected-filters {
2638
2638
  overflow: hidden;
2639
- ${(0,Sa.setVariable)(rt.gap,"4px")};
2639
+ ${(0,Ea.setVariable)(rt.gap,"4px")};
2640
2640
  }
2641
2641
 
2642
2642
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2644,8 +2644,8 @@
2644
2644
  }
2645
2645
 
2646
2646
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2647
- ${(0,Sa.setVariable)(Fe.iconSize,"17px")};
2648
- ${(0,Sa.setVariable)(Fe.fontSize,"12px")};
2647
+ ${(0,Ea.setVariable)(Fe.iconSize,"17px")};
2648
+ ${(0,Ea.setVariable)(Fe.fontSize,"12px")};
2649
2649
  }
2650
2650
 
2651
2651
  .ft-search-bar--selected-filters * {
@@ -2655,8 +2655,8 @@
2655
2655
  .ft-search-bar--selected-filters ft-chip {
2656
2656
  flex-grow: 0;
2657
2657
  }
2658
- `});var Jt,ev,tv,RE,Co,rv=l(()=>{"use strict";Jt=c(y());Ea();xa();ev=c(nt()),tv=c(f()),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},Co=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new gr(e),this.suggestManager=i??new mr(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 Jt.html`
2659
- <div class="${(0,ev.classMap)(r)}" part="container" tabindex="-1">
2658
+ `});var Jt,tb,rb,kE,Es,ib=l(()=>{"use strict";Jt=c(y());Ca();Sa();tb=c(nt()),rb=c(f()),kE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Es=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new yr(e),this.suggestManager=i??new gr(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 Jt.html`
2659
+ <div class="${(0,tb.classMap)(r)}" part="container" tabindex="-1">
2660
2660
  <div class="ft-search-bar" role="search">
2661
2661
  <div class="ft-search-bar--input-container" part="input-container">
2662
2662
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2712,21 +2712,21 @@
2712
2712
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2713
2713
  ></ft-button>
2714
2714
  </div>
2715
- `}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}};Co.styles=Jt.css`
2715
+ `}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}};Es.styles=Jt.css`
2716
2716
 
2717
- `;RE([(0,tv.ignoreComposingEvents)()],Co.prototype,"onSearchBarKeyDown",null)});var st,iv,ov,sv,TE,Ao,nv=l(()=>{"use strict";st=c(y()),iv=c(Tr());Ea();xa();ov=c(nt()),sv=c(f()),TE=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=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new gr(e),this.suggestManager=i??new mr(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`
2718
- <div class="${(0,ov.classMap)(r)}" part="container" tabindex="-1">
2717
+ `;kE([(0,rb.ignoreComposingEvents)()],Es.prototype,"onSearchBarKeyDown",null)});var ot,sb,ob,nb,LE,Cs,ab=l(()=>{"use strict";ot=c(y()),sb=c(Tr());Ca();Sa();ob=c(nt()),nb=c(f()),LE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Cs=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new yr(e),this.suggestManager=i??new gr(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 ot.html`
2718
+ <div class="${(0,ob.classMap)(r)}" part="container" tabindex="-1">
2719
2719
  <div class="ft-search-bar" part="search-bar" role="search">
2720
2720
  ${this.renderSearchBarLeftAction()}
2721
2721
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
2722
2722
  <div class="ft-search-bar--input-outline" part="input-outline">
2723
- ${this.searchBar.dense?this.selectedFacetsManager.render():st.nothing}
2723
+ ${this.searchBar.dense?this.selectedFacetsManager.render():ot.nothing}
2724
2724
  <input class="ft-search-bar--input ft-typography--body2"
2725
2725
  role="combobox"
2726
2726
  aria-autocomplete="list"
2727
2727
  aria-controls="${this.suggestManager.listboxId}"
2728
2728
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2729
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:st.nothing}"
2729
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:ot.nothing}"
2730
2730
  part="input"
2731
2731
  type="search"
2732
2732
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2741,9 +2741,9 @@
2741
2741
  ${this.renderDesktopSearchBarButtons()}
2742
2742
  ${this.searchBar.renderDesktopFloatingMenu()}
2743
2743
  </div>
2744
- ${this.searchBar.dense?st.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2744
+ ${this.searchBar.dense?ot.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2745
2745
  </div>
2746
- `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?st.nothing:st.html`
2746
+ `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?ot.nothing:ot.html`
2747
2747
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2748
2748
  part="filters-opener"
2749
2749
  trailingIcon
@@ -2755,24 +2755,24 @@
2755
2755
  >
2756
2756
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2757
2757
  </ft-button>
2758
- `:this.searchBar.hasLocaleSelector()?st.html`
2758
+ `:this.searchBar.hasLocaleSelector()?ot.html`
2759
2759
  <ft-select outlined
2760
2760
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2761
2761
  part="content-locale select-ft-locale"
2762
2762
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2763
2763
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2764
2764
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2765
- ${(0,iv.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>st.html`
2765
+ ${(0,sb.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>ot.html`
2766
2766
  <ft-select-option .value=${e.lang}
2767
2767
  label="${e.label}"
2768
2768
  ?selected=${e.lang==this.searchBar.contentLocale}>
2769
2769
  </ft-select-option>
2770
2770
  `)}
2771
2771
  </ft-select>
2772
- `:st.nothing}renderDesktopSearchBarButtons(){return st.html`
2772
+ `:ot.nothing}renderDesktopSearchBarButtons(){return ot.html`
2773
2773
  <div class="ft-search-bar--actions"
2774
2774
  part="search-bar-actions">
2775
- ${this.searchBar.query?st.html`
2775
+ ${this.searchBar.query?ot.html`
2776
2776
  <ft-button class="ft-search-bar--clear-query"
2777
2777
  part="clear-query"
2778
2778
  icon="close"
@@ -2791,9 +2791,9 @@
2791
2791
  @click=${()=>this.searchBar.onLaunchSearch()}
2792
2792
  ></ft-button>
2793
2793
  </div>
2794
- `}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)}};Ao.styles=st.css`
2794
+ `}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)}};Cs.styles=ot.css`
2795
2795
 
2796
- `;TE([(0,sv.ignoreComposingEvents)()],Ao.prototype,"onSearchBarKeyDown",null)});var G,z,Os,re,U,av,mu,kE,R,gu=l(()=>{"use strict";G=c(y()),z=c(F()),Os=c(Tr()),re=c(f());Hg();xe();Dc();zy();_r();ib();Kt();iu();Vb();ca();ic();Xe();va();Jb();xa();Ea();rv();nv();Hc();Ht();U=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");av={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},mu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},kE=()=>{},R=class extends re.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 re.ParametrizedLabelResolver(av,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new re.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Pt.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 mr(this),this.selectedFacetsManager=new gr(this),this.desktopSearchBarManager=new Ao(this),this.mobileSearchBarManager=new Co(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.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 re.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===Pt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2796
+ `;LE([(0,nb.ignoreComposingEvents)()],Cs.prototype,"onSearchBarKeyDown",null)});var G,z,_o,re,U,lb,gu,$E,R,yu=l(()=>{"use strict";G=c(y()),z=c(F()),_o=c(Tr()),re=c(f());jg();xe();Dc();Hy();_r();sv();Wt();su();zv();ua();sc();Xe();xa();eb();Sa();Ca();ib();ab();jc();jt();U=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");lb={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},gu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},$E=()=>{},R=class extends re.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 re.ParametrizedLabelResolver(lb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new re.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Mt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new gr(this),this.selectedFacetsManager=new yr(this),this.desktopSearchBarManager=new Cs(this),this.mobileSearchBarManager=new Es(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.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 re.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(o=>o===this||o===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(o=>this.compareFilters(i,o)))}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,o;return((o=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&o!==void 0?o:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Mt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2797
2797
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2798
2798
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2799
2799
  ${this.renderLiveText()}
@@ -2821,19 +2821,19 @@
2821
2821
  </div>
2822
2822
  </ft-accordion-item>
2823
2823
  `:null}
2824
- ${(0,Os.repeat)(this.facets,r=>r.key,r=>{let i=Ic(r),s=r.key.replace(":","-"),o=Wg(i);return r.rootNodes.length>0?G.html`
2824
+ ${(0,_o.repeat)(this.facets,r=>r.key,r=>{let i=Pc(r),o=r.key.replace(":","-"),s=Gg(i);return r.rootNodes.length>0?G.html`
2825
2825
  <ft-accordion-item data-facet-key="${r.key}">
2826
2826
  <div class="ft-search-bar--filter-label" slot="toggle">
2827
2827
  <ft-typography variant="button">${r.label}</ft-typography>
2828
- ${o.length>0?G.html`
2828
+ ${s.length>0?G.html`
2829
2829
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2830
- ${o.join(", ")}
2830
+ ${s.join(", ")}
2831
2831
  </ft-typography>
2832
2832
  `:G.nothing}
2833
2833
  </div>
2834
2834
  <ft-filter
2835
- part="filters filter filter-${s}"
2836
- .exportpartsPrefixes=${["filter","filter-"+s]}
2835
+ part="filters filter filter-${o}"
2836
+ .exportpartsPrefixes=${["filter","filter-"+o]}
2837
2837
  id="${i.id}"
2838
2838
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2839
2839
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
@@ -2851,7 +2851,7 @@
2851
2851
  `}getContentLocaleRadioGroup(){var e;return G.html`
2852
2852
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2853
2853
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2854
- ${(0,Os.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return G.html`
2854
+ ${(0,_o.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return G.html`
2855
2855
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2856
2856
  ?checked=${r.lang==this.contentLocale}>
2857
2857
  ${r.label}
@@ -2882,7 +2882,7 @@
2882
2882
  label="${this.labelResolver.resolve("presetsSelector")}"
2883
2883
  outlined
2884
2884
  @change=${r=>this.selectedPreset=r.detail}>
2885
- ${(0,Os.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>G.html`
2885
+ ${(0,_o.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>G.html`
2886
2886
  <ft-select-option value="${r.name}"
2887
2887
  label="${r.name}"
2888
2888
  ?selected=${r.name===this.selectedPreset}>
@@ -2914,11 +2914,11 @@
2914
2914
  ${this.getContentLocaleRadioGroup()}
2915
2915
  </div>
2916
2916
  `:G.nothing}
2917
- ${(0,Os.repeat)(this.facets,e=>e.key,e=>{let r=Ic(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 G.html`
2917
+ ${(0,_o.repeat)(this.facets,e=>e.key,e=>{let r=Pc(e),i=r.options.some(s=>{var n,a;return((a=(n=s.subOptions)===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return G.html`
2918
2918
  <ft-filter
2919
2919
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2920
- part="filters filter filter-${s}"
2921
- .exportpartsPrefixes=${["filter","filter-"+s]}
2920
+ part="filters filter filter-${o}"
2921
+ .exportpartsPrefixes=${["filter","filter-"+o]}
2922
2922
  id="${r.id}"
2923
2923
  label="${r.label}"
2924
2924
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
@@ -2929,18 +2929,18 @@
2929
2929
  raiseSelectedOptions
2930
2930
  .options=${r.options}
2931
2931
  .displayedValuesLimit=${10}
2932
- @change=${o=>this.setFilter(r.id,o.detail)}
2932
+ @change=${s=>this.setFilter(r.id,s.detail)}
2933
2933
  ></ft-filter>
2934
2934
  `})}
2935
2935
  </ft-snap-scroll>
2936
- `:G.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 re.ParametrizedLabelResolver(av,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")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>sa(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).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=(n=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||n===void 0?void 0:n.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 mu(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(kE)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!re.isTouchScreen&&this.focusInput(),S.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),S.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,re.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,re.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?G.nothing:G.html`
2936
+ `:G.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,s,n;if(e.has("labels")&&(this.labelResolver=new re.ParametrizedLabelResolver(lb,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")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>na(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).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 gu(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,o;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 s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch($E)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!re.isTouchScreen&&this.focusInput(),S.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),S.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(o=>!o.valueFilter||o.key!==e);this.facets.forEach(o=>{o.key===e&&(0,re.flatDeep)(o.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,re.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?G.nothing:G.html`
2937
2937
  <div class="ft-search-bar--floating-panel"
2938
2938
  id="ft-search-bar-floating-panel"
2939
2939
  @keyup=${this.onFloatingContainerKeyUp}
2940
2940
  part="floating-panel"
2941
2941
  tabindex="-1">
2942
2942
  ${this.renderDesktopMenu()}
2943
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":hr,"ft-accordion-item":Mt,"ft-button":w,"ft-chip":me,"ft-filter":W,"ft-filter-option":Et,"ft-icon":ae,"ft-ripple":k,"ft-select":se,"ft-select-option":We,"ft-size-watcher":yt,"ft-skeleton":Zr,"ft-snap-scroll":Re,"ft-tooltip":Se,"ft-typography":V,"ft-radio-group":vt,"ft-radio":$e};R.styles=[Pr,re.noTextInputDefaultClearButton,jb,qb,gr.styles,mr.styles,re.screenReaderStyles];U([(0,z.property)({type:Boolean})],R.prototype,"dense",void 0);U([(0,z.property)()],R.prototype,"mode",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);U([(0,z.property)()],R.prototype,"baseUrl",void 0);U([(0,z.property)()],R.prototype,"apiIntegrationIdentifier",void 0);U([(0,z.property)()],R.prototype,"contentLocale",void 0);U([(0,z.state)()],R.prototype,"availableContentLocales",void 0);U([(0,z.state)()],R.prototype,"availableContentLocalesInitialized",void 0);U([(0,z.property)()],R.prototype,"uiLocale",void 0);U([(0,re.jsonProperty)({})],R.prototype,"labels",void 0);U([(0,re.jsonProperty)([])],R.prototype,"displayedFilters",void 0);U([(0,re.jsonProperty)([])],R.prototype,"presets",void 0);U([(0,z.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);U([(0,re.jsonProperty)([])],R.prototype,"priors",void 0);U([(0,z.property)()],R.prototype,"searchRequestSerializer",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);U([(0,z.state)()],R.prototype,"metadataFilters",void 0);U([(0,z.state)()],R.prototype,"sizeCategory",void 0);U([(0,z.state)()],R.prototype,"displayFacets",void 0);U([(0,z.state)()],R.prototype,"mobileMenuOpen",void 0);U([(0,z.state)()],R.prototype,"facets",void 0);U([(0,z.state)()],R.prototype,"facetsInitialized",void 0);U([(0,z.query)(".ft-search-bar--container")],R.prototype,"container",void 0);U([(0,z.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);U([(0,z.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);U([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);U([(0,z.query)(".ft-search-bar--input")],R.prototype,"input",void 0);U([(0,z.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);U([(0,z.state)()],R.prototype,"query",void 0);U([(0,z.state)()],R.prototype,"suggestions",void 0);U([(0,z.state)()],R.prototype,"recentSearches",void 0);U([(0,z.state)()],R.prototype,"scrollToFacet",void 0);U([(0,z.state)()],R.prototype,"api",void 0);U([(0,z.state)()],R.prototype,"displaySuggestListbox",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestOptionId",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);U([(0,z.state)()],R.prototype,"facetsLoaded",void 0)});var lv=l(()=>{"use strict"});var cv,uv=l(()=>{"use strict";gu();cv={"ft-search-bar":R}});var dv,pv=l(()=>{"use strict";dv=c(f());uv();(0,dv.customElements)(cv)});var hv=l(()=>{"use strict";gu();va();lv();pv()});var fv,mv,gv,yv=l(()=>{"use strict";fv=c(y());cs();mv=c(f());Xe();hv();gv=fv.css`
2943
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":fr,"ft-accordion-item":Nt,"ft-button":w,"ft-chip":me,"ft-filter":W,"ft-filter-option":Et,"ft-icon":ae,"ft-ripple":k,"ft-select":oe,"ft-select-option":Ge,"ft-size-watcher":yt,"ft-skeleton":Zr,"ft-snap-scroll":Re,"ft-tooltip":Se,"ft-typography":V,"ft-radio-group":bt,"ft-radio":$e};R.styles=[Dr,re.noTextInputDefaultClearButton,qv,Kv,yr.styles,gr.styles,re.screenReaderStyles];U([(0,z.property)({type:Boolean})],R.prototype,"dense",void 0);U([(0,z.property)()],R.prototype,"mode",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);U([(0,z.property)()],R.prototype,"baseUrl",void 0);U([(0,z.property)()],R.prototype,"apiIntegrationIdentifier",void 0);U([(0,z.property)()],R.prototype,"contentLocale",void 0);U([(0,z.state)()],R.prototype,"availableContentLocales",void 0);U([(0,z.state)()],R.prototype,"availableContentLocalesInitialized",void 0);U([(0,z.property)()],R.prototype,"uiLocale",void 0);U([(0,re.jsonProperty)({})],R.prototype,"labels",void 0);U([(0,re.jsonProperty)([])],R.prototype,"displayedFilters",void 0);U([(0,re.jsonProperty)([])],R.prototype,"presets",void 0);U([(0,z.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);U([(0,re.jsonProperty)([])],R.prototype,"priors",void 0);U([(0,z.property)()],R.prototype,"searchRequestSerializer",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);U([(0,z.state)()],R.prototype,"metadataFilters",void 0);U([(0,z.state)()],R.prototype,"sizeCategory",void 0);U([(0,z.state)()],R.prototype,"displayFacets",void 0);U([(0,z.state)()],R.prototype,"mobileMenuOpen",void 0);U([(0,z.state)()],R.prototype,"facets",void 0);U([(0,z.state)()],R.prototype,"facetsInitialized",void 0);U([(0,z.query)(".ft-search-bar--container")],R.prototype,"container",void 0);U([(0,z.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);U([(0,z.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);U([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);U([(0,z.query)(".ft-search-bar--input")],R.prototype,"input",void 0);U([(0,z.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);U([(0,z.state)()],R.prototype,"query",void 0);U([(0,z.state)()],R.prototype,"suggestions",void 0);U([(0,z.state)()],R.prototype,"recentSearches",void 0);U([(0,z.state)()],R.prototype,"scrollToFacet",void 0);U([(0,z.state)()],R.prototype,"api",void 0);U([(0,z.state)()],R.prototype,"displaySuggestListbox",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestOptionId",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);U([(0,z.state)()],R.prototype,"facetsLoaded",void 0)});var cb=l(()=>{"use strict"});var ub,db=l(()=>{"use strict";yu();ub={"ft-search-bar":R}});var pb,hb=l(()=>{"use strict";pb=c(f());db();(0,pb.customElements)(ub)});var fb=l(()=>{"use strict";yu();xa();cb();hb()});var mb,gb,yb,vb=l(()=>{"use strict";mb=c(y());lo();gb=c(f());Xe();fb();yb=mb.css`
2944
2944
  * {
2945
2945
  box-sizing: border-box;
2946
2946
  }
@@ -2992,18 +2992,18 @@
2992
2992
  }
2993
2993
 
2994
2994
  ft-ripple {
2995
- ${(0,mv.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
2995
+ ${(0,gb.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
2996
2996
  }
2997
- `});var bv,Ui,yu,Jr,vv=l(()=>{"use strict";bv=c(f()),Ui=c(y());yv();yu=c(Tr());_r();Xe();xe();Ht();_c();Kt();Jr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=wr.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ui.html`
2997
+ `});var bb,Vi,vu,Jr,xb=l(()=>{"use strict";bb=c(f()),Vi=c(y());vb();vu=c(Tr());_r();Xe();xe();jt();Rc();Wt();Jr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=wr.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Vi.html`
2998
2998
  <div class="ft-search-input-suggestion ft-word-wrap"
2999
2999
  id="${this.listboxId}"
3000
3000
  role="listbox"
3001
3001
  aria-label="${Rr.messages.suggestionsLabel()}"
3002
3002
  part="container">
3003
- ${(0,yu.repeat)(i,s=>s,(s,o)=>this.renderRecentQuery(o,s,r))}
3004
- ${(0,yu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,o)=>this.renderSuggestion(i.length+o,s,r))}
3003
+ ${(0,vu.repeat)(i,o=>o,(o,s)=>this.renderRecentQuery(s,o,r))}
3004
+ ${(0,vu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,s)=>this.renderSuggestion(i.length+s,o,r))}
3005
3005
  </div>
3006
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",et.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?et.file_format:et.fluid_topics,o;switch(r.type){case"MAP":o=r.editorialType==="BOOK"?Oe.BOOK:Oe.ARTICLE;break;case"DOCUMENT":o=Vn(r.mimeType,r.filenameExtension);break;case"TOPIC":o=Oe.TOPICS;break;case"HTML_PACKAGE":o=Oe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Oe.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):Ui.nothing;return Ui.html`
3006
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",et.material,!0,i)}renderSuggestion(e,r,i){let o=r.type==="DOCUMENT"?et.file_format:et.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?_e.BOOK:_e.ARTICLE;break;case"DOCUMENT":s=zn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=_e.TOPICS;break;case"HTML_PACKAGE":s=_e.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=_e.FILE_CODE;break}return this.renderOption(e,r.value,s,o,!1,i)}renderOption(e,r,i,o,s,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):Vi.nothing;return Vi.html`
3007
3007
  <div part="suggestion-container"
3008
3008
  class="ft-search-input-suggestion--container">
3009
3009
  <a href="${d}"
@@ -3016,11 +3016,11 @@
3016
3016
  @click=${()=>this.onSelectOption(r)}
3017
3017
  >
3018
3018
  <ft-ripple ?activated=${a&&!u}></ft-ripple>
3019
- <ft-icon variant="${s}" value="${i}" part="suggestion-icon"></ft-icon>
3019
+ <ft-icon variant="${o}" value="${i}" part="suggestion-icon"></ft-icon>
3020
3020
  <ft-typography variant="${X.body1}">${r}</ft-typography>
3021
3021
  </a>
3022
- ${o?Ui.html`
3023
- <ft-button icon="${Oe.CLOSE}"
3022
+ ${s?Vi.html`
3023
+ <ft-button icon="${_e.CLOSE}"
3024
3024
  round
3025
3025
  part="remove-suggestion"
3026
3026
  class="ft-search-input-suggestion--remove"
@@ -3031,10 +3031,10 @@
3031
3031
  ?activated=${a&&u}
3032
3032
  @click=${()=>this.onRemoveRecentQuery(r)}>
3033
3033
  </ft-button>
3034
- `:Ui.nothing}
3034
+ `:Vi.nothing}
3035
3035
  </div>
3036
- `}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()}};Jr.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};Jr.styles=[bv.wordWrap,gv]});function $E(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,LE)}var wo,Ge,Ct,xv,ze,LE,he,bu=l(()=>{"use strict";wo=c(y()),Ge=c(f());cs();$i();Lt();_c();Ct=c(F()),xv=c(nt());vv();Kt();xe();Ht();Nn();ze=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},LE=5;he=class extends ut(Dt){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 Jr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},s={...this.request,query:this.liveQuery},o=this.useCustomSearchPath?this.launchSearchPath:void 0,n=wr.get().serializeToCurrentPageIfPossible(s,o),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return wo.html`
3037
- <div class="${(0,xv.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3036
+ `}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()}};Jr.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};Jr.styles=[bb.wordWrap,yb]});function PE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,IE)}var As,Qe,Ct,Sb,ze,IE,he,bu=l(()=>{"use strict";As=c(y()),Qe=c(f());lo();Ii();Lt();Rc();Ct=c(F()),Sb=c(nt());xb();Wt();xe();jt();Fn();ze=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},IE=5;he=class extends ut(Pt){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 Jr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},o={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,n=wr.get().serializeToCurrentPageIfPossible(o,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return As.html`
3037
+ <div class="${(0,Sb.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3038
3038
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3039
3039
  <div class="ft-search-input--input-outline" part="input-outline">
3040
3040
  <input class="ft-search-input--input ft-typography--body2"
@@ -3046,7 +3046,7 @@
3046
3046
  aria-autocomplete="list"
3047
3047
  aria-controls="${this.suggestions.listboxId}"
3048
3048
  aria-expanded="${this.displaySuggestListbox}"
3049
- aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:wo.nothing}"
3049
+ aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:As.nothing}"
3050
3050
  @input=${this.onInput}
3051
3051
  @click=${this.onClick}
3052
3052
  @focus=${this.onFocus}
@@ -3056,10 +3056,10 @@
3056
3056
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3057
3057
  ${a?Rr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
3058
3058
  </div>
3059
- ${a?this.suggestions.render():wo.nothing}
3059
+ ${a?this.suggestions.render():As.nothing}
3060
3060
  </div>
3061
3061
  <div class="ft-search-input--actions" part="actions">
3062
- ${this.liveQuery?wo.html`
3062
+ ${this.liveQuery?As.html`
3063
3063
  <ft-button id="clear-button"
3064
3064
  class="ft-search-input--clear-query"
3065
3065
  part="clear-query"
@@ -3080,59 +3080,59 @@
3080
3080
  ></ft-button>
3081
3081
  </div>
3082
3082
  </div>
3083
- `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ge.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ge.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};he.elementDefinitions={"ft-button":w,...Jr.elementDefinitions};he.styles=[Pr,Ge.noTextInputDefaultClearButton,dc,...Jr.styles,Ge.screenReaderStyles];ze([(0,Ge.redux)()],he.prototype,"request",void 0);ze([(0,Ge.redux)()],he.prototype,"liveQuery",void 0);ze([(0,Ge.redux)()],he.prototype,"suggestResults",void 0);ze([(0,Ge.redux)({selector:$E})],he.prototype,"recentQuerySuggestions",void 0);ze([(0,Ct.state)()],he.prototype,"forceCloseSuggestion",void 0);ze([(0,Ct.state)()],he.prototype,"displaySuggestListbox",void 0);ze([(0,Ct.state)()],he.prototype,"selectedSuggestOptionIndex",void 0);ze([(0,Ct.state)()],he.prototype,"selectedSuggestOptionRemove",void 0);ze([(0,Ct.property)()],he.prototype,"launchSearchPath",void 0);ze([lo()],he.prototype,"placeholder",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"useCustomSearchPath",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"triggerSearchOnClear",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"focusOnDisplay",void 0);ze([(0,Ct.query)(".ft-search-input--input")],he.prototype,"input",void 0);ze([(0,Ct.query)('[part="launch-search-in-input"]')],he.prototype,"launchSearchButton",void 0);ze([(0,Ge.ignoreComposingEvents)()],he.prototype,"onSearchBarKeyDown",null);ze([(0,Ge.ignoreComposingEvents)()],he.prototype,"onSearchBarKeyUp",null)});var Sv,Ev=l(()=>{"use strict";bu();Sv={"ft-search-input":he}});var Cv,Av=l(()=>{"use strict";Cv=c(f());Ev();(0,Cv.customElements)(Sv)});var wv={};ii(wv,{FtSearchInput:()=>he,FtSearchInputCssVariables:()=>ie,styles:()=>dc});var Ov=l(()=>{"use strict";cs();Dg();bu();Av()});var _v,IE,vu,xu=l(()=>{"use strict";_v=c(y()),IE={},vu=_v.css`
3084
- `});var Rv=l(()=>{"use strict"});var Su,Tv=l(()=>{"use strict";Lt();Su=ar.fromGwt("designedActionBlockAriaLabels")});var Ca,Eu,kv,Lr,Cu=l(()=>{"use strict";Ca=c(y()),Eu=c(f());xu();Kt();$i();Lt();Tv();mo();kv=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},Lr=class extends ut(Dt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Wt.CLUSTERED_SEARCH],this.addI18nContext(Su)}render(){return this.isLastPage?Ca.nothing:Ca.html`
3083
+ `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Qe.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Qe.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};he.elementDefinitions={"ft-button":w,...Jr.elementDefinitions};he.styles=[Dr,Qe.noTextInputDefaultClearButton,pc,...Jr.styles,Qe.screenReaderStyles];ze([(0,Qe.redux)()],he.prototype,"request",void 0);ze([(0,Qe.redux)()],he.prototype,"liveQuery",void 0);ze([(0,Qe.redux)()],he.prototype,"suggestResults",void 0);ze([(0,Qe.redux)({selector:PE})],he.prototype,"recentQuerySuggestions",void 0);ze([(0,Ct.state)()],he.prototype,"forceCloseSuggestion",void 0);ze([(0,Ct.state)()],he.prototype,"displaySuggestListbox",void 0);ze([(0,Ct.state)()],he.prototype,"selectedSuggestOptionIndex",void 0);ze([(0,Ct.state)()],he.prototype,"selectedSuggestOptionRemove",void 0);ze([(0,Ct.property)()],he.prototype,"launchSearchPath",void 0);ze([ls()],he.prototype,"placeholder",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"useCustomSearchPath",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"triggerSearchOnClear",void 0);ze([(0,Ct.property)({type:Boolean})],he.prototype,"focusOnDisplay",void 0);ze([(0,Ct.query)(".ft-search-input--input")],he.prototype,"input",void 0);ze([(0,Ct.query)('[part="launch-search-in-input"]')],he.prototype,"launchSearchButton",void 0);ze([(0,Qe.ignoreComposingEvents)()],he.prototype,"onSearchBarKeyDown",null);ze([(0,Qe.ignoreComposingEvents)()],he.prototype,"onSearchBarKeyUp",null)});var Eb,Cb=l(()=>{"use strict";bu();Eb={"ft-search-input":he}});var Ab,wb=l(()=>{"use strict";Ab=c(f());Cb();(0,Ab.customElements)(Eb)});var Ob={};si(Ob,{FtSearchInput:()=>he,FtSearchInputCssVariables:()=>ie,styles:()=>pc});var _b=l(()=>{"use strict";lo();Dg();bu();wb()});var Rb,DE,xu,Su=l(()=>{"use strict";Rb=c(y()),DE={},xu=Rb.css`
3084
+ `});var Tb=l(()=>{"use strict"});var Eu,kb=l(()=>{"use strict";Lt();Eu=lr.fromGwt("designedActionBlockAriaLabels")});var Aa,Cu,Lb,Lr,Au=l(()=>{"use strict";Aa=c(y()),Cu=c(f());Su();Wt();Ii();Lt();kb();fs();Lb=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Lr=class extends ut(Pt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Eu)}render(){return this.isLastPage?Aa.nothing:Aa.html`
3085
3085
  <ft-button @click=${this.loadMore}>
3086
- ${Su.messages.searchPageLoadMore()}
3086
+ ${Eu.messages.searchPageLoadMore()}
3087
3087
  </ft-button>
3088
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":w};Lr.styles=vu;kv([(0,Eu.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}})],Lr.prototype,"currentPage",void 0);kv([(0,Eu.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}})],Lr.prototype,"isLastPage",void 0)});var Lv,$v=l(()=>{"use strict";Cu();Lv={"ft-search-load-more-button":Lr}});var Iv,Dv=l(()=>{"use strict";Iv=c(f());$v();(0,Iv.customElements)(Lv)});var Pv={};ii(Pv,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>IE,styles:()=>vu});var Mv=l(()=>{"use strict";xu();Rv();Cu();Dv()});var Nv=l(()=>{"use strict"});var Oa,wa,Aa,wu,Au,DE,Oo,Ou=l(()=>{"use strict";Oa=c(f());$i();wa=c(F()),Aa=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},wu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Au=Symbol("registerInterval"),DE=(0,Oa.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[Au]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Au]):this.dispatchEvent(new wu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Au,Aa([(0,wa.property)({attribute:!1})],r.prototype,"cluster",void 0),Aa([(0,wa.property)({attribute:!1})],r.prototype,"result",void 0),Aa([(0,Oa.numberProperty)()],r.prototype,"rank",void 0),Aa([(0,wa.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Oo=class extends DE(Dt){}});var _u,Fv,Bv,Vi,Ru=l(()=>{"use strict";_u=c(y()),Fv=c(f());Ou();Kn();Bv=c(Un());xe();Vi=class extends Oo{render(){var e;let r=(e=(0,Fv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?_u.html`
3089
- <ft-typography variant="${X.body1}" part="text">${(0,Bv.unsafeHTML)(r)}</ft-typography>
3090
- `:_u.html`
3088
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":w};Lr.styles=xu;Lb([(0,Cu.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}})],Lr.prototype,"currentPage",void 0);Lb([(0,Cu.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}})],Lr.prototype,"isLastPage",void 0)});var $b,Ib=l(()=>{"use strict";Au();$b={"ft-search-load-more-button":Lr}});var Pb,Db=l(()=>{"use strict";Pb=c(f());Ib();(0,Pb.customElements)($b)});var Mb={};si(Mb,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>DE,styles:()=>xu});var Nb=l(()=>{"use strict";Su();Tb();Au();Db()});var Fb=l(()=>{"use strict"});var _a,Oa,wa,Ou,wu,ME,ws,_u=l(()=>{"use strict";_a=c(f());Ii();Oa=c(F()),wa=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ou=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},wu=Symbol("registerInterval"),ME=(0,_a.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(o){this.resultStateManager=o}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[wu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[wu]):this.dispatchEvent(new Ou)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=wu,wa([(0,Oa.property)({attribute:!1})],r.prototype,"cluster",void 0),wa([(0,Oa.property)({attribute:!1})],r.prototype,"result",void 0),wa([(0,_a.numberProperty)()],r.prototype,"rank",void 0),wa([(0,Oa.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),ws=class extends ME(Pt){}});var Ru,Bb,Ub,zi,Tu=l(()=>{"use strict";Ru=c(y()),Bb=c(f());_u();Wn();Ub=c(Vn());xe();zi=class extends ws{render(){var e;let r=(e=(0,Bb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Ru.html`
3089
+ <ft-typography variant="${X.body1}" part="text">${(0,Ub.unsafeHTML)(r)}</ft-typography>
3090
+ `:Ru.html`
3091
3091
  <style>
3092
3092
  :host {
3093
3093
  display: none !important;
3094
3094
  }
3095
3095
  </style>
3096
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Vi.elementDefinitions={"ft-typography":V};Vi.styles=pc});var Uv,Vv=l(()=>{"use strict";Ru();Uv={"ft-search-result-abstract":Vi}});var zv,Tu=l(()=>{"use strict";zv=c(f());Vv();(0,zv.customElements)(Uv)});var Hv={};ii(Hv,{FtSearchResultAbstract:()=>Vi,FtSearchResultAbstractCssVariables:()=>qn,styles:()=>pc});var jv=l(()=>{"use strict";Kn();Nv();Ru();Tu()});var qv=l(()=>{"use strict"});var _s,Kv,Wv,Gv,PE,ei,ku=l(()=>{"use strict";_s=c(y()),Kv=c(F()),Wv=c(f());Ou();Gn();xe();Gv=c(Un());yc();hs();PE=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},ei=class extends Oo{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():_s.html`
3097
- <a href="${Yn(this.result)}"
3096
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};zi.elementDefinitions={"ft-typography":V};zi.styles=hc});var Vb,zb=l(()=>{"use strict";Tu();Vb={"ft-search-result-abstract":zi}});var Hb,ku=l(()=>{"use strict";Hb=c(f());zb();(0,Hb.customElements)(Vb)});var jb={};si(jb,{FtSearchResultAbstract:()=>zi,FtSearchResultAbstractCssVariables:()=>Kn,styles:()=>hc});var qb=l(()=>{"use strict";Wn();Fb();Tu();ku()});var Kb=l(()=>{"use strict"});var Ro,Wb,Gb,Qb,NE,ei,Lu=l(()=>{"use strict";Ro=c(y()),Wb=c(F()),Gb=c(f());_u();Qn();xe();Qb=c(Vn());vc();ho();NE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ei=class extends ws{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Ro.html`
3097
+ <a href="${Zn(this.result)}"
3098
3098
  @click=${this.onResultClick}
3099
3099
  @auxclick=${r=>this.onAuxClick(r)}
3100
3100
  @contextmenu=${this.onContextMenu}
3101
- target="${dg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3101
+ target="${hg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3102
3102
  part="link">
3103
3103
  ${this.renderTitle()}
3104
3104
  </a>
3105
- `:_s.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return _s.html`
3106
- <ft-typography variant="${X.title}" part="text">${(0,Gv.unsafeHTML)((e=(0,Wv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3107
- `}onResultClick(){this.dispatchEvent(new Li(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new fo(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"})}};ei.elementDefinitions={"ft-typography":V};ei.styles=hc;PE([(0,Kv.property)({type:Boolean})],ei.prototype,"withoutLink",void 0)});var Qv,Xv=l(()=>{"use strict";ku();Qv={"ft-search-result-title":ei}});var Yv,Lu=l(()=>{"use strict";Yv=c(f());Xv();(0,Yv.customElements)(Qv)});var Zv={};ii(Zv,{FtSearchResultTitle:()=>ei,FtSearchResultTitleCssVariables:()=>Wn,styles:()=>hc});var Jv=l(()=>{"use strict";Gn();qv();ku();Lu()});var ex,ME,$u,Iu=l(()=>{"use strict";ex=c(y()),ME={},$u=ex.css`
3105
+ `:Ro.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return Ro.html`
3106
+ <ft-typography variant="${X.title}" part="text">${(0,Qb.unsafeHTML)((e=(0,Gb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3107
+ `}onResultClick(){this.dispatchEvent(new $i(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new hs(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"})}};ei.elementDefinitions={"ft-typography":V};ei.styles=fc;NE([(0,Wb.property)({type:Boolean})],ei.prototype,"withoutLink",void 0)});var Xb,Yb=l(()=>{"use strict";Lu();Xb={"ft-search-result-title":ei}});var Zb,$u=l(()=>{"use strict";Zb=c(f());Yb();(0,Zb.customElements)(Xb)});var Jb={};si(Jb,{FtSearchResultTitle:()=>ei,FtSearchResultTitleCssVariables:()=>Gn,styles:()=>fc});var ex=l(()=>{"use strict";Qn();Kb();Lu();$u()});var tx,FE,Iu,Pu=l(()=>{"use strict";tx=c(y()),FE={},Iu=tx.css`
3108
3108
  [part="no-results-message"] {
3109
3109
  text-align: center;
3110
3110
  padding: 12px;
3111
3111
  }
3112
- `});var tx=l(()=>{"use strict"});var rx,ix,ox=l(()=>{"use strict";rx=c(y()),ix=rx.css`
3112
+ `});var rx=l(()=>{"use strict"});var ix,sx,ox=l(()=>{"use strict";ix=c(y()),sx=ix.css`
3113
3113
  a {
3114
3114
  color: inherit;
3115
3115
  text-decoration: inherit;
3116
3116
  }
3117
- `});var _a,sx=l(()=>{"use strict";_a=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 nx,_o,ax,Ra,Du,yr,lx=l(()=>{"use strict";nx=c(y()),_o=c(F()),ax=c(f());ox();sx();Ra=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},Du=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},yr=class extends ax.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new _a(e=>this.onResultSelected(e))}render(){return nx.html`
3117
+ `});var Ra,nx=l(()=>{"use strict";Ra=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 ax,Os,lx,Ta,Du,vr,cx=l(()=>{"use strict";ax=c(y()),Os=c(F()),lx=c(f());ox();nx();Ta=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Du=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},vr=class extends lx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Ra(e=>this.onResultSelected(e))}render(){return ax.html`
3118
3118
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3119
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new Du(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}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()}};yr.elementDefinitions={};yr.styles=ix;Ra([(0,_o.property)({attribute:!1})],yr.prototype,"cluster",void 0);Ra([(0,_o.property)({attribute:!1,type:Boolean})],yr.prototype,"openResultInNewTab",void 0);Ra([(0,_o.state)()],yr.prototype,"result",void 0);Ra([(0,_o.property)()],yr.prototype,"index",void 0)});var cx,ux=l(()=>{"use strict";lx();cx={"ft-search-result-context":yr}});var dx,px=l(()=>{"use strict";dx=c(f());ux();(0,dx.customElements)(cx)});var Ro,hx,Pu=l(()=>{"use strict";Lt();Ro=ar.build("searchResultsNumber"),hx={results:"{0} results","results[\\=1]":"1 result"}});var Ta,fx,ka,er,zi,At,Mu=l(()=>{"use strict";Ta=c(y()),fx=c(Tr()),ka=c(F()),er=c(f());Iu();$i();px();Lu();Tu();Lt();Pu();mo();zi=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},At=class extends ut(Dt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>Ta.html`
3119
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new Du(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}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()}};vr.elementDefinitions={};vr.styles=sx;Ta([(0,Os.property)({attribute:!1})],vr.prototype,"cluster",void 0);Ta([(0,Os.property)({attribute:!1,type:Boolean})],vr.prototype,"openResultInNewTab",void 0);Ta([(0,Os.state)()],vr.prototype,"result",void 0);Ta([(0,Os.property)()],vr.prototype,"index",void 0)});var ux,dx=l(()=>{"use strict";cx();ux={"ft-search-result-context":vr}});var px,hx=l(()=>{"use strict";px=c(f());dx();(0,px.customElements)(ux)});var _s,fx,Mu=l(()=>{"use strict";Lt();_s=lr.build("searchResultsNumber"),fx={results:"{0} results","results[\\=1]":"1 result"}});var ka,mx,La,er,Hi,At,Nu=l(()=>{"use strict";ka=c(y()),mx=c(Tr()),La=c(F()),er=c(f());Pu();Ii();hx();$u();ku();Lt();Mu();fs();Hi=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},At=class extends ut(Pt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ka.html`
3120
3120
  <ft-search-result-title></ft-search-result-title>
3121
3121
  <ft-search-result-abstract></ft-search-result-abstract>
3122
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Wt.CLUSTERED_SEARCH],this.addI18nContext(Ro)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return Ta.html`
3123
- <ft-typography part="no-results-message" variant="body1">${Ro.messages.results(0)}</ft-typography>
3124
- `;let e=this.buildClusters();return(0,fx.repeat)(e,r=>r.id,(r,i)=>{var s;return Ta.html`
3122
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(_s)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return ka.html`
3123
+ <ft-typography part="no-results-message" variant="body1">${_s.messages.results(0)}</ft-typography>
3124
+ `;let e=this.buildClusters();return(0,mx.repeat)(e,r=>r.id,(r,i)=>{var o;return ka.html`
3125
3125
  <ft-search-result-context .cluster=${r} index="${i}"
3126
- @ft-search-result-cluster-change=${o=>this.onClusterChange(r.id,o.detail)}>
3127
- ${this.renderResult((s=this.selectedResultByCluster[r.id])!==null&&s!==void 0?s:r.entries[0],i)}
3126
+ @ft-search-result-cluster-change=${s=>this.onClusterChange(r.id,s.detail)}>
3127
+ ${this.renderResult((o=this.selectedResultByCluster[r.id])!==null&&o!==void 0?o:r.entries[0],i)}
3128
3128
  </ft-search-result-context>
3129
- `})}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&&er.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,er.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,er.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}};At.styles=$u;zi([(0,ka.property)({type:String,attribute:"cluster-policy"})],At.prototype,"clusterPolicy",void 0);zi([(0,ka.property)({type:Boolean})],At.prototype,"displayNoResultsMessage",void 0);zi([(0,ka.property)({attribute:!1})],At.prototype,"renderResult",void 0);zi([(0,er.jsonProperty)([])],At.prototype,"clusterSortCriterion",void 0);zi([(0,er.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],At.prototype,"requestWithoutPaging",void 0);zi([(0,er.redux)({selector:t=>t.request.paging})],At.prototype,"paging",void 0);zi([(0,er.redux)()],At.prototype,"results",void 0)});var mx,gx=l(()=>{"use strict";Mu();mx={"ft-search-results":At}});var yx,bx=l(()=>{"use strict";yx=c(f());gx();(0,yx.customElements)(mx)});var vx={};ii(vx,{FtSearchResults:()=>At,FtSearchResultsCssVariables:()=>ME,styles:()=>$u});var xx=l(()=>{"use strict";Iu();tx();Mu();bx()});var Sx,NE,Nu,Fu=l(()=>{"use strict";Sx=c(y()),NE={},Nu=Sx.css`
3129
+ `})}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&&er.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,er.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let o=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(s=>s.entries.map(n=>({id:(0,er.accessResultId)(n),entries:[n]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?o.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):o}};At.styles=Iu;Hi([(0,La.property)({type:String,attribute:"cluster-policy"})],At.prototype,"clusterPolicy",void 0);Hi([(0,La.property)({type:Boolean})],At.prototype,"displayNoResultsMessage",void 0);Hi([(0,La.property)({attribute:!1})],At.prototype,"renderResult",void 0);Hi([(0,er.jsonProperty)([])],At.prototype,"clusterSortCriterion",void 0);Hi([(0,er.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],At.prototype,"requestWithoutPaging",void 0);Hi([(0,er.redux)({selector:t=>t.request.paging})],At.prototype,"paging",void 0);Hi([(0,er.redux)()],At.prototype,"results",void 0)});var gx,yx=l(()=>{"use strict";Nu();gx={"ft-search-results":At}});var vx,bx=l(()=>{"use strict";vx=c(f());yx();(0,vx.customElements)(gx)});var xx={};si(xx,{FtSearchResults:()=>At,FtSearchResultsCssVariables:()=>FE,styles:()=>Iu});var Sx=l(()=>{"use strict";Pu();rx();Nu();bx()});var Ex,BE,Fu,Bu=l(()=>{"use strict";Ex=c(y()),BE={},Fu=Ex.css`
3130
3130
 
3131
- `});var Ex=l(()=>{"use strict"});var La,ti,Cx,$r,Bu=l(()=>{"use strict";La=c(y()),ti=c(f());Fu();$i();Lt();Pu();xe();mo();Cx=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,ti.withAriaNotification)(ut(Dt)){constructor(){super(),this.ariaNotificationDebouncer=new ti.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Wt.CLUSTERED_SEARCH],this.addI18nContext(Ro,hx)}render(){return this.paging==null?La.nothing:La.html`
3131
+ `});var Cx=l(()=>{"use strict"});var $a,ti,Ax,$r,Uu=l(()=>{"use strict";$a=c(y()),ti=c(f());Bu();Ii();Lt();Mu();xe();fs();Ax=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},$r=class extends(0,ti.withAriaNotification)(ut(Pt)){constructor(){super(),this.ariaNotificationDebouncer=new ti.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(_s,fx)}render(){return this.paging==null?$a.nothing:$a.html`
3132
3132
  <ft-typography variant="${X.body1}">
3133
- ${Ro.messages.results(this.paging.totalClustersCount)}
3133
+ ${_s.messages.results(this.paging.totalClustersCount)}
3134
3134
  </ft-typography>
3135
- `}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=Nu;Cx([(0,ti.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Cx([(0,ti.redux)()],$r.prototype,"paging",void 0)});var Ax,wx=l(()=>{"use strict";Bu();Ax={"ft-search-results-number":$r}});var Ox,_x=l(()=>{"use strict";Ox=c(f());wx();(0,Ox.customElements)(Ax)});var Rx={};ii(Rx,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>NE,styles:()=>Nu});var Tx=l(()=>{"use strict";Fu();Ex();Bu();_x()});var Lx=c(f());var wt=c(y()),Hi=c(f());var fc=c(y()),O=c(f());var Qu=c(y()),K=c(f());vr();var Y={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Xu=Qu.css`
3135
+ `}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=Fu;Ax([(0,ti.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Ax([(0,ti.redux)()],$r.prototype,"paging",void 0)});var wx,Ox=l(()=>{"use strict";Uu();wx={"ft-search-results-number":$r}});var _x,Rx=l(()=>{"use strict";_x=c(f());Ox();(0,_x.customElements)(wx)});var Tx={};si(Tx,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>BE,styles:()=>Fu});var kx=l(()=>{"use strict";Bu();Cx();Uu();Rx()});var $x=c(f());var wt=c(y()),ri=c(f());var mc=c(y()),O=c(f());var Xu=c(y()),K=c(f());br();var Y={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Yu=Xu.css`
3136
3136
  :host {
3137
3137
  display: block;
3138
3138
  }
@@ -3221,7 +3221,7 @@
3221
3221
  #action {
3222
3222
  grid-area: actions;
3223
3223
  }
3224
- `;cs();Kn();vr();Gn();var Ke={searchFieldBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",O.designSystemVariables.colorSurface),searchFieldBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",O.designSystemVariables.colorOutline),searchFieldTextColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",O.designSystemVariables.colorOnSurface),searchFieldBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",O.designSystemVariables.borderRadiusS),searchButtonColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",O.designSystemVariables.colorPrimary),resultsNumberColor:O.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",O.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",O.designSystemVariables.colorSurface),resultBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",O.designSystemVariables.colorOutline),resultBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",O.designSystemVariables.borderRadiusS),resultTitleTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",O.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",O.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",O.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:O.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",O.designSystemVariables.colorPrimary),resultHoverBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",O.designSystemVariables.colorPrimary)},sg=fc.css`
3224
+ `;lo();Wn();br();Qn();var We={searchFieldBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",O.designSystemVariables.colorSurface),searchFieldBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",O.designSystemVariables.colorOutline),searchFieldTextColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",O.designSystemVariables.colorOnSurface),searchFieldBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",O.designSystemVariables.borderRadiusS),searchButtonColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",O.designSystemVariables.colorPrimary),resultsNumberColor:O.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",O.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",O.designSystemVariables.colorSurface),resultBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",O.designSystemVariables.colorOutline),resultBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",O.designSystemVariables.borderRadiusS),resultTitleTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",O.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",O.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",O.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:O.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",O.designSystemVariables.colorPrimary),resultHoverBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",O.designSystemVariables.colorPrimary)},ag=mc.css`
3225
3225
  .ft-search-in-doc--container {
3226
3226
  display: flex;
3227
3227
  flex-direction: column;
@@ -3229,11 +3229,11 @@
3229
3229
  }
3230
3230
 
3231
3231
  ft-search-input {
3232
- ${(0,O.setVariable)(ie.colorSurface,Ke.searchFieldBackgroundColor)};
3233
- ${(0,O.setVariable)(ie.colorOutline,Ke.searchFieldBorderColor)};
3234
- ${(0,O.setVariable)(ie.colorOnSurface,Ke.searchFieldTextColor)};
3235
- ${(0,O.setVariable)(ie.borderRadius,Ke.searchFieldBorderRadius)};
3236
- ${(0,O.setVariable)(ie.buttonColor,Ke.searchButtonColor)};
3232
+ ${(0,O.setVariable)(ie.colorSurface,We.searchFieldBackgroundColor)};
3233
+ ${(0,O.setVariable)(ie.colorOutline,We.searchFieldBorderColor)};
3234
+ ${(0,O.setVariable)(ie.colorOnSurface,We.searchFieldTextColor)};
3235
+ ${(0,O.setVariable)(ie.borderRadius,We.searchFieldBorderRadius)};
3236
+ ${(0,O.setVariable)(ie.buttonColor,We.searchButtonColor)};
3237
3237
  }
3238
3238
 
3239
3239
  ft-search-results-number {
@@ -3241,41 +3241,41 @@
3241
3241
  }
3242
3242
 
3243
3243
  ft-search-results-number, ft-search-results::part(no-results-message) {
3244
- color: ${Ke.resultsNumberColor};
3244
+ color: ${We.resultsNumberColor};
3245
3245
  }
3246
3246
 
3247
3247
  ft-search-load-more-button {
3248
3248
  margin: auto;
3249
3249
  }
3250
- `,ng=fc.css`
3250
+ `,lg=mc.css`
3251
3251
  ft-card {
3252
3252
  margin-bottom: 8px;
3253
3253
  ${(0,O.setVariable)(Y.elevation04,"none")};
3254
3254
  ${(0,O.setVariable)(Y.elevation02,"none")};
3255
3255
  ${(0,O.setVariable)(Y.borderStyle,"solid")};
3256
3256
  ${(0,O.setVariable)(Y.borderRadius,O.designSystemVariables.borderRadiusS)};
3257
- ${(0,O.setVariable)(Y.colorSurface,Ke.resultBackgroundColor)};
3258
- ${(0,O.setVariable)(Y.borderColor,Ke.resultBorderColor)};
3259
- ${(0,O.setVariable)(Y.borderRadius,Ke.resultBorderRadius)};
3257
+ ${(0,O.setVariable)(Y.colorSurface,We.resultBackgroundColor)};
3258
+ ${(0,O.setVariable)(Y.borderColor,We.resultBorderColor)};
3259
+ ${(0,O.setVariable)(Y.borderRadius,We.resultBorderRadius)};
3260
3260
  }
3261
3261
 
3262
3262
  ft-search-result-title {
3263
- color: ${Ke.resultTitleTextColor};
3264
- ${(0,O.setVariable)(Wn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3263
+ color: ${We.resultTitleTextColor};
3264
+ ${(0,O.setVariable)(Gn.highlightBackgroundColor,We.resultHighlightBackgroundColor)};
3265
3265
  }
3266
3266
 
3267
3267
  .breadcrumb {
3268
- color: ${Ke.resultBreadcrumbTextColor};
3268
+ color: ${We.resultBreadcrumbTextColor};
3269
3269
  }
3270
3270
 
3271
3271
  ft-search-result-abstract {
3272
- color: ${Ke.resultContentTextColor};
3273
- ${(0,O.setVariable)(qn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3272
+ color: ${We.resultContentTextColor};
3273
+ ${(0,O.setVariable)(Kn.highlightBackgroundColor,We.resultHighlightBackgroundColor)};
3274
3274
  }
3275
3275
 
3276
3276
  ft-card:hover {
3277
- ${(0,O.setVariable)(Y.hoverBorderColor,Ke.resultHoverBorderColor)};
3278
- ${(0,O.setVariable)(j.color,Ke.resultHoverBackgroundColor)};
3277
+ ${(0,O.setVariable)(Y.hoverBorderColor,We.resultHoverBorderColor)};
3278
+ ${(0,O.setVariable)(j.color,We.resultHoverBackgroundColor)};
3279
3279
  }
3280
3280
 
3281
3281
  .result-container {
@@ -3288,11 +3288,11 @@
3288
3288
  text-decoration: none;
3289
3289
  color: inherit;
3290
3290
  }
3291
- `;Lt();var Xn=c(f()),cg=c(F());var ag;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ag||(ag={}));var lg;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(lg||(lg={}));var EE=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=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},mc=Symbol("registerInterval"),CE=(0,Xn.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[mc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[mc]):this.dispatchEvent(new gc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=mc,EE([(0,cg.state)()],r.prototype,"stateManager",void 0),r}),Qn=class extends CE(Xn.FtLitElementRedux){};var Ir=c(F());yc();Lt();var bc=ar.build("designedReaderSearchInDocument");var ds=c(y()),ki=c(F()),pg=c(f());Xe();xe();var hg=c(nt()),ho=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 pg.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 ds.html`
3292
- <div id="container" part="container" class="${(0,hg.classMap)(e)}">
3293
- ${this.clickable?ds.html`
3291
+ `;Lt();var Yn=c(f()),dg=c(F());var cg;(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"})(cg||(cg={}));var ug;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ug||(ug={}));var AE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},yc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},gc=Symbol("registerInterval"),wE=(0,Yn.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[gc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[gc]):this.dispatchEvent(new yc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=gc,AE([(0,dg.state)()],r.prototype,"stateManager",void 0),r}),Xn=class extends wE(Yn.FtLitElementRedux){};var Ir=c(F());vc();Lt();var bc=lr.build("designedReaderSearchInDocument");var uo=c(y()),Li=c(F()),fg=c(f());Xe();xe();var mg=c(nt()),ps=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},dt=class extends fg.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 uo.html`
3292
+ <div id="container" part="container" class="${(0,mg.classMap)(e)}">
3293
+ ${this.clickable?uo.html`
3294
3294
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
3295
- `:ds.nothing}
3295
+ `:uo.nothing}
3296
3296
  <div id="header" part="header">
3297
3297
  <ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
3298
3298
  <slot name="header"></slot>
@@ -3306,10 +3306,10 @@
3306
3306
  </ft-typography>
3307
3307
  </div>
3308
3308
  </div>
3309
- `}};dt.elementDefinitions={"ft-ripple":k,"ft-typography":V};dt.styles=Xu;ho([(0,ki.property)()],dt.prototype,"title",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"clickable",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"selected",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noHeader",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noContent",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"oneLineHeader",void 0);var mg=c(f());var fg={"ft-card":dt};(0,mg.customElements)(fg);hs();xe();Nn();var br=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},Qe=class t extends ut(Qn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Hi.randomId)(6,"search-in-document-"),this.addI18nContext(bc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return wt.html`
3310
- <style> ${ng}</style>
3311
- <a href="${Yn(e)}" @click=${s=>this.onLinkClick(s,e,r)}
3312
- @auxclick=${s=>this.onAuxClick(s,e,r)}
3309
+ `}};dt.elementDefinitions={"ft-ripple":k,"ft-typography":V};dt.styles=Yu;ps([(0,Li.property)()],dt.prototype,"title",void 0);ps([(0,Li.property)({type:Boolean})],dt.prototype,"clickable",void 0);ps([(0,Li.property)({type:Boolean})],dt.prototype,"selected",void 0);ps([(0,Li.property)({type:Boolean})],dt.prototype,"noHeader",void 0);ps([(0,Li.property)({type:Boolean})],dt.prototype,"noContent",void 0);ps([(0,Li.property)({type:Boolean})],dt.prototype,"oneLineHeader",void 0);var yg=c(f());var gg={"ft-card":dt};(0,yg.customElements)(gg);ho();xe();Fn();var tr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},He=class t extends ut(Xn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.metadataFilters=[],this.uniqueId=(0,ri.randomId)(6,"search-in-document-"),this.addI18nContext(bc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}},...this.metadataFilters]}renderResult(e,r){var i;return wt.html`
3310
+ <style> ${lg}</style>
3311
+ <a href="${Zn(e,this.metadataFilters)}" @click=${o=>this.onLinkClick(o,e,r)}
3312
+ @auxclick=${o=>this.onAuxClick(o,e,r)}
3313
3313
  @contextmenu=${()=>this.onContextMenu(e,r)}>
3314
3314
  <ft-card clickable noheader>
3315
3315
  <div class="result-container">
@@ -3326,7 +3326,7 @@
3326
3326
  </div>
3327
3327
  </ft-card>
3328
3328
  </a>
3329
- `}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new Li(r,i))}onContextMenu(e,r){this.dispatchEvent(new fo(e,r))}render(){return this.map?wt.html`
3329
+ `}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new $i(r,i))}onContextMenu(e,r){this.dispatchEvent(new hs(e,r))}render(){return this.map?wt.html`
3330
3330
  <ft-search-context id="${this.uniqueId}"
3331
3331
  part="search-context"
3332
3332
  contentLocale="${this.map.lang}"
@@ -3350,7 +3350,7 @@
3350
3350
  </slot>
3351
3351
  </div>
3352
3352
  </ft-search-context>
3353
- `:wt.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,Hi.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 Li(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(()=>(Ig(),$g)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Ov(),wv)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Mv(),Pv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(jv(),Hv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Jv(),Zv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(xx(),vx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Tx(),Rx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};Qe.elementDefinitions={"ft-card":dt};Qe.styles=sg;br([(0,Hi.redux)()],Qe.prototype,"map",void 0);br([(0,Hi.redux)()],Qe.prototype,"searchInDocumentQuery",void 0);br([(0,Ir.query)("ft-search-results")],Qe.prototype,"searchResults",void 0);br([(0,Ir.property)({type:Boolean})],Qe.prototype,"hideResultTitle",void 0);br([(0,Ir.property)({type:Boolean})],Qe.prototype,"hideResultBreadcrumb",void 0);br([(0,Ir.property)({type:Boolean})],Qe.prototype,"hideResultAbstract",void 0);br([(0,Ir.property)({type:Boolean})],Qe.prototype,"hideResultsNumber",void 0);br([(0,Ir.property)({type:Boolean})],Qe.prototype,"emptyResultOnClear",void 0);br([(0,Ir.query)('[part="search-context"]')],Qe.prototype,"searchContext",void 0);br([lo()],Qe.prototype,"placeholder",void 0);var kx={"ft-reader-search-in-document":Qe};(0,Lx.customElements)(kx);})();
3353
+ `:wt.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,ri.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 o,s;this.dispatchEvent(new $i(r,i)),(o=this.stateManager)===null||o===void 0||o.navigateToTopic((s=r.topic)===null||s===void 0?void 0:s.tocId,void 0,void 0),e.preventDefault()}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Pg(),Ig)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(_b(),Ob)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Nb(),Mb)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(qb(),jb)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(ex(),Jb)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(Sx(),xx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(kx(),Tx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};He.elementDefinitions={"ft-card":dt};He.styles=ag;tr([(0,ri.redux)()],He.prototype,"map",void 0);tr([(0,ri.redux)()],He.prototype,"searchInDocumentQuery",void 0);tr([(0,Ir.query)("ft-search-results")],He.prototype,"searchResults",void 0);tr([(0,Ir.property)({type:Boolean})],He.prototype,"hideResultTitle",void 0);tr([(0,Ir.property)({type:Boolean})],He.prototype,"hideResultBreadcrumb",void 0);tr([(0,Ir.property)({type:Boolean})],He.prototype,"hideResultAbstract",void 0);tr([(0,Ir.property)({type:Boolean})],He.prototype,"hideResultsNumber",void 0);tr([(0,Ir.property)({type:Boolean})],He.prototype,"emptyResultOnClear",void 0);tr([(0,Ir.query)('[part="search-context"]')],He.prototype,"searchContext",void 0);tr([ls()],He.prototype,"placeholder",void 0);tr([(0,ri.redux)({store:"reader"})],He.prototype,"metadataFilters",void 0);var Lx={"ft-reader-search-in-document":He};(0,$x.customElements)(Lx);})();
3354
3354
  /*! Bundled license information:
3355
3355
 
3356
3356
  lit-html/lit-html.js: