@fluid-topics/ft-combobox 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-combobox.light.js +33 -33
- package/build/ft-combobox.min.js +74 -74
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Wc=Object.create;var yo=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Kt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var Zc=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qc(e))!Xc.call(t,n)&&n!==i&&yo(t,n,{get:()=>e[n],enumerable:!(r=Gc(e,n))||r.enumerable});return t};var f=(t,e,i)=>(i=t!=null?Wc(Yc(t)):{},Zc(e||!t||!t.__esModule?yo(i,"default",{value:t,enumerable:!0}):i,t));var E=Kt((Nd,bo)=>{bo.exports=ftGlobals.wcUtils});var j=Kt((Id,xo)=>{xo.exports=ftGlobals.lit});var re=Kt((Md,vo)=>{vo.exports=ftGlobals.litDecorators});var on=Kt(($d,So)=>{So.exports=ftGlobals.litRepeat});var ot=Kt((Ud,Eo)=>{Eo.exports=ftGlobals.litClassMap});var Es=Kt((qp,Ss)=>{Ss.exports=ftGlobals.litUnsafeHTML});var zc=f(E());var Se=f(j()),B=f(re()),go=f(on()),nn=f(ot());var pn=globalThis,Ao=t=>t,Ki=pn.trustedTypes,_o=Ki?Ki.createPolicy("lit-html",{createHTML:t=>t}):void 0,Lo="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,Po="?"+st,Jc=`<${Po}>`,bt=document,Wi=()=>bt.createComment(""),fi=t=>t===null||typeof t!="object"&&typeof t!="function",fn=Array.isArray,Qc=t=>fn(t)||typeof t?.[Symbol.iterator]=="function",sn=`[
|
|
2
2
|
\f\r]`,pi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Co=/-->/g,wo=/>/g,gt=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),To=/'/g,Oo=/"/g,Do=/^(?:script|style|textarea|title)$/i,hn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ko=hn(1),No=hn(2),Io=hn(3),hi=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ro=new WeakMap,yt=bt.createTreeWalker(bt,129);function Mo(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return _o!==void 0?_o.createHTML(e):e}var eu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pi?u[1]==="!--"?s=Co:u[1]!==void 0?s=wo:u[2]!==void 0?(Do.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=gt):u[3]!==void 0&&(s=gt):s===gt?u[0]===">"?(s=n??pi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?gt:u[3]==='"'?Oo:To):s===Oo||s===To?s=gt:s===Co||s===wo?s=pi:(s=gt,n=void 0);let g=s===gt&&t[a+1].startsWith("/>")?" ":"";o+=s===pi?l+Jc:d>=0?(r.push(c),l.slice(0,d)+Lo+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[Mo(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},mi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,i);if(this.el=t.createElement(c,r),yt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=yt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Lo)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?ln:x[1]==="?"?cn:x[1]==="@"?un:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Do.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=Wi?Wi.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Ki()),yt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Ki())}}}else if(n.nodeType===8)if(n.data===Po)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,i){let r=bt.createElement("template");return r.innerHTML=e,r}};function Kt(t,e,i=t,r){if(e===hi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=fi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,r)),e}var an=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??bt).importNode(i,!0);yt.currentNode=n;let o=yt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Gi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new dn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=yt.nextNode(),s++)}return yt.currentNode=bt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Gi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Kt(this,e,i),fi(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==hi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(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!==J&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(bt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=mi.createElement(Mo(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new an(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Ro.get(e.strings);return i===void 0&&Ro.set(e.strings,i=new mi(e)),i}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Ki()),this.O(Ki()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Ao(e).nextSibling;Ao(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,i,0),s=!fi(e)||e!==this._$AH&&e!==hi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[r+l],i,l),c===hi&&(c=this._$AH[l]),s||=!fi(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ln=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},cn=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},un=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Kt(this,e,i,0)??J)===hi)return;let r=this._$AH,n=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==J&&(r===J||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var tu=pn.litHtmlPolyfillSupport;tu?.(mi,Gi),(pn.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??J;function gi(t,e,i){return t?e(t):i?.(t)}var Pe=f(E());var Dc=f(j()),he=f(E());var Go=f(j()),W=f(E());var ke=f(j()),h=f(E()),$o=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Qe,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$o),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$o),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Uo=ke.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),To=/'/g,Oo=/"/g,Do=/^(?:script|style|textarea|title)$/i,hn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ko=hn(1),No=hn(2),Io=hn(3),hi=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ro=new WeakMap,yt=bt.createTreeWalker(bt,129);function Mo(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return _o!==void 0?_o.createHTML(e):e}var eu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pi?u[1]==="!--"?s=Co:u[1]!==void 0?s=wo:u[2]!==void 0?(Do.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=gt):u[3]!==void 0&&(s=gt):s===gt?u[0]===">"?(s=n??pi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?gt:u[3]==='"'?Oo:To):s===Oo||s===To?s=gt:s===Co||s===wo?s=pi:(s=gt,n=void 0);let g=s===gt&&t[a+1].startsWith("/>")?" ":"";o+=s===pi?l+Jc:d>=0?(r.push(c),l.slice(0,d)+Lo+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[Mo(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},mi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,i);if(this.el=t.createElement(c,r),yt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=yt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Lo)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?ln:x[1]==="?"?cn:x[1]==="@"?un:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Do.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=Ki?Ki.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wi()),yt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wi())}}}else if(n.nodeType===8)if(n.data===Po)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,i){let r=bt.createElement("template");return r.innerHTML=e,r}};function Wt(t,e,i=t,r){if(e===hi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=fi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Wt(t,n._$AS(t,e.values),n,r)),e}var an=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??bt).importNode(i,!0);yt.currentNode=n;let o=yt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Gi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new dn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=yt.nextNode(),s++)}return yt.currentNode=bt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Gi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Wt(this,e,i),fi(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==hi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(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!==J&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(bt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=mi.createElement(Mo(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new an(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Ro.get(e.strings);return i===void 0&&Ro.set(e.strings,i=new mi(e)),i}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Wi()),this.O(Wi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Ao(e).nextSibling;Ao(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Wt(this,e,i,0),s=!fi(e)||e!==this._$AH&&e!==hi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Wt(this,a[r+l],i,l),c===hi&&(c=this._$AH[l]),s||=!fi(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ln=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},cn=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},un=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Wt(this,e,i,0)??J)===hi)return;let r=this._$AH,n=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==J&&(r===J||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Wt(this,e)}};var tu=pn.litHtmlPolyfillSupport;tu?.(mi,Gi),(pn.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??J;function gi(t,e,i){return t?e(t):i?.(t)}var Pe=f(E());var Dc=f(j()),he=f(E());var Go=f(j()),K=f(E());var ke=f(j()),h=f(E()),$o=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Qe,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$o),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$o),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Uo=ke.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${xt.fontFamily};
|
|
6
6
|
font-size: ${xt.fontSize};
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
|
|
44
44
|
`,qt=ke.css`
|
|
45
45
|
.ft-typography--body1 {
|
|
46
|
-
font-family: ${
|
|
47
|
-
font-size: ${
|
|
48
|
-
font-weight: ${
|
|
49
|
-
letter-spacing: ${
|
|
50
|
-
line-height: ${
|
|
51
|
-
text-transform: ${
|
|
52
|
-
text-decoration: ${
|
|
46
|
+
font-family: ${We.fontFamily};
|
|
47
|
+
font-size: ${We.fontSize};
|
|
48
|
+
font-weight: ${We.fontWeight};
|
|
49
|
+
letter-spacing: ${We.letterSpacing};
|
|
50
|
+
line-height: ${We.lineHeight};
|
|
51
|
+
text-transform: ${We.textTransform};
|
|
52
|
+
text-decoration: ${We.textDecoration};
|
|
53
53
|
}
|
|
54
54
|
`,Ho=ke.css`
|
|
55
55
|
.ft-typography--body2 {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
text-transform: ${_t.textTransform};
|
|
92
92
|
text-decoration: ${_t.textDecoration};
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,Ko=ke.css`
|
|
95
95
|
.ft-typography--button {
|
|
96
96
|
font-family: ${Fe.fontFamily};
|
|
97
97
|
font-size: ${Fe.fontSize};
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
text-transform: ${Fe.textTransform};
|
|
102
102
|
text-decoration: ${Fe.textDecoration};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,Wo=ke.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var L={fontSize:
|
|
108
|
+
`;var L={fontSize:K.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:K.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:K.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:K.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:K.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:K.FtCssVariableFactory.extend("--ft-input-label-border-color","",K.designSystemVariables.colorOutline),textColor:K.FtCssVariableFactory.extend("--ft-input-label-text-color","",K.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:K.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",K.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:K.FtCssVariableFactory.extend("--ft-input-label-background-color","",K.designSystemVariables.colorSurface),borderRadius:K.FtCssVariableFactory.extend("--ft-input-label-border-radius","",K.designSystemVariables.borderRadiusS),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},qo=Go.css`
|
|
109
109
|
.ft-input-label {
|
|
110
110
|
position: absolute;
|
|
111
111
|
inset: 0;
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
152
152
|
max-width: calc(${L.labelMaxWidth} - 2 * (${L.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
153
153
|
text-overflow: ellipsis;
|
|
154
|
-
${(0,
|
|
155
|
-
${(0,
|
|
154
|
+
${(0,K.setVariable)(Ee.fontSize,L.fontSize)};
|
|
155
|
+
${(0,K.setVariable)(Ee.lineHeight,L.fontSize)};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-input-label--raised .ft-input-label--text {
|
|
187
|
-
${(0,
|
|
188
|
-
${(0,
|
|
187
|
+
${(0,K.setVariable)(Ee.fontSize,L.raisedFontSize)};
|
|
188
|
+
${(0,K.setVariable)(Ee.lineHeight,L.raisedFontSize)};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -394,8 +394,8 @@
|
|
|
394
394
|
overflow: hidden;
|
|
395
395
|
padding: 0 ${C.horizontalSpacing};
|
|
396
396
|
|
|
397
|
-
${(0,A.setVariable)(
|
|
398
|
-
${(0,A.setVariable)(
|
|
397
|
+
${(0,A.setVariable)(We.fontSize,C.fontSize)};
|
|
398
|
+
${(0,A.setVariable)(We.lineHeight,C.fontSize)};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.ft-text-field--input-panel ft-ripple {
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
</${mn(this.element)}>
|
|
527
527
|
`:yn`
|
|
528
528
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
529
|
-
`}};ne.styles=[Uo,Fo,Vo,Bo,qt,Ho,qi,zo,jo,Wo
|
|
529
|
+
`}};ne.styles=[Uo,Fo,Vo,Bo,qt,Ho,qi,zo,jo,Ko,Wo];ls([(0,bn.property)()],ne.prototype,"element",void 0);ls([(0,bn.property)()],ne.prototype,"variant",void 0);var ds=f(E());var us={"ft-typography":ne};(0,ds.customElements)(us);var Ji=f(re());var xn=f(j()),vn=f(re());var fs=f(ot()),hs=f(E()),ps=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ct=class extends hs.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return xn.html`
|
|
530
530
|
<div class="${(0,fs.classMap)(this.inputLabelClasses)}">
|
|
531
531
|
${gi(this.text,()=>xn.html`
|
|
532
532
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -628,8 +628,8 @@
|
|
|
628
628
|
position: relative;
|
|
629
629
|
word-break: break-word;
|
|
630
630
|
}
|
|
631
|
-
`;var Ds=["top","right","bottom","left"],Ps=["start","end"],An=Ds.reduce((t,e)=>t.concat(e,e+"-"+Ps[0],e+"-"+Ps[1]),[]),Si=Math.min,ut=Math.max,Ei=Math.round;var Ge=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ks(t,e,i){return ut(t,Si(e,i))}function Qi(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Cn(t){return t==="y"?"height":"width"}function er(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function wn(t){return _n(er(t))}function Ns(t,e,i){i===void 0&&(i=!1);let r=dt(t),n=wn(t),o=Cn(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=En(s)),[s,En(s)]}function Is(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function En(t){let e=Ai(t);return ru[e]+t.slice(e.length)}function nu(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Ms(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function wt(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function $s(t,e,i){let{reference:r,floating:n}=t,o=er(e),s=wn(e),a=Cn(s),l=Ai(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Us(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Qi(e,t),x=Ms(g),b=a[p?d==="floating"?"reference":"floating":d],R=wt(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),F=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},H=wt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:F,offsetParent:v,strategy:l}):F);return{top:(R.top-H.top+x.top)/S.y,bottom:(H.bottom-R.bottom+x.bottom)/S.y,left:(R.left-H.left+x.left)/S.x,right:(H.right-R.right+x.right)/S.x}}var ou=50,Fs=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Us},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=$s(c,r,l),p=r,g=0,x={};for(let _=0;_<o.length;_++){let b=o[_];if(!b)continue;let{name:R,fn:F}=b,{x:v,y:S,data:H,reset:U}=await F({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,x[R]={...x[R],...H},U&&g<ou&&(g++,typeof U=="object"&&(U.placement&&(p=U.placement),U.rects&&(c=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:d}=$s(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,i){return(t?[...i.filter(n=>dt(n)===t),...i.filter(n=>dt(n)!==t)]:i.filter(n=>Ai(n)===n)).filter(n=>t?dt(n)===t||(e?Is(n)!==n:!1):!0)}var Vs=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=An,autoAlignment:g=!0,...x}=Qi(t,e),_=d!==void 0||p===An?su(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,R=_[b];if(R==null)return{};if(a!==R)return{reset:{placement:_[0]}};let F=await l.detectOverflow(e,x),v=Ns(R,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[F[Ai(R)],F[v[0]],F[v[1]]],H=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:R,overflows:S}],U=_[b+1];if(U)return{data:{index:b+1,overflows:H},reset:{placement:U}};let ie=H.map(De=>{let di=dt(De.placement);return[De.placement,di&&u?De.overflows.slice(0,2).reduce((jc,Wc)=>jc+Wc,0):De.overflows[0],De.overflows]}).sort((De,di)=>De[1]-di[1]),ji=((n=ie.filter(De=>De[2].slice(0,dt(De[0])?2:3).every(di=>di<=0))[0])==null?void 0:n[0])||ie[0][0];return ji!==a?{data:{index:b+1,overflows:H},reset:{placement:ji}}:{}}}};var Bs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:F=>{let{x:v,y:S}=F;return{x:v,y:S}}},...c}=Qi(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=er(n),g=_n(p),x=u[g],_=u[p],b=(F,v)=>ks(v+d[F==="y"?"top":"left"],v,v-d[F==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(_=b(p,_));let R=l.fn({...e,[g]:x,[p]:_});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[g]:s,[p]:a}}}}}};function ir(){return typeof window<"u"}function Ot(t){return zs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){var e;return(e=(zs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zs(t){return ir()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return ir()?t instanceof Element||t instanceof _e(t).Element:!1}function it(t){return ir()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Hs(t){return!ir()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _i(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function js(t){return/^(table|td|th)$/.test(Ot(t))}function Ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Tt=t=>!!t&&t!=="none",Tn;function Yt(t){let e=Be(t)?He(t):t;return Tt(e.transform)||Tt(e.translate)||Tt(e.scale)||Tt(e.rotate)||Tt(e.perspective)||!rr()&&(Tt(e.backdropFilter)||Tt(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Ws(t){let e=pt(t);for(;it(e)&&!Xt(e);){if(Yt(e))return e;if(Ci(e))return null;e=pt(e)}return null}function rr(){return Tn==null&&(Tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tn}function Xt(t){return/^(html|body|#document)$/.test(Ot(t))}function He(t){return _e(t).getComputedStyle(t)}function wi(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Hs(t)&&t.host||tt(t);return Hs(e)?e.host:e}function Ks(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:it(e)&&_i(e)?e:Ks(e)}function tr(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=Ks(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=nr(s);return e.concat(s,s.visualViewport||[],_i(n)?n:[],a&&i?tr(a):[])}else return e.concat(n,tr(n,[],i))}function nr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ys(t){let e=He(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=it(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Ei(i)!==o||Ei(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Xs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Xs(t);if(!it(e))return Ge(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ys(e),s=(o?Ei(i.width):i.width)/r,a=(o?Ei(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ge(0);function Zs(t){let e=_e(t);return!rr()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function Ti(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Xs(t),s=Ge(1);e&&(r?Be(r)&&(s=Zt(r)):s=Zt(t));let a=uu(o,i,r)?Zs(o):Ge(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=Be(r)?_e(r):r,x=p,_=nr(x);for(;_&&g!==x;){let b=Zt(_),R=_.getBoundingClientRect(),F=He(_),v=R.left+(_.clientLeft+parseFloat(F.paddingLeft))*b.x,S=R.top+(_.clientTop+parseFloat(F.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,x=_e(_),_=nr(x)}}return wt({width:u,height:d,x:l,y:c})}function or(t,e){let i=wi(t).scrollLeft;return e?e.left+i:Ti(tt(t)).left+i}function Js(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-or(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function du(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=tt(r),a=e?Ci(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Ge(1),u=Ge(0),d=it(r);if((d||!o)&&((Ot(r)!=="body"||_i(s))&&(l=wi(r)),d)){let g=Ti(r);c=Zt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?Js(s,l):Ge(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wi(t),i=t.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+or(t),s=-e.scrollTop;return He(i).direction==="rtl"&&(o+=ut(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var hu=25;function mu(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=tt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!rr()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(or(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-_),R=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;R<=hu&&(a-=R)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let i=Ti(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function Gs(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=mu(t,i,e);else if(e==="document")r=fu(tt(t));else if(Be(e))r=gu(e,i);else{let n=Zs(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return wt(r)}function yu(t,e){let i=e.get(t);if(i)return i;let r=tr(t,[],!1).filter(a=>Be(a)&&Ot(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,r),r}function bu(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Ci(e)?[]:yu(e,this._c):[].concat(i),r],a=Gs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Gs(e,s[p],n);l=ut(g.top,l),c=Si(g.right,c),u=Si(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:i}=Ys(t);return{width:e,height:i}}function vu(t,e,i){let r=it(e),n=tt(e),o=i==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ge(0);if((r||!o)&&((Ot(e)!=="body"||_i(n))&&(a=wi(e)),r)){let p=Ti(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=or(n));let c=n&&!r&&!o?Js(n,a):Ge(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function On(t){return He(t).position==="static"}function qs(t,e){if(!it(t)||He(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return tt(t)===i&&(i=i.ownerDocument.body),i}function Qs(t,e){let i=_e(t);if(Ci(t))return i;if(!it(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!On(n))return n;n=pt(n)}return i}let r=qs(t,e);for(;r&&js(r)&&On(r);)r=qs(r,e);return r&&Xt(r)&&On(r)&&!Yt(r)?i:r||Ws(t)||i}var Su=async function(t){let e=this.getOffsetParent||Qs,i=this.getDimensions,r=await i(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(t){return He(t).direction==="rtl"}var sr={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:tt,getClippingRect:bu,getOffsetParent:Qs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var ea=Vs,ta=Bs;var ia=(t,e,i)=>{let r=new Map,n=i??{},o={...sr,...n.platform,_c:r};return Fs(t,e,{...n,platform:o})};function ra(t){return Au(t)}function Rn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Rn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Rn(t);e;e=Rn(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Yt(i)||e.tagName==="BODY"))return e}return null}async function na(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},ia(t,e,{strategy:r.strategy,platform:{...sr,getOffsetParent:n=>sr.getOffsetParent(n,ra)},middleware:[ta({crossAxis:!0}),ea({allowedPlacements:[r.placement]})]})}var ai=f(E());var Zn=f(re());var oa=f(re(),1);var Ln=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_u=t=>({fromAttribute:e=>{if(e==null)return Oi(t);try{return JSON.parse(e)}catch{return Oi(t)}},toAttribute:e=>JSON.stringify(e)});function sa(t,e){return(0,oa.property)({type:Object,converter:_u(t),hasChanged:Ri,...e??{}})}function Cu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Jt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Jt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return Cu(t,e)}catch{return!1}}function Ri(t,e){return!Jt(t,e)}function Oi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ar(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var aa=f(re(),1);var Pn=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ri,attribute:!1,...e};(0,aa.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var lr=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Rt=f(re(),1);var cr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var dr=f(j(),1);var ur=class extends dr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,dr.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ln(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function la(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ei=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},pa,ca=Symbol("constructorPrototype"),ua=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),da=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var qe=class extends ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=new cr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[fa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ua]=this.constructor.name,this[ca]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ua]&&Object.setPrototypeOf(this,this[ca])}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(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[da]||(i[da]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.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 Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=la(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(r=p.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};pa=fa;ei([(0,Rt.property)()],qe.prototype,"exportpartsPrefix",void 0);ei([sa([])],qe.prototype,"exportpartsPrefixes",void 0);ei([(0,Rt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);ei([(0,Rt.property)()],qe.prototype,"customStylesheet",void 0);ei([(0,Rt.property)()],qe.prototype,"elementToFocus",void 0);ei([(0,Rt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Li=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),wu=ar(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Li].set(s,[]),pr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Li].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Li].get(s))===null||a===void 0||a.forEach(l=>l()),this[Li].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,i=Lt,r=Li,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ha=class extends wu(qe){};function ue(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 Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ma=Tu,Dn=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Dn()}`,REPLACE:`@@redux/REPLACE${Dn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dn()}`},fr=Ou;function hr(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 kn(t,e,i){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ue(1));return i(kn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,R)=>{s.set(R,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let R=!0;c();let F=a++;return s.set(F,b),function(){if(R){if(l)throw new Error(ue(6));R=!1,c(),s.delete(F),o=null}}}function p(b){if(!hr(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(F=>{F()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));r=b,p({type:fr.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(ue(11));function F(){let S=R;S.next&&S.next(u())}return F(),{unsubscribe:b(F)}},[ma](){return this}}}return p({type:fr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ma]:x}}function Ru(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:fr.INIT})>"u")throw new Error(ue(12));if(typeof i(void 0,{type:fr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Nn(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Ru(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],_=g(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=_,c=c||_!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function ga(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pi(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return hr(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,ii=Oe.getPrototypeOf,br="constructor",_r="prototype",Un="configurable",xr="enumerable",gr="writable",Di="value",Ye=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||wr(t)||!!t[ba]||!!t[br]?.[ba]||Tr(t)||Or(t):!1}var Lu=Oe[_r][br].toString(),xa=new WeakMap;function Ta(t){if(!t||!Kn(t))return!1;let e=ii(t);if(e===null||e===Oe[_r])return!0;let i=Oe.hasOwnProperty.call(e,br)&&e[br];if(i===Object)return!0;if(!ti(i))return!1;let r=xa.get(i);return r===void 0&&(r=Function.toString.call(i),xa.set(i,r)),r===Lu}function Cr(t,e,i=!0){Ii(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ii(t){let e=t[fe];return e?e.type_:wr(t)?1:Tr(t)?2:Or(t)?3:0}var In=(t,e,i=Ii(t))=>i===2?t.has(e):Oe[_r].hasOwnProperty.call(t,e),Fn=(t,e,i=Ii(t))=>i===2?t.get(e):t[e],vr=(t,e,i,r=Ii(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var wr=Array.isArray,Tr=t=>t instanceof Map,Or=t=>t instanceof Set,Kn=t=>typeof t=="object",ti=t=>typeof t=="function",Mn=t=>typeof t=="boolean";function Du(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var Gn=t=>t.modified_?t.copy_:t.base_;function Vn(t,e){if(Tr(t))return new Map(t);if(Or(t))return new Set(t);if(wr(t))return Array[_r].slice.call(t);let i=Ta(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[fe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[gr]===!1&&(a[gr]=!0,a[Un]=!0),(a.get||a.set)&&(r[s]={[Un]:!0,[gr]:!0,[xr]:a[xr],[Di]:t[s]})}return Oe.create(ii(t),r)}else{let r=ii(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Rr(t,e=!1){return Lr(t)||Ye(t)||!Re(t)||(Ii(t)>1&&Oe.defineProperties(t,{set:mr,add:mr,clear:mr,delete:mr}),Oe.freeze(t),e&&Cr(t,(i,r)=>{Rr(r,!0)},!1)),t}function ku(){ze(2)}var mr={[Di]:ku};function Lr(t){return t===null||!Kn(t)?!0:Oe.isFrozen(t)}var Sr="MapSet",Bn="Patches",va="ArrayMethods",Oa={};function Pt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var ki,Ra=()=>ki,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(Sr)?Pt(Sr):void 0,arrayMethodsPlugin_:Sa(va)?Pt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=Pt(Bn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Hn(t){zn(t),t.drafts_.forEach(Iu),t.drafts_=null}function zn(t){t===ki&&(ki=t.parent_)}var Aa=t=>ki=Nu(ki,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[fe].modified_&&(Hn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[fe].base_,t,e)}else t=Ca(e,i);return Mu(e,t,!0),Hn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Lr(e))return e;let i=e[fe];if(!i)return Er(e,t.handledSet_,t);if(!Pr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Da(i,t)}return i.copy_}function Mu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Rr(e,i)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Pr=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,i,r){let n=rt(t),o=t.type_;if(r!==void 0&&Fn(n,r,o)===e){vr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Cr(n,(l,c)=>{if(Ye(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)vr(n,a,i,o)}function Uu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Pr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Gn(o);Pa(t,o.draft_??o,s,i),Da(o,n)})}function Da(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}La(t)}}function Fu(t,e,i){let{scope_:r}=t;if(Ye(i)){let n=i[fe];Pr(n,r)&&n.callbacks_.push(function(){yr(t);let s=Gn(n);Pa(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(i)&&Er(i,r.handledSet_,r):Fn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Er(Fn(t.copy_,e,t.type_),r.handledSet_,r)})}function Er(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Ye(t)||e.has(t)||!Re(t)||Lr(t)||(e.add(t),Cr(t,(r,n)=>{if(Ye(n)){let o=n[fe];if(Pr(o,i)){let s=Gn(o);vr(t,r,s,t.type_),La(o)}}else Re(n)&&Er(n,e,i)})),t}function Vu(t,e){let i=wr(t),r={type_:i?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Ar;i&&(n=[r],o=Ni);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Ar={get(t,e){if(e===fe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=rt(t);if(!In(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Du(e))return o;if(o===$n(t.base_,e)||Bu(t,e,o)){yr(t);let s=t.type_===1?+e:e,a=Wn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,i){let r=ka(rt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=$n(rt(t),e),o=n?.[fe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(Pu(i,n)&&(i!==void 0||In(t.base_,e,t.type_)))return!0;yr(t),jn(t)}return t.copy_[e]===i&&(i!==void 0||In(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Fu(t,e,i)),!0},deleteProperty(t,e){return yr(t),$n(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),jn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=rt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[gr]:!0,[Un]:t.type_!==1||e!=="length",[xr]:r[xr],[Di]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return ii(t.base_)},setPrototypeOf(){ze(12)}},Ni={};for(let t in Ar){let e=Ar[t];Ni[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Ni.deleteProperty=function(t,e){return Ni.set.call(this,t,e,void 0)};Ni.set=function(t,e,i){return Ar.set.call(this,t[0],e,i,t[0])};function $n(t,e){let i=t[fe];return(i?rt(i):t)[e]}function Bu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(i)||i[fe]?!1:t.baseRefs_.has(i)}function Hu(t,e,i){let r=ka(e,i);return r?Di in r?r[Di]:r.get?.call(t.draft_):void 0}function ka(t,e){if(!(e in t))return;let i=ii(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=ii(i)}}function jn(t){t.modified_||(t.modified_=!0,t.parent_&&jn(t.parent_))}function yr(t){t.copy_||(t.assigned_=new Map,t.copy_=Vn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(ti(e)&&!ti(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}ti(i)||ze(6),r!==void 0&&!ti(r)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Wn(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?Hn(o):zn(o)}return Ea(o,r),_a(n,o)}else if(!e||!Kn(e)){if(n=i(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Rr(n,!0),r){let o=[],s=[];Pt(Bn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(ti(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Mn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Mn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Mn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),Ye(t)&&(t=Na(t));let e=Aa(this),i=Wn(e,t,void 0);return i[fe].isManual_=!0,zn(e),i}finishDraft(t,e){let i=t&&t[fe];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ea(r,e),_a(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Pt(Bn).applyPatches_;return Ye(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Wn(t,e,i,r){let[n,o]=Tr(e)?Pt(Sr).proxyMap_(e,i):Or(e)?Pt(Sr).proxySet_(e,i):Vu(e,i);return(i?.scope_??Ra()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Uu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Na(t){return Ye(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Lr(t))return t;let e=t[fe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=Vn(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=Vn(t,!0);return Cr(i,(n,o)=>{vr(i,n,Ia(o))},r),e&&(e.finalized_=!1),i}var ju=globalThis.Iterator,uh=typeof ju?.from=="function";var Wu=new zu,qn=Wu.produce;function Ma(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var $a=Ma(),Ua=Ma;var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pi:Pi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Gu=t=>t&&typeof t.match=="function";function ht(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Xe(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>ya(r)&&r.type===t,i}var za=class Mi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mi.prototype)}static get[Symbol.species](){return Mi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mi(...e[0].concat(this)):new Mi(...e.concat(this))}};function Fa(t){return Re(t)?qn(t,()=>{}):t}function Dr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return i&&(qu(i)?s.push($a):s.push(Ua(i.extraArgument))),s},Xu="RTK_autoBatch";var Va=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Ju=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Va(10):t.type==="callback"?t.queueNotification:Va(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Qu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new za(t);return r&&n.push(Ju(typeof r=="object"?r:void 0)),n};function ja(t){let e=Yu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(hr(i))l=Nn(i);else throw new Error(Xe(1));let c;typeof r=="function"?c=r(e):c=e();let u=Pi;n&&(u=Ku({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return kn(l,s,x)}function Wa(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Xe(28));if(a in e)throw new Error(Xe(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function ed(t){return typeof t=="function"}function td(t,e){let[i,r,n]=Wa(e),o;if(ed(t))o=()=>Fa(t());else{let a=Fa(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ye(u)){let p=d(u,l);return p===void 0?u:p}else{if(Re(u))return qn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Xe(9))}return p}}return u},a)}return s.getInitialState=o,s}var id=(t,e)=>Gu(t)?t.match(e):t(e);function rd(...t){return e=>t.some(i=>id(i,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",i=t;for(;i--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Yn=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Ba=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of sd)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,i,r){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=r?.idGenerator?r.idGenerator(l):od(),x=new AbortController,_,b;function R(v){b=v,x.abort()}c&&(c.aborted?R(Ha):c.addEventListener("abort",()=>R(Ha),{once:!0}));let F=(async function(){let v;try{let S=r?.condition?.(l,{getState:d,extra:p});if(ud(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let H=new Promise((U,ie)=>{_=()=>{ie({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([H,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:R,rejectWithValue:((U,ie)=>new Yn(U,ie)),fulfillWithValue:((U,ie)=>new Ba(U,ie))})).then(U=>{if(U instanceof Yn)throw U;return U instanceof Ba?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(S){v=S instanceof Yn?s(null,g,l,S.payload,S.meta):s(S,g,l)}finally{_&&x.signal.removeEventListener("abort",_)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(F,{abort:R,requestId:g,arg:l,unwrap(){return F.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ka=Symbol.for("rtk-slice-createasyncthunk"),bh={[Ka]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Ka];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Xe(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(hd()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,S){let H=typeof v=="string"?v:v.type;if(!H)throw new Error(Xe(12));if(H in l.sliceCaseReducersByType)throw new Error(Xe(13));return l.sliceCaseReducersByType[H]=S,c},addMatcher(v,S){return l.sliceMatchers.push({matcher:v,reducer:S}),c},exposeAction(v,S){return l.actionCreators[v]=S,c},exposeCaseReducer(v,S){return l.sliceCaseReducersByName[v]=S,c}};a.forEach(v=>{let S=s[v],H={reducerName:v,type:dd(n,v),createNotation:typeof r.reducers=="function"};gd(S)?bd(H,S,c,e):md(H,S,c)});function u(){let[v={},S=[],H=void 0]=typeof r.extraReducers=="function"?Wa(r.extraReducers):[r.extraReducers],U={...v,...l.sliceCaseReducersByType};return td(r.initialState,ie=>{for(let de in U)ie.addCase(de,U[de]);for(let de of l.sliceMatchers)ie.addMatcher(de.matcher,de.reducer);for(let de of S)ie.addMatcher(de.matcher,de.reducer);H&&ie.addDefaultCase(H)})}let d=v=>v,p=new Map,g=new WeakMap,x;function _(v,S){return x||(x=u()),x(v,S)}function b(){return x||(x=u()),x.getInitialState()}function R(v,S=!1){function H(ie){let de=ie[v];return typeof de>"u"&&S&&(de=Dr(g,H,b)),de}function U(ie=d){return Dr(Dr(p,S,()=>new WeakMap),ie,()=>{let de={};for(let[ji,De]of Object.entries(r.selectors??{}))de[ji]=fd(De,ie,()=>Dr(g,ie,b),S);return de})}return{reducerPath:v,getSelectors:U,get selectors(){return U(H)},selectSlice:H}}let F={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(o),injectInto(v,{reducerPath:S,...H}={}){let U=S??o;return v.inject({reducerPath:U,reducer:_},H),{...F,...R(U,!0)}}};return F}}function fd(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!yd(r))throw new Error(Xe(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Xe(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||kr,pending:a||kr,rejected:l||kr,settled:c||kr})}function kr(){}var qa="listener",Ya="completed",Xa="cancelled",xh=`task-${Xa}`,vh=`task-${Ya}`,Sh=`${qa}-${Xa}`,Eh=`${qa}-${Ya}`;var{assign:Za}=Object;var Xn="listenerMiddleware";var xd=Za(ht(`${Xn}/add`),{withTypes:()=>xd}),Ah=ht(`${Xn}/removeAll`),vd=Za(ht(`${Xn}/remove`),{withTypes:()=>vd});function Xe(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 Sd=ar(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Nr=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends Nr{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(pr(o))return o;if(n==null)return;let s=Ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Oi(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,i,r){super(),this.reduxSlice=e,this.reduxStore=i,this.isFtReduxStore=!0,this.commands=new lr,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),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,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Jt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=r??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 Ir=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Mr=f(E()),Ed="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,Mr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Dt(e.payload)),0))}},P=Mr.FtReduxStore.get({name:Ed,reducers:Ad,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 Qa=f(E()),$r=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Qh=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Ir.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $r([(0,Zn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$r([(0,Zn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$r([Pn({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$r([Pn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var il;(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"})(il||(il={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(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"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(cl||(cl={}));var ul;(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"})(ul||(ul={}));var dl;(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"})(dl||(dl={}));var pl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pl||(pl={}));var fl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fl||(fl={}));var hl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(hl||(hl={}));var ml;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ml||(ml={}));var gl;(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"})(gl||(gl={}));var yl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yl||(yl={}));var bl;(function(t){t.ASC="ASC",t.DESC="DESC"})(bl||(bl={}));var xl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(xl||(xl={}));var vl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vl||(vl={}));var Sl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sl||(Sl={}));var El;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(El||(El={}));var Al;(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"})(Al||(Al={}));var _l;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_l||(_l={}));var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Cl||(Cl={}));var wl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wl||(wl={}));var Tl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Tl||(Tl={}));var te;(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"})(te||(te={}));var Ne;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Ol;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ol||(Ol={}));var Rl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rl||(Rl={}));var Ll;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ll||(Ll={}));var Pl;(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"})(Pl||(Pl={}));var Dl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Dl||(Dl={}));var kl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kl||(kl={}));var Nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nl||(Nl={}));var Il;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Il||(Il={}));var Ml;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ml||(Ml={}));var $l;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})($l||($l={}));var Ul;(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"})(Ul||(Ul={}));var Fl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Fl||(Fl={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(i=>Vl(i,e))}function Jn(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(r=>Vl(r,e))}function Bl(t,...e){return t==null?!1:e.some(i=>Jn(t,i))}var Hr=f(E());var Qn=f(E());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ri=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ri{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Qn.CacheRegistry,this.cache=e?n.commonCache:new Qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var Ur=class extends Le{async listMySearches(){let{session:e}=P.getState();return Jn(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Fr=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Vr=class extends Le{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=P.getState().session;return!!e?.sessionAuthenticated}};var Br=class extends Le{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=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Ne).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;to(t,i,[...eo(t,i),n]),Hl(t,i,1,r),zl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;to(t,i,eo(t,i).map(n=>n.id===r.id?r:n)),zl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;to(t,i,eo(t,i).filter(o=>o.id!==n)),Hl(t,i,-1,r)}},jl={[Ne.SEARCHES]:"savedSearches",[Ne.BOOKMARKS]:"bookmarks",[Ne.BOOKS]:void 0,[Ne.COLLECTIONS]:void 0},eo=(t,e)=>{var i;let r=jl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},to=(t,e,i)=>{let r=jl[e];r&&(t[r]=i)},Hl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Ne.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},zl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},ye=Hr.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),io=class{constructor(e=new Vr,i=new Br){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new Ur,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Hr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ye.actions.clearAssetCount(),ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ye.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&ye.getState().assetCounts.allAsset[e]!==i.count&&ye.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&ye.getState().assetCounts.bookmarkByMap[e]!==i.count&&ye.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(ye.getState().assetCounts.bookmarkByMap).length!==0;e===Ne.BOOKMARKS&&i&&ye.actions.clearBookmarkCountByMap(),ye.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ye.actions.bookmarks(i)}}},Td=new io;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var ro=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ro;var Ie=f(E());var Wl,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),zr=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Ie.delay)(0).then(()=>r()).catch(()=>null)))}};Wl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Kl=f(E()),no=class{highlightHtml(e,i,r){(0,Kl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new no;var Gl=f(E());var oo=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return Gl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new oo;var ql=f(E());var Ui=class{static get(e,i){var r,n,o,s;let a=P.getState(),{lang:l,region:c}=(s=(n=(r=a.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new ql.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,i??`${l}-${c}`)}};var so=class{urlToSearchRequest(e){return Ui.get().parse(e)}searchRequestToUrl(e){return Ui.get().serialize(e)}};window.FluidTopicsUrlService=new so;var nt=f(E());var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Nt.eventName="before-location-change";var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.eventName="change";var ao=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},Yl=new ao;var Wr=class t extends nt.WithEventBus{static build(){return new t(window.history,Yl,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new It(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Nt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Nt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Nt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.eventName,e)}currentItem(){return(0,nt.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,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}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,nt.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 i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Wr.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 Xl=f(j());var Zl=Xl.css`
|
|
632
|
-
`;var ec=f(j()),be=f(re()),Ut=f(E());var Mt=f(E());function Jl(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var
|
|
631
|
+
`;var Ds=["top","right","bottom","left"],Ps=["start","end"],An=Ds.reduce((t,e)=>t.concat(e,e+"-"+Ps[0],e+"-"+Ps[1]),[]),Si=Math.min,ut=Math.max,Ei=Math.round;var Ge=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ks(t,e,i){return ut(t,Si(e,i))}function Qi(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Cn(t){return t==="y"?"height":"width"}function er(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function wn(t){return _n(er(t))}function Ns(t,e,i){i===void 0&&(i=!1);let r=dt(t),n=wn(t),o=Cn(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=En(s)),[s,En(s)]}function Is(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function En(t){let e=Ai(t);return ru[e]+t.slice(e.length)}function nu(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Ms(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function wt(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function $s(t,e,i){let{reference:r,floating:n}=t,o=er(e),s=wn(e),a=Cn(s),l=Ai(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Us(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Qi(e,t),x=Ms(g),b=a[p?d==="floating"?"reference":"floating":d],R=wt(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),F=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},H=wt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:F,offsetParent:v,strategy:l}):F);return{top:(R.top-H.top+x.top)/S.y,bottom:(H.bottom-R.bottom+x.bottom)/S.y,left:(R.left-H.left+x.left)/S.x,right:(H.right-R.right+x.right)/S.x}}var ou=50,Fs=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Us},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=$s(c,r,l),p=r,g=0,x={};for(let _=0;_<o.length;_++){let b=o[_];if(!b)continue;let{name:R,fn:F}=b,{x:v,y:S,data:H,reset:U}=await F({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,x[R]={...x[R],...H},U&&g<ou&&(g++,typeof U=="object"&&(U.placement&&(p=U.placement),U.rects&&(c=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:d}=$s(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,i){return(t?[...i.filter(n=>dt(n)===t),...i.filter(n=>dt(n)!==t)]:i.filter(n=>Ai(n)===n)).filter(n=>t?dt(n)===t||(e?Is(n)!==n:!1):!0)}var Vs=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=An,autoAlignment:g=!0,...x}=Qi(t,e),_=d!==void 0||p===An?su(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,R=_[b];if(R==null)return{};if(a!==R)return{reset:{placement:_[0]}};let F=await l.detectOverflow(e,x),v=Ns(R,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[F[Ai(R)],F[v[0]],F[v[1]]],H=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:R,overflows:S}],U=_[b+1];if(U)return{data:{index:b+1,overflows:H},reset:{placement:U}};let ie=H.map(De=>{let di=dt(De.placement);return[De.placement,di&&u?De.overflows.slice(0,2).reduce((jc,Kc)=>jc+Kc,0):De.overflows[0],De.overflows]}).sort((De,di)=>De[1]-di[1]),ji=((n=ie.filter(De=>De[2].slice(0,dt(De[0])?2:3).every(di=>di<=0))[0])==null?void 0:n[0])||ie[0][0];return ji!==a?{data:{index:b+1,overflows:H},reset:{placement:ji}}:{}}}};var Bs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:F=>{let{x:v,y:S}=F;return{x:v,y:S}}},...c}=Qi(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=er(n),g=_n(p),x=u[g],_=u[p],b=(F,v)=>ks(v+d[F==="y"?"top":"left"],v,v-d[F==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(_=b(p,_));let R=l.fn({...e,[g]:x,[p]:_});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[g]:s,[p]:a}}}}}};function ir(){return typeof window<"u"}function Ot(t){return zs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){var e;return(e=(zs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zs(t){return ir()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return ir()?t instanceof Element||t instanceof _e(t).Element:!1}function it(t){return ir()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Hs(t){return!ir()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _i(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function js(t){return/^(table|td|th)$/.test(Ot(t))}function Ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Tt=t=>!!t&&t!=="none",Tn;function Yt(t){let e=Be(t)?He(t):t;return Tt(e.transform)||Tt(e.translate)||Tt(e.scale)||Tt(e.rotate)||Tt(e.perspective)||!rr()&&(Tt(e.backdropFilter)||Tt(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Ks(t){let e=pt(t);for(;it(e)&&!Xt(e);){if(Yt(e))return e;if(Ci(e))return null;e=pt(e)}return null}function rr(){return Tn==null&&(Tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tn}function Xt(t){return/^(html|body|#document)$/.test(Ot(t))}function He(t){return _e(t).getComputedStyle(t)}function wi(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Hs(t)&&t.host||tt(t);return Hs(e)?e.host:e}function Ws(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:it(e)&&_i(e)?e:Ws(e)}function tr(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=Ws(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=nr(s);return e.concat(s,s.visualViewport||[],_i(n)?n:[],a&&i?tr(a):[])}else return e.concat(n,tr(n,[],i))}function nr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ys(t){let e=He(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=it(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Ei(i)!==o||Ei(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Xs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Xs(t);if(!it(e))return Ge(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ys(e),s=(o?Ei(i.width):i.width)/r,a=(o?Ei(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ge(0);function Zs(t){let e=_e(t);return!rr()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function Ti(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Xs(t),s=Ge(1);e&&(r?Be(r)&&(s=Zt(r)):s=Zt(t));let a=uu(o,i,r)?Zs(o):Ge(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=Be(r)?_e(r):r,x=p,_=nr(x);for(;_&&g!==x;){let b=Zt(_),R=_.getBoundingClientRect(),F=He(_),v=R.left+(_.clientLeft+parseFloat(F.paddingLeft))*b.x,S=R.top+(_.clientTop+parseFloat(F.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,x=_e(_),_=nr(x)}}return wt({width:u,height:d,x:l,y:c})}function or(t,e){let i=wi(t).scrollLeft;return e?e.left+i:Ti(tt(t)).left+i}function Js(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-or(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function du(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=tt(r),a=e?Ci(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Ge(1),u=Ge(0),d=it(r);if((d||!o)&&((Ot(r)!=="body"||_i(s))&&(l=wi(r)),d)){let g=Ti(r);c=Zt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?Js(s,l):Ge(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wi(t),i=t.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+or(t),s=-e.scrollTop;return He(i).direction==="rtl"&&(o+=ut(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var hu=25;function mu(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=tt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!rr()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(or(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-_),R=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;R<=hu&&(a-=R)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let i=Ti(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function Gs(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=mu(t,i,e);else if(e==="document")r=fu(tt(t));else if(Be(e))r=gu(e,i);else{let n=Zs(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return wt(r)}function yu(t,e){let i=e.get(t);if(i)return i;let r=tr(t,[],!1).filter(a=>Be(a)&&Ot(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,r),r}function bu(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Ci(e)?[]:yu(e,this._c):[].concat(i),r],a=Gs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Gs(e,s[p],n);l=ut(g.top,l),c=Si(g.right,c),u=Si(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:i}=Ys(t);return{width:e,height:i}}function vu(t,e,i){let r=it(e),n=tt(e),o=i==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ge(0);if((r||!o)&&((Ot(e)!=="body"||_i(n))&&(a=wi(e)),r)){let p=Ti(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=or(n));let c=n&&!r&&!o?Js(n,a):Ge(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function On(t){return He(t).position==="static"}function qs(t,e){if(!it(t)||He(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return tt(t)===i&&(i=i.ownerDocument.body),i}function Qs(t,e){let i=_e(t);if(Ci(t))return i;if(!it(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!On(n))return n;n=pt(n)}return i}let r=qs(t,e);for(;r&&js(r)&&On(r);)r=qs(r,e);return r&&Xt(r)&&On(r)&&!Yt(r)?i:r||Ks(t)||i}var Su=async function(t){let e=this.getOffsetParent||Qs,i=this.getDimensions,r=await i(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(t){return He(t).direction==="rtl"}var sr={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:tt,getClippingRect:bu,getOffsetParent:Qs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var ea=Vs,ta=Bs;var ia=(t,e,i)=>{let r=new Map,n=i??{},o={...sr,...n.platform,_c:r};return Fs(t,e,{...n,platform:o})};function ra(t){return Au(t)}function Rn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Rn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Rn(t);e;e=Rn(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Yt(i)||e.tagName==="BODY"))return e}return null}async function na(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},ia(t,e,{strategy:r.strategy,platform:{...sr,getOffsetParent:n=>sr.getOffsetParent(n,ra)},middleware:[ta({crossAxis:!0}),ea({allowedPlacements:[r.placement]})]})}var ai=f(E());var Zn=f(re());var oa=f(re(),1);var Ln=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_u=t=>({fromAttribute:e=>{if(e==null)return Oi(t);try{return JSON.parse(e)}catch{return Oi(t)}},toAttribute:e=>JSON.stringify(e)});function sa(t,e){return(0,oa.property)({type:Object,converter:_u(t),hasChanged:Ri,...e??{}})}function Cu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Jt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Jt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return Cu(t,e)}catch{return!1}}function Ri(t,e){return!Jt(t,e)}function Oi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ar(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var aa=f(re(),1);var Pn=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ri,attribute:!1,...e};(0,aa.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var lr=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Rt=f(re(),1);var cr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var dr=f(j(),1);var ur=class extends dr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,dr.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ln(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function la(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ei=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},pa,ca=Symbol("constructorPrototype"),ua=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),da=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var qe=class extends ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=new cr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[fa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ua]=this.constructor.name,this[ca]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ua]&&Object.setPrototypeOf(this,this[ca])}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(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[da]||(i[da]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.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 Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=la(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(r=p.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};pa=fa;ei([(0,Rt.property)()],qe.prototype,"exportpartsPrefix",void 0);ei([sa([])],qe.prototype,"exportpartsPrefixes",void 0);ei([(0,Rt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);ei([(0,Rt.property)()],qe.prototype,"customStylesheet",void 0);ei([(0,Rt.property)()],qe.prototype,"elementToFocus",void 0);ei([(0,Rt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Li=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),wu=ar(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Li].set(s,[]),pr(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=g=>this[d](g);a.addEventListener(u.eventName,p),this[Li].get(s).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Li].get(s))===null||a===void 0||a.forEach(l=>l()),this[Li].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,i=Lt,r=Li,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ha=class extends wu(qe){};function ue(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 Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ma=Tu,Dn=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Dn()}`,REPLACE:`@@redux/REPLACE${Dn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dn()}`},fr=Ou;function hr(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 kn(t,e,i){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ue(1));return i(kn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,R)=>{s.set(R,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let R=!0;c();let F=a++;return s.set(F,b),function(){if(R){if(l)throw new Error(ue(6));R=!1,c(),s.delete(F),o=null}}}function p(b){if(!hr(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(F=>{F()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));r=b,p({type:fr.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(ue(11));function F(){let S=R;S.next&&S.next(u())}return F(),{unsubscribe:b(F)}},[ma](){return this}}}return p({type:fr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ma]:x}}function Ru(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:fr.INIT})>"u")throw new Error(ue(12));if(typeof i(void 0,{type:fr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Nn(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Ru(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],_=g(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=_,c=c||_!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function ga(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pi(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return hr(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,ii=Oe.getPrototypeOf,br="constructor",_r="prototype",Un="configurable",xr="enumerable",gr="writable",Di="value",Ye=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||wr(t)||!!t[ba]||!!t[br]?.[ba]||Tr(t)||Or(t):!1}var Lu=Oe[_r][br].toString(),xa=new WeakMap;function Ta(t){if(!t||!Wn(t))return!1;let e=ii(t);if(e===null||e===Oe[_r])return!0;let i=Oe.hasOwnProperty.call(e,br)&&e[br];if(i===Object)return!0;if(!ti(i))return!1;let r=xa.get(i);return r===void 0&&(r=Function.toString.call(i),xa.set(i,r)),r===Lu}function Cr(t,e,i=!0){Ii(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ii(t){let e=t[fe];return e?e.type_:wr(t)?1:Tr(t)?2:Or(t)?3:0}var In=(t,e,i=Ii(t))=>i===2?t.has(e):Oe[_r].hasOwnProperty.call(t,e),Fn=(t,e,i=Ii(t))=>i===2?t.get(e):t[e],vr=(t,e,i,r=Ii(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var wr=Array.isArray,Tr=t=>t instanceof Map,Or=t=>t instanceof Set,Wn=t=>typeof t=="object",ti=t=>typeof t=="function",Mn=t=>typeof t=="boolean";function Du(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var Gn=t=>t.modified_?t.copy_:t.base_;function Vn(t,e){if(Tr(t))return new Map(t);if(Or(t))return new Set(t);if(wr(t))return Array[_r].slice.call(t);let i=Ta(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[fe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[gr]===!1&&(a[gr]=!0,a[Un]=!0),(a.get||a.set)&&(r[s]={[Un]:!0,[gr]:!0,[xr]:a[xr],[Di]:t[s]})}return Oe.create(ii(t),r)}else{let r=ii(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Rr(t,e=!1){return Lr(t)||Ye(t)||!Re(t)||(Ii(t)>1&&Oe.defineProperties(t,{set:mr,add:mr,clear:mr,delete:mr}),Oe.freeze(t),e&&Cr(t,(i,r)=>{Rr(r,!0)},!1)),t}function ku(){ze(2)}var mr={[Di]:ku};function Lr(t){return t===null||!Wn(t)?!0:Oe.isFrozen(t)}var Sr="MapSet",Bn="Patches",va="ArrayMethods",Oa={};function Pt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var ki,Ra=()=>ki,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(Sr)?Pt(Sr):void 0,arrayMethodsPlugin_:Sa(va)?Pt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=Pt(Bn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Hn(t){zn(t),t.drafts_.forEach(Iu),t.drafts_=null}function zn(t){t===ki&&(ki=t.parent_)}var Aa=t=>ki=Nu(ki,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[fe].modified_&&(Hn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[fe].base_,t,e)}else t=Ca(e,i);return Mu(e,t,!0),Hn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Lr(e))return e;let i=e[fe];if(!i)return Er(e,t.handledSet_,t);if(!Pr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Da(i,t)}return i.copy_}function Mu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Rr(e,i)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Pr=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,i,r){let n=rt(t),o=t.type_;if(r!==void 0&&Fn(n,r,o)===e){vr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Cr(n,(l,c)=>{if(Ye(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)vr(n,a,i,o)}function Uu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Pr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Gn(o);Pa(t,o.draft_??o,s,i),Da(o,n)})}function Da(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}La(t)}}function Fu(t,e,i){let{scope_:r}=t;if(Ye(i)){let n=i[fe];Pr(n,r)&&n.callbacks_.push(function(){yr(t);let s=Gn(n);Pa(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(i)&&Er(i,r.handledSet_,r):Fn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Er(Fn(t.copy_,e,t.type_),r.handledSet_,r)})}function Er(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Ye(t)||e.has(t)||!Re(t)||Lr(t)||(e.add(t),Cr(t,(r,n)=>{if(Ye(n)){let o=n[fe];if(Pr(o,i)){let s=Gn(o);vr(t,r,s,t.type_),La(o)}}else Re(n)&&Er(n,e,i)})),t}function Vu(t,e){let i=wr(t),r={type_:i?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Ar;i&&(n=[r],o=Ni);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Ar={get(t,e){if(e===fe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=rt(t);if(!In(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Du(e))return o;if(o===$n(t.base_,e)||Bu(t,e,o)){yr(t);let s=t.type_===1?+e:e,a=Kn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,i){let r=ka(rt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=$n(rt(t),e),o=n?.[fe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(Pu(i,n)&&(i!==void 0||In(t.base_,e,t.type_)))return!0;yr(t),jn(t)}return t.copy_[e]===i&&(i!==void 0||In(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Fu(t,e,i)),!0},deleteProperty(t,e){return yr(t),$n(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),jn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=rt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[gr]:!0,[Un]:t.type_!==1||e!=="length",[xr]:r[xr],[Di]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return ii(t.base_)},setPrototypeOf(){ze(12)}},Ni={};for(let t in Ar){let e=Ar[t];Ni[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Ni.deleteProperty=function(t,e){return Ni.set.call(this,t,e,void 0)};Ni.set=function(t,e,i){return Ar.set.call(this,t[0],e,i,t[0])};function $n(t,e){let i=t[fe];return(i?rt(i):t)[e]}function Bu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(i)||i[fe]?!1:t.baseRefs_.has(i)}function Hu(t,e,i){let r=ka(e,i);return r?Di in r?r[Di]:r.get?.call(t.draft_):void 0}function ka(t,e){if(!(e in t))return;let i=ii(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=ii(i)}}function jn(t){t.modified_||(t.modified_=!0,t.parent_&&jn(t.parent_))}function yr(t){t.copy_||(t.assigned_=new Map,t.copy_=Vn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(ti(e)&&!ti(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}ti(i)||ze(6),r!==void 0&&!ti(r)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Kn(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?Hn(o):zn(o)}return Ea(o,r),_a(n,o)}else if(!e||!Wn(e)){if(n=i(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Rr(n,!0),r){let o=[],s=[];Pt(Bn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(ti(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Mn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Mn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Mn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),Ye(t)&&(t=Na(t));let e=Aa(this),i=Kn(e,t,void 0);return i[fe].isManual_=!0,zn(e),i}finishDraft(t,e){let i=t&&t[fe];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ea(r,e),_a(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Pt(Bn).applyPatches_;return Ye(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Kn(t,e,i,r){let[n,o]=Tr(e)?Pt(Sr).proxyMap_(e,i):Or(e)?Pt(Sr).proxySet_(e,i):Vu(e,i);return(i?.scope_??Ra()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Uu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Na(t){return Ye(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Lr(t))return t;let e=t[fe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=Vn(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=Vn(t,!0);return Cr(i,(n,o)=>{vr(i,n,Ia(o))},r),e&&(e.finalized_=!1),i}var ju=globalThis.Iterator,uh=typeof ju?.from=="function";var Ku=new zu,qn=Ku.produce;function Ma(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var $a=Ma(),Ua=Ma;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pi:Pi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Gu=t=>t&&typeof t.match=="function";function ht(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Xe(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>ya(r)&&r.type===t,i}var za=class Mi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mi.prototype)}static get[Symbol.species](){return Mi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mi(...e[0].concat(this)):new Mi(...e.concat(this))}};function Fa(t){return Re(t)?qn(t,()=>{}):t}function Dr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return i&&(qu(i)?s.push($a):s.push(Ua(i.extraArgument))),s},Xu="RTK_autoBatch";var Va=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Ju=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Va(10):t.type==="callback"?t.queueNotification:Va(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Qu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new za(t);return r&&n.push(Ju(typeof r=="object"?r:void 0)),n};function ja(t){let e=Yu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(hr(i))l=Nn(i);else throw new Error(Xe(1));let c;typeof r=="function"?c=r(e):c=e();let u=Pi;n&&(u=Wu({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return kn(l,s,x)}function Ka(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Xe(28));if(a in e)throw new Error(Xe(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function ed(t){return typeof t=="function"}function td(t,e){let[i,r,n]=Ka(e),o;if(ed(t))o=()=>Fa(t());else{let a=Fa(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ye(u)){let p=d(u,l);return p===void 0?u:p}else{if(Re(u))return qn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Xe(9))}return p}}return u},a)}return s.getInitialState=o,s}var id=(t,e)=>Gu(t)?t.match(e):t(e);function rd(...t){return e=>t.some(i=>id(i,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",i=t;for(;i--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Yn=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Ba=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of sd)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,i,r){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=r?.idGenerator?r.idGenerator(l):od(),x=new AbortController,_,b;function R(v){b=v,x.abort()}c&&(c.aborted?R(Ha):c.addEventListener("abort",()=>R(Ha),{once:!0}));let F=(async function(){let v;try{let S=r?.condition?.(l,{getState:d,extra:p});if(ud(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let H=new Promise((U,ie)=>{_=()=>{ie({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([H,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:R,rejectWithValue:((U,ie)=>new Yn(U,ie)),fulfillWithValue:((U,ie)=>new Ba(U,ie))})).then(U=>{if(U instanceof Yn)throw U;return U instanceof Ba?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(S){v=S instanceof Yn?s(null,g,l,S.payload,S.meta):s(S,g,l)}finally{_&&x.signal.removeEventListener("abort",_)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(F,{abort:R,requestId:g,arg:l,unwrap(){return F.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Wa=Symbol.for("rtk-slice-createasyncthunk"),bh={[Wa]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Wa];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Xe(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(hd()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,S){let H=typeof v=="string"?v:v.type;if(!H)throw new Error(Xe(12));if(H in l.sliceCaseReducersByType)throw new Error(Xe(13));return l.sliceCaseReducersByType[H]=S,c},addMatcher(v,S){return l.sliceMatchers.push({matcher:v,reducer:S}),c},exposeAction(v,S){return l.actionCreators[v]=S,c},exposeCaseReducer(v,S){return l.sliceCaseReducersByName[v]=S,c}};a.forEach(v=>{let S=s[v],H={reducerName:v,type:dd(n,v),createNotation:typeof r.reducers=="function"};gd(S)?bd(H,S,c,e):md(H,S,c)});function u(){let[v={},S=[],H=void 0]=typeof r.extraReducers=="function"?Ka(r.extraReducers):[r.extraReducers],U={...v,...l.sliceCaseReducersByType};return td(r.initialState,ie=>{for(let de in U)ie.addCase(de,U[de]);for(let de of l.sliceMatchers)ie.addMatcher(de.matcher,de.reducer);for(let de of S)ie.addMatcher(de.matcher,de.reducer);H&&ie.addDefaultCase(H)})}let d=v=>v,p=new Map,g=new WeakMap,x;function _(v,S){return x||(x=u()),x(v,S)}function b(){return x||(x=u()),x.getInitialState()}function R(v,S=!1){function H(ie){let de=ie[v];return typeof de>"u"&&S&&(de=Dr(g,H,b)),de}function U(ie=d){return Dr(Dr(p,S,()=>new WeakMap),ie,()=>{let de={};for(let[ji,De]of Object.entries(r.selectors??{}))de[ji]=fd(De,ie,()=>Dr(g,ie,b),S);return de})}return{reducerPath:v,getSelectors:U,get selectors(){return U(H)},selectSlice:H}}let F={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(o),injectInto(v,{reducerPath:S,...H}={}){let U=S??o;return v.inject({reducerPath:U,reducer:_},H),{...F,...R(U,!0)}}};return F}}function fd(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!yd(r))throw new Error(Xe(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Xe(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||kr,pending:a||kr,rejected:l||kr,settled:c||kr})}function kr(){}var qa="listener",Ya="completed",Xa="cancelled",xh=`task-${Xa}`,vh=`task-${Ya}`,Sh=`${qa}-${Xa}`,Eh=`${qa}-${Ya}`;var{assign:Za}=Object;var Xn="listenerMiddleware";var xd=Za(ht(`${Xn}/add`),{withTypes:()=>xd}),Ah=ht(`${Xn}/removeAll`),vd=Za(ht(`${Xn}/remove`),{withTypes:()=>vd});function Xe(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 Sd=ar(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Nr=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends Nr{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(pr(o))return o;if(n==null)return;let s=Ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Oi(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new lr,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,u=s[c];return u?(...d)=>{let p=u(...d.map(o));return this.reduxStore.dispatch(p),p}:d=>{let p=c,g=this.getState()[p];Jt(g,d)||this.setState({[p]:o(d)})}}}),this.eventBus=r??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 Ir=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Mr=f(E()),Ed="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,Mr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Dt(e.payload)),0))}},P=Mr.FtReduxStore.get({name:Ed,reducers:Ad,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 Qa=f(E()),$r=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Qh=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Ir.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $r([(0,Zn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$r([(0,Zn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$r([Pn({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$r([Pn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var il;(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"})(il||(il={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(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"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(cl||(cl={}));var ul;(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"})(ul||(ul={}));var dl;(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"})(dl||(dl={}));var pl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pl||(pl={}));var fl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fl||(fl={}));var hl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(hl||(hl={}));var ml;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ml||(ml={}));var gl;(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"})(gl||(gl={}));var yl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yl||(yl={}));var bl;(function(t){t.ASC="ASC",t.DESC="DESC"})(bl||(bl={}));var xl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(xl||(xl={}));var vl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vl||(vl={}));var Sl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sl||(Sl={}));var El;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(El||(El={}));var Al;(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"})(Al||(Al={}));var _l;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_l||(_l={}));var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Cl||(Cl={}));var wl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wl||(wl={}));var Tl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Tl||(Tl={}));var te;(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"})(te||(te={}));var Ne;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Ol;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ol||(Ol={}));var Rl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rl||(Rl={}));var Ll;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ll||(Ll={}));var Pl;(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"})(Pl||(Pl={}));var Dl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Dl||(Dl={}));var kl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kl||(kl={}));var Nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nl||(Nl={}));var Il;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Il||(Il={}));var Ml;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ml||(Ml={}));var $l;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})($l||($l={}));var Ul;(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"})(Ul||(Ul={}));var Fl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Fl||(Fl={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(i=>Vl(i,e))}function Jn(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(r=>Vl(r,e))}function Bl(t,...e){return t==null?!1:e.some(i=>Jn(t,i))}var Hr=f(E());var Qn=f(E());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ri=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ri{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Qn.CacheRegistry,this.cache=e?n.commonCache:new Qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var Ur=class extends Le{async listMySearches(){let{session:e}=P.getState();return Jn(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Fr=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Vr=class extends Le{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=P.getState().session;return!!e?.sessionAuthenticated}};var Br=class extends Le{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=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Ne).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;to(t,i,[...eo(t,i),n]),Hl(t,i,1,r),zl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;to(t,i,eo(t,i).map(n=>n.id===r.id?r:n)),zl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;to(t,i,eo(t,i).filter(o=>o.id!==n)),Hl(t,i,-1,r)}},jl={[Ne.SEARCHES]:"savedSearches",[Ne.BOOKMARKS]:"bookmarks",[Ne.BOOKS]:void 0,[Ne.COLLECTIONS]:void 0},eo=(t,e)=>{var i;let r=jl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},to=(t,e,i)=>{let r=jl[e];r&&(t[r]=i)},Hl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Ne.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},zl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},ye=Hr.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),io=class{constructor(e=new Vr,i=new Br){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new Ur,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Hr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ye.actions.clearAssetCount(),ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ye.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&ye.getState().assetCounts.allAsset[e]!==i.count&&ye.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&ye.getState().assetCounts.bookmarkByMap[e]!==i.count&&ye.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(ye.getState().assetCounts.bookmarkByMap).length!==0;e===Ne.BOOKMARKS&&i&&ye.actions.clearBookmarkCountByMap(),ye.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ye.actions.bookmarks(i)}}},Td=new io;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var ro=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ro;var Ie=f(E());var Kl,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),zr=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Ie.delay)(0).then(()=>r()).catch(()=>null)))}};Kl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Wl=f(E()),no=class{highlightHtml(e,i,r){(0,Wl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new no;var Gl=f(E());var oo=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return Gl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new oo;var ql=f(E());var Ui=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=P.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new ql.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var so=class{urlToSearchRequest(e){return Ui.get().parse(e)}searchRequestToUrl(e){return Ui.get().serialize(e)}};window.FluidTopicsUrlService=new so;var nt=f(E());var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Nt.eventName="before-location-change";var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.eventName="change";var ao=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},Yl=new ao;var Kr=class t extends nt.WithEventBus{static build(){return new t(window.history,Yl,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new It(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Nt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Nt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Nt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.eventName,e)}currentItem(){return(0,nt.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,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}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,nt.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 i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Kr.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 Xl=f(j());var Zl=Xl.css`
|
|
632
|
+
`;var ec=f(j()),be=f(re()),Ut=f(E());var Mt=f(E());function Jl(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var Wr=class extends ri{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var lo=class t extends Mt.FtStateManager{static build(e){return new t(P,e)}constructor(e,i){super(),this.store=e,this.cache=new Mt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Wr,this.cleanSessionDebouncer=new Mt.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Mt.Debouncer(500),this.apiProvider=i??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Dt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Dt.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 i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});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 i=await this.cache.get("availableContentLocales",()=>Jl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.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,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $i(r)))}).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 Bl(P.getState().session,...e)}},Ql=lo.build();var $t=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var Fi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new $t(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}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 se=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},G=class extends Ut.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=Ql,this.contextRoot=new Fi}render(){return ec.html`
|
|
633
633
|
<slot></slot>
|
|
634
634
|
`}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 i;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(r=>oi.addContext(r)),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")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Zl;se([(0,be.property)()],G.prototype,"baseUrl",void 0);se([(0,be.property)()],G.prototype,"tenantId",void 0);se([(0,be.property)()],G.prototype,"apiIntegrationIdentifier",void 0);se([(0,be.property)()],G.prototype,"apiIntegrationAppVersion",void 0);se([(0,be.property)()],G.prototype,"uiLocale",void 0);se([(0,Ut.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);se([(0,Ut.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"editorMode",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"noCustom",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);se([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);se([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"withManualResources",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);se([(0,Ut.jsonProperty)([])],G.prototype,"messageContexts",void 0);se([(0,Ut.jsonProperty)(void 0)],G.prototype,"session",void 0);var ic=f(E());var tc={"ft-app-context":G};(0,ic.customElements)(tc);var rc=f(re());var co=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[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},si=new co;var Pd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bi=Symbol("i18nAttributes"),nc=Symbol("i18nListAttributes"),oc=Symbol("i18nProperties"),Gr=Symbol("i18nContexts"),Vi=Symbol("i18nUnsubs"),Xr=(0,ai.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?jr:oi}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(si.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Bi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[nc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[oc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Gr].set(l,{isCustomContext:a}),this[Vi].has(l)||this[Vi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Gr].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Gr].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Vi].forEach(o=>o()),this[Vi].clear()}}return e=Gr,i=Vi,Pd([(0,rc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),qr=class extends Xr(ai.FtLitElement){},Yr=class extends Xr(ai.FtLitElementRedux){};var sc=f(E());var uo=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?si.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Dd=new uo;var ac=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:sc.hasChanged,converter:si,...e}),i[Bi]=(n=i[Bi])!==null&&n!==void 0?n:new Map,i[Bi].set(r,t??{})};var Zr=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?jr:oi}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var lc=f(j());var cc=lc.css`
|
|
635
635
|
`;var Jr=f(j()),ci=f(re()),Qr=f(E());var li=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Me=class extends Yr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Jr.nothing:Jr.html`
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
<div></div>
|
|
728
728
|
<div></div>
|
|
729
729
|
</div>
|
|
730
|
-
`}};Vt.styles=gc;var vc=f(E());var xc={"ft-loader":Vt};(0,vc.customElements)(xc);var mt=f(j()),tn=f(ot()),z=f(re());var en=f(j()),w=f(E());var Sc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),q={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Sc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",Fe.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Sc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},Ec=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),po={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:Ec,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ec)},
|
|
730
|
+
`}};Vt.styles=gc;var vc=f(E());var xc={"ft-loader":Vt};(0,vc.customElements)(xc);var mt=f(j()),tn=f(ot()),z=f(re());var en=f(j()),w=f(E());var Sc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),q={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Sc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",Fe.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Sc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},Ec=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),po={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:Ec,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ec)},Ke={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ac=en.css`
|
|
731
731
|
:host {
|
|
732
732
|
display: inline-block;
|
|
733
733
|
max-width: 100%;
|
|
@@ -817,17 +817,17 @@
|
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
&.ft-button--dense {
|
|
820
|
-
padding: ${
|
|
821
|
-
border-radius: ${
|
|
822
|
-
${(0,w.setVariable)(Q.borderRadius,
|
|
820
|
+
padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
|
|
821
|
+
border-radius: ${Ke.borderRadius};
|
|
822
|
+
${(0,w.setVariable)(Q.borderRadius,Ke.borderRadius)};
|
|
823
823
|
|
|
824
824
|
.ft-button--label {
|
|
825
|
-
margin: 0 ${
|
|
825
|
+
margin: 0 ${Ke.iconPadding};
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
&.ft-button--dense.ft-button--outlined {
|
|
830
|
-
padding: calc(${
|
|
830
|
+
padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
&.ft-button--round {
|
|
@@ -836,8 +836,8 @@
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
&.ft-button--round.ft-button--dense {
|
|
839
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
840
|
-
${(0,w.setVariable)(Q.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${
|
|
839
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding});
|
|
840
|
+
${(0,w.setVariable)(Q.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding})`)};
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
&.ft-button--no-text {
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
padding: ${q.verticalPadding};
|
|
849
849
|
|
|
850
850
|
&.ft-button--dense {
|
|
851
|
-
padding: ${
|
|
851
|
+
padding: ${Ke.verticalPadding};
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
&.ft-button--outlined {
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
&.ft-button--outlined.ft-button--dense {
|
|
859
|
-
padding: calc(${
|
|
859
|
+
padding: calc(${Ke.verticalPadding} - 1px);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
|
|
@@ -869,7 +869,7 @@
|
|
|
869
869
|
${(0,w.setVariable)(Ft.size,q.iconSize)};
|
|
870
870
|
${(0,w.setVariable)(Ft.color,"var(--button-internal-color)")};
|
|
871
871
|
}
|
|
872
|
-
`;var
|
|
872
|
+
`;var W=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},I=class t extends(0,Ze.toFtFormComponent)(Ze.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var i;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((i=this.form)===null||i===void 0||i.requestSubmit())})}render(){var e,i,r;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ze.isSafari},o=mt.html`
|
|
873
873
|
<ft-ripple part="ripple"
|
|
874
874
|
?disabled=${this.isDisabled()}
|
|
875
875
|
?activated=${this.activated}
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
911
911
|
`:mt.html`
|
|
912
912
|
<slot part="icon" name="icon"></slot>
|
|
913
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":V,"ft-tooltip":oe,"ft-icon":X,"ft-loader":Vt,"ft-typography":ne};I.styles=[Ze.safariEllipsisFix,Ac,Ze.noTextSelect];I.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:I.labelsObserver.unobserve(e.target)}});
|
|
913
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":V,"ft-tooltip":oe,"ft-icon":X,"ft-loader":Vt,"ft-typography":ne};I.styles=[Ze.safariEllipsisFix,Ac,Ze.noTextSelect];I.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:I.labelsObserver.unobserve(e.target)}});W([(0,z.property)({type:Boolean})],I.prototype,"primary",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"outlined",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"dense",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"round",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"disabled",void 0);W([(0,z.property)()],I.prototype,"icon",void 0);W([(0,z.property)()],I.prototype,"iconVariant",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);W([(0,z.property)()],I.prototype,"label",void 0);W([(0,z.property)()],I.prototype,"type",void 0);W([(0,z.property)()],I.prototype,"href",void 0);W([(0,z.property)()],I.prototype,"target",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"loading",void 0);W([(0,z.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);W([(0,z.property)()],I.prototype,"ariaHasPopup",void 0);W([(0,z.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);W([(0,z.property)()],I.prototype,"tooltipPosition",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"activated",void 0);W([(0,z.query)(".ft-button")],I.prototype,"button",void 0);W([(0,z.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);W([(0,z.state)()],I.prototype,"hasTextContent",void 0);W([(0,z.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);W([(0,z.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var Cc=f(E());var _c={"ft-button":I};(0,Cc.customElements)(_c);var Ht=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},fo=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ho=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},xe=class extends wc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Bt.html`
|
|
914
914
|
<div class="${(0,Tc.classMap)(e)}">
|
|
915
915
|
<div
|
|
916
916
|
class="ft-text-field-suggestion--suggestion"
|