@fluid-topics/ft-search-input 2.2.26 → 2.2.27
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.
- package/build/ft-search-input.light.js +21 -12
- package/build/ft-search-input.min.js +121 -112
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Qp=Object.create;var la=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Yr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var eh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Xp(e))!Jp.call(t,s)&&s!==r&&la(t,s,{get:()=>e[s],enumerable:!(i=Yp(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Qp(Zp(t)):{},eh(e||!t||!t.__esModule?la(r,"default",{value:t,enumerable:!0}):r,t));var f=Yr((Kf,ca)=>{ca.exports=ftGlobals.wcUtils});var x=Yr((Gf,ua)=>{ua.exports=ftGlobals.lit});var H=Yr((Qf,da)=>{da.exports=ftGlobals.litDecorators});var Je=Yr((Yf,pa)=>{pa.exports=ftGlobals.litClassMap});var Fu=Yr((Bx,Nu)=>{Nu.exports=ftGlobals.litUnsafeHTML});var dr=Yr((sE,id)=>{id.exports=ftGlobals.litRepeat});var Wp=c(f());var Ai=c(x()),Fe=c(f());var ed=c(x()),Q=c(f());var Mt=c(f());var xa=c(x()),
|
|
1
|
+
"use strict";(()=>{var Qp=Object.create;var la=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Yr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var eh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Xp(e))!Jp.call(t,s)&&s!==r&&la(t,s,{get:()=>e[s],enumerable:!(i=Yp(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Qp(Zp(t)):{},eh(e||!t||!t.__esModule?la(r,"default",{value:t,enumerable:!0}):r,t));var f=Yr((Kf,ca)=>{ca.exports=ftGlobals.wcUtils});var x=Yr((Gf,ua)=>{ua.exports=ftGlobals.lit});var H=Yr((Qf,da)=>{da.exports=ftGlobals.litDecorators});var Je=Yr((Yf,pa)=>{pa.exports=ftGlobals.litClassMap});var Fu=Yr((Bx,Nu)=>{Nu.exports=ftGlobals.litUnsafeHTML});var dr=Yr((sE,id)=>{id.exports=ftGlobals.litRepeat});var Wp=c(f());var Ai=c(x()),Fe=c(f());var ed=c(x()),Q=c(f());var Mt=c(f());var xa=c(x()),Oe=c(H()),Sa=c(Je()),wi=c(f());var ba=c(x()),he=c(f()),ha=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorContent),z={color:ha,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ha),opacityContentOnSurfacePressed:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:he.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},fa=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorPrimary),ma={color:fa,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",fa)},ga=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorSecondary),ya={color:ga,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga)},va=ba.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=va;We([(0,
|
|
124
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=va;We([(0,Oe.property)({type:Boolean})],D.prototype,"primary",void 0);We([(0,Oe.property)({type:Boolean})],D.prototype,"secondary",void 0);We([(0,Oe.property)({type:Boolean})],D.prototype,"unbounded",void 0);We([(0,Oe.property)({type:Boolean})],D.prototype,"activated",void 0);We([(0,Oe.property)({type:Boolean})],D.prototype,"selected",void 0);We([(0,Oe.property)({type:Boolean})],D.prototype,"disabled",void 0);We([(0,Oe.state)()],D.prototype,"hovered",void 0);We([(0,Oe.state)()],D.prototype,"focused",void 0);We([(0,Oe.state)()],D.prototype,"pressed",void 0);We([(0,Oe.state)()],D.prototype,"rippling",void 0);We([(0,Oe.state)()],D.prototype,"originX",void 0);We([(0,Oe.state)()],D.prototype,"originY",void 0);We([(0,Oe.query)(".ft-ripple")],D.prototype,"ripple",void 0);We([(0,Oe.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var Aa=c(f());var Ea={"ft-ripple":D};(0,Aa.customElements)(Ea);var $u=c(x()),mt=c(H()),ft=c(f());var Bs=globalThis,Ca=t=>t,pn=Bs.trustedTypes,wa=pn?pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,La="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,$a="?"+Xt,th=`<${$a}>`,xr=document,hn=()=>xr.createComment(""),_i=t=>t===null||typeof t!="object"&&typeof t!="function",Us=Array.isArray,rh=t=>Us(t)||typeof t?.[Symbol.iterator]=="function",Ds=`[
|
|
125
125
|
\f\r]`,Oi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oa=/-->/g,_a=/>/g,br=RegExp(`>|${Ds}(?:([^\\s"'>=/]+)(${Ds}*=${Ds}*(?:[^
|
|
126
126
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ra=/'/g,Ta=/"/g,Da=/^(?:script|style|textarea|title)$/i,zs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ia=zs(1),Pa=zs(2),Ma=zs(3),Ri=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),ka=new WeakMap,vr=xr.createTreeWalker(xr,129);function Na(t,e){if(!Us(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(e):e}var ih=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Oi;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Oi?d[1]==="!--"?o=Oa:d[1]!==void 0?o=_a:d[2]!==void 0?(Da.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=br):d[3]!==void 0&&(o=br):o===br?d[0]===">"?(o=s??Oi,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?br:d[3]==='"'?Ta:Ra):o===Ta||o===Ra?o=br:o===Oa||o===_a?o=Oi:(o=br,s=void 0);let b=o===br&&t[a+1].startsWith("/>")?" ":"";n+=o===Oi?l+th:p>=0?(i.push(u),l.slice(0,p)+La+l.slice(p)+Xt+b):l+Xt+(p===-2?a:b)}return[Na(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ti=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,l=this.parts,[u,d]=ih(e,r);if(this.el=t.createElement(u,i),vr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=vr.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(La)){let h=d[o++],b=s.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:S[2],strings:b,ctor:S[1]==="."?Ps:S[1]==="?"?Ms:S[1]==="@"?Ns:Zr}),s.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Da.test(s.tagName)){let p=s.textContent.split(Xt),h=p.length-1;if(h>0){s.textContent=pn?pn.emptyScript:"";for(let b=0;b<h;b++)s.append(p[b],hn()),vr.nextNode(),l.push({type:2,index:++n});s.append(p[h],hn())}}}else if(s.nodeType===8)if(s.data===$a)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:n}),p+=Xt.length-1}n++}}static createElement(e,r){let i=xr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Ri)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=_i(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Xr(t,s._$AS(t,e.values),s,i)),e}var Is=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??xr).importNode(r,!0);vr.currentNode=s;let n=vr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new fn(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new Fs(n,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(n=vr.nextNode(),o++)}return vr.currentNode=xr,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++}},fn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=fe,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=Xr(this,e,r),_i(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==Ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rh(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!==fe&&_i(this._$AH)?this._$AA.nextSibling.data=e:this.T(xr.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=Ti.createElement(Na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Is(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=ka.get(e.strings);return r===void 0&&ka.set(e.strings,r=new Ti(e)),r}k(e){Us(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(hn()),this.O(hn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ca(e).nextSibling;Ca(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=fe}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=Xr(this,e,r,0),o=!_i(e)||e!==this._$AH&&e!==Ri,o&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Xr(this,a[i+l],r,l),u===Ri&&(u=this._$AH[l]),o||=!_i(u)||u!==this._$AH[l],u===fe?e=fe:e!==fe&&(e+=(u??"")+n[l+1]),this._$AH[l]=u}o&&!s&&this.j(e)}j(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ps=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Ms=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},Ns=class extends Zr{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??fe)===Ri)return;let i=this._$AH,s=e===fe&&i!==fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==fe&&(i===fe||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Fs=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){Xr(this,e)}};var nh=Bs.litHtmlPolyfillSupport;nh?.(Ti,fn),(Bs.litHtmlVersions??=[]).push("3.3.3");var Ba=Symbol.for(""),sh=t=>{if(t?.r===Ba)return t?._$litStatic$},Vs=t=>({_$litStatic$:t,r:Ba});var Fa=new Map,Hs=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(n=r[u],(s=sh(n))!==void 0);)l+=s+e[++u],d=!0;u!==i&&a.push(n),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Fa.get(p))===void 0&&(o.raw=o,Fa.set(p,e=o)),r=a}return t(e,...r)},js=Hs(Ia),um=Hs(Pa),dm=Hs(Ma);var qs=c(H()),Xa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(x()),m=c(f()),Ua=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Ht=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Ht,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Sr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ua),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ua),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Lt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},me={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},za=ut.css`
|
|
127
127
|
.ft-typography--title {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`;var il=["top","right","bottom","left"],rl=["start","end"],Ks=il.reduce((t,e)=>t.concat(e,e+"-"+rl[0],e+"-"+rl[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var $t=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function nl(t,e,r){return tr(t,Li(e,r))}function mn(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Gs(t){return t==="x"?"y":"x"}function Qs(t){return t==="y"?"height":"width"}function gn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ys(t){return Gs(gn(t))}function sl(t,e,r){r===void 0&&(r=!1);let i=rr(t),s=Ys(t),n=Qs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Ws(o)),[o,Ws(o)]}function ol(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ws(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(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 al(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function _r(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}}function ll(t,e,r){let{reference:i,floating:s}=t,n=gn(e),o=Ys(e),a=Qs(o),l=Di(e),u=n==="y",d=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,h=i[a]/2-s[a]/2,b;switch(l){case"top":b={x:d,y:i.y-s.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-s.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function cl(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=mn(e,t),S=al(b),v=a[h?p==="floating"?"reference":"floating":p],$=_r(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),q=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(E))&&await(n.getScale==null?void 0:n.getScale(E))||{x:1,y:1},K=_r(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:q,offsetParent:E,strategy:l}):q);return{top:($.top-K.top+S.top)/A.y,bottom:(K.bottom-$.bottom+S.bottom)/A.y,left:($.left-K.left+S.left)/A.x,right:(K.right-$.right+S.right)/A.x}}var lh=50,ul=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:cl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=ll(u,i,l),h=i,b=0,S={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:$,fn:q}=v,{x:E,y:A,data:K,reset:V}=await q({x:d,y:p,initialPlacement:i,placement:h,strategy:s,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=A??p,S[$]={...S[$],...K},V&&b<lh&&(b++,typeof V=="object"&&(V.placement&&(h=V.placement),V.rects&&(u=V.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):V.rects),{x:d,y:p}=ll(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(s=>rr(s)===t),...r.filter(s=>rr(s)!==t)]:r.filter(s=>Di(s)===s)).filter(s=>t?rr(s)===t||(e?ol(s)!==s:!1):!0)}var dl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Ks,autoAlignment:b=!0,...S}=mn(t,e),R=p!==void 0||h===Ks?ch(p||null,b,h):h,v=((r=o.autoPlacement)==null?void 0:r.index)||0,$=R[v];if($==null)return{};if(a!==$)return{reset:{placement:R[0]}};let q=await l.detectOverflow(e,S),E=sl($,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[q[Di($)],q[E[0]],q[E[1]]],K=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],V=R[v+1];if(V)return{data:{index:v+1,overflows:K},reset:{placement:V}};let ve=K.map(ct=>{let Ci=rr(ct.placement);return[ct.placement,Ci&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,Ci)=>ct[1]-Ci[1]),dn=((s=ve.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(Ci=>Ci<=0))[0])==null?void 0:s[0])||ve[0][0];return dn!==a?{data:{index:v+1,overflows:K},reset:{placement:dn}}:{}}}};var pl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:q=>{let{x:E,y:A}=q;return{x:E,y:A}}},...u}=mn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=gn(s),b=Gs(h),S=d[b],R=d[h],v=(q,E)=>nl(E+p[q==="y"?"top":"left"],E,E-p[q==="y"?"bottom":"right"]);o&&(S=v(b,S)),a&&(R=v(h,R));let $=l.fn({...e,[b]:S,[h]:R});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[b]:o,[h]:a}}}}}};function bn(){return typeof window<"u"}function Tr(t){return fl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(fl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fl(t){return bn()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return bn()?t instanceof Element||t instanceof Ge(t).Element:!1}function qt(t){return bn()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function hl(t){return!bn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Ii(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function ml(t){return/^(table|td|th)$/.test(Tr(t))}function Pi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",Xs;function Jr(t){let e=xt(t)?St(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!vn()&&(Rr(e.backdropFilter)||Rr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function gl(t){let e=ir(t);for(;qt(e)&&!ei(e);){if(Jr(e))return e;if(Pi(e))return null;e=ir(e)}return null}function vn(){return Xs==null&&(Xs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xs}function ei(t){return/^(html|body|#document)$/.test(Tr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hl(t)&&t.host||jt(t);return hl(e)?e.host:e}function yl(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:qt(e)&&Ii(e)?e:yl(e)}function yn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=yl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(s);if(n){let a=xn(o);return e.concat(o,o.visualViewport||[],Ii(s)?s:[],a&&r?yn(a):[])}else return e.concat(s,yn(s,[],r))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=qt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=$i(r)!==n||$i(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Sl(t){return xt(t)?t:t.contextElement}function ti(t){let e=Sl(t);if(!qt(e))return $t(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=xl(e),o=(n?$i(r.width):r.width)/i,a=(n?$i(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=$t(0);function El(t){let e=Ge(t);return!vn()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=Sl(t),o=$t(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(n,r,i)?El(n):$t(0),l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,p=s.height/o.y;if(n&&i){let h=Ge(n),b=xt(i)?Ge(i):i,S=h,R=xn(S);for(;R&&b!==S;){let v=ti(R),$=R.getBoundingClientRect(),q=St(R),E=$.left+(R.clientLeft+parseFloat(q.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(q.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ge(R),R=xn(S)}}return _r({width:d,height:p,x:l,y:u})}function Sn(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(jt(t)).left+r}function Al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Sn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=jt(i),a=e?Pi(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=$t(1),d=$t(0),p=qt(i);if((p||!n)&&((Tr(i)!=="body"||Ii(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?Al(o,l):$t(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Sn(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(n+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ge(t),n=jt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!vn()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(Sn(n)<=0){let h=n.ownerDocument,b=h.body,S=getComputedStyle(b),R=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),$=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;$<=yh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ti(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,u=i*n.y;return{width:o,height:a,x:l,y:u}}function bl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(jt(t));else if(xt(e))i=vh(e,r);else{let s=El(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return _r(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=yn(t,[],!1).filter(a=>xt(a)&&Tr(a)!=="body"),s=null,n=St(t).position==="fixed",o=n?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Pi(e)?[]:xh(e,this._c):[].concat(r),i],a=bl(e,o[0],s),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=bl(e,o[h],s);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=xl(t);return{width:e,height:r}}function Ah(t,e,r){let i=qt(e),s=jt(e),n=r==="fixed",o=Ni(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=$t(0);if((i||!n)&&((Tr(e)!=="body"||Ii(s))&&(a=Mi(e)),i)){let h=Ni(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=Sn(s));let u=s&&!i&&!n?Al(s,a):$t(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Zs(t){return St(t).position==="static"}function vl(t,e){if(!qt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return jt(t)===r&&(r=r.ownerDocument.body),r}function Cl(t,e){let r=Ge(t);if(Pi(t))return r;if(!qt(t)){let s=ir(t);for(;s&&!ei(s);){if(xt(s)&&!Zs(s))return s;s=ir(s)}return r}let i=vl(t,e);for(;i&&ml(i)&&Zs(i);)i=vl(i,e);return i&&ei(i)&&Zs(i)&&!Jr(i)?r:i||gl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||Cl,r=this.getDimensions,i=await r(t.floating);return{reference:Ah(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var En={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:jt,getClippingRect:Sh,getOffsetParent:Cl,getElementRects:Ch,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var wl=dl,Ol=pl;var _l=(t,e,r)=>{let i=new Map,s=r??{},n={...En,...s.platform,_c:i};return ul(t,e,{...s,platform:n})};function Rl(t){return Oh(t)}function Js(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Js(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Js(t);e;e=Js(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function Tl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},_l(t,e,{strategy:i.strategy,platform:{...En,getOffsetParent:s=>En.getOffsetParent(s,Rl)},middleware:[Ol({crossAxis:!0}),wl({allowedPlacements:[i.placement]})]})}var di=c(f());var Eo=c(H());var kl=c(H(),1);var eo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_h=t=>({fromAttribute:e=>{if(e==null)return Fi(t);try{return JSON.parse(e)}catch{return Fi(t)}},toAttribute:e=>JSON.stringify(e)});function Ll(t,e){return(0,kl.property)({type:Object,converter:_h(t),hasChanged:Bi,...e??{}})}function Rh(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(!ri(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(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return Rh(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function An(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 $l=c(H(),1);var to=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Bi,attribute:!1,...e};(0,$l.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var Cn=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 kr=c(H(),1);var wn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var _n=c(x(),1);var On=class extends _n.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,_n.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){eo(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 Dl(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var ni=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Nl,Il=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Fl=Symbol("exportpartsDebouncer"),Ml=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var Dt=class extends On{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nl]=new wn(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[Fl].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[Il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[Il])}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[Ml]||(r[Ml]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.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 ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Dl(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],S=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...S].filter(l).map(v=>v.trim());for(let v of R)d.add(v)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Nl=Fl;ni([(0,kr.property)()],Dt.prototype,"exportpartsPrefix",void 0);ni([Ll([])],Dt.prototype,"exportpartsPrefixes",void 0);ni([(0,kr.property)({reflect:!0})],Dt.prototype,"exportparts",void 0);ni([(0,kr.property)()],Dt.prototype,"customStylesheet",void 0);ni([(0,kr.property)()],Dt.prototype,"elementToFocus",void 0);ni([(0,kr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Rn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),nr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),Th=An(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Lr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Lr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lr].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[nr].has(o.store):this[nr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[nr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),Rn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ui].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[nr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[nr].has(o)&&this[nr].get(o)(),this[nr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=nr,r=Lr,i=Ui,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Bl=class extends Th(Dt){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ul=kh,ro=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${ro()}`,REPLACE:`@@redux/REPLACE${ro()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ro()}`},Tn=Lh;function kn(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 io(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(io)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function u(){o===n&&(o=new Map,n.forEach((v,$)=>{o.set($,v)}))}function d(){if(l)throw new Error(Oe(3));return s}function p(v){if(typeof v!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let $=!0;u();let q=a++;return o.set(q,v),function(){if($){if(l)throw new Error(Oe(6));$=!1,u(),o.delete(q),n=null}}}function h(v){if(!kn(v))throw new Error(Oe(7));if(typeof v.type>"u")throw new Error(Oe(8));if(typeof v.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(q=>{q()}),v}function b(v){if(typeof v!="function")throw new Error(Oe(10));i=v,h({type:Tn.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Oe(11));function q(){let A=$;A.next&&A.next(d())}return q(),{unsubscribe:v(q)}},[Ul](){return this}}}return h({type:Tn.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Ul]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Tn.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Tn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function no(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{$h(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],R=b(S,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Oe(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(Oe(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=zi(...a)(s.dispatch),{...s,dispatch:n}}}function Vl(t){return kn(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,In="constructor",Un="prototype",lo="configurable",Pn="enumerable",$n="writable",Vi="value",It=t=>!!t&&!!t[Pe];function tt(t){return t?Zl(t)||Vn(t)||!!t[Hl]||!!t[In]?.[Hl]||Hn(t)||jn(t):!1}var Dh=et[Un][In].toString(),jl=new WeakMap;function Zl(t){if(!t||!yo(t))return!1;let e=oi(t);if(e===null||e===et[Un])return!0;let r=et.hasOwnProperty.call(e,In)&&e[In];if(r===Object)return!0;if(!si(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Dh}function zn(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function qi(t){let e=t[Pe];return e?e.type_:Vn(t)?1:Hn(t)?2:jn(t)?3:0}var so=(t,e,r=qi(t))=>r===2?t.has(e):et[Un].hasOwnProperty.call(t,e),co=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Mn=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ih(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Vn=Array.isArray,Hn=t=>t instanceof Map,jn=t=>t instanceof Set,yo=t=>typeof t=="object",si=t=>typeof t=="function",oo=t=>typeof t=="boolean";function Ph(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Wt=t=>t.copy_||t.base_;var bo=t=>t.modified_?t.copy_:t.base_;function uo(t,e){if(Hn(t))return new Map(t);if(jn(t))return new Set(t);if(Vn(t))return Array[Un].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Pe];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[$n]===!1&&(a[$n]=!0,a[lo]=!0),(a.get||a.set)&&(i[o]={[lo]:!0,[$n]:!0,[Pn]:a[Pn],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function qn(t,e=!1){return Wn(t)||It(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Ln,add:Ln,clear:Ln,delete:Ln}),et.freeze(t),e&&zn(t,(r,i)=>{qn(i,!0)},!1)),t}function Mh(){Et(2)}var Ln={[Vi]:Mh};function Wn(t){return t===null||!yo(t)?!0:et.isFrozen(t)}var Nn="MapSet",po="Patches",ql="ArrayMethods",Jl={};function $r(t){let e=Jl[t];return e||Et(0,t),e}var Wl=t=>!!Jl[t];var Hi,ec=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(Nn)?$r(Nn):void 0,arrayMethodsPlugin_:Wl(ql)?$r(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=$r(po),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ho(t){fo(t),t.drafts_.forEach(Fh),t.drafts_=null}function fo(t){t===Hi&&(Hi=t.parent_)}var Gl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ql(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Pe].modified_&&(ho(e),Et(4)),tt(t)&&(t=Yl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Pe].base_,t,e)}else t=Yl(e,r);return Bh(e,t,!0),ho(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Wn(e))return e;let r=e[Pe];if(!r)return Fn(e,t.handledSet_,t);if(!Kn(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);ic(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&qn(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Kn=(t,e)=>t.scope_===e,Uh=[];function rc(t,e,r,i){let s=Wt(t),n=t.type_;if(i!==void 0&&co(s,i,n)===e){Mn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;zn(s,(l,u)=>{if(It(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Mn(s,a,r,n)}function zh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Kn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=bo(n);rc(t,n.draft_??n,o,r),ic(n,s)})}function ic(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)}tc(t)}}function Vh(t,e,r){let{scope_:i}=t;if(It(r)){let s=r[Pe];Kn(s,i)&&s.callbacks_.push(function(){Dn(t);let o=bo(s);rc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=Wt(t);t.type_===3?n.has(r)&&Fn(r,i.handledSet_,i):co(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Fn(co(t.copy_,e,t.type_),i.handledSet_,i)})}function Fn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||It(t)||e.has(t)||!tt(t)||Wn(t)||(e.add(t),zn(t,(i,s)=>{if(It(s)){let n=s[Pe];if(Kn(n,r)){let o=bo(n);Mn(t,i,o,t.type_),tc(n)}}else tt(s)&&Fn(s,e,r)})),t}function Hh(t,e){let r=Vn(t),i={type_:r?1:0,scope_:e?e.scope_:ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Bn;r&&(s=[i],n=ji);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Bn={get(t,e){if(e===Pe)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=Wt(t);if(!so(s,e,t.type_))return qh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ph(e))return n;if(n===ao(t.base_,e)||jh(t,e,n)){Dn(t);let o=t.type_===1?+e:e,a=go(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Wt(t)},ownKeys(t){return Reflect.ownKeys(Wt(t))},set(t,e,r){let i=nc(Wt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=ao(Wt(t),e),n=s?.[Pe];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ih(r,s)&&(r!==void 0||so(t.base_,e,t.type_)))return!0;Dn(t),mo(t)}return t.copy_[e]===r&&(r!==void 0||so(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return Dn(t),ao(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),mo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Wt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[$n]:!0,[lo]:t.type_!==1||e!=="length",[Pn]:i[Pn],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Bn){let e=Bn[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Bn.set.call(this,t[0],e,r,t[0])};function ao(t,e){let r=t[Pe];return(r?Wt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Pe]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=nc(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function nc(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function mo(t){t.modified_||(t.modified_=!0,t.parent_&&mo(t.parent_))}function Dn(t){t.copy_||(t.assigned_=new Map,t.copy_=uo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||Et(6),i!==void 0&&!si(i)&&Et(7);let s;if(tt(e)){let n=Gl(this),o=go(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?ho(n):fo(n)}return Kl(n,i),Ql(s,n)}else if(!e||!yo(e)){if(s=r(e),s===void 0&&(s=e),s===Xl&&(s=void 0),this.autoFreeze_&&qn(s,!0),i){let n=[],o=[];$r(po).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},oo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),oo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),oo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),It(t)&&(t=sc(t));let e=Gl(this),r=go(e,t,void 0);return r[Pe].isManual_=!0,fo(e),r}finishDraft(t,e){let r=t&&t[Pe];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Kl(i,e),Ql(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=$r(po).applyPatches_;return It(t)?i(t,e):this.produce(t,s=>i(s,e))}};function go(t,e,r,i){let[s,n]=Hn(e)?$r(Nn).proxyMap_(e,r):jn(e)?$r(Nn).proxySet_(e,r):Hh(e,r);return(r?.scope_??ec()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?zh(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),s}function sc(t){return It(t)||Et(10,t),oc(t)}function oc(t){if(!tt(t)||Wn(t))return t;let e=t[Pe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=uo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=uo(t,!0);return zn(r,(s,n)=>{Mn(r,s,oc(n))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,wg=typeof Kh?.from=="function";var Gh=new Wh,vo=Gh.produce;function ac(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var lc=ac(),cc=ac;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Yh=t=>t&&typeof t.match=="function";function sr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Pt(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=>Vl(i)&&i.type===t,r}var fc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function uc(t){return tt(t)?vo(t,()=>{}):t}function Gn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new fc;return r&&(Xh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Jh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=t(o),n=setTimeout(o,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,n&&(n=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>s&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return s=!d?.meta?.[Jh],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fc(t);return i&&s.push(tf(typeof i=="object"?i:void 0)),s};function mc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(kn(r))l=no(r);else throw new Error(Pt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;s&&(d=Qh({trace:!1,...typeof s=="object"&&s}));let p=zl(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return io(l,o,S)}function gc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Pt(28));if(a in e)throw new Error(Pt(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function nf(t){return typeof t=="function"}function sf(t,e){let[r,i,s]=gc(e),n;if(nf(t))n=()=>uc(t());else{let a=uc(t);n=()=>a}function o(a=n(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[s]),u.reduce((d,p)=>{if(p)if(It(d)){let h=p(d,l);return h===void 0?d:h}else{if(tt(d))return vo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Pt(9))}return h}}return d},a)}return o.getInitialState=n,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],xo=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},pc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hc="External signal was aborted",pf=(()=>{function t(e,r,i){let s=sr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=sr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=sr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(hc):u.addEventListener("abort",()=>$(hc),{once:!0}));let q=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(ff(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let K=new Promise((V,ve)=>{R=()=>{ve({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",R,{once:!0})});d(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([K,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((V,ve)=>new xo(V,ve)),fulfillWithValue:((V,ve)=>new pc(V,ve))})).then(V=>{if(V instanceof xo)throw V;return V instanceof pc?s(V.payload,b,l,V.meta):s(V,b,l)})])}catch(A){E=A instanceof xo?o(null,b,l,A.payload,A.meta):o(A,b,l)}finally{R&&S.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(q,{abort:$,requestId:b,arg:l,unwrap(){return q.then(hf)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:af(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc=Symbol.for("rtk-slice-createasyncthunk"),Dg={[yc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[yc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Pt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let K=typeof E=="string"?E:E.type;if(!K)throw new Error(Pt(12));if(K in l.sliceCaseReducersByType)throw new Error(Pt(13));return l.sliceCaseReducersByType[K]=A,u},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),u},exposeAction(E,A){return l.actionCreators[E]=A,u},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,u}};a.forEach(E=>{let A=o[E],K={reducerName:E,type:mf(s,E),createNotation:typeof i.reducers=="function"};xf(A)?Ef(K,A,u,e):vf(K,A,u)});function d(){let[E={},A=[],K=void 0]=typeof i.extraReducers=="function"?gc(i.extraReducers):[i.extraReducers],V={...E,...l.sliceCaseReducersByType};return sf(i.initialState,ve=>{for(let Ie in V)ve.addCase(Ie,V[Ie]);for(let Ie of l.sliceMatchers)ve.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of A)ve.addMatcher(Ie.matcher,Ie.reducer);K&&ve.addDefaultCase(K)})}let p=E=>E,h=new Map,b=new WeakMap,S;function R(E,A){return S||(S=d()),S(E,A)}function v(){return S||(S=d()),S.getInitialState()}function $(E,A=!1){function K(ve){let Ie=ve[E];return typeof Ie>"u"&&A&&(Ie=Gn(b,K,v)),Ie}function V(ve=p){return Gn(Gn(h,A,()=>new WeakMap),ve,()=>{let Ie={};for(let[dn,ct]of Object.entries(i.selectors??{}))Ie[dn]=yf(ct,ve,()=>Gn(b,ve,v),A);return Ie})}return{reducerPath:E,getSelectors:V,get selectors(){return V(K)},selectSlice:K}}let q={name:s,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(n),injectInto(E,{reducerPath:A,...K}={}){let V=A??n;return E.inject({reducerPath:V,reducer:R},K),{...q,...$(V,!0)}}};return q}}function yf(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var bc=gf();function bf(){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 vf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Pt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?sr(t,o):sr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Pt(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=s(t,n,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Qn,pending:a||Qn,rejected:l||Qn,settled:u||Qn})}function Qn(){}var vc="listener",xc="completed",Sc="cancelled",Ig=`task-${Sc}`,Pg=`task-${xc}`,Mg=`${vc}-${Sc}`,Ng=`${vc}-${xc}`;var{assign:Ec}=Object;var So="listenerMiddleware";var Af=Ec(sr(`${So}/add`),{withTypes:()=>Af}),Fg=sr(`${So}/removeAll`),Cf=Ec(sr(`${So}/remove`),{withTypes:()=>Cf});function Pt(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 wf=An(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)}}}),Yn=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ac=class t extends Yn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Rn(n))return n;if(s==null)return;let o=bc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Cn,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,u=n[l];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ri(h,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Xn=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Zn=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new or(e.payload)),0))}},O=Zn.FtReduxStore.get({name:Of,reducers:_f,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 Cc=c(f()),Jn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},fy=(0,Cc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Xn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Jn([to({store:O.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),Jn([to({store:O.name})],e.prototype,"uiLocale",void 0),e});var wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wc||(wc={}));var Oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.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"})(Rc||(Rc={}));var Tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tc||(Tc={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Lc||(Lc={}));var $c;(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"})($c||($c={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Ic;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ic||(Ic={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Mc;(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"})(Mc||(Mc={}));var Nc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Nc||(Nc={}));var Fc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Fc||(Fc={}));var Bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Bc||(Bc={}));var Uc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Uc||(Uc={}));var zc;(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"})(zc||(zc={}));var Ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ao||(Ao={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Hc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Hc||(Hc={}));var Co;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Co||(Co={}));var jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));var Wc;(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"})(Wc||(Wc={}));var Kc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Kc||(Kc={}));var Gc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Gc||(Gc={}));var wo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wo||(wo={}));var Qc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qc||(Qc={}));var ue;(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"})(ue||(ue={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Yc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Yc||(Yc={}));var Xc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Xc||(Xc={}));var Zc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Zc||(Zc={}));var Jc;(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"})(Jc||(Jc={}));var eu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ru||(ru={}));var iu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(iu||(iu={}));var nu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(nu||(nu={}));var su;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(su||(su={}));var ou;(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"})(ou||(ou={}));var au;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(au||(au={}));var Rf={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN,ue.BEHAVIOR_DATA_USER],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]};function lu(t,e){return t===e||(Rf[t]??[]).some(r=>lu(r,e))}function es(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=>lu(i,e))}function cu(t,...e){return t==null?!1:e.some(r=>es(t,r))}var ss=c(f());var Oo=c(f());var Dr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.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=O.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dr.await()}};var Qe=class extends ai{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Oo.CacheRegistry,this.cache=e?s.commonCache:new Oo.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 ts=class extends Qe{async listMySearches(){let{session:e}=O.getState();return es(e,ue.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rs=class extends Qe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var is=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=O.getState().session;return!!e?.sessionAuthenticated}};var ns=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=O.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Ro(t,r,[..._o(t,r),s]),uu(t,r,1,i),du(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ro(t,r,_o(t,r).map(s=>s.id===i.id?i:s)),du(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ro(t,r,_o(t,r).filter(n=>n.id!==s)),uu(t,r,-1,i)}},pu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},_o=(t,e)=>{var r;let i=pu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ro=(t,e,r)=>{let i=pu[e];i&&(t[i]=r)},uu=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===dt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},du=(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)},Be=ss.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),To=class{constructor(e=new is,r=new ns){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rs,this.savedSearchesService=new ts,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ss.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(),Be.actions.clearAssetCount(),Be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Be.getState().assetCounts.allAsset[e]!==r.count&&Be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Be.getState().assetCounts.bookmarkByMap[e]!==r.count&&Be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Be.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Be.actions.clearBookmarkCountByMap(),Be.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;Be.actions.bookmarks(r)}}},Lf=new To;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var ko=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ko;var pt=c(f());var hu,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),os=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new pt.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof pt.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 li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};hu=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ci=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var fu=c(f()),Lo=class{highlightHtml(e,r,i){(0,fu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Lo;var mu=c(f());var $o=class{isDate(e){var r,i,s,n;return(n=(i=((s=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return mu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new $o;var gu=c(f());var Kt=class{static get(e,r){var i,s,n,o;let a=O.getState(),{lang:l,region:u}=(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 gu.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${l}-${u}`)}};var Do=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new Do;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Pr.eventName="change";var Io=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))}},yu=new Io;var ls=class t extends Gt.WithEventBus{static build(){return new t(window.history,yu,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Pr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:l.detail.nextLocation.href};i.apply(s,[d,o,d.href]),this.setCurrentState(d,!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(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Pr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Pr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ls.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 bu=c(x());var vu=bu.css`
|
|
270
|
+
`;var il=["top","right","bottom","left"],rl=["start","end"],Ks=il.reduce((t,e)=>t.concat(e,e+"-"+rl[0],e+"-"+rl[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var $t=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function nl(t,e,r){return tr(t,Li(e,r))}function mn(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Gs(t){return t==="x"?"y":"x"}function Qs(t){return t==="y"?"height":"width"}function gn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ys(t){return Gs(gn(t))}function sl(t,e,r){r===void 0&&(r=!1);let i=rr(t),s=Ys(t),n=Qs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Ws(o)),[o,Ws(o)]}function ol(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ws(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(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 al(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function _r(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}}function ll(t,e,r){let{reference:i,floating:s}=t,n=gn(e),o=Ys(e),a=Qs(o),l=Di(e),u=n==="y",d=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,h=i[a]/2-s[a]/2,b;switch(l){case"top":b={x:d,y:i.y-s.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-s.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function cl(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=mn(e,t),S=al(b),v=a[h?p==="floating"?"reference":"floating":p],$=_r(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),q=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(E))&&await(n.getScale==null?void 0:n.getScale(E))||{x:1,y:1},K=_r(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:q,offsetParent:E,strategy:l}):q);return{top:($.top-K.top+S.top)/A.y,bottom:(K.bottom-$.bottom+S.bottom)/A.y,left:($.left-K.left+S.left)/A.x,right:(K.right-$.right+S.right)/A.x}}var lh=50,ul=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:cl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=ll(u,i,l),h=i,b=0,S={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:$,fn:q}=v,{x:E,y:A,data:K,reset:V}=await q({x:d,y:p,initialPlacement:i,placement:h,strategy:s,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=A??p,S[$]={...S[$],...K},V&&b<lh&&(b++,typeof V=="object"&&(V.placement&&(h=V.placement),V.rects&&(u=V.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):V.rects),{x:d,y:p}=ll(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(s=>rr(s)===t),...r.filter(s=>rr(s)!==t)]:r.filter(s=>Di(s)===s)).filter(s=>t?rr(s)===t||(e?ol(s)!==s:!1):!0)}var dl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Ks,autoAlignment:b=!0,...S}=mn(t,e),R=p!==void 0||h===Ks?ch(p||null,b,h):h,v=((r=o.autoPlacement)==null?void 0:r.index)||0,$=R[v];if($==null)return{};if(a!==$)return{reset:{placement:R[0]}};let q=await l.detectOverflow(e,S),E=sl($,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[q[Di($)],q[E[0]],q[E[1]]],K=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],V=R[v+1];if(V)return{data:{index:v+1,overflows:K},reset:{placement:V}};let ve=K.map(ct=>{let Ci=rr(ct.placement);return[ct.placement,Ci&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,Ci)=>ct[1]-Ci[1]),dn=((s=ve.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(Ci=>Ci<=0))[0])==null?void 0:s[0])||ve[0][0];return dn!==a?{data:{index:v+1,overflows:K},reset:{placement:dn}}:{}}}};var pl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:q=>{let{x:E,y:A}=q;return{x:E,y:A}}},...u}=mn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=gn(s),b=Gs(h),S=d[b],R=d[h],v=(q,E)=>nl(E+p[q==="y"?"top":"left"],E,E-p[q==="y"?"bottom":"right"]);o&&(S=v(b,S)),a&&(R=v(h,R));let $=l.fn({...e,[b]:S,[h]:R});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[b]:o,[h]:a}}}}}};function bn(){return typeof window<"u"}function Tr(t){return fl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(fl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fl(t){return bn()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return bn()?t instanceof Element||t instanceof Ge(t).Element:!1}function qt(t){return bn()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function hl(t){return!bn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Ii(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function ml(t){return/^(table|td|th)$/.test(Tr(t))}function Pi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",Xs;function Jr(t){let e=xt(t)?St(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!vn()&&(Rr(e.backdropFilter)||Rr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function gl(t){let e=ir(t);for(;qt(e)&&!ei(e);){if(Jr(e))return e;if(Pi(e))return null;e=ir(e)}return null}function vn(){return Xs==null&&(Xs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xs}function ei(t){return/^(html|body|#document)$/.test(Tr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hl(t)&&t.host||jt(t);return hl(e)?e.host:e}function yl(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:qt(e)&&Ii(e)?e:yl(e)}function yn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=yl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(s);if(n){let a=xn(o);return e.concat(o,o.visualViewport||[],Ii(s)?s:[],a&&r?yn(a):[])}else return e.concat(s,yn(s,[],r))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=qt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=$i(r)!==n||$i(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Sl(t){return xt(t)?t:t.contextElement}function ti(t){let e=Sl(t);if(!qt(e))return $t(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=xl(e),o=(n?$i(r.width):r.width)/i,a=(n?$i(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=$t(0);function El(t){let e=Ge(t);return!vn()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=Sl(t),o=$t(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(n,r,i)?El(n):$t(0),l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,p=s.height/o.y;if(n&&i){let h=Ge(n),b=xt(i)?Ge(i):i,S=h,R=xn(S);for(;R&&b!==S;){let v=ti(R),$=R.getBoundingClientRect(),q=St(R),E=$.left+(R.clientLeft+parseFloat(q.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(q.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ge(R),R=xn(S)}}return _r({width:d,height:p,x:l,y:u})}function Sn(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(jt(t)).left+r}function Al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Sn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=jt(i),a=e?Pi(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=$t(1),d=$t(0),p=qt(i);if((p||!n)&&((Tr(i)!=="body"||Ii(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?Al(o,l):$t(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Sn(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(n+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ge(t),n=jt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!vn()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(Sn(n)<=0){let h=n.ownerDocument,b=h.body,S=getComputedStyle(b),R=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),$=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;$<=yh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ti(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,u=i*n.y;return{width:o,height:a,x:l,y:u}}function bl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(jt(t));else if(xt(e))i=vh(e,r);else{let s=El(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return _r(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=yn(t,[],!1).filter(a=>xt(a)&&Tr(a)!=="body"),s=null,n=St(t).position==="fixed",o=n?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Pi(e)?[]:xh(e,this._c):[].concat(r),i],a=bl(e,o[0],s),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=bl(e,o[h],s);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=xl(t);return{width:e,height:r}}function Ah(t,e,r){let i=qt(e),s=jt(e),n=r==="fixed",o=Ni(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=$t(0);if((i||!n)&&((Tr(e)!=="body"||Ii(s))&&(a=Mi(e)),i)){let h=Ni(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=Sn(s));let u=s&&!i&&!n?Al(s,a):$t(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Zs(t){return St(t).position==="static"}function vl(t,e){if(!qt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return jt(t)===r&&(r=r.ownerDocument.body),r}function Cl(t,e){let r=Ge(t);if(Pi(t))return r;if(!qt(t)){let s=ir(t);for(;s&&!ei(s);){if(xt(s)&&!Zs(s))return s;s=ir(s)}return r}let i=vl(t,e);for(;i&&ml(i)&&Zs(i);)i=vl(i,e);return i&&ei(i)&&Zs(i)&&!Jr(i)?r:i||gl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||Cl,r=this.getDimensions,i=await r(t.floating);return{reference:Ah(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var En={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:jt,getClippingRect:Sh,getOffsetParent:Cl,getElementRects:Ch,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var wl=dl,Ol=pl;var _l=(t,e,r)=>{let i=new Map,s=r??{},n={...En,...s.platform,_c:i};return ul(t,e,{...s,platform:n})};function Rl(t){return Oh(t)}function Js(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Js(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Js(t);e;e=Js(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function Tl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},_l(t,e,{strategy:i.strategy,platform:{...En,getOffsetParent:s=>En.getOffsetParent(s,Rl)},middleware:[Ol({crossAxis:!0}),wl({allowedPlacements:[i.placement]})]})}var di=c(f());var Eo=c(H());var kl=c(H(),1);var eo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_h=t=>({fromAttribute:e=>{if(e==null)return Fi(t);try{return JSON.parse(e)}catch{return Fi(t)}},toAttribute:e=>JSON.stringify(e)});function Ll(t,e){return(0,kl.property)({type:Object,converter:_h(t),hasChanged:Bi,...e??{}})}function Rh(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(!ri(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(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return Rh(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function An(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 $l=c(H(),1);var to=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Bi,attribute:!1,...e};(0,$l.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var Cn=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 kr=c(H(),1);var wn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var _n=c(x(),1);var On=class extends _n.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,_n.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){eo(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 Dl(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var ni=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Nl,Il=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Fl=Symbol("exportpartsDebouncer"),Ml=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var Dt=class extends On{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nl]=new wn(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[Fl].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[Il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[Il])}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[Ml]||(r[Ml]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.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 ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Dl(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],S=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...S].filter(l).map(v=>v.trim());for(let v of R)d.add(v)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Nl=Fl;ni([(0,kr.property)()],Dt.prototype,"exportpartsPrefix",void 0);ni([Ll([])],Dt.prototype,"exportpartsPrefixes",void 0);ni([(0,kr.property)({reflect:!0})],Dt.prototype,"exportparts",void 0);ni([(0,kr.property)()],Dt.prototype,"customStylesheet",void 0);ni([(0,kr.property)()],Dt.prototype,"elementToFocus",void 0);ni([(0,kr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Rn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),nr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),Th=An(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Lr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Lr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lr].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[nr].has(o.store):this[nr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l,u;this[nr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),Rn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,p)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),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=b=>this[p](b);a.addEventListener(d.eventName,h),this[Ui].get(o).push(()=>a.removeEventListener(d.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[nr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[nr].has(o)&&this[nr].get(o)(),this[nr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=nr,r=Lr,i=Ui,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Bl=class extends Th(Dt){};function _e(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ul=kh,ro=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${ro()}`,REPLACE:`@@redux/REPLACE${ro()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ro()}`},Tn=Lh;function kn(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 io(t,e,r){if(typeof t!="function")throw new Error(_e(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(io)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function u(){o===n&&(o=new Map,n.forEach((v,$)=>{o.set($,v)}))}function d(){if(l)throw new Error(_e(3));return s}function p(v){if(typeof v!="function")throw new Error(_e(4));if(l)throw new Error(_e(5));let $=!0;u();let q=a++;return o.set(q,v),function(){if($){if(l)throw new Error(_e(6));$=!1,u(),o.delete(q),n=null}}}function h(v){if(!kn(v))throw new Error(_e(7));if(typeof v.type>"u")throw new Error(_e(8));if(typeof v.type!="string")throw new Error(_e(17));if(l)throw new Error(_e(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(q=>{q()}),v}function b(v){if(typeof v!="function")throw new Error(_e(10));i=v,h({type:Tn.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(_e(11));function q(){let A=$;A.next&&A.next(d())}return q(),{unsubscribe:v(q)}},[Ul](){return this}}}return h({type:Tn.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Ul]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Tn.INIT})>"u")throw new Error(_e(12));if(typeof r(void 0,{type:Tn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function no(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{$h(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],R=b(S,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(_e(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(_e(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=zi(...a)(s.dispatch),{...s,dispatch:n}}}function Vl(t){return kn(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,In="constructor",Un="prototype",lo="configurable",Pn="enumerable",$n="writable",Vi="value",It=t=>!!t&&!!t[Pe];function tt(t){return t?Zl(t)||Vn(t)||!!t[Hl]||!!t[In]?.[Hl]||Hn(t)||jn(t):!1}var Dh=et[Un][In].toString(),jl=new WeakMap;function Zl(t){if(!t||!yo(t))return!1;let e=oi(t);if(e===null||e===et[Un])return!0;let r=et.hasOwnProperty.call(e,In)&&e[In];if(r===Object)return!0;if(!si(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Dh}function zn(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function qi(t){let e=t[Pe];return e?e.type_:Vn(t)?1:Hn(t)?2:jn(t)?3:0}var so=(t,e,r=qi(t))=>r===2?t.has(e):et[Un].hasOwnProperty.call(t,e),co=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Mn=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ih(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Vn=Array.isArray,Hn=t=>t instanceof Map,jn=t=>t instanceof Set,yo=t=>typeof t=="object",si=t=>typeof t=="function",oo=t=>typeof t=="boolean";function Ph(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Wt=t=>t.copy_||t.base_;var bo=t=>t.modified_?t.copy_:t.base_;function uo(t,e){if(Hn(t))return new Map(t);if(jn(t))return new Set(t);if(Vn(t))return Array[Un].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Pe];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[$n]===!1&&(a[$n]=!0,a[lo]=!0),(a.get||a.set)&&(i[o]={[lo]:!0,[$n]:!0,[Pn]:a[Pn],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function qn(t,e=!1){return Wn(t)||It(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Ln,add:Ln,clear:Ln,delete:Ln}),et.freeze(t),e&&zn(t,(r,i)=>{qn(i,!0)},!1)),t}function Mh(){Et(2)}var Ln={[Vi]:Mh};function Wn(t){return t===null||!yo(t)?!0:et.isFrozen(t)}var Nn="MapSet",po="Patches",ql="ArrayMethods",Jl={};function $r(t){let e=Jl[t];return e||Et(0,t),e}var Wl=t=>!!Jl[t];var Hi,ec=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(Nn)?$r(Nn):void 0,arrayMethodsPlugin_:Wl(ql)?$r(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=$r(po),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ho(t){fo(t),t.drafts_.forEach(Fh),t.drafts_=null}function fo(t){t===Hi&&(Hi=t.parent_)}var Gl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ql(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Pe].modified_&&(ho(e),Et(4)),tt(t)&&(t=Yl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Pe].base_,t,e)}else t=Yl(e,r);return Bh(e,t,!0),ho(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Wn(e))return e;let r=e[Pe];if(!r)return Fn(e,t.handledSet_,t);if(!Kn(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);ic(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&qn(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Kn=(t,e)=>t.scope_===e,Uh=[];function rc(t,e,r,i){let s=Wt(t),n=t.type_;if(i!==void 0&&co(s,i,n)===e){Mn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;zn(s,(l,u)=>{if(It(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Mn(s,a,r,n)}function zh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Kn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=bo(n);rc(t,n.draft_??n,o,r),ic(n,s)})}function ic(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)}tc(t)}}function Vh(t,e,r){let{scope_:i}=t;if(It(r)){let s=r[Pe];Kn(s,i)&&s.callbacks_.push(function(){Dn(t);let o=bo(s);rc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=Wt(t);t.type_===3?n.has(r)&&Fn(r,i.handledSet_,i):co(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Fn(co(t.copy_,e,t.type_),i.handledSet_,i)})}function Fn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||It(t)||e.has(t)||!tt(t)||Wn(t)||(e.add(t),zn(t,(i,s)=>{if(It(s)){let n=s[Pe];if(Kn(n,r)){let o=bo(n);Mn(t,i,o,t.type_),tc(n)}}else tt(s)&&Fn(s,e,r)})),t}function Hh(t,e){let r=Vn(t),i={type_:r?1:0,scope_:e?e.scope_:ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Bn;r&&(s=[i],n=ji);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Bn={get(t,e){if(e===Pe)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=Wt(t);if(!so(s,e,t.type_))return qh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ph(e))return n;if(n===ao(t.base_,e)||jh(t,e,n)){Dn(t);let o=t.type_===1?+e:e,a=go(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Wt(t)},ownKeys(t){return Reflect.ownKeys(Wt(t))},set(t,e,r){let i=nc(Wt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=ao(Wt(t),e),n=s?.[Pe];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ih(r,s)&&(r!==void 0||so(t.base_,e,t.type_)))return!0;Dn(t),mo(t)}return t.copy_[e]===r&&(r!==void 0||so(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return Dn(t),ao(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),mo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Wt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[$n]:!0,[lo]:t.type_!==1||e!=="length",[Pn]:i[Pn],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Bn){let e=Bn[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Bn.set.call(this,t[0],e,r,t[0])};function ao(t,e){let r=t[Pe];return(r?Wt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Pe]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=nc(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function nc(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function mo(t){t.modified_||(t.modified_=!0,t.parent_&&mo(t.parent_))}function Dn(t){t.copy_||(t.assigned_=new Map,t.copy_=uo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||Et(6),i!==void 0&&!si(i)&&Et(7);let s;if(tt(e)){let n=Gl(this),o=go(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?ho(n):fo(n)}return Kl(n,i),Ql(s,n)}else if(!e||!yo(e)){if(s=r(e),s===void 0&&(s=e),s===Xl&&(s=void 0),this.autoFreeze_&&qn(s,!0),i){let n=[],o=[];$r(po).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},oo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),oo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),oo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),It(t)&&(t=sc(t));let e=Gl(this),r=go(e,t,void 0);return r[Pe].isManual_=!0,fo(e),r}finishDraft(t,e){let r=t&&t[Pe];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Kl(i,e),Ql(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=$r(po).applyPatches_;return It(t)?i(t,e):this.produce(t,s=>i(s,e))}};function go(t,e,r,i){let[s,n]=Hn(e)?$r(Nn).proxyMap_(e,r):jn(e)?$r(Nn).proxySet_(e,r):Hh(e,r);return(r?.scope_??ec()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?zh(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),s}function sc(t){return It(t)||Et(10,t),oc(t)}function oc(t){if(!tt(t)||Wn(t))return t;let e=t[Pe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=uo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=uo(t,!0);return zn(r,(s,n)=>{Mn(r,s,oc(n))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,wg=typeof Kh?.from=="function";var Gh=new Wh,vo=Gh.produce;function ac(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var lc=ac(),cc=ac;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Yh=t=>t&&typeof t.match=="function";function sr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Pt(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=>Vl(i)&&i.type===t,r}var fc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function uc(t){return tt(t)?vo(t,()=>{}):t}function Gn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new fc;return r&&(Xh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Jh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=t(o),n=setTimeout(o,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,n&&(n=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>s&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return s=!d?.meta?.[Jh],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fc(t);return i&&s.push(tf(typeof i=="object"?i:void 0)),s};function mc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(kn(r))l=no(r);else throw new Error(Pt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;s&&(d=Qh({trace:!1,...typeof s=="object"&&s}));let p=zl(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return io(l,o,S)}function gc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Pt(28));if(a in e)throw new Error(Pt(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function nf(t){return typeof t=="function"}function sf(t,e){let[r,i,s]=gc(e),n;if(nf(t))n=()=>uc(t());else{let a=uc(t);n=()=>a}function o(a=n(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[s]),u.reduce((d,p)=>{if(p)if(It(d)){let h=p(d,l);return h===void 0?d:h}else{if(tt(d))return vo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Pt(9))}return h}}return d},a)}return o.getInitialState=n,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],xo=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},pc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hc="External signal was aborted",pf=(()=>{function t(e,r,i){let s=sr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=sr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=sr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(hc):u.addEventListener("abort",()=>$(hc),{once:!0}));let q=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(ff(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let K=new Promise((V,ve)=>{R=()=>{ve({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",R,{once:!0})});d(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([K,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((V,ve)=>new xo(V,ve)),fulfillWithValue:((V,ve)=>new pc(V,ve))})).then(V=>{if(V instanceof xo)throw V;return V instanceof pc?s(V.payload,b,l,V.meta):s(V,b,l)})])}catch(A){E=A instanceof xo?o(null,b,l,A.payload,A.meta):o(A,b,l)}finally{R&&S.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(q,{abort:$,requestId:b,arg:l,unwrap(){return q.then(hf)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:af(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc=Symbol.for("rtk-slice-createasyncthunk"),Dg={[yc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[yc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Pt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let K=typeof E=="string"?E:E.type;if(!K)throw new Error(Pt(12));if(K in l.sliceCaseReducersByType)throw new Error(Pt(13));return l.sliceCaseReducersByType[K]=A,u},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),u},exposeAction(E,A){return l.actionCreators[E]=A,u},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,u}};a.forEach(E=>{let A=o[E],K={reducerName:E,type:mf(s,E),createNotation:typeof i.reducers=="function"};xf(A)?Ef(K,A,u,e):vf(K,A,u)});function d(){let[E={},A=[],K=void 0]=typeof i.extraReducers=="function"?gc(i.extraReducers):[i.extraReducers],V={...E,...l.sliceCaseReducersByType};return sf(i.initialState,ve=>{for(let Ie in V)ve.addCase(Ie,V[Ie]);for(let Ie of l.sliceMatchers)ve.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of A)ve.addMatcher(Ie.matcher,Ie.reducer);K&&ve.addDefaultCase(K)})}let p=E=>E,h=new Map,b=new WeakMap,S;function R(E,A){return S||(S=d()),S(E,A)}function v(){return S||(S=d()),S.getInitialState()}function $(E,A=!1){function K(ve){let Ie=ve[E];return typeof Ie>"u"&&A&&(Ie=Gn(b,K,v)),Ie}function V(ve=p){return Gn(Gn(h,A,()=>new WeakMap),ve,()=>{let Ie={};for(let[dn,ct]of Object.entries(i.selectors??{}))Ie[dn]=yf(ct,ve,()=>Gn(b,ve,v),A);return Ie})}return{reducerPath:E,getSelectors:V,get selectors(){return V(K)},selectSlice:K}}let q={name:s,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(n),injectInto(E,{reducerPath:A,...K}={}){let V=A??n;return E.inject({reducerPath:V,reducer:R},K),{...q,...$(V,!0)}}};return q}}function yf(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var bc=gf();function bf(){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 vf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Pt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?sr(t,o):sr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Pt(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=s(t,n,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Qn,pending:a||Qn,rejected:l||Qn,settled:u||Qn})}function Qn(){}var vc="listener",xc="completed",Sc="cancelled",Ig=`task-${Sc}`,Pg=`task-${xc}`,Mg=`${vc}-${Sc}`,Ng=`${vc}-${xc}`;var{assign:Ec}=Object;var So="listenerMiddleware";var Af=Ec(sr(`${So}/add`),{withTypes:()=>Af}),Fg=sr(`${So}/removeAll`),Cf=Ec(sr(`${So}/remove`),{withTypes:()=>Cf});function Pt(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 wf=An(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)}}}),Yn=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ac=class t extends Yn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Rn(n))return n;if(s==null)return;let o=bc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new Cn,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let u=a,d=o[u];return d?(...p)=>{let h=d(...p.map(n));return this.reduxStore.dispatch(h),h}:p=>{let h=u,b=this.getState()[h];ri(b,p)||this.setState({[h]:n(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Xn=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Zn=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new or(e.payload)),0))}},O=Zn.FtReduxStore.get({name:Of,reducers:_f,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 Cc=c(f()),Jn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},fy=(0,Cc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Xn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Jn([to({store:O.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),Jn([to({store:O.name})],e.prototype,"uiLocale",void 0),e});var wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wc||(wc={}));var Oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.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"})(Rc||(Rc={}));var Tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tc||(Tc={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Lc||(Lc={}));var $c;(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"})($c||($c={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Ic;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ic||(Ic={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Mc;(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"})(Mc||(Mc={}));var Nc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Nc||(Nc={}));var Fc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Fc||(Fc={}));var Bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Bc||(Bc={}));var Uc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Uc||(Uc={}));var zc;(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"})(zc||(zc={}));var Ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ao||(Ao={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Hc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Hc||(Hc={}));var Co;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Co||(Co={}));var jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));var Wc;(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"})(Wc||(Wc={}));var Kc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Kc||(Kc={}));var Gc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Gc||(Gc={}));var wo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wo||(wo={}));var Qc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qc||(Qc={}));var ue;(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"})(ue||(ue={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Yc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Yc||(Yc={}));var Xc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Xc||(Xc={}));var Zc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Zc||(Zc={}));var Jc;(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"})(Jc||(Jc={}));var eu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ru||(ru={}));var iu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(iu||(iu={}));var nu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(nu||(nu={}));var su;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(su||(su={}));var ou;(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"})(ou||(ou={}));var au;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(au||(au={}));var Rf={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN,ue.BEHAVIOR_DATA_USER],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]};function lu(t,e){return t===e||(Rf[t]??[]).some(r=>lu(r,e))}function es(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=>lu(i,e))}function cu(t,...e){return t==null?!1:e.some(r=>es(t,r))}var ss=c(f());var Oo=c(f());var Dr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.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=O.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dr.await()}};var Qe=class extends ai{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Oo.CacheRegistry,this.cache=e?s.commonCache:new Oo.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 ts=class extends Qe{async listMySearches(){let{session:e}=O.getState();return es(e,ue.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rs=class extends Qe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var is=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=O.getState().session;return!!e?.sessionAuthenticated}};var ns=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=O.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Ro(t,r,[..._o(t,r),s]),uu(t,r,1,i),du(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ro(t,r,_o(t,r).map(s=>s.id===i.id?i:s)),du(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ro(t,r,_o(t,r).filter(n=>n.id!==s)),uu(t,r,-1,i)}},pu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},_o=(t,e)=>{var r;let i=pu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ro=(t,e,r)=>{let i=pu[e];i&&(t[i]=r)},uu=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===dt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},du=(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)},Be=ss.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),To=class{constructor(e=new is,r=new ns){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rs,this.savedSearchesService=new ts,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ss.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(),Be.actions.clearAssetCount(),Be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Be.getState().assetCounts.allAsset[e]!==r.count&&Be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Be.getState().assetCounts.bookmarkByMap[e]!==r.count&&Be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Be.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Be.actions.clearBookmarkCountByMap(),Be.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;Be.actions.bookmarks(r)}}},Lf=new To;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var ko=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ko;var pt=c(f());var hu,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),os=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new pt.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof pt.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 li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};hu=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ci=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var fu=c(f()),Lo=class{highlightHtml(e,r,i){(0,fu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Lo;var mu=c(f());var $o=class{isDate(e){var r,i,s,n;return(n=(i=((s=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return mu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new $o;var gu=c(f());var Kt=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:n}=O.getState()){var o;if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=n[0])===null||o===void 0?void 0:o.lang}return new gu.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,n)}};var Do=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new Do;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Pr.eventName="change";var Io=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))}},yu=new Io;var ls=class t extends Gt.WithEventBus{static build(){return new t(window.history,yu,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Pr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:l.detail.nextLocation.href};i.apply(s,[d,o,d.href]),this.setCurrentState(d,!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(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Pr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Pr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ls.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 bu=c(x());var vu=bu.css`
|
|
271
271
|
`;var Su=c(x()),Ue=c(H()),Fr=c(f());var Mr=c(f());function xu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var cs=class extends ai{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Po=class t extends Mr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Mr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new cs,this.cleanSessionDebouncer=new Mr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Mr.Debouncer(500),this.apiProvider=r??(()=>Dr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(or.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>xu(()=>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 Ki(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 cu(O.getState().session,...e)}},Mo=Po.build();var Nr=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 Gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new Nr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ee=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},se=class extends Fr.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=Mo,this.contextRoot=new Gi}render(){return Su.html`
|
|
272
272
|
<slot></slot>
|
|
273
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=>ci.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())}};se.elementDefinitions={};se.styles=vu;Ee([(0,Ue.property)()],se.prototype,"baseUrl",void 0);Ee([(0,Ue.property)()],se.prototype,"tenantId",void 0);Ee([(0,Ue.property)()],se.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ue.property)()],se.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,Ue.property)()],se.prototype,"uiLocale",void 0);Ee([(0,Fr.jsonProperty)(null)],se.prototype,"availableUiLocales",void 0);Ee([(0,Fr.jsonProperty)(null)],se.prototype,"metadataConfiguration",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"editorMode",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"noCustom",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);Ee([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomCode",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"withManualResources",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"navigatorOnline",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"forcedOffline",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"authenticationRequired",void 0);Ee([(0,Fr.jsonProperty)([])],se.prototype,"messageContexts",void 0);Ee([(0,Fr.jsonProperty)(void 0)],se.prototype,"session",void 0);var Au=c(f());var Eu={"ft-app-context":se};(0,Au.customElements)(Eu);var Cu=c(H());var No=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-]+$/)}},ui=new No;var Pf=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Yi=Symbol("i18nAttributes"),wu=Symbol("i18nListAttributes"),Ou=Symbol("i18nProperties"),us=Symbol("i18nContexts"),Qi=Symbol("i18nUnsubs"),pi=(0,di.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?as:ci}i18n(n){let{context:o,key:a,message:l}=n,{custom:u,args:d,argsProvider:p}=n;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(ui.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&n(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Yi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[wu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(b=>u(d,p,b))})}updateI18nProperties(n){var o;(o=this[Ou])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[us].set(l,{isCustomContext:a}),this[Qi].has(l)||this[Qi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[us].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[us].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qi].forEach(n=>n()),this[Qi].clear()}}return e=us,r=Qi,Pf([(0,Cu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ds=class extends pi(di.FtLitElement){},ps=class extends pi(di.FtLitElementRedux){};var _u=c(f());var Fo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ui.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Mf=new Fo;var hs=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:_u.hasChanged,converter:ui,...e}),r[Yi]=(s=r[Yi])!==null&&s!==void 0?s:new Map,r[Yi].set(i,t??{})};var fs=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?as:ci}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let n=s;return o=>({context:this.name,key:n,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...n)=>this.service.resolveMessage(this.name,s,...n)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ru=c(x());var Tu=Ru.css`
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
margin: 10px 0;
|
|
771
771
|
color: ${rn.colorOnSurfaceMedium};
|
|
772
772
|
}
|
|
773
|
-
`;var Hr=c(x()),Z=c(H()),pe=c(f());var st=c(x()),Se=c(H()),Dd=c(dr()),Xe=c(f());var Cs=c(x()),Ot=c(H()),bd=c(f()),vd=c(Je());var
|
|
773
|
+
`;var Hr=c(x()),Z=c(H()),pe=c(f());var st=c(x()),Se=c(H()),Dd=c(dr()),Xe=c(f());var Cs=c(x()),Ot=c(H()),bd=c(f()),vd=c(Je());var Ae=c(f()),gd=c(x());var it={textColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ae.designSystemVariables.colorOnSurfaceHigh),fontSize:Ae.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ae.designSystemVariables.colorPrimary),checkColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ae.designSystemVariables.colorOnPrimary),borderColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ae.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ae.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ae.designSystemVariables.colorError)},yd=gd.css`
|
|
774
774
|
* {
|
|
775
775
|
box-sizing: border-box;
|
|
776
776
|
}
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
|
|
852
852
|
.ft-checkbox.ft-checkbox--error {
|
|
853
853
|
color: ${it.errorColor};
|
|
854
|
-
${(0,
|
|
854
|
+
${(0,Ae.setVariable)(z.color,it.errorColor)};
|
|
855
855
|
|
|
856
856
|
.ft-checkbox--box {
|
|
857
857
|
border-color: ${it.errorColor};
|
|
@@ -863,6 +863,15 @@
|
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
+
|
|
867
|
+
.ft-checkbox:has(:focus-visible) {
|
|
868
|
+
outline: 2px solid ${Ae.designSystemVariables.colorPrimary};
|
|
869
|
+
outline-offset: -2px;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.ft-checkbox ft-typography {
|
|
873
|
+
padding-right: 2px;
|
|
874
|
+
}
|
|
866
875
|
`;var Yt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Go=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends bd.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 Cs.html`
|
|
867
876
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
868
877
|
<ft-ripple part="checkbox-ripple"
|
|
@@ -986,7 +995,7 @@
|
|
|
986
995
|
.ft-radio ft-typography {
|
|
987
996
|
padding-right: 2px;
|
|
988
997
|
}
|
|
989
|
-
`;var hr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ws=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},
|
|
998
|
+
`;var hr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ws=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=class extends wd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cd.html`
|
|
990
999
|
<div class="${(0,Od.classMap)(this.radioClasses)}"
|
|
991
1000
|
@click=${this.onClick}>
|
|
992
1001
|
<div class="ft-radio--box-container">
|
|
@@ -1012,7 +1021,7 @@
|
|
|
1012
1021
|
</ft-typography>
|
|
1013
1022
|
</label>
|
|
1014
1023
|
</div>
|
|
1015
|
-
`}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 ws(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 ws(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())}};
|
|
1024
|
+
`}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 ws(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 ws(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ce.elementDefinitions={"ft-ripple":D,"ft-typography":W};Ce.styles=Ad;hr([(0,Nt.property)()],Ce.prototype,"name",void 0);hr([(0,Nt.property)()],Ce.prototype,"value",void 0);hr([(0,Nt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);hr([(0,Nt.property)({attribute:"aria-checked",reflect:!0})],Ce.prototype,"ariaChecked",void 0);hr([(0,Nt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);hr([(0,Nt.query)(".ft-radio")],Ce.prototype,"container",void 0);hr([(0,Nt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);hr([(0,Nt.query)("input")],Ce.prototype,"input",void 0);var Td=c(f()),fr=c(H()),kd=c(x());var _d=c(x());var Rd=_d.css`
|
|
1016
1025
|
:host {
|
|
1017
1026
|
display: block;
|
|
1018
1027
|
}
|
|
@@ -1025,7 +1034,7 @@
|
|
|
1025
1034
|
@change=${this.onChange}
|
|
1026
1035
|
@keydown=${this.onKeyDown}
|
|
1027
1036
|
></slot>
|
|
1028
|
-
`}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()}};nt.elementDefinitions={};nt.styles=Rd;nn([(0,fr.property)()],nt.prototype,"name",void 0);nn([(0,fr.property)({reflect:!0,attribute:"role"})],nt.prototype,"role",void 0);nn([(0,fr.property)({reflect:!0,attribute:"aria-labelledby"})],nt.prototype,"ariaLabelledBy",void 0);nn([(0,fr.queryAssignedElements)()],nt.prototype,"assignedElements",void 0);nn([(0,fr.state)()],nt.prototype,"currentSelectedIndex",void 0);var $d=c(f());var Ld={"ft-radio":
|
|
1037
|
+
`}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()}};nt.elementDefinitions={};nt.styles=Rd;nn([(0,fr.property)()],nt.prototype,"name",void 0);nn([(0,fr.property)({reflect:!0,attribute:"role"})],nt.prototype,"role",void 0);nn([(0,fr.property)({reflect:!0,attribute:"aria-labelledby"})],nt.prototype,"ariaLabelledBy",void 0);nn([(0,fr.queryAssignedElements)()],nt.prototype,"assignedElements",void 0);nn([(0,fr.state)()],nt.prototype,"currentSelectedIndex",void 0);var $d=c(f());var Ld={"ft-radio":Ce,"ft-radio-group":nt};(0,$d.customElements)(Ld);var Te=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Qo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ae=class extends(0,Xe.withAnalytics)(pi((0,Xe.withAriaNotification)(Xe.FtLitElement)),Qo){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Xe.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 st.html`
|
|
1029
1038
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1030
1039
|
${this.parent==null?null:st.html`
|
|
1031
1040
|
<div tabindex="0"
|
|
@@ -1093,7 +1102,7 @@
|
|
|
1093
1102
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1094
1103
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1095
1104
|
</ft-radio>
|
|
1096
|
-
`}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)})}};ae.elementDefinitions={"ft-button":C,"ft-ripple":D,"ft-typography":W,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":
|
|
1105
|
+
`}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)})}};ae.elementDefinitions={"ft-button":C,"ft-ripple":D,"ft-typography":W,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ce};ae.styles=md;Te([(0,Se.property)({type:String})],ae.prototype,"filterId",void 0);Te([(0,Se.property)({type:Object})],ae.prototype,"parent",void 0);Te([(0,Se.property)({type:Array,hasChanged:Xe.hasChanged})],ae.prototype,"options",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"multivalued",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"disabled",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"hideSelectedOptions",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"displayCount",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"preventNavigation",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"filter",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"moreValuesButtonLabel",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"noValuesLabel",void 0);Te([(0,Se.property)()],ae.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Xe.numberProperty)()],ae.prototype,"displayedValuesLimit",void 0);Te([(0,Se.query)(".ft-filter-level--container")],ae.prototype,"container",void 0);Te([(0,Se.state)()],ae.prototype,"radios",void 0);Te([(0,Se.state)()],ae.prototype,"displayedPages",void 0);Te([(0,Se.state)()],ae.prototype,"filteredOptions",void 0);var Md=c(x()),ot=c(H()),Vr=c(f());var Nd=c(Je());var Id=c(x()),_t=c(f());var He={buttonsColor:_t.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",_t.designSystemVariables.colorPrimary),buttonsZIndex:_t.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:_t.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:_t.FtCssVariableFactory.external(_t.designSystemVariables.colorSurface,"Design system")},Pd=Id.css`
|
|
1097
1106
|
.ft-snap-scroll {
|
|
1098
1107
|
box-sizing: border-box;
|
|
1099
1108
|
position: relative;
|
|
@@ -1529,7 +1538,7 @@
|
|
|
1529
1538
|
</div>
|
|
1530
1539
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1531
1540
|
</div>
|
|
1532
|
-
`}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)}};yt.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;Rs([(0,on.property)()],yt.prototype,"icon",void 0);Rs([(0,on.property)()],yt.prototype,"iconVariant",void 0);Rs([(0,on.property)()],yt.prototype,"label",void 0);Rs([(0,on.property)({type:Boolean,reflect:!0})],yt.prototype,"active",void 0);var ep=c(f());var Jd={"ft-accordion":Bt,"ft-accordion-item":yt};(0,ep.customElements)(Jd);var Kr=c(x()),
|
|
1541
|
+
`}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)}};yt.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;Rs([(0,on.property)()],yt.prototype,"icon",void 0);Rs([(0,on.property)()],yt.prototype,"iconVariant",void 0);Rs([(0,on.property)()],yt.prototype,"label",void 0);Rs([(0,on.property)({type:Boolean,reflect:!0})],yt.prototype,"active",void 0);var ep=c(f());var Jd={"ft-accordion":Bt,"ft-accordion-item":yt};(0,ep.customElements)(Jd);var Kr=c(x()),we=c(H()),sp=c(Je()),yi=c(f());var an=c(x()),M=c(f());var tp=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),ke={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tp,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",me.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",me.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tp),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rp=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Zo={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rp,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rp)},ip={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},np=[M.noTextSelect,an.css`
|
|
1533
1542
|
:host {
|
|
1534
1543
|
display: inline-block;
|
|
1535
1544
|
max-width: 100%;
|
|
@@ -1697,7 +1706,7 @@
|
|
|
1697
1706
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1698
1707
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1699
1708
|
</div>
|
|
1700
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Ts))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Ts))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,yi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};oe.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee,"ft-button":C};oe.styles=np;Me([(0,
|
|
1709
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Ts))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Ts))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,yi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};oe.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee,"ft-button":C};oe.styles=np;Me([(0,we.property)({type:Boolean})],oe.prototype,"highlighted",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"removable",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"disabled",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"clickable",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"iconClickable",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"dense",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"multiLine",void 0);Me([(0,we.property)()],oe.prototype,"label",void 0);Me([(0,we.property)()],oe.prototype,"iconLabel",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"hideIconTooltip",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"accessibleLabelOnIcon",void 0);Me([(0,we.property)()],oe.prototype,"icon",void 0);Me([(0,we.property)()],oe.prototype,"iconVariant",void 0);Me([(0,we.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);Me([(0,we.property)()],oe.prototype,"typographyVariant",void 0);Me([(0,we.query)("ft-typography slot")],oe.prototype,"slottedContent",void 0);var ap=c(f());var op={"ft-chip":oe};(0,ap.customElements)(op);var vi=c(x()),be=c(H()),xp=c(Je()),Sp=c(dr());function ln(t,e,r){return t?e(t):r?.(t)}var bt=c(f());var ks=c(H());var lp=c(x()),ne=c(f());var B={fontSize:ne.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ne.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ne.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ne.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ne.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ne.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ne.FtCssVariableFactory.extend("--ft-input-label-border-color","",ne.designSystemVariables.colorOutline),textColor:ne.FtCssVariableFactory.extend("--ft-input-label-text-color","",ne.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ne.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ne.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ne.FtCssVariableFactory.extend("--ft-input-label-background-color","",ne.designSystemVariables.colorSurface),borderRadius:ne.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ne.designSystemVariables.borderRadiusS),colorError:ne.FtCssVariableFactory.external(ne.designSystemVariables.colorError,"Design system")},cp=lp.css`
|
|
1701
1710
|
.ft-input-label {
|
|
1702
1711
|
position: absolute;
|
|
1703
1712
|
inset: 0;
|
|
@@ -2923,7 +2932,7 @@
|
|
|
2923
2932
|
part="floating-panel"
|
|
2924
2933
|
tabindex="-1">
|
|
2925
2934
|
${this.renderDesktopMenu()}
|
|
2926
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};_.elementDefinitions={"ft-accordion":Bt,"ft-accordion-item":yt,"ft-button":C,"ft-chip":oe,"ft-filter":U,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":D,"ft-select":J,"ft-select-option":Ne,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ye,"ft-tooltip":de,"ft-typography":W,"ft-radio-group":nt,"ft-radio":
|
|
2935
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};_.elementDefinitions={"ft-accordion":Bt,"ft-accordion-item":yt,"ft-button":C,"ft-chip":oe,"ft-filter":U,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":D,"ft-select":J,"ft-select-option":Ne,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ye,"ft-tooltip":de,"ft-typography":W,"ft-radio-group":nt,"ft-radio":Ce};_.styles=[Zt,X.noTextInputDefaultClearButton,Op,_p,Vt.styles,zt.styles,X.screenReaderStyles];N([(0,F.property)({type:Boolean})],_.prototype,"dense",void 0);N([(0,F.property)()],_.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],_.prototype,"baseUrl",void 0);N([(0,F.property)()],_.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],_.prototype,"contentLocale",void 0);N([(0,F.state)()],_.prototype,"availableContentLocales",void 0);N([(0,F.state)()],_.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],_.prototype,"uiLocale",void 0);N([(0,X.jsonProperty)({})],_.prototype,"labels",void 0);N([(0,X.jsonProperty)([])],_.prototype,"displayedFilters",void 0);N([(0,X.jsonProperty)([])],_.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],_.prototype,"selectedPreset",void 0);N([(0,X.jsonProperty)([])],_.prototype,"priors",void 0);N([(0,F.property)()],_.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],_.prototype,"metadataFilters",void 0);N([(0,F.state)()],_.prototype,"sizeCategory",void 0);N([(0,F.state)()],_.prototype,"displayFacets",void 0);N([(0,F.state)()],_.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],_.prototype,"facets",void 0);N([(0,F.state)()],_.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],_.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],_.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],_.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],_.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],_.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],_.prototype,"launchSearchButton",void 0);N([(0,F.state)()],_.prototype,"query",void 0);N([(0,F.state)()],_.prototype,"suggestions",void 0);N([(0,F.state)()],_.prototype,"recentSearches",void 0);N([(0,F.state)()],_.prototype,"scrollToFacet",void 0);N([(0,F.state)()],_.prototype,"api",void 0);N([(0,F.state)()],_.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],_.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],_.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],_.prototype,"facetsLoaded",void 0);var Bp=c(f());var Fp={"ft-search-bar":_};(0,Bp.customElements)(Fp);var Vp=Up.css`
|
|
2927
2936
|
* {
|
|
2928
2937
|
box-sizing: border-box;
|
|
2929
2938
|
}
|