@fluid-topics/ft-reader-navigation-button 1.3.54 → 1.3.55

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.
@@ -45,7 +45,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var nc={};var Ka={};G(Ka,{ParametrizedLabelResolver:()=>Xr});var Xr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var bi={};G(bi,{FtCommandQueue:()=>Jr,FtLitElementRedux:()=>Mt,FtReduxStore:()=>$t,FtStateManager:()=>gi,ReduxWatcher:()=>fn,clearAllStores:()=>qp,isFtReduxStore:()=>ir,redux:()=>ft,reduxEventListener:()=>pp,reduxReactive:()=>up,watch:()=>Yp,withRedux:()=>ac});var up=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ft=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Je,attribute:!1,...e};O(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[n],store:e.store})}},pp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Jr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function ir(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qr=Symbol("internalReduxEventsUnsubscribers"),ht=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),ac=oe(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Dt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Dt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Dt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[ht].has(s.store):this[ht].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[ht].set(s,c.subscribe(()=>this.updateFromStores())),this[Qr].set(s,[]),ir(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let f=y=>this[h](y);c.addEventListener(p.eventName,f),this[Qr].get(s).push(()=>c.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ht].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[ht].has(s)&&this[ht].get(s)(),this[ht].delete(s),(c=this[Qr].get(s))===null||c===void 0||c.forEach(d=>d()),this[Qr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ht,o=Dt,n=Qr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Mt=class extends ac(Z){};function Re(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function nt(t){return!!t&&!!t[Q]}function ke(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vp}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||ri(t)||oi(t))}function Bt(t,e,o){o===void 0&&(o=!1),lr(t)===0?(o?Object.keys:cr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function lr(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ri(t)?2:oi(t)?3:0}function sr(t,e){return lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fp(t,e){return lr(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ri(t){return bp&&t instanceof Map}function oi(t){return xp&&t instanceof Set}function yt(t){return t.o||t.t}function ni(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[Q];for(var o=cr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ai(t,e){return e===void 0&&(e=!1),ii(t)||nt(t)||!ke(t)||(lr(t)>1&&(t.set=t.add=t.clear=t.delete=hp),Object.freeze(t),e&&Bt(t,function(o,n){return ai(n,!0)},!0)),t}function hp(){Re(2)}function ii(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ge(t){var e=ti[t];return e||Re(18,t),e}function yp(t,e){ti[t]||(ti[t]=e)}function Ja(){return to}function Za(t,e){e&&(Ge("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){Qa(t),t.p.forEach(mp),t.p=null}function Qa(t){t===to&&(to=t.l)}function ic(t){return to={p:[],l:to,h:t,m:!0,_:0}}function mp(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function qa(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ge("ES5").S(e,t,n),n?(o[Q].P&&(cn(e),Re(4)),ke(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&Ge("Patches").M(o[Q].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function ln(t,e,o){if(ii(e))return e;var n=e[Q];if(!n)return Bt(e,function(c,d){return sc(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ni(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Bt(i,function(c,d){return sc(t,n,a,c,d,o,s)}),dn(t,a,!1),o&&t.u&&Ge("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(nt(a)){var c=ln(t,a,i&&e&&e.i!==3&&!sr(e.R,n)?i.concat(n):void 0);if(fc(o,n,c),!nt(c))return;t.m=!1}else s&&o.add(a);if(ke(a)&&!ii(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ai(e,o)}function Ya(t,e){var o=t[Q];return(o?yt(o):t)[e]}function cc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function mt(t){t.P||(t.P=!0,t.l&&mt(t.l))}function Xa(t){t.o||(t.o=ni(t.t))}function ei(t,e,o){var n=ri(e)?Ge("MapSet").F(e,o):oi(e)?Ge("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,p=ro;s&&(d=[c],p=eo);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):Ge("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function gp(t){return nt(t)||Re(22,t),function e(o){if(!ke(o))return o;var n,a=o[Q],i=lr(o);if(a){if(!a.P&&(a.i<4||!Ge("ES5").K(a)))return a.t;a.I=!0,n=lc(o,i),a.I=!1}else n=lc(o,i);return Bt(n,function(s,c){a&&fp(a.t,s)===c||fc(n,s,e(c))}),i===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ni(t)}function yc(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var p=this[Q];return ro.get(p,s)},set:function(p){var h=this[Q];ro.set(h,s,p)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][Q];if(!d.P)switch(d.i){case 5:n(d)&&mt(d);break;case 4:o(d)&&mt(d)}}}function o(s){for(var c=s.t,d=s.k,p=cr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Q){var y=c[f];if(y===void 0&&!sr(c,f))return!0;var x=d[f],b=x&&x[Q];if(b?b.t!==y:!hc(x,y))return!0}}var A=!!c[Q];return p.length!==cr(c).length+(A?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Re(3,JSON.stringify(yt(s)))}var i={};yp("ES5",{J:function(s,c){var d=Array.isArray(s),p=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var A=gc(y);delete A[Q];for(var R=cr(A),T=0;T<R.length;T++){var N=R[T];A[N]=t(N,f||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(y),A)}(d,s),h={i:d?5:4,A:c?c.A:Ja(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Q,{value:h,writable:!0}),p},S:function(s,c,d){d?nt(c)&&c[Q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Q];if(f){var y=f.t,x=f.k,b=f.R,A=f.i;if(A===4)Bt(x,function(v){v!==Q&&(y[v]!==void 0||sr(y,v)?b[v]||p(x[v]):(b[v]=!0,mt(f)))}),Bt(y,function(v){x[v]!==void 0||sr(x,v)||(b[v]=!1,mt(f))});else if(A===5){if(n(f)&&(mt(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var T=y.length;T<x.length;T++)b[T]=!0;for(var N=Math.min(x.length,y.length),C=0;C<N;C++)x.hasOwnProperty(C)||(b[C]=!0),b[C]===void 0&&p(x[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,to,si=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bp=typeof Map<"u",xp=typeof Set<"u",uc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=si?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),pc=si?Symbol.for("immer-draftable"):"__$immer_draftable",Q=si?Symbol.for("immer-state"):"__$immer_state";var vp=""+Object.prototype.constructor,cr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return cr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ti={},ro={get:function(t,e){if(e===Q)return t;var o=yt(t);if(!sr(o,e))return function(a,i,s){var c,d=cc(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!ke(n)?n:n===Ya(t.t,e)?(Xa(t),t.o[e]=ei(t.A.h,n,t)):n},has:function(t,e){return e in yt(t)},ownKeys:function(t){return Reflect.ownKeys(yt(t))},set:function(t,e,o){var n=cc(yt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ya(yt(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||sr(t.t,e)))return!0;Xa(t),mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Xa(t),mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=yt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Re(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Re(12)}},eo={};Bt(ro,function(t,e){eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),eo.deleteProperty=function(t,e){return eo.set.call(this,t,e,void 0)},eo.set=function(t,e,o){return ro.set.call(this,t[0],e,o,t[0])};var Sp=function(){function t(o){var n=this;this.O=uc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=n;return function(A){var R=this;A===void 0&&(A=c);for(var T=arguments.length,N=Array(T>1?T-1:0),C=1;C<T;C++)N[C-1]=arguments[C];return d.produce(A,function(v){var E;return(E=i).call.apply(E,[R,v].concat(N))})}}var p;if(typeof i!="function"&&Re(6),s!==void 0&&typeof s!="function"&&Re(7),ke(a)){var h=ic(n),f=ei(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?cn(h):Qa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Za(h,s),qa(A,h)},function(A){throw cn(h),A}):(Za(h,s),qa(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&ai(p,!0),s){var x=[],b=[];Ge("Patches").M(a,p,x,b),s(x,b)}return p}Re(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var s,c,d=n.produce(a,i,function(p,h){s=p,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,c]}):[d,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ke(o)||Re(8),nt(o)&&(o=gp(o));var n=ic(this),a=ei(this,o,void 0);return a[Q].C=!0,Qa(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return Za(i,n),qa(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!uc&&Re(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Ge("Patches").$;return nt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Se=new Sp,Op=Se.produce,ix=Se.produceWithPatches.bind(Se),sx=Se.setAutoFreeze.bind(Se),cx=Se.setUseProxies.bind(Se),lx=Se.applyPatches.bind(Se),dx=Se.createDraft.bind(Se),ux=Se.finishDraft.bind(Se),un=Op;function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function bc(t,e){if(Ut(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xc(t){var e=bc(t,"string");return Ut(e)=="symbol"?e:e+""}function vc(t,e,o){return(e=xc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Sc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function ci(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(o),!0).forEach(function(n){vc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),li=function(){return Math.random().toString(36).substring(7).split("").join(".")},pn={INIT:"@@redux/INIT"+li(),REPLACE:"@@redux/REPLACE"+li(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+li()}};function Cp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function di(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(di)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],c=s,d=!1;function p(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(A){if(typeof A!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var R=!0;return p(),c.push(A),function(){if(R){if(d)throw new Error(pe(6));R=!1,p();var N=c.indexOf(A);c.splice(N,1),s=null}}}function y(A){if(!Cp(A))throw new Error(pe(7));if(typeof A.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,A)}finally{d=!1}for(var R=s=c,T=0;T<R.length;T++){var N=R[T];N()}return A}function x(A){if(typeof A!="function")throw new Error(pe(10));a=A,y({type:pn.REPLACE})}function b(){var A,R=f;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function C(){N.next&&N.next(h())}C();var v=R(C);return{unsubscribe:v}}},A[Oc]=function(){return this},A}return y({type:pn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Oc]=b,n}function Ep(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:pn.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:pn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function Cc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{Ep(o)}catch(d){c=d}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var A=i[b],R=o[A],T=p[A],N=R(T,h);if(typeof N>"u"){var C=h&&h.type;throw new Error(pe(14))}x[A]=N,y=y||N!==T}return y=y||i.length!==Object.keys(p).length,y?x:p}}function dr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ec(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=dr.apply(void 0,c)(a.dispatch),ci(ci({},a),{},{dispatch:i})}}}function Ac(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var wc=Ac();wc.withExtraArgument=Ac;var ui=wc;var Nc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ap=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},wp=Object.defineProperty,Rp=Object.defineProperties,Tp=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,_p=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Tc=function(t,e,o){return e in t?wp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},gt=function(t,e){for(var o in e||(e={}))_p.call(e,o)&&Tc(t,o,e[o]);if(Rc)for(var n=0,a=Rc(e);n<a.length;n++){var o=a[n];Lp.call(e,o)&&Tc(t,o,e[o])}return t},pi=function(t,e){return Rp(t,Tp(e))},Np=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{c(o.next(d))}catch(p){a(p)}},s=function(d){try{c(o.throw(d))}catch(p){a(p)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};c((o=o.apply(t,e)).next())})};var Ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?dr:dr.apply(null,arguments)},_x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var kp=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Dp=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function yi(t){return ke(t)?un(t,function(){}):t}function Mp(t){return typeof t=="boolean"}function Bp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new kp;if(o&&(Mp(o)?c.push(ui):c.push(ui.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return c}var fi=!0;function Ic(t){var e=Bp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,d=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Pp(a))x=Cc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!fi&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fi&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Ec.apply(void 0,b),R=dr;d&&(R=Ip(gt({trace:!fi},typeof d=="object"&&d)));var T=new Dp(A),N=T;Array.isArray(y)?N=ur([A],y):typeof y=="function"&&(N=y(T));var C=R.apply(void 0,N);return di(x,h,C)}function bt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return gt(gt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Pc(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function $p(t){return typeof t=="function"}function Fp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Pc(e):[e,o,n],i=a[0],s=a[1],c=a[2],d;if($p(t))d=function(){return yi(t())};else{var p=yi(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var x=ur([i[y.type]],s.filter(function(b){var A=b.matcher;return A(y)}).map(function(b){var A=b.reducer;return A}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,A){if(A)if(nt(b)){var R=b,T=A(R,y);return T===void 0?b:T}else{if(ke(b))return un(b,function(N){return A(N,y)});var T=A(b,y);if(T===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return b},f)}return h.getInitialState=d,h}function Hp(t,e){return t+"/"+e}function kc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:yi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(h){var f=n[h],y=Hp(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,c[h]=b?bt(y,b):bt(y)});function d(){var h=typeof t.extraReducers=="function"?Pc(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,A=h[2],R=A===void 0?void 0:A,T=gt(gt({},y),s);return Fp(o,function(N){for(var C in T)N.addCase(C,T[C]);for(var v=0,E=b;v<E.length;v++){var k=E[v];N.addMatcher(k.matcher,k.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Wp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Wp[Math.random()*64|0];return e},Gp=["name","message","stack","code"],hi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),_c=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),jp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Gp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Px=function(){function t(e,o,n){var a=bt(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:pi(gt({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=bt(e+"/pending",function(h,f,y){return{payload:void 0,meta:pi(gt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=bt(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||jp)(h||"Rejected"),meta:pi(gt({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):zp(),A=new d,R,T=!1;function N(v){R=v,A.abort()}var C=function(){return Np(this,null,function(){var v,E,k,U,z,$,M;return Ap(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),Kp(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,z=new Promise(function(S,I){return A.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([z,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:A.signal,abort:N,rejectWithValue:function(S,I){return new hi(S,I)},fulfillWithValue:function(S,I){return new _c(S,I)}})).then(function(S){if(S instanceof hi)throw S;return S instanceof _c?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return k=m.sent(),[3,5];case 4:return $=m.sent(),k=$ instanceof hi?s(null,b,h,$.payload,$.meta):s($,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||f(k),[2,k]}})})}();return Object.assign(C,{abort:N,requestId:b,arg:h,unwrap:function(){return C.then(Vp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc="listener",Mc="completed",Bc="cancelled",kx="task-"+Bc,Dx="task-"+Mc,Mx=Dc+"-"+Bc,Bx=Dc+"-"+Mc;var mi="listenerMiddleware";var Ux=bt(mi+"/add"),$x=bt(mi+"/removeAll"),Fx=bt(mi+"/remove");var Lc,Hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Lc||(Lc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Zp=function(t){return function(e){setTimeout(e,t)}},Wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zp(10);yc();window.ftReduxStores||(window.ftReduxStores={});var $t=class t extends Qe{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(ir(i))return i;if(a==null)return;let s=kc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Ic({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Jr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}};function qp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ir(e)&&e.clear()}var fn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Je(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Yp(t,e,o){return new fn(t,e,o).watch()}var gi=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Si={};G(Si,{scrollHelper:()=>Xp});var xi,hn=new Map,vi=class{lock(e,o){if(o){let n=hn.get(o);if(n==null||n===e)return hn.set(o,e),o}}release(e,o){o&&hn.get(o)===e&&hn.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of na(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,c=Fr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,c)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(xi=window.FluidTopicsScrollHelper)!==null&&xi!==void 0?xi:new vi;var Xp=window.FluidTopicsScrollHelper;var Ci={};G(Ci,{SearchPlaceConverter:()=>yr,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>bl,serializeRequest:()=>tf});var Qp=wd($c(),1);var Fc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Fc||(Fc={}));var Hc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Hc||(Hc={}));var Wc;(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"})(Wc||(Wc={}));var zc;(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"})(zc||(zc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gc||(Gc={}));var jc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(jc||(jc={}));var Vc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Vc||(Vc={}));var Kc;(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"})(Kc||(Kc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(qc||(qc={}));var Yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Yc||(Yc={}));var Xc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Xc||(Xc={}));var Jc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Jc||(Jc={}));var Qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qc||(Qc={}));var fr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(fr||(fr={}));var el;(function(t){t.ASC="ASC",t.DESC="DESC"})(el||(el={}));var tl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(tl||(tl={}));var Oi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Oi||(Oi={}));var cl=t=>Object.keys(Oi).includes(t);var rl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(rl||(rl={}));var ol;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ol||(ol={}));var nl;(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"})(nl||(nl={}));var hr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hr||(hr={}));var ll=t=>Object.keys(hr).includes(t);var al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(al||(al={}));var il;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(il||(il={}));var sl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(sl||(sl={}));var ne;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ne||(ne={}));var Te;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Te||(Te={}));var dl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(dl||(dl={}));var ul;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ul||(ul={}));var pl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(pl||(pl={}));var fl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(fl||(fl={}));var hl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(hl||(hl={}));var Jp={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function yl(t,e){return t===e||(Jp[t]??[]).some(o=>yl(o,e))}function ml(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(n=>yl(n,e))}function ef(t){return`"${t}"`}function gl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function tf(t,e){return new yr(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(V||(V={}));var rf=new Set(Object.values(V));function bl(t){return rf.has(t)}var yr=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,c,d,p,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(V.LOCALE,e.contentLocale):b.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(V.QUERY,e.query);let A=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&i!==void 0?i:[];if(A.length>0){let v=A.map(E=>{var k,U;let z=((U=(k=E.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map($=>this.escapeFilters($)).map($=>ef(gl($))).join("_");return`${E.key}~${z}`}).join("*");b.append(V.VALUE_FILTERS,v)}let R=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&c!==void 0?c:[];if(R.length>0){let v=R.map(E=>{var k;return`${E.key}~${(k=E.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");b.append(V.DATE_FILTERS,v)}let T=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(T.length>0){let v=T.map(E=>{var k,U;return`${E.key}~${(k=E.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=E.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(V.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(V.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(V.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(V.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(V.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let C=new Array;return b.forEach((v,E)=>{C.push(this.encodeQueryString(E)+"="+this.encodeQueryString(v))}),encodeURI(C.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(T){console.warn("Could not decode search request query params, fallback on raw value",T)}let d=new URLSearchParams(e),p=d.get(V.LOCALE)==="all"?void 0:d.get(V.LOCALE),h=((o=d.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(V.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(V.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(V.KEYWORD_MATCH),A=b?b.toUpperCase()===fr.MANDATORY?fr.MANDATORY:fr.OPTIONAL:void 0,R={};for(let T of d.keys())bl(T)||(R[T]=d.get(T));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(V.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[y])!==null&&c!==void 0?c:"DEFAULT",virtualField:cl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Fr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,c;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(V.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(gl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:hr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(ll(e))return[{key:"ft:lastEdition",dateFilter:{type:hr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var wi={};G(wi,{toFtFormComponent:()=>Ai});var Ei=Symbol("elementInternals"),Ai=oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ei].form}constructor(...n){super(n),this[Ei]=this.attachInternals()}setFormValue(n){this[Ei].setFormValue(n)}}return e});var Ri={};G(Ri,{DateFormatter:()=>Ft});var Ft=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var _i={};G(_i,{ALL_KEYS_VALUE:()=>Ti,SameWindowStorageEvent:()=>mr});var Ti="__all__",mr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ti}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new mr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new mr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new mr(Ti))}});var Ni={};G(Ni,{FocusMainContentEvent:()=>Li});var Li=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var xl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function of(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function nf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",of);document.addEventListener("click",nf);var vl=D`
48
+ `;var nc={};var Ka={};G(Ka,{ParametrizedLabelResolver:()=>Xr});var Xr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var bi={};G(bi,{FtCommandQueue:()=>Jr,FtLitElementRedux:()=>Mt,FtReduxStore:()=>$t,FtStateManager:()=>gi,ReduxWatcher:()=>fn,clearAllStores:()=>qp,isFtReduxStore:()=>ir,redux:()=>ft,reduxEventListener:()=>pp,reduxReactive:()=>up,watch:()=>Yp,withRedux:()=>ac});var up=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ft=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Je,attribute:!1,...e};O(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[n],store:e.store})}},pp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Jr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function ir(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qr=Symbol("internalReduxEventsUnsubscribers"),ht=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),ac=oe(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Dt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Dt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Dt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[ht].has(s.store):this[ht].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var d;this[ht].set(s,c.subscribe(()=>this.updateFromStores())),this[Qr].set(s,[]),ir(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let f=y=>this[h](y);c.addEventListener(p.eventName,f),this[Qr].get(s).push(()=>c.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ht].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[ht].has(s)&&this[ht].get(s)(),this[ht].delete(s),(c=this[Qr].get(s))===null||c===void 0||c.forEach(d=>d()),this[Qr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ht,o=Dt,n=Qr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Mt=class extends ac(Z){};function Re(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function nt(t){return!!t&&!!t[Q]}function ke(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vp}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||ri(t)||oi(t))}function Bt(t,e,o){o===void 0&&(o=!1),lr(t)===0?(o?Object.keys:cr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function lr(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ri(t)?2:oi(t)?3:0}function sr(t,e){return lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fp(t,e){return lr(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ri(t){return bp&&t instanceof Map}function oi(t){return xp&&t instanceof Set}function yt(t){return t.o||t.t}function ni(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[Q];for(var o=cr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ai(t,e){return e===void 0&&(e=!1),ii(t)||nt(t)||!ke(t)||(lr(t)>1&&(t.set=t.add=t.clear=t.delete=hp),Object.freeze(t),e&&Bt(t,function(o,n){return ai(n,!0)},!0)),t}function hp(){Re(2)}function ii(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ge(t){var e=ti[t];return e||Re(18,t),e}function yp(t,e){ti[t]||(ti[t]=e)}function Ja(){return to}function Za(t,e){e&&(Ge("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){Qa(t),t.p.forEach(mp),t.p=null}function Qa(t){t===to&&(to=t.l)}function ic(t){return to={p:[],l:to,h:t,m:!0,_:0}}function mp(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function qa(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ge("ES5").S(e,t,n),n?(o[Q].P&&(cn(e),Re(4)),ke(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&Ge("Patches").M(o[Q].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function ln(t,e,o){if(ii(e))return e;var n=e[Q];if(!n)return Bt(e,function(c,d){return sc(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ni(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Bt(i,function(c,d){return sc(t,n,a,c,d,o,s)}),dn(t,a,!1),o&&t.u&&Ge("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(nt(a)){var c=ln(t,a,i&&e&&e.i!==3&&!sr(e.R,n)?i.concat(n):void 0);if(fc(o,n,c),!nt(c))return;t.m=!1}else s&&o.add(a);if(ke(a)&&!ii(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ai(e,o)}function Ya(t,e){var o=t[Q];return(o?yt(o):t)[e]}function cc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function mt(t){t.P||(t.P=!0,t.l&&mt(t.l))}function Xa(t){t.o||(t.o=ni(t.t))}function ei(t,e,o){var n=ri(e)?Ge("MapSet").F(e,o):oi(e)?Ge("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,p=ro;s&&(d=[c],p=eo);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):Ge("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function gp(t){return nt(t)||Re(22,t),function e(o){if(!ke(o))return o;var n,a=o[Q],i=lr(o);if(a){if(!a.P&&(a.i<4||!Ge("ES5").K(a)))return a.t;a.I=!0,n=lc(o,i),a.I=!1}else n=lc(o,i);return Bt(n,function(s,c){a&&fp(a.t,s)===c||fc(n,s,e(c))}),i===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ni(t)}function yc(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var p=this[Q];return ro.get(p,s)},set:function(p){var h=this[Q];ro.set(h,s,p)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][Q];if(!d.P)switch(d.i){case 5:n(d)&&mt(d);break;case 4:o(d)&&mt(d)}}}function o(s){for(var c=s.t,d=s.k,p=cr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Q){var y=c[f];if(y===void 0&&!sr(c,f))return!0;var x=d[f],b=x&&x[Q];if(b?b.t!==y:!hc(x,y))return!0}}var A=!!c[Q];return p.length!==cr(c).length+(A?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Re(3,JSON.stringify(yt(s)))}var i={};yp("ES5",{J:function(s,c){var d=Array.isArray(s),p=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var A=gc(y);delete A[Q];for(var R=cr(A),T=0;T<R.length;T++){var N=R[T];A[N]=t(N,f||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(y),A)}(d,s),h={i:d?5:4,A:c?c.A:Ja(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Q,{value:h,writable:!0}),p},S:function(s,c,d){d?nt(c)&&c[Q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Q];if(f){var y=f.t,x=f.k,b=f.R,A=f.i;if(A===4)Bt(x,function(v){v!==Q&&(y[v]!==void 0||sr(y,v)?b[v]||p(x[v]):(b[v]=!0,mt(f)))}),Bt(y,function(v){x[v]!==void 0||sr(x,v)||(b[v]=!1,mt(f))});else if(A===5){if(n(f)&&(mt(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var T=y.length;T<x.length;T++)b[T]=!0;for(var N=Math.min(x.length,y.length),C=0;C<N;C++)x.hasOwnProperty(C)||(b[C]=!0),b[C]===void 0&&p(x[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,to,si=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bp=typeof Map<"u",xp=typeof Set<"u",uc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=si?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),pc=si?Symbol.for("immer-draftable"):"__$immer_draftable",Q=si?Symbol.for("immer-state"):"__$immer_state";var vp=""+Object.prototype.constructor,cr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return cr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ti={},ro={get:function(t,e){if(e===Q)return t;var o=yt(t);if(!sr(o,e))return function(a,i,s){var c,d=cc(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!ke(n)?n:n===Ya(t.t,e)?(Xa(t),t.o[e]=ei(t.A.h,n,t)):n},has:function(t,e){return e in yt(t)},ownKeys:function(t){return Reflect.ownKeys(yt(t))},set:function(t,e,o){var n=cc(yt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ya(yt(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||sr(t.t,e)))return!0;Xa(t),mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Xa(t),mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=yt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Re(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Re(12)}},eo={};Bt(ro,function(t,e){eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),eo.deleteProperty=function(t,e){return eo.set.call(this,t,e,void 0)},eo.set=function(t,e,o){return ro.set.call(this,t[0],e,o,t[0])};var Sp=function(){function t(o){var n=this;this.O=uc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=n;return function(A){var R=this;A===void 0&&(A=c);for(var T=arguments.length,N=Array(T>1?T-1:0),C=1;C<T;C++)N[C-1]=arguments[C];return d.produce(A,function(v){var E;return(E=i).call.apply(E,[R,v].concat(N))})}}var p;if(typeof i!="function"&&Re(6),s!==void 0&&typeof s!="function"&&Re(7),ke(a)){var h=ic(n),f=ei(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?cn(h):Qa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Za(h,s),qa(A,h)},function(A){throw cn(h),A}):(Za(h,s),qa(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&ai(p,!0),s){var x=[],b=[];Ge("Patches").M(a,p,x,b),s(x,b)}return p}Re(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var s,c,d=n.produce(a,i,function(p,h){s=p,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,c]}):[d,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ke(o)||Re(8),nt(o)&&(o=gp(o));var n=ic(this),a=ei(this,o,void 0);return a[Q].C=!0,Qa(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return Za(i,n),qa(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!uc&&Re(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Ge("Patches").$;return nt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Se=new Sp,Op=Se.produce,ix=Se.produceWithPatches.bind(Se),sx=Se.setAutoFreeze.bind(Se),cx=Se.setUseProxies.bind(Se),lx=Se.applyPatches.bind(Se),dx=Se.createDraft.bind(Se),ux=Se.finishDraft.bind(Se),un=Op;function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function bc(t,e){if(Ut(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xc(t){var e=bc(t,"string");return Ut(e)=="symbol"?e:e+""}function vc(t,e,o){return(e=xc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Sc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function ci(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(o),!0).forEach(function(n){vc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),li=function(){return Math.random().toString(36).substring(7).split("").join(".")},pn={INIT:"@@redux/INIT"+li(),REPLACE:"@@redux/REPLACE"+li(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+li()}};function Cp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function di(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(di)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],c=s,d=!1;function p(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(A){if(typeof A!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var R=!0;return p(),c.push(A),function(){if(R){if(d)throw new Error(pe(6));R=!1,p();var N=c.indexOf(A);c.splice(N,1),s=null}}}function y(A){if(!Cp(A))throw new Error(pe(7));if(typeof A.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,A)}finally{d=!1}for(var R=s=c,T=0;T<R.length;T++){var N=R[T];N()}return A}function x(A){if(typeof A!="function")throw new Error(pe(10));a=A,y({type:pn.REPLACE})}function b(){var A,R=f;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function C(){N.next&&N.next(h())}C();var v=R(C);return{unsubscribe:v}}},A[Oc]=function(){return this},A}return y({type:pn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Oc]=b,n}function Ep(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:pn.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:pn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function Cc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{Ep(o)}catch(d){c=d}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var A=i[b],R=o[A],T=p[A],N=R(T,h);if(typeof N>"u"){var C=h&&h.type;throw new Error(pe(14))}x[A]=N,y=y||N!==T}return y=y||i.length!==Object.keys(p).length,y?x:p}}function dr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ec(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=dr.apply(void 0,c)(a.dispatch),ci(ci({},a),{},{dispatch:i})}}}function Ac(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var wc=Ac();wc.withExtraArgument=Ac;var ui=wc;var Nc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ap=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},wp=Object.defineProperty,Rp=Object.defineProperties,Tp=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,_p=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Tc=function(t,e,o){return e in t?wp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},gt=function(t,e){for(var o in e||(e={}))_p.call(e,o)&&Tc(t,o,e[o]);if(Rc)for(var n=0,a=Rc(e);n<a.length;n++){var o=a[n];Lp.call(e,o)&&Tc(t,o,e[o])}return t},pi=function(t,e){return Rp(t,Tp(e))},Np=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{c(o.next(d))}catch(p){a(p)}},s=function(d){try{c(o.throw(d))}catch(p){a(p)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};c((o=o.apply(t,e)).next())})};var Ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?dr:dr.apply(null,arguments)},_x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var kp=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Dp=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function yi(t){return ke(t)?un(t,function(){}):t}function Mp(t){return typeof t=="boolean"}function Bp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new kp;if(o&&(Mp(o)?c.push(ui):c.push(ui.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return c}var fi=!0;function Ic(t){var e=Bp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,d=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Pp(a))x=Cc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!fi&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fi&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Ec.apply(void 0,b),R=dr;d&&(R=Ip(gt({trace:!fi},typeof d=="object"&&d)));var T=new Dp(A),N=T;Array.isArray(y)?N=ur([A],y):typeof y=="function"&&(N=y(T));var C=R.apply(void 0,N);return di(x,h,C)}function bt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return gt(gt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Pc(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function $p(t){return typeof t=="function"}function Fp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Pc(e):[e,o,n],i=a[0],s=a[1],c=a[2],d;if($p(t))d=function(){return yi(t())};else{var p=yi(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var x=ur([i[y.type]],s.filter(function(b){var A=b.matcher;return A(y)}).map(function(b){var A=b.reducer;return A}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,A){if(A)if(nt(b)){var R=b,T=A(R,y);return T===void 0?b:T}else{if(ke(b))return un(b,function(N){return A(N,y)});var T=A(b,y);if(T===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return b},f)}return h.getInitialState=d,h}function Hp(t,e){return t+"/"+e}function kc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:yi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(h){var f=n[h],y=Hp(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,c[h]=b?bt(y,b):bt(y)});function d(){var h=typeof t.extraReducers=="function"?Pc(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,A=h[2],R=A===void 0?void 0:A,T=gt(gt({},y),s);return Fp(o,function(N){for(var C in T)N.addCase(C,T[C]);for(var v=0,E=b;v<E.length;v++){var k=E[v];N.addMatcher(k.matcher,k.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Wp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Wp[Math.random()*64|0];return e},Gp=["name","message","stack","code"],hi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),_c=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),jp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Gp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Px=function(){function t(e,o,n){var a=bt(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:pi(gt({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=bt(e+"/pending",function(h,f,y){return{payload:void 0,meta:pi(gt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=bt(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||jp)(h||"Rejected"),meta:pi(gt({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):zp(),A=new d,R,T=!1;function N(v){R=v,A.abort()}var C=function(){return Np(this,null,function(){var v,E,k,U,z,$,M;return Ap(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),Kp(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,z=new Promise(function(S,I){return A.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([z,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:A.signal,abort:N,rejectWithValue:function(S,I){return new hi(S,I)},fulfillWithValue:function(S,I){return new _c(S,I)}})).then(function(S){if(S instanceof hi)throw S;return S instanceof _c?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return k=m.sent(),[3,5];case 4:return $=m.sent(),k=$ instanceof hi?s(null,b,h,$.payload,$.meta):s($,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||f(k),[2,k]}})})}();return Object.assign(C,{abort:N,requestId:b,arg:h,unwrap:function(){return C.then(Vp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc="listener",Mc="completed",Bc="cancelled",kx="task-"+Bc,Dx="task-"+Mc,Mx=Dc+"-"+Bc,Bx=Dc+"-"+Mc;var mi="listenerMiddleware";var Ux=bt(mi+"/add"),$x=bt(mi+"/removeAll"),Fx=bt(mi+"/remove");var Lc,Hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Lc||(Lc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Zp=function(t){return function(e){setTimeout(e,t)}},Wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zp(10);yc();window.ftReduxStores||(window.ftReduxStores={});var $t=class t extends Qe{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(ir(i))return i;if(a==null)return;let s=kc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Ic({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Jr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}};function qp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ir(e)&&e.clear()}var fn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Je(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Yp(t,e,o){return new fn(t,e,o).watch()}var gi=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Si={};G(Si,{scrollHelper:()=>Xp});var xi,hn=new Map,vi=class{lock(e,o){if(o){let n=hn.get(o);if(n==null||n===e)return hn.set(o,e),o}}release(e,o){o&&hn.get(o)===e&&hn.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of na(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,c=Fr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,c)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(xi=window.FluidTopicsScrollHelper)!==null&&xi!==void 0?xi:new vi;var Xp=window.FluidTopicsScrollHelper;var Ci={};G(Ci,{SearchPlaceConverter:()=>yr,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>xl,serializeRequest:()=>tf});var Qp=wd($c(),1);var Fc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Fc||(Fc={}));var Hc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Hc||(Hc={}));var Wc;(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"})(Wc||(Wc={}));var zc;(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"})(zc||(zc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gc||(Gc={}));var jc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(jc||(jc={}));var Vc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Vc||(Vc={}));var Kc;(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"})(Kc||(Kc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(qc||(qc={}));var Yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Yc||(Yc={}));var Xc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Xc||(Xc={}));var Jc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Jc||(Jc={}));var Qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qc||(Qc={}));var fr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(fr||(fr={}));var el;(function(t){t.ASC="ASC",t.DESC="DESC"})(el||(el={}));var tl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(tl||(tl={}));var Oi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Oi||(Oi={}));var ll=t=>Object.keys(Oi).includes(t);var rl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(rl||(rl={}));var ol;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ol||(ol={}));var nl;(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"})(nl||(nl={}));var hr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hr||(hr={}));var dl=t=>Object.keys(hr).includes(t);var al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(al||(al={}));var il;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(il||(il={}));var sl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(sl||(sl={}));var ne;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ne||(ne={}));var Te;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Te||(Te={}));var cl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(cl||(cl={}));var ul;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ul||(ul={}));var pl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(pl||(pl={}));var fl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(fl||(fl={}));var hl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(hl||(hl={}));var yl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(yl||(yl={}));var Jp={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function ml(t,e){return t===e||(Jp[t]??[]).some(o=>ml(o,e))}function gl(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(n=>ml(n,e))}function ef(t){return`"${t}"`}function bl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function tf(t,e){return new yr(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(V||(V={}));var rf=new Set(Object.values(V));function xl(t){return rf.has(t)}var yr=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,c,d,p,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(V.LOCALE,e.contentLocale):b.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(V.QUERY,e.query);let A=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&i!==void 0?i:[];if(A.length>0){let v=A.map(E=>{var k,U;let z=((U=(k=E.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map($=>this.escapeFilters($)).map($=>ef(bl($))).join("_");return`${E.key}~${z}`}).join("*");b.append(V.VALUE_FILTERS,v)}let R=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&c!==void 0?c:[];if(R.length>0){let v=R.map(E=>{var k;return`${E.key}~${(k=E.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");b.append(V.DATE_FILTERS,v)}let T=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(T.length>0){let v=T.map(E=>{var k,U;return`${E.key}~${(k=E.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=E.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(V.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(V.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(V.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(V.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(V.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let C=new Array;return b.forEach((v,E)=>{C.push(this.encodeQueryString(E)+"="+this.encodeQueryString(v))}),encodeURI(C.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(T){console.warn("Could not decode search request query params, fallback on raw value",T)}let d=new URLSearchParams(e),p=d.get(V.LOCALE)==="all"?void 0:d.get(V.LOCALE),h=((o=d.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(V.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(V.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(V.KEYWORD_MATCH),A=b?b.toUpperCase()===fr.MANDATORY?fr.MANDATORY:fr.OPTIONAL:void 0,R={};for(let T of d.keys())xl(T)||(R[T]=d.get(T));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(V.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[y])!==null&&c!==void 0?c:"DEFAULT",virtualField:ll(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Fr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,c;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(V.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(bl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:hr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(dl(e))return[{key:"ft:lastEdition",dateFilter:{type:hr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var wi={};G(wi,{toFtFormComponent:()=>Ai});var Ei=Symbol("elementInternals"),Ai=oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ei].form}constructor(...n){super(n),this[Ei]=this.attachInternals()}setFormValue(n){this[Ei].setFormValue(n)}}return e});var Ri={};G(Ri,{DateFormatter:()=>Ft});var Ft=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var _i={};G(_i,{ALL_KEYS_VALUE:()=>Ti,SameWindowStorageEvent:()=>mr});var Ti="__all__",mr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ti}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new mr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new mr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new mr(Ti))}});var Ni={};G(Ni,{FocusMainContentEvent:()=>Li});var Li=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var vl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function of(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function nf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",of);document.addEventListener("click",nf);var Sl=D`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var af={checkVisibility:!0},Tv=oe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...af,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Wr({type:"aria",message:n})))},20)}}return e});function Sl(t,e,o){return t?e(t):o?.(t)}var de=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ht;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Ht||(Ht={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Ii=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Uv=oe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ht.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ht.blur||this.validateOn===Ht.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Wt.default&&this.validateOn===Ht.blurWithStatusResolutionOnInput||this.validateOn===Ht.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ii(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return W`
72
+ `;var af={checkVisibility:!0},Tv=oe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...af,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Wr({type:"aria",message:n})))},20)}}return e});function Ol(t,e,o){return t?e(t):o?.(t)}var de=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ht;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Ht||(Ht={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Ii=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Uv=oe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ht.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ht.blur||this.validateOn===Ht.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Wt.default&&this.validateOn===Ht.blurWithStatusResolutionOnInput||this.validateOn===Ht.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ii(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return W`
73
73
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
74
74
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
75
75
  ${Oo(this.errorMessages,n=>W`
@@ -78,11 +78,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
78
78
  ${Oo(this.warningMessages,n=>W`
79
79
  <li>${n}</li>
80
80
  `)}
81
- ${Sl(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>W`
81
+ ${Ol(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>W`
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return de([O()],e.prototype,"warningRules",void 0),de([O()],e.prototype,"errorRules",void 0),de([O()],e.prototype,"validateOn",void 0),de([O({type:Boolean})],e.prototype,"validateAtRender",void 0),de([O()],e.prototype,"label",void 0),de([O({type:Boolean})],e.prototype,"hideLabel",void 0),de([O()],e.prototype,"name",void 0),de([O({type:Boolean})],e.prototype,"disabled",void 0),de([O()],e.prototype,"helperText",void 0),de([O()],e.prototype,"forceStatus",void 0),de([O({reflect:!0})],e.prototype,"value",void 0),de([q()],e.prototype,"errorMessages",void 0),de([q()],e.prototype,"warningMessages",void 0),de([q()],e.prototype,"status",void 0),de([q()],e.prototype,"focused",void 0),de([q()],e.prototype,"additionalWarningRules",void 0),de([q()],e.prototype,"additionalErrorRules",void 0),e});var oo=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),oo(n,e);return!0},gn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Ol=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),lf(e)}};function sf(t){this._$AN!==void 0?(gn(this),this._$AM=t,Ol(this)):this._$AM=t}function cf(t,e=!1,o=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=o;i<n.length;i++)oo(n[i],!1),gn(n[i]);else n!=null&&(oo(n,!1),gn(n));else oo(this,t)}var lf=t=>{t.type==Fe.CHILD&&(t._$AP??=cf,t._$AQ??=sf)},bn=class extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Ol(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(oo(this,e),gn(this))}setValue(e){if(bs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var Cl;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Cl||(Cl={}));var df={sm:640,md:768,lg:1024,xl:1280},Pi=class extends bn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,a]){return this.lastArgs=[o,n,a],this.render(o,n,a)}render(e,o,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:df[e]}},Jv=Ie(Pi);var ki,Di,Mi,Bi,Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Mi=(Di=(ki=window.safari)===null||ki===void 0?void 0:ki.pushNotification)===null||Di===void 0?void 0:Di.toString())!==null&&Mi!==void 0?Mi:"")==="[object SafariRemoteNotification]",uf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Bi=window.ftGlobals)!==null&&Bi!==void 0?Bi:{lit:Kn,litDecorators:qn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ea,wcUtils:{...la,...ra,...ha,...Ri,...ya,...ma,...va,...ca,...Ma,...Ni,...xl,...Si,...xa,...Wa,...wi,...Fa,...rc,...aa,...ja,...Sa,...Va,...vl,...nc,...Ka,...bi,..._i,...Ba,...$a,...Ci,...ua,isSafari:Ui,isTouchScreen:uf,setVariable:w}};var $i={outlineColor:r.extend("--ft-reader-internal-link-outline-color","",K.colorPrimary)},El=D`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return de([O()],e.prototype,"warningRules",void 0),de([O()],e.prototype,"errorRules",void 0),de([O()],e.prototype,"validateOn",void 0),de([O({type:Boolean})],e.prototype,"validateAtRender",void 0),de([O()],e.prototype,"label",void 0),de([O({type:Boolean})],e.prototype,"hideLabel",void 0),de([O()],e.prototype,"name",void 0),de([O({type:Boolean})],e.prototype,"disabled",void 0),de([O()],e.prototype,"helperText",void 0),de([O()],e.prototype,"forceStatus",void 0),de([O({reflect:!0})],e.prototype,"value",void 0),de([q()],e.prototype,"errorMessages",void 0),de([q()],e.prototype,"warningMessages",void 0),de([q()],e.prototype,"status",void 0),de([q()],e.prototype,"focused",void 0),de([q()],e.prototype,"additionalWarningRules",void 0),de([q()],e.prototype,"additionalErrorRules",void 0),e});var oo=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),oo(n,e);return!0},gn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Cl=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),lf(e)}};function sf(t){this._$AN!==void 0?(gn(this),this._$AM=t,Cl(this)):this._$AM=t}function cf(t,e=!1,o=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=o;i<n.length;i++)oo(n[i],!1),gn(n[i]);else n!=null&&(oo(n,!1),gn(n));else oo(this,t)}var lf=t=>{t.type==Fe.CHILD&&(t._$AP??=cf,t._$AQ??=sf)},bn=class extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Cl(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(oo(this,e),gn(this))}setValue(e){if(bs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var El;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(El||(El={}));var df={sm:640,md:768,lg:1024,xl:1280},Pi=class extends bn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,a]){return this.lastArgs=[o,n,a],this.render(o,n,a)}render(e,o,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:df[e]}},Jv=Ie(Pi);var ki,Di,Mi,Bi,Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Mi=(Di=(ki=window.safari)===null||ki===void 0?void 0:ki.pushNotification)===null||Di===void 0?void 0:Di.toString())!==null&&Mi!==void 0?Mi:"")==="[object SafariRemoteNotification]",uf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Bi=window.ftGlobals)!==null&&Bi!==void 0?Bi:{lit:Kn,litDecorators:qn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ea,wcUtils:{...la,...ra,...ha,...Ri,...ya,...ma,...va,...ca,...Ma,...Ni,...vl,...Si,...xa,...Wa,...wi,...Fa,...rc,...aa,...ja,...Sa,...Va,...Sl,...nc,...Ka,...bi,..._i,...Ba,...$a,...Ci,...ua,isSafari:Ui,isTouchScreen:uf,setVariable:w}};var $i={outlineColor:r.extend("--ft-reader-internal-link-outline-color","",K.colorPrimary)},Al=D`
86
86
  :host {
87
87
  display: contents;
88
88
  }
@@ -95,11 +95,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
95
95
  text-decoration: none;
96
96
  color: inherit;
97
97
  }
98
- `;var V0={},Al=D`
98
+ `;var V0={},wl=D`
99
99
  ft-reader-internal-link {
100
100
  ${w($i.outlineColor,"transparent")}
101
101
  }
102
- `;var wl=r.extend("--ft-ripple-color","",K.colorContent),_={color:wl,backgroundColor:r.extend("--ft-ripple-background-color","",wl),opacityContentOnSurfacePressed:r.external(K.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(K.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(K.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(K.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Rl=r.extend("--ft-ripple-color","",K.colorPrimary),Tl={color:Rl,backgroundColor:r.extend("--ft-ripple-background-color","",Rl)},_l=r.extend("--ft-ripple-color","",K.colorSecondary),Ll={color:_l,backgroundColor:r.extend("--ft-ripple-background-color","",_l)},Nl=D`
102
+ `;var Rl=r.extend("--ft-ripple-color","",K.colorContent),_={color:Rl,backgroundColor:r.extend("--ft-ripple-background-color","",Rl),opacityContentOnSurfacePressed:r.external(K.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(K.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(K.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(K.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Tl=r.extend("--ft-ripple-color","",K.colorPrimary),_l={color:Tl,backgroundColor:r.extend("--ft-ripple-background-color","",Tl)},Ll=r.extend("--ft-ripple-color","",K.colorSecondary),Nl={color:Ll,backgroundColor:r.extend("--ft-ripple-background-color","",Ll)},Il=D`
103
103
  :host {
104
104
  display: contents;
105
105
  }
@@ -154,19 +154,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
154
154
  }
155
155
 
156
156
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
157
- background-color: ${Ll.backgroundColor};
157
+ background-color: ${Nl.backgroundColor};
158
158
  }
159
159
 
160
160
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
161
- background-color: ${Ll.color};
161
+ background-color: ${Nl.color};
162
162
  }
163
163
 
164
164
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
165
- background-color: ${Tl.backgroundColor};
165
+ background-color: ${_l.backgroundColor};
166
166
  }
167
167
 
168
168
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
169
- background-color: ${Tl.color};
169
+ background-color: ${_l.color};
170
170
  }
171
171
 
172
172
  .ft-ripple .ft-ripple--background {
@@ -211,7 +211,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
211
211
  opacity: ${_.opacityContentOnSurfacePressed};
212
212
  transform: translate(-50%, -50%) scale(1);
213
213
  }
214
- `;function Il(t,e){let o=dt[t];return D`
214
+ `;function Pl(t,e){let o=dt[t];return D`
215
215
  ${e?Le(e):D`.ft-typography--${Le(t)}`} {
216
216
  font-family: ${o.fontFamily};
217
217
  font-size: ${o.fontSize};
@@ -221,7 +221,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
221
221
  text-decoration: ${o.textDecoration};
222
222
  text-transform: ${o.textCase};
223
223
  }
224
- `}var Pl=r.extend("--ft-typography-font-family","",K.titleFont),at=r.extend("--ft-typography-font-family","",K.contentFont),B={fontFamily:at,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gr={fontFamily:r.extend("--ft-typography-title-font-family","",Pl),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},br={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Pl),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},xr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",at),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},vr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",at),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Sr={fontFamily:r.extend("--ft-typography-body1-font-family","",at),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Or={fontFamily:r.extend("--ft-typography-body2-font-family","",at),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Cr={fontFamily:r.extend("--ft-typography-caption-font-family","",at),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Er={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",at),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-overline-font-family","",at),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},je={fontFamily:r.extend("--ft-typography-button-font-family","",at),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},kl=D`
224
+ `}var kl=r.extend("--ft-typography-font-family","",K.titleFont),at=r.extend("--ft-typography-font-family","",K.contentFont),B={fontFamily:at,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gr={fontFamily:r.extend("--ft-typography-title-font-family","",kl),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},br={fontFamily:r.extend("--ft-typography-title-dense-font-family","",kl),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},xr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",at),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},vr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",at),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Sr={fontFamily:r.extend("--ft-typography-body1-font-family","",at),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Or={fontFamily:r.extend("--ft-typography-body2-font-family","",at),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Cr={fontFamily:r.extend("--ft-typography-caption-font-family","",at),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Er={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",at),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-overline-font-family","",at),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},je={fontFamily:r.extend("--ft-typography-button-font-family","",at),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Dl=D`
225
225
  .ft-typography--title {
226
226
  font-family: ${gr.fontFamily};
227
227
  font-size: ${gr.fontSize};
@@ -230,7 +230,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
230
230
  line-height: ${gr.lineHeight};
231
231
  text-transform: ${gr.textTransform};
232
232
  }
233
- `,Dl=D`
233
+ `,Ml=D`
234
234
  .ft-typography--title-dense {
235
235
  font-family: ${br.fontFamily};
236
236
  font-size: ${br.fontSize};
@@ -239,7 +239,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
239
239
  line-height: ${br.lineHeight};
240
240
  text-transform: ${br.textTransform};
241
241
  }
242
- `,Ml=D`
242
+ `,Bl=D`
243
243
  .ft-typography--subtitle1 {
244
244
  font-family: ${xr.fontFamily};
245
245
  font-size: ${xr.fontSize};
@@ -248,7 +248,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
248
248
  line-height: ${xr.lineHeight};
249
249
  text-transform: ${xr.textTransform};
250
250
  }
251
- `,Bl=D`
251
+ `,Ul=D`
252
252
  .ft-typography--subtitle2 {
253
253
  font-family: ${vr.fontFamily};
254
254
  font-size: ${vr.fontSize};
@@ -258,7 +258,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
258
258
  text-transform: ${vr.textTransform};
259
259
  }
260
260
 
261
- `,Ul=D`
261
+ `,$l=D`
262
262
  .ft-typography--body1 {
263
263
  font-family: ${Sr.fontFamily};
264
264
  font-size: ${Sr.fontSize};
@@ -267,7 +267,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
267
267
  line-height: ${Sr.lineHeight};
268
268
  text-transform: ${Sr.textTransform};
269
269
  }
270
- `,$l=D`
270
+ `,Fl=D`
271
271
  .ft-typography--body2 {
272
272
  font-family: ${Or.fontFamily};
273
273
  font-size: ${Or.fontSize};
@@ -276,7 +276,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
276
276
  line-height: ${Or.lineHeight};
277
277
  text-transform: ${Or.textTransform};
278
278
  }
279
- `,Fl=D`
279
+ `,Hl=D`
280
280
  .ft-typography--caption {
281
281
  font-family: ${Cr.fontFamily};
282
282
  font-size: ${Cr.fontSize};
@@ -285,7 +285,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
285
285
  line-height: ${Cr.lineHeight};
286
286
  text-transform: ${Cr.textTransform};
287
287
  }
288
- `,Hl=D`
288
+ `,Wl=D`
289
289
  .ft-typography--breadcrumb {
290
290
  font-family: ${Er.fontFamily};
291
291
  font-size: ${Er.fontSize};
@@ -294,7 +294,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
294
294
  line-height: ${Er.lineHeight};
295
295
  text-transform: ${Er.textTransform};
296
296
  }
297
- `,Wl=D`
297
+ `,zl=D`
298
298
  .ft-typography--overline {
299
299
  font-family: ${Ar.fontFamily};
300
300
  font-size: ${Ar.fontSize};
@@ -303,7 +303,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
303
303
  line-height: ${Ar.lineHeight};
304
304
  text-transform: ${Ar.textTransform};
305
305
  }
306
- `,zl=D`
306
+ `,Gl=D`
307
307
  .ft-typography--button {
308
308
  font-family: ${je.fontFamily};
309
309
  font-size: ${je.fontSize};
@@ -312,11 +312,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
312
312
  line-height: ${je.lineHeight};
313
313
  text-transform: ${je.textTransform};
314
314
  }
315
- `,Gl=D`
315
+ `,jl=D`
316
316
  .ft-typography {
317
317
  vertical-align: inherit;
318
318
  }
319
- `,jl=[Object.keys(dt).map(t=>Il(t))];var ee={color:r.extend("--ft-loader-color","",K.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},Vl=D`
319
+ `,Vl=[Object.keys(dt).map(t=>Pl(t))];var ee={color:r.extend("--ft-loader-color","",K.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},Kl=D`
320
320
  :host {
321
321
  line-height: 0;
322
322
  }
@@ -385,7 +385,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
385
385
  transform: translate(calc(0.35 * ${ee.size}), 0);
386
386
  }
387
387
  }
388
- `;var ye={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Kl=[D`
388
+ `;var ye={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Zl=[D`
389
389
  :host, i.ft-icon {
390
390
  display: inline-flex;
391
391
  align-items: center;
@@ -433,7 +433,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
433
433
  .ft-icon--material {
434
434
  font-family: ${ye.materialFontFamily}, "Material Icons", sans-serif;
435
435
  }
436
- `,kt];var Zl=r.extend("--ft-button-color","",K.colorPrimary),ce={backgroundColor:r.extend("--ft-button-background-color","",K.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",K.borderRadiusL),color:Zl,fontSize:r.extend("--ft-button-font-size","",je.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",Zl),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(K.colorOpacityDisabled,"Design system")},ql=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",K.colorOnPrimary)),Fi={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",K.colorPrimary)),color:ql,rippleColor:r.extend("--ft-button-primary-ripple-color","",ql)},Ve={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",K.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},Yl=[D`
436
+ `,kt];var ql=r.extend("--ft-button-color","",K.colorPrimary),ce={backgroundColor:r.extend("--ft-button-background-color","",K.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",K.borderRadiusL),color:ql,fontSize:r.extend("--ft-button-font-size","",je.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",ql),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(K.colorOpacityDisabled,"Design system")},Yl=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",K.colorOnPrimary)),Fi={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",K.colorPrimary)),color:Yl,rippleColor:r.extend("--ft-button-primary-ripple-color","",Yl)},Ve={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",K.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xl=[D`
437
437
  :host {
438
438
  display: inline-block;
439
439
  max-width: 100%;
@@ -581,7 +581,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
581
581
  <div class="ft-ripple--background"></div>
582
582
  <div class="ft-ripple--effect"></div>
583
583
  </div>
584
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>d=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Nl;be([O({type:Boolean})],re.prototype,"primary",void 0);be([O({type:Boolean})],re.prototype,"secondary",void 0);be([O({type:Boolean})],re.prototype,"unbounded",void 0);be([O({type:Boolean})],re.prototype,"activated",void 0);be([O({type:Boolean})],re.prototype,"selected",void 0);be([O({type:Boolean})],re.prototype,"disabled",void 0);be([q()],re.prototype,"hovered",void 0);be([q()],re.prototype,"focused",void 0);be([q()],re.prototype,"pressed",void 0);be([q()],re.prototype,"rippling",void 0);be([q()],re.prototype,"originX",void 0);be([q()],re.prototype,"originY",void 0);be([me(".ft-ripple")],re.prototype,"ripple",void 0);be([me(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0);te("ft-ripple")(re);var Jl=Symbol.for(""),pf=t=>{if(t?.r===Jl)return t?._$litStatic$},wr=t=>({_$litStatic$:t,r:Jl});var Xl=new Map,Hi=t=>(e,...o)=>{let n=o.length,a,i,s=[],c=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(i=o[p],(a=pf(i))!==void 0);)d+=a+e[++p],h=!0;p!==n&&c.push(i),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Xl.get(f))===void 0&&(s.raw=s,Xl.set(f,e=s)),o=c}return t(e,...o)},Rr=Hi(W),rO=Hi(Wn),oO=Hi(zn);var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var Ql=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},De=class extends Z{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?Rr`
584
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>d=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Il;be([O({type:Boolean})],re.prototype,"primary",void 0);be([O({type:Boolean})],re.prototype,"secondary",void 0);be([O({type:Boolean})],re.prototype,"unbounded",void 0);be([O({type:Boolean})],re.prototype,"activated",void 0);be([O({type:Boolean})],re.prototype,"selected",void 0);be([O({type:Boolean})],re.prototype,"disabled",void 0);be([q()],re.prototype,"hovered",void 0);be([q()],re.prototype,"focused",void 0);be([q()],re.prototype,"pressed",void 0);be([q()],re.prototype,"rippling",void 0);be([q()],re.prototype,"originX",void 0);be([q()],re.prototype,"originY",void 0);be([me(".ft-ripple")],re.prototype,"ripple",void 0);be([me(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0);te("ft-ripple")(re);var Ql=Symbol.for(""),pf=t=>{if(t?.r===Ql)return t?._$litStatic$},wr=t=>({_$litStatic$:t,r:Ql});var Jl=new Map,Hi=t=>(e,...o)=>{let n=o.length,a,i,s=[],c=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(i=o[p],(a=pf(i))!==void 0);)d+=a+e[++p],h=!0;p!==n&&c.push(i),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Jl.get(f))===void 0&&(s.raw=s,Jl.set(f,e=s)),o=c}return t(e,...o)},Rr=Hi(W),rO=Hi(Wn),oO=Hi(zn);var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var ed=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},De=class extends Z{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?Rr`
585
585
  <${wr(this.element)}
586
586
  part="text"
587
587
  class="ft-typography ft-typography--${this.variant}">
@@ -589,7 +589,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
589
589
  </${wr(this.element)}>
590
590
  `:Rr`
591
591
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
592
- `}};De.styles=[kl,Dl,Ml,Bl,Ul,$l,Fl,Hl,Wl,zl,Gl,...jl];Ql([O()],De.prototype,"element",void 0);Ql([O()],De.prototype,"variant",void 0);var St;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(St||(St={}));function ff(t,e){let o=dt[t];return D`
592
+ `}};De.styles=[Dl,Ml,Bl,Ul,$l,Fl,Hl,Wl,zl,Gl,jl,...Vl];ed([O()],De.prototype,"element",void 0);ed([O()],De.prototype,"variant",void 0);var St;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(St||(St={}));function ff(t,e){let o=dt[t];return D`
593
593
  ${e?Le(e):D`.ftds-typography--${Le(t)}`} {
594
594
  font-family: ${o.fontFamily};
595
595
  font-size: ${o.fontSize};
@@ -599,7 +599,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
599
599
  text-decoration: ${o.textDecoration};
600
600
  text-transform: ${o.textCase};
601
601
  }
602
- `}var ed=[Object.keys(dt).map(t=>ff(t))];var td=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},it=class extends Z{constructor(){super(...arguments),this.variant=St.body2medium}render(){return this.element?Rr`
602
+ `}var td=[Object.keys(dt).map(t=>ff(t))];var rd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},it=class extends Z{constructor(){super(...arguments),this.variant=St.body2medium}render(){return this.element?Rr`
603
603
  <${wr(this.element)}
604
604
  part="text"
605
605
  class="ftds-typography ftds-typography--${this.variant}">
@@ -607,7 +607,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
607
607
  </${wr(this.element)}>
608
608
  `:Rr`
609
609
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
610
- `}};it.styles=[...ed];td([O()],it.prototype,"element",void 0);td([O()],it.prototype,"variant",void 0);te("ft-typography")(De);te("ftds-typography")(it);var Tr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",K.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},rd=D`
610
+ `}};it.styles=[...td];rd([O()],it.prototype,"element",void 0);rd([O()],it.prototype,"variant",void 0);te("ft-typography")(De);te("ftds-typography")(it);var Tr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",K.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},od=D`
611
611
  .ft-tooltip--container {
612
612
  display: block;
613
613
  }
@@ -636,10 +636,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
636
636
  position: relative;
637
637
  word-break: break-word;
638
638
  }
639
- `;var od=D`
640
- `;var hf="ft-app-info",zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};zt.eventName="authentication-change";var yf={session:(t,e)=>{xe(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new zt(e.payload)),0))}},P=$t.get({name:hf,reducers:yf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Gt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var xn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Gt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Gt.await()}};var Oe=class extends xn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new He,this.cache=e?a.commonCache:new He}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var vn=class extends Oe{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wi;var nd,_r=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},mf=Symbol("clearAfterUnitTest"),Sn=class extends wo(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[nd]=()=>{this.defaultMessages={},this.cache=new He,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 o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};xe(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Xr((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof Tt)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new _r({loadedContexts:e})),this.dispatchEvent(new _r({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new _r({loadedContexts:[e]})),this.dispatchEvent(new _r({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Eo(0).then(()=>n()).catch(()=>null)))}};nd=mf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var no=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var Gi=class{highlightHtml(e,o,n){Ga(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Gi;var On=class extends Oe{async listMySearches(){let{session:e}=P.getState();return ml(e,ne.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ji=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Ft.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ji;var ao=class{static get(e,o){var n,a;let i=P.getState(),{lang:s,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new yr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var Vi=class{urlToSearchRequest(e){return ao.get().parse(e)}searchRequestToUrl(e){return ao.get().serialize(e)}};window.FluidTopicsUrlService=new Vi;var jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};jt.eventName="change";var Ki=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},ad=new Ki;var Cn=class t extends Qe{static build(){return new t(window.history,ad,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),xe(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new jt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(jt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(jt.eventName,e)}currentItem(){return Hr(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 Hr(this.states[this.previousDifferentMajorPosition()])}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 Hr(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var id=P;function sd(t,e){var o;return id.getState().authenticationRequired&&!(!((o=id.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},J=class extends Z{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Gt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new He,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return W`
639
+ `;var nd=D`
640
+ `;var hf="ft-app-info",zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};zt.eventName="authentication-change";var yf={session:(t,e)=>{xe(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new zt(e.payload)),0))}},P=$t.get({name:hf,reducers:yf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Gt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var xn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Gt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Gt.await()}};var Oe=class extends xn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new He,this.cache=e?a.commonCache:new He}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var vn=class extends Oe{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wi;var ad,_r=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},mf=Symbol("clearAfterUnitTest"),Sn=class extends wo(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ad]=()=>{this.defaultMessages={},this.cache=new He,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 o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};xe(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Xr((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof Tt)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new _r({loadedContexts:e})),this.dispatchEvent(new _r({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new _r({loadedContexts:[e]})),this.dispatchEvent(new _r({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Eo(0).then(()=>n()).catch(()=>null)))}};ad=mf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var no=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var Gi=class{highlightHtml(e,o,n){Ga(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Gi;var On=class extends Oe{async listMySearches(){let{session:e}=P.getState();return gl(e,ne.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ji=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Ft.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ji;var ao=class{static get(e,o){var n,a;let i=P.getState(),{lang:s,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new yr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var Vi=class{urlToSearchRequest(e){return ao.get().parse(e)}searchRequestToUrl(e){return ao.get().serialize(e)}};window.FluidTopicsUrlService=new Vi;var jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};jt.eventName="change";var Ki=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},id=new Ki;var Cn=class t extends Qe{static build(){return new t(window.history,id,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),xe(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new jt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(jt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(jt.eventName,e)}currentItem(){return Hr(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 Hr(this.states[this.previousDifferentMajorPosition()])}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 Hr(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});function sd(t,e){let{authenticationRequired:o,session:n}=P.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},J=class extends Z{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Gt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new He,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return W`
641
641
  <slot></slot>
642
- `}connectedCallback(){super.connectedCallback(),P.addEventListener(zt.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(zt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,c,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>no.addContext(p)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};J.elementDefinitions={};J.styles=od;ae([O()],J.prototype,"baseUrl",void 0);ae([O()],J.prototype,"apiIntegrationIdentifier",void 0);ae([O()],J.prototype,"apiIntegrationAppVersion",void 0);ae([O()],J.prototype,"uiLocale",void 0);ae([we(null)],J.prototype,"availableUiLocales",void 0);ae([we(null)],J.prototype,"metadataConfiguration",void 0);ae([O({type:Boolean})],J.prototype,"editorMode",void 0);ae([O({type:Boolean})],J.prototype,"noCustom",void 0);ae([O({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);ae([O({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);ae([O({type:Boolean})],J.prototype,"withManualResources",void 0);ae([O({type:Boolean})],J.prototype,"navigatorOnline",void 0);ae([O({type:Boolean})],J.prototype,"forcedOffline",void 0);ae([O({type:Object})],J.prototype,"apiProvider",void 0);ae([O({type:Boolean})],J.prototype,"authenticationRequired",void 0);ae([we([])],J.prototype,"messageContexts",void 0);ae([we(void 0)],J.prototype,"session",void 0);ae([q()],J.prototype,"localesConfiguration",void 0);ae([q()],J.prototype,"availableContentLocales",void 0);var En=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},LE=oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>Ft.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return En([O({type:Boolean})],e.prototype,"useLongDateFormat",void 0),En([O({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),En([ft({store:P.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),En([ft({store:P.name})],e.prototype,"uiLocale",void 0),e});var An=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 wn=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 gf="ft-user-assets",bf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Te).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;qi(t,o,[...Zi(t,o),a]),cd(t,o,1,n),ld(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;qi(t,o,Zi(t,o).map(a=>a.id===n.id?n:a)),ld(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;qi(t,o,Zi(t,o).filter(i=>i.id!==a)),cd(t,o,-1,n)}},dd={[Te.SEARCHES]:"savedSearches",[Te.BOOKMARKS]:"bookmarks",[Te.BOOKS]:void 0,[Te.COLLECTIONS]:void 0},Zi=(t,e)=>{var o;let n=dd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},qi=(t,e,o)=>{let n=dd[e];n&&(t[n]=o)},cd=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Te.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},ld=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},Ce=$t.get({name:gf,reducers:bf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Te).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yi=class{constructor(e=new An,o=new wn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vn,this.savedSearchesService=new On,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();xe((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ce.actions.clearAssetCount(),Ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ce.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ce.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Ce.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Ce.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Ce.getState().assetCounts.bookmarkByMap).length!==0;e===Te.BOOKMARKS&&o&&Ce.actions.clearBookmarkCountByMap(),Ce.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ce.actions.bookmarks(o)}}},xf=new Yi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xf);te("ft-app-context")(J);var Xi=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[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Lr=new Xi;var vf=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},so=Symbol("i18nAttributes"),ud=Symbol("i18nListAttributes"),pd=Symbol("i18nProperties"),Rn=Symbol("i18nContexts"),io=Symbol("i18nUnsubs"),fd=oe(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?zi:no}i18n(i){let{context:s,key:c,message:d}=i,{custom:p,args:h,argsProvider:f}=i;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let y=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,c,...y)}return d}async awaitI18n(i){let{context:s,custom:c}=i;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Lr.isI18nKey(i)){let[c,d]=i.split(".");return this.i18n({custom:!0,context:c,key:d,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,d)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,c;let d=this,p=(h,f,y)=>y?.context&&y.key&&i(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[so])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(c=this[ud])===null||c===void 0||c.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>p(h,f,x))})}updateI18nProperties(i){var s;(s=this[pd])===null||s===void 0||s.forEach((c,d)=>{i(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(i,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,c)}addI18nContext(i,s,c){let d=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Rn].set(d,{isCustomContext:c}),this[io].has(d)||this[io].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(i){return this[Rn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Rn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[io].forEach(i=>i()),this[io].clear()}}return e=Rn,o=io,vf([O({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Tn=class extends fd(Z){},_n=class extends fd(Mt){};var Ji=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Lr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Sf=new Ji;var hd=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Je,converter:Lr,...e}),o[so]=(a=o[so])!==null&&a!==void 0?a:new Map,o[so].set(n,t??{})};var yd=D`
642
+ `}connectedCallback(){super.connectedCallback(),P.addEventListener(zt.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(zt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,c,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>no.addContext(p)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};J.elementDefinitions={};J.styles=nd;ae([O()],J.prototype,"baseUrl",void 0);ae([O()],J.prototype,"apiIntegrationIdentifier",void 0);ae([O()],J.prototype,"apiIntegrationAppVersion",void 0);ae([O()],J.prototype,"uiLocale",void 0);ae([we(null)],J.prototype,"availableUiLocales",void 0);ae([we(null)],J.prototype,"metadataConfiguration",void 0);ae([O({type:Boolean})],J.prototype,"editorMode",void 0);ae([O({type:Boolean})],J.prototype,"noCustom",void 0);ae([O({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);ae([O({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);ae([O({type:Boolean})],J.prototype,"withManualResources",void 0);ae([O({type:Boolean})],J.prototype,"navigatorOnline",void 0);ae([O({type:Boolean})],J.prototype,"forcedOffline",void 0);ae([O({type:Object})],J.prototype,"apiProvider",void 0);ae([O({type:Boolean})],J.prototype,"authenticationRequired",void 0);ae([we([])],J.prototype,"messageContexts",void 0);ae([we(void 0)],J.prototype,"session",void 0);ae([q()],J.prototype,"localesConfiguration",void 0);ae([q()],J.prototype,"availableContentLocales",void 0);var En=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},LE=oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>Ft.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return En([O({type:Boolean})],e.prototype,"useLongDateFormat",void 0),En([O({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),En([ft({store:P.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),En([ft({store:P.name})],e.prototype,"uiLocale",void 0),e});var An=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 wn=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 gf="ft-user-assets",bf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Te).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;qi(t,o,[...Zi(t,o),a]),cd(t,o,1,n),ld(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;qi(t,o,Zi(t,o).map(a=>a.id===n.id?n:a)),ld(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;qi(t,o,Zi(t,o).filter(i=>i.id!==a)),cd(t,o,-1,n)}},dd={[Te.SEARCHES]:"savedSearches",[Te.BOOKMARKS]:"bookmarks",[Te.BOOKS]:void 0,[Te.COLLECTIONS]:void 0},Zi=(t,e)=>{var o;let n=dd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},qi=(t,e,o)=>{let n=dd[e];n&&(t[n]=o)},cd=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Te.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},ld=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},Ce=$t.get({name:gf,reducers:bf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Te).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yi=class{constructor(e=new An,o=new wn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vn,this.savedSearchesService=new On,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();xe((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ce.actions.clearAssetCount(),Ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ce.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ce.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Ce.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Ce.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Ce.getState().assetCounts.bookmarkByMap).length!==0;e===Te.BOOKMARKS&&o&&Ce.actions.clearBookmarkCountByMap(),Ce.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ce.actions.bookmarks(o)}}},xf=new Yi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xf);te("ft-app-context")(J);var Xi=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[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Lr=new Xi;var vf=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},so=Symbol("i18nAttributes"),ud=Symbol("i18nListAttributes"),pd=Symbol("i18nProperties"),Rn=Symbol("i18nContexts"),io=Symbol("i18nUnsubs"),fd=oe(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?zi:no}i18n(i){let{context:s,key:c,message:d}=i,{custom:p,args:h,argsProvider:f}=i;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let y=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,c,...y)}return d}async awaitI18n(i){let{context:s,custom:c}=i;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Lr.isI18nKey(i)){let[c,d]=i.split(".");return this.i18n({custom:!0,context:c,key:d,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,d)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,c;let d=this,p=(h,f,y)=>y?.context&&y.key&&i(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[so])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(c=this[ud])===null||c===void 0||c.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>p(h,f,x))})}updateI18nProperties(i){var s;(s=this[pd])===null||s===void 0||s.forEach((c,d)=>{i(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(i,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,c)}addI18nContext(i,s,c){let d=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Rn].set(d,{isCustomContext:c}),this[io].has(d)||this[io].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(i){return this[Rn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Rn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[io].forEach(i=>i()),this[io].clear()}}return e=Rn,o=io,vf([O({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Tn=class extends fd(Z){},_n=class extends fd(Mt){};var Ji=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Lr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Sf=new Ji;var hd=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Je,converter:Lr,...e}),o[so]=(a=o[so])!==null&&a!==void 0?a:new Map,o[so].set(n,t??{})};var yd=D`
643
643
  `;var co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Me=class extends _n{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:W`
644
644
  <span class="ft-i18n">
645
645
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -659,19 +659,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
659
659
  </div>
660
660
  </div>
661
661
  </div>
662
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Da(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${K.transitionDuration}, left ${K.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||oa(e,this.ignoreMatchingElements,this.eventsTarget)}};ie.elementDefinitions={"ft-typography":De};ie.styles=rd;Be([hd()],ie.prototype,"text",void 0);Be([O({type:Boolean})],ie.prototype,"manual",void 0);Be([O({type:Boolean})],ie.prototype,"inline",void 0);Be([Ro()],ie.prototype,"delay",void 0);Be([O()],ie.prototype,"position",void 0);Be([we([])],ie.prototype,"ignoreMatchingElements",void 0);Be([Zn()],ie.prototype,"slotNodes",void 0);Be([me(".ft-tooltip--container")],ie.prototype,"container",void 0);Be([me(".ft-tooltip")],ie.prototype,"tooltip",void 0);Be([me(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);Be([q()],ie.prototype,"visible",void 0);te("ft-tooltip")(ie);var Vt;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Vt||(Vt={}));var L;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(L||(L={}));var rw=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var ow={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Ke;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ke||(Ke={}));var lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ee=class extends Z{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=H}render(){let e=this.variant&&Object.values(Ke).includes(this.variant)?this.variant:Ke.fluid_topics,o=e!==Ke.material||!!this.value;return W`
662
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Da(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${K.transitionDuration}, left ${K.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||oa(e,this.ignoreMatchingElements,this.eventsTarget)}};ie.elementDefinitions={"ft-typography":De};ie.styles=od;Be([hd()],ie.prototype,"text",void 0);Be([O({type:Boolean})],ie.prototype,"manual",void 0);Be([O({type:Boolean})],ie.prototype,"inline",void 0);Be([Ro()],ie.prototype,"delay",void 0);Be([O()],ie.prototype,"position",void 0);Be([we([])],ie.prototype,"ignoreMatchingElements",void 0);Be([Zn()],ie.prototype,"slotNodes",void 0);Be([me(".ft-tooltip--container")],ie.prototype,"container",void 0);Be([me(".ft-tooltip")],ie.prototype,"tooltip",void 0);Be([me(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);Be([q()],ie.prototype,"visible",void 0);te("ft-tooltip")(ie);var Vt;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Vt||(Vt={}));var L;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(L||(L={}));var rw=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var ow={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Ke;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ke||(Ke={}));var lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ee=class extends Z{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=H}render(){let e=this.variant&&Object.values(Ke).includes(this.variant)?this.variant:Ke.fluid_topics,o=e!==Ke.material||!!this.value;return W`
663
663
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
664
664
  ${Qn(this.resolvedIcon)}
665
665
  <slot ?hidden=${o}></slot>
666
666
  </i>
667
- `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Ke.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ke.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(o=Vt[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ee.elementDefinitions={};Ee.styles=Kl;lo([O()],Ee.prototype,"variant",void 0);lo([O()],Ee.prototype,"value",void 0);lo([O({reflect:!0,attribute:"aria-hidden"})],Ee.prototype,"ariaHidden",void 0);lo([q()],Ee.prototype,"resolvedIcon",void 0);lo([me("slot")],Ee.prototype,"slottedContent",void 0);te("ft-icon")(Ee);var Kt=class extends Z{render(){return W`
667
+ `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Ke.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ke.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(o=Vt[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ee.elementDefinitions={};Ee.styles=Zl;lo([O()],Ee.prototype,"variant",void 0);lo([O()],Ee.prototype,"value",void 0);lo([O({reflect:!0,attribute:"aria-hidden"})],Ee.prototype,"ariaHidden",void 0);lo([q()],Ee.prototype,"resolvedIcon",void 0);lo([me("slot")],Ee.prototype,"slottedContent",void 0);te("ft-icon")(Ee);var Kt=class extends Z{render(){return W`
668
668
  <div class="ft-loader">
669
669
  <div></div>
670
670
  <div></div>
671
671
  <div></div>
672
672
  <div></div>
673
673
  </div>
674
- `}};Kt.styles=Vl;te("ft-loader")(Kt);var Qi=t=>t??H;var se=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends Ai(Z){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,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.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=W`
674
+ `}};Kt.styles=Kl;te("ft-loader")(Kt);var Qi=t=>t??H;var se=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends Ai(Z){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,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.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=W`
675
675
  <ft-ripple part="ripple"
676
676
  ?disabled=${this.isDisabled()}
677
677
  ?activated=${this.activated}
@@ -713,7 +713,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
713
713
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
714
714
  `:W`
715
715
  <slot part="icon" name="icon"></slot>
716
- `}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,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Ao(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":re,"ft-tooltip":ie,"ft-icon":Ee,"ft-loader":Kt};se([O()],Y.prototype,"href",void 0);se([O()],Y.prototype,"target",void 0);se([O()],Y.prototype,"type",void 0);se([O({type:Boolean})],Y.prototype,"disabled",void 0);se([O()],Y.prototype,"label",void 0);se([O()],Y.prototype,"icon",void 0);se([O()],Y.prototype,"iconVariant",void 0);se([O({type:Boolean})],Y.prototype,"trailingIcon",void 0);se([O({type:Boolean})],Y.prototype,"loading",void 0);se([O({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);se([O()],Y.prototype,"ariaHasPopup",void 0);se([O({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);se([O()],Y.prototype,"tooltipPosition",void 0);se([O({type:Boolean})],Y.prototype,"hideTooltip",void 0);se([O({type:Boolean})],Y.prototype,"forceTooltip",void 0);se([O({type:Boolean})],Y.prototype,"activated",void 0);se([me(".ft-button")],Y.prototype,"button",void 0);se([me(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);se([me("[part=tooltip]")],Y.prototype,"tooltip",void 0);var Ln=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},_e=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return vt.button}};_e.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":De};_e.styles=[Yr,Yl];Ln([O({type:Boolean})],_e.prototype,"primary",void 0);Ln([O({type:Boolean})],_e.prototype,"outlined",void 0);Ln([O({type:Boolean})],_e.prototype,"dense",void 0);Ln([O({type:Boolean})],_e.prototype,"round",void 0);var Of={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},md=[D`
716
+ `}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,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Ao(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":re,"ft-tooltip":ie,"ft-icon":Ee,"ft-loader":Kt};se([O()],Y.prototype,"href",void 0);se([O()],Y.prototype,"target",void 0);se([O()],Y.prototype,"type",void 0);se([O({type:Boolean})],Y.prototype,"disabled",void 0);se([O()],Y.prototype,"label",void 0);se([O()],Y.prototype,"icon",void 0);se([O()],Y.prototype,"iconVariant",void 0);se([O({type:Boolean})],Y.prototype,"trailingIcon",void 0);se([O({type:Boolean})],Y.prototype,"loading",void 0);se([O({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);se([O()],Y.prototype,"ariaHasPopup",void 0);se([O({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);se([O()],Y.prototype,"tooltipPosition",void 0);se([O({type:Boolean})],Y.prototype,"hideTooltip",void 0);se([O({type:Boolean})],Y.prototype,"forceTooltip",void 0);se([O({type:Boolean})],Y.prototype,"activated",void 0);se([me(".ft-button")],Y.prototype,"button",void 0);se([me(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);se([me("[part=tooltip]")],Y.prototype,"tooltip",void 0);var Ln=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},_e=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return vt.button}};_e.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":De};_e.styles=[Yr,Xl];Ln([O({type:Boolean})],_e.prototype,"primary",void 0);Ln([O({type:Boolean})],_e.prototype,"outlined",void 0);Ln([O({type:Boolean})],_e.prototype,"dense",void 0);Ln([O({type:Boolean})],_e.prototype,"round",void 0);var Of={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},md=[D`
717
717
  :host {
718
718
  display: inline-block;
719
719
  max-width: 100%;
@@ -1189,7 +1189,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1189
1189
  @click=${n=>this.onLinkClick(n)}>
1190
1190
  <slot></slot>
1191
1191
  </a>
1192
- `}onLinkClick(e){var o,n,a;!e.ctrlKey&&!e.metaKey&&(e.stopPropagation(),e.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(o=this.stateManager)===null||o===void 0||o.navigateToTopic(this.tocId,this.section,this.pageNumber),(n=this.stateManager)===null||n===void 0||n.store.commands.clear(/^focus-topic-/),(a=this.stateManager)===null||a===void 0||a.store.commands.add({type:`focus-topic-${this.tocId}`}),this.click())}};Ue.styles=El;In([O()],Ue.prototype,"tocId",void 0);In([O()],Ue.prototype,"section",void 0);In([O({type:Number})],Ue.prototype,"pageNumber",void 0);In([O({type:Boolean})],Ue.prototype,"removeStyle",void 0);te("ft-reader-internal-link")(Ue);var qe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fe=class extends Nr{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new he(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return this.target==="next"?Vt.THIN_ARROW_RIGHT:Vt.THIN_ARROW_LEFT}render(){var e,o,n,a,i,s;if(this.targetPage==null&&!this.editorMode)return H;let c=W`
1192
+ `}onLinkClick(e){var o,n,a;!e.ctrlKey&&!e.metaKey&&(e.stopPropagation(),e.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(o=this.stateManager)===null||o===void 0||o.navigateToTopic(this.tocId,this.section,this.pageNumber),(n=this.stateManager)===null||n===void 0||n.store.commands.clear(/^focus-topic-/),(a=this.stateManager)===null||a===void 0||a.store.commands.add({type:`focus-topic-${this.tocId}`}),this.click())}};Ue.styles=Al;In([O()],Ue.prototype,"tocId",void 0);In([O()],Ue.prototype,"section",void 0);In([O({type:Number})],Ue.prototype,"pageNumber",void 0);In([O({type:Boolean})],Ue.prototype,"removeStyle",void 0);te("ft-reader-internal-link")(Ue);var qe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fe=class extends Nr{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new he(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return this.target==="next"?Vt.THIN_ARROW_RIGHT:Vt.THIN_ARROW_LEFT}render(){var e,o,n,a,i,s;if(this.targetPage==null&&!this.editorMode)return H;let c=W`
1193
1193
  <ft-button ?forceTooltip=${!this.hideTooltip}
1194
1194
  ?hideTooltip=${this.hideTooltip}
1195
1195
  ?trailingIcon=${this.trailingIcon}
@@ -1205,7 +1205,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1205
1205
  .pageNumber=${(s=this.targetPage)===null||s===void 0?void 0:s.number} >
1206
1206
  ${c}
1207
1207
  </ft-reader-internal-link>
1208
- `}update(e){super.update(e),e.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run(()=>this.updateTarget()))}async updateTarget(){var e,o;if(this.currentPage){let n=this.currentPage.number+(this.target==="next"?1:-1);this.targetPage=await((e=this.service)===null||e===void 0?void 0:e.getPage(n)),((o=this.targetPage)===null||o===void 0?void 0:o.number)!==n&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}};fe.elementDefinitions={"ft-button":_e,"ft-reader-internal-link":Ue};fe.styles=Al;qe([O()],fe.prototype,"target",void 0);qe([O()],fe.prototype,"content",void 0);qe([O()],fe.prototype,"tooltipPosition",void 0);qe([O({type:Boolean})],fe.prototype,"hideTooltip",void 0);qe([O()],fe.prototype,"iconVariant",void 0);qe([O()],fe.prototype,"icon",void 0);qe([O({type:Boolean})],fe.prototype,"trailingIcon",void 0);qe([O({type:Boolean,attribute:!1})],fe.prototype,"editorMode",void 0);qe([ft()],fe.prototype,"currentPage",void 0);qe([q()],fe.prototype,"targetPage",void 0);te("ft-reader-navigation-button")(fe);})();
1208
+ `}update(e){super.update(e),e.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run(()=>this.updateTarget()))}async updateTarget(){var e,o;if(this.currentPage){let n=this.currentPage.number+(this.target==="next"?1:-1);this.targetPage=await((e=this.service)===null||e===void 0?void 0:e.getPage(n)),((o=this.targetPage)===null||o===void 0?void 0:o.number)!==n&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}};fe.elementDefinitions={"ft-button":_e,"ft-reader-internal-link":Ue};fe.styles=wl;qe([O()],fe.prototype,"target",void 0);qe([O()],fe.prototype,"content",void 0);qe([O()],fe.prototype,"tooltipPosition",void 0);qe([O({type:Boolean})],fe.prototype,"hideTooltip",void 0);qe([O()],fe.prototype,"iconVariant",void 0);qe([O()],fe.prototype,"icon",void 0);qe([O({type:Boolean})],fe.prototype,"trailingIcon",void 0);qe([O({type:Boolean,attribute:!1})],fe.prototype,"editorMode",void 0);qe([ft()],fe.prototype,"currentPage",void 0);qe([q()],fe.prototype,"targetPage",void 0);te("ft-reader-navigation-button")(fe);})();
1209
1209
  /*! Bundled license information:
1210
1210
 
1211
1211
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: