@fluid-topics/ft-reader-toc 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.
|
@@ -564,7 +564,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
564
564
|
word-break: break-word;
|
|
565
565
|
}
|
|
566
566
|
`;var as=["top","right","bottom","left"],ns=["start","end"],Un=as.reduce((e,t)=>e.concat(t,t+"-"+ns[0],t+"-"+ns[1]),[]),is=Math.min,ss=Math.max;var ld={left:"right",right:"left",bottom:"top",top:"bottom"},cd={start:"end",end:"start"};function $n(e,t,o){return ss(e,is(t,o))}function ro(e,t){return typeof e=="function"?e(t):e}function nr(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function Fn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function oo(e){return["top","bottom"].includes(nr(e))?"y":"x"}function zn(e){return Fn(oo(e))}function ls(e,t,o){o===void 0&&(o=!1);let n=ut(e),a=zn(e),i=Hn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Mn(l)),[l,Mn(l)]}function cs(e){return e.replace(/start|end/g,t=>cd[t])}function Mn(e){return e.replace(/left|right|bottom|top/g,t=>ld[t])}function dd(e){return{top:0,right:0,bottom:0,left:0,...e}}function ds(e){return typeof e!="number"?dd(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function ps(e,t,o){let{reference:n,floating:a}=e,i=oo(t),l=zn(t),c=Hn(l),p=nr(t),u=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,S;switch(p){case"top":S={x:y,y:n.y-a.height};break;case"bottom":S={x:y,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(ut(t)){case"start":S[l]-=g*(o&&u?-1:1);break;case"end":S[l]+=g*(o&&u?-1:1);break}return S}var us=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:y,y:h}=ps(u,n,p),g=n,S={},v=0;for(let O=0;O<c.length;O++){let{name:T,fn:R}=c[O],{x:N,y:k,data:B,reset:M}=await R({x:y,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:u,platform:l,elements:{reference:e,floating:t}});y=N??y,h=k??h,S={...S,[T]:{...S[T],...B}},M&&v<=50&&(v++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(u=M.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:y,y:h}=ps(u,g,p)),O=-1)}return{x:y,y:h,placement:g,strategy:a,middlewareData:S}};async function Wn(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:p}=e,{boundary:u="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:g=!1,padding:S=0}=ro(t,e),v=ds(S),T=c[g?h==="floating"?"reference":"floating":h],R=Nt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:y,strategy:p})),N=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},M=Nt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:k,strategy:p}):N);return{top:(R.top-M.top+v.top)/B.y,bottom:(M.bottom-R.bottom+v.bottom)/B.y,left:(R.left-M.left+v.left)/B.x,right:(M.right-R.right+v.right)/B.x}}function pd(e,t,o){return(e?[...o.filter(a=>ut(a)===e),...o.filter(a=>ut(a)!==e)]:o.filter(a=>nr(a)===a)).filter(a=>e?ut(a)===e||(t?cs(a)!==a:!1):!0)}var Gn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:p,elements:u}=t,{crossAxis:y=!1,alignment:h,allowedPlacements:g=Un,autoAlignment:S=!0,...v}=ro(e,t),O=h!==void 0||g===Un?pd(h||null,S,g):g,T=await Wn(t,v),R=((o=l.autoPlacement)==null?void 0:o.index)||0,N=O[R];if(N==null)return{};let k=ls(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==N)return{reset:{placement:O[0]}};let B=[T[nr(N)],T[k[0]],T[k[1]]],M=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],ye=O[R+1];if(ye)return{data:{index:R+1,overflows:M},reset:{placement:ye}};let Ge=M.map(se=>{let m=ut(se.placement);return[se.placement,m&&y?se.overflows.slice(0,2).reduce((x,P)=>x+P,0):se.overflows[0],se.overflows]}).sort((se,m)=>se[1]-m[1]),je=((a=Ge.filter(se=>se[2].slice(0,ut(se[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||Ge[0][0];return je!==c?{data:{index:R+1,overflows:M},reset:{placement:je}}:{}}}};var jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...p}=ro(e,t),u={x:o,y:n},y=await Wn(t,p),h=oo(nr(a)),g=Fn(h),S=u[g],v=u[h];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=S+y[T],k=S-y[R];S=$n(N,S,k)}if(l){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",N=v+y[T],k=v-y[R];v=$n(N,v,k)}let O=c.fn({...t,[g]:S,[h]:v});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:l}}}}}};var Kn=Math.min,ar=Math.max,Ir=Math.round;var rt=e=>({x:e,y:e});function ot(e){return hs(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nt(e){var t;return(t=(hs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hs(e){return e instanceof Node||e instanceof ge(e).Node}function Ze(e){return e instanceof Element||e instanceof ge(e).Element}function Me(e){return e instanceof HTMLElement||e instanceof ge(e).HTMLElement}function fs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function ir(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function ys(e){return["table","td","th"].includes(ot(e))}function ao(e){let t=io(),o=Oe(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ms(e){let t=Lt(e);for(;Me(t)&&!_r(t);){if(ao(t))return t;t=Lt(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _r(e){return["html","body","#document"].includes(ot(e))}function Oe(e){return ge(e).getComputedStyle(e)}function Pr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(ot(e)==="html")return e;let t=e.assignedSlot||e.parentNode||fs(e)&&e.host||nt(e);return fs(t)?t.host:t}function gs(e){let t=Lt(e);return _r(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&ir(t)?t:gs(t)}function no(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=gs(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=ge(a);return i?t.concat(l,l.visualViewport||[],ir(a)?a:[],l.frameElement&&o?no(l.frameElement):[]):t.concat(a,no(a,[],o))}function vs(e){let t=Oe(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Me(e),i=a?e.offsetWidth:o,l=a?e.offsetHeight:n,c=Ir(o)!==i||Ir(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function Ss(e){return Ze(e)?e:e.contextElement}function sr(e){let t=Ss(e);if(!Me(t))return rt(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=vs(t),l=(i?Ir(o.width):o.width)/n,c=(i?Ir(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var hd=rt(0);function Cs(e){let t=ge(e);return!io()||!t.visualViewport?hd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yd(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ge(e)?!1:t}function kr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=Ss(e),l=rt(1);t&&(n?Ze(n)&&(l=sr(n)):l=sr(e));let c=yd(i,o,n)?Cs(i):rt(0),p=(a.left+c.x)/l.x,u=(a.top+c.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let g=ge(i),S=n&&Ze(n)?ge(n):n,v=g.frameElement;for(;v&&n&&S!==g;){let O=sr(v),T=v.getBoundingClientRect(),R=Oe(v),N=T.left+(v.clientLeft+parseFloat(R.paddingLeft))*O.x,k=T.top+(v.clientTop+parseFloat(R.paddingTop))*O.y;p*=O.x,u*=O.y,y*=O.x,h*=O.y,p+=N,u+=k,v=ge(v).frameElement}}return Nt({width:y,height:h,x:p,y:u})}function md(e){let{rect:t,offsetParent:o,strategy:n}=e,a=Me(o),i=nt(o);if(o===i)return t;let l={scrollLeft:0,scrollTop:0},c=rt(1),p=rt(0);if((a||!a&&n!=="fixed")&&((ot(o)!=="body"||ir(i))&&(l=Pr(o)),Me(o))){let u=kr(o);c=sr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+p.x,y:t.y*c.y-l.scrollTop*c.y+p.y}}function gd(e){return Array.from(e.getClientRects())}function Os(e){return kr(nt(e)).left+Pr(e).scrollLeft}function bd(e){let t=nt(e),o=Pr(e),n=e.ownerDocument.body,a=ar(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ar(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+Os(e),c=-o.scrollTop;return Oe(n).direction==="rtl"&&(l+=ar(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function xd(e,t){let o=ge(e),n=nt(e),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,p=0;if(a){i=a.width,l=a.height;let u=io();(!u||u&&t==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:c,y:p}}function vd(e,t){let o=kr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Me(e)?sr(e):rt(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:l,height:c,x:p,y:u}}function bs(e,t,o){let n;if(t==="viewport")n=xd(e,o);else if(t==="document")n=bd(nt(e));else if(Ze(t))n=vd(t,o);else{let a=Cs(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Nt(n)}function Es(e,t){let o=Lt(e);return o===t||!Ze(o)||_r(o)?!1:Oe(o).position==="fixed"||Es(o,t)}function Sd(e,t){let o=t.get(e);if(o)return o;let n=no(e,[],!1).filter(c=>Ze(c)&&ot(c)!=="body"),a=null,i=Oe(e).position==="fixed",l=i?Lt(e):e;for(;Ze(l)&&!_r(l);){let c=Oe(l),p=ao(l);!p&&c.position==="fixed"&&(a=null),(i?!p&&!a:!p&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ir(l)&&!p&&Es(e,l))?n=n.filter(y=>y!==l):a=c,l=Lt(l)}return t.set(e,n),n}function Cd(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,l=[...o==="clippingAncestors"?Sd(t,this._c):[].concat(o),n],c=l[0],p=l.reduce((u,y)=>{let h=bs(t,y,a);return u.top=ar(h.top,u.top),u.right=Kn(h.right,u.right),u.bottom=Kn(h.bottom,u.bottom),u.left=ar(h.left,u.left),u},bs(t,c,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Od(e){return vs(e)}function Ed(e,t,o){let n=Me(t),a=nt(t),i=o==="fixed",l=kr(e,!0,i,t),c={scrollLeft:0,scrollTop:0},p=rt(0);if(n||!n&&!i)if((ot(t)!=="body"||ir(a))&&(c=Pr(t)),n){let u=kr(t,!0,i,t);p.x=u.x+t.clientLeft,p.y=u.y+t.clientTop}else a&&(p.x=Os(a));return{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function xs(e,t){return!Me(e)||Oe(e).position==="fixed"?null:t?t(e):e.offsetParent}function As(e,t){let o=ge(e);if(!Me(e))return o;let n=xs(e,t);for(;n&&ys(n)&&Oe(n).position==="static";)n=xs(n,t);return n&&(ot(n)==="html"||ot(n)==="body"&&Oe(n).position==="static"&&!ao(n))?o:n||ms(e)||o}var Ad=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||As,i=this.getDimensions;return{reference:Ed(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function wd(e){return Oe(e).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:md,getDocumentElement:nt,getClippingRect:Cd,getOffsetParent:As,getElementRects:Ad,getClientRects:gd,getDimensions:Od,getScale:sr,isElement:Ze,isRTL:wd};var ws=(e,t,o)=>{let n=new Map,a={platform:so,...o},i={...a.platform,_c:n};return us(e,t,{...a,platform:i})};function Rs(e){return Rd(e)}function Vn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Rd(e){for(let t=e;t;t=Vn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Vn(e);t;t=Vn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Ts(e,t,o){return ws(e,t,{platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,Rs)},middleware:[jn({crossAxis:!0}),Gn({allowedPlacements:[o]})]})}var xr=b(_());var hc=b(_());var bl=b(H()),de=b(ee()),Ue=b(_());var Ns=b(H());var Ls=Ns.css`
|
|
567
|
-
`;var lo=b(_()),Td="ft-app-info",It=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};It.eventName="authentication-change";var Nd={session:(e,t)=>{(0,lo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>L.dispatchEvent(new It(t.payload)),0))}},L=lo.FtReduxStore.get({name:Td,reducers:Nd,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 Zn=b(_());var _t=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var co=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_t.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_t.await()}};var Ee=class extends co{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[p])=>c.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Zn.CacheRegistry,this.cache=t?a.commonCache:new Zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var po=class extends Ee{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var qn=class{addCommand(t,o=!1){L.commands.add(t,o)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qn;var Ne=b(_());var Is,lr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Ld=Symbol("clearAfterUnitTest"),uo=class extends(0,Ne.withEventBus)(Ee){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Is]=()=>{this.defaultMessages={},this.cache=new Ne.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ne.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),l=this.resolveContext(i);return new Ne.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ne.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new lr({loadedContexts:t})),this.dispatchEvent(new lr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new lr({loadedContexts:[t]})),this.dispatchEvent(new lr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ne.delay)(0).then(()=>n()).catch(()=>null)))}};Is=Ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var cr=window.FluidTopicsI18nService,fo=window.FluidTopicsCustomI18nService;var _s=b(_()),Yn=class{highlightHtml(t,o,n){(0,_s.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Yn;var _d=b(ks(),1);var Ds;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ds||(Ds={}));var Bs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Bs||(Bs={}));var Ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ms||(Ms={}));var Us;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Us||(Us={}));var $s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($s||($s={}));var Fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fs||(Fs={}));var Hs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Hs||(Hs={}));var zs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(zs||(zs={}));var Ws;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(Ws||(Ws={}));var Gs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Gs||(Gs={}));var js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(js||(js={}));var Ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ks||(Ks={}));var Vs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Zs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Zs||(Zs={}));var qs;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qs||(qs={}));var Ys;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ys||(Ys={}));var Xs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Xs||(Xs={}));var Js;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Js||(Js={}));var Qs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var el;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(el||(el={}));var tl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var rl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(rl||(rl={}));var ol;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ol||(ol={}));var nl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nl||(nl={}));var al;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(al||(al={}));var re;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(re||(re={}));var Le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Le||(Le={}));var il;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(il||(il={}));var sl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(sl||(sl={}));var ll;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(ll||(ll={}));var cl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(cl||(cl={}));var dl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(dl||(dl={}));var Id={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function pl(e,t){return e===t||(Id[e]??[]).some(o=>pl(o,t))}function ul(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>pl(n,t))}var mo=class extends Ee{async listMySearches(){let{session:t}=L.getState();return ul(t,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var fl=b(_());var Xn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=L.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return fl.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Xn;var hl=b(_());var Dr=class{static get(t,o){var n,a;let i=L.getState(),{lang:l,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 hl.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Jn=class{urlToSearchRequest(t){return Dr.get().parse(t)}searchRequestToUrl(t){return Dr.get().serialize(t)}};window.FluidTopicsUrlService=new Jn;var ht=b(_());var Pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Pt.eventName="change";var Qn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},yl=new Qn;var go=class e extends ht.WithEventBus{static build(){return new e(window.history,yl,()=>window.location,!1)}constructor(t,o,n,a){var i,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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),(0,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Pt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,l,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[u,l,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Pt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Pt.eventName,t)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ht.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=go.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var ml=L;function gl(e,t){var o;return ml.getState().authenticationRequired&&!(!((o=ml.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var oe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},j=class extends Ue.FtLitElement{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=()=>_t.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ue.CacheRegistry,this.cleanSessionDebouncer=new Ue.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return bl.html`
|
|
567
|
+
`;var lo=b(_()),Td="ft-app-info",It=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};It.eventName="authentication-change";var Nd={session:(e,t)=>{(0,lo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>L.dispatchEvent(new It(t.payload)),0))}},L=lo.FtReduxStore.get({name:Td,reducers:Nd,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 Zn=b(_());var _t=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var co=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_t.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_t.await()}};var Ee=class extends co{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[p])=>c.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Zn.CacheRegistry,this.cache=t?a.commonCache:new Zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var po=class extends Ee{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var qn=class{addCommand(t,o=!1){L.commands.add(t,o)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qn;var Ne=b(_());var Is,lr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Ld=Symbol("clearAfterUnitTest"),uo=class extends(0,Ne.withEventBus)(Ee){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Is]=()=>{this.defaultMessages={},this.cache=new Ne.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ne.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),l=this.resolveContext(i);return new Ne.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ne.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new lr({loadedContexts:t})),this.dispatchEvent(new lr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new lr({loadedContexts:[t]})),this.dispatchEvent(new lr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ne.delay)(0).then(()=>n()).catch(()=>null)))}};Is=Ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends uo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var cr=window.FluidTopicsI18nService,fo=window.FluidTopicsCustomI18nService;var _s=b(_()),Yn=class{highlightHtml(t,o,n){(0,_s.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Yn;var _d=b(ks(),1);var Ds;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ds||(Ds={}));var Bs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Bs||(Bs={}));var Ms;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ms||(Ms={}));var Us;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Us||(Us={}));var $s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($s||($s={}));var Fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fs||(Fs={}));var Hs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Hs||(Hs={}));var zs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(zs||(zs={}));var Ws;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(Ws||(Ws={}));var Gs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Gs||(Gs={}));var js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(js||(js={}));var Ks;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ks||(Ks={}));var Vs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Zs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Zs||(Zs={}));var qs;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qs||(qs={}));var Ys;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ys||(Ys={}));var Xs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Xs||(Xs={}));var Js;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Js||(Js={}));var Qs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var el;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(el||(el={}));var tl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var rl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(rl||(rl={}));var ol;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ol||(ol={}));var nl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nl||(nl={}));var al;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(al||(al={}));var re;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(re||(re={}));var Le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Le||(Le={}));var il;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(il||(il={}));var sl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(sl||(sl={}));var ll;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ll||(ll={}));var cl;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(cl||(cl={}));var dl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(dl||(dl={}));var pl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(pl||(pl={}));var Id={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function ul(e,t){return e===t||(Id[e]??[]).some(o=>ul(o,t))}function fl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ul(n,t))}var mo=class extends Ee{async listMySearches(){let{session:t}=L.getState();return fl(t,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var hl=b(_());var Xn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=L.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return hl.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Xn;var yl=b(_());var Dr=class{static get(t,o){var n,a;let i=L.getState(),{lang:l,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 yl.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Jn=class{urlToSearchRequest(t){return Dr.get().parse(t)}searchRequestToUrl(t){return Dr.get().serialize(t)}};window.FluidTopicsUrlService=new Jn;var ht=b(_());var Pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Pt.eventName="change";var Qn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},ml=new Qn;var go=class e extends ht.WithEventBus{static build(){return new e(window.history,ml,()=>window.location,!1)}constructor(t,o,n,a){var i,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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),(0,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Pt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,l,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[u,l,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Pt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Pt.eventName,t)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,ht.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=go.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});function gl(e,t){let{authenticationRequired:o,session:n}=L.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var oe=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},j=class extends Ue.FtLitElement{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=()=>_t.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ue.CacheRegistry,this.cleanSessionDebouncer=new Ue.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return bl.html`
|
|
568
568
|
<slot></slot>
|
|
569
569
|
`}connectedCallback(){super.connectedCallback(),L.addEventListener(It.eventName,this.reloadConfiguration)}disconnectedCallback(){L.addEventListener(It.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,l,c,p;super.update(t),t.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&L.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&L.actions.noCustom(this.noCustom),t.has("editorMode")&&L.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&L.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>cr.addContext(u)),t.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(L.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&L.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&L.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}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",()=>gl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};j.elementDefinitions={};j.styles=Ls;oe([(0,de.property)()],j.prototype,"baseUrl",void 0);oe([(0,de.property)()],j.prototype,"apiIntegrationIdentifier",void 0);oe([(0,de.property)()],j.prototype,"apiIntegrationAppVersion",void 0);oe([(0,de.property)()],j.prototype,"uiLocale",void 0);oe([(0,Ue.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);oe([(0,Ue.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"editorMode",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"noCustom",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],j.prototype,"noCustomComponent",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"withManualResources",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);oe([(0,de.property)({type:Object})],j.prototype,"apiProvider",void 0);oe([(0,de.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);oe([(0,Ue.jsonProperty)([])],j.prototype,"messageContexts",void 0);oe([(0,Ue.jsonProperty)(void 0)],j.prototype,"session",void 0);oe([(0,de.state)()],j.prototype,"localesConfiguration",void 0);oe([(0,de.state)()],j.prototype,"availableContentLocales",void 0);var Ea=b(ee());function Pd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!bo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!bo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!bo(e[l],t[l]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function bo(e,t){try{return Pd(e,t)}catch{return!1}}function Br(e,t){return!bo(e,t)}function xo(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var xl=b(ee(),1);var ea=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Br,attribute:!1,...t};(0,xl.property)(i)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var vo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var kt=b(ee(),1);var vl=b(ee(),1);function Sl(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,vl.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Br,...t??{}})}var So=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ol=b(H(),1);var Co=globalThis,kd=Co.ShadowRoot&&(Co.ShadyCSS===void 0||Co.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zx=Symbol();var Cl=(e,t)=>{if(kd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=Co.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Oo=class extends Ol.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Cl(n,t.elementStyles),n}};function El(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var ur=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Tl,Al=Symbol("constructorPrototype"),wl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),Rl=Symbol("dynamicDependenciesLoaded"),pr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};pr.eventName="exportparts-updated";var qe=class extends Oo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tl]=new So(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Nl].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[wl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Rl]||(o[Rl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(pr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(pr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new pr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=El(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,l,c;let p=g=>g!=null&&g.trim().length>0,u=t.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let y=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(T=>T.split(":")[1]))!==null&&c!==void 0?c:[],O=[...S,...v].filter(p).map(T=>T.trim());for(let T of O)y.add(T)}if(y.size===0){this.exportparts=void 0;return}let h=[...y.values()].flatMap(g=>u.map(S=>`${g}:${S}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Tl=Nl;ur([(0,kt.property)()],qe.prototype,"exportpartsPrefix",void 0);ur([Sl([])],qe.prototype,"exportpartsPrefixes",void 0);ur([(0,kt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);ur([(0,kt.property)()],qe.prototype,"customStylesheet",void 0);ur([(0,kt.property)()],qe.prototype,"elementToFocus",void 0);ur([(0,kt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function Eo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Mr=Symbol("internalReduxEventsUnsubscribers"),yt=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),Dd=xo(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(c=>l.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(l){return l==null?this.getUnnamedStore():this[Dt].get(l)}addStore(l,c){var p;c=(p=c??l.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[Dt].set(c,l),this.subscribeToStore(c,l),this.updateFromStores()}removeStore(l){let c=typeof l=="string"?l:l.name;this.unsubscribeFromStore(c),this[Dt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach((l,c)=>this.subscribeToStore(c,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(l.store);u&&(l.store?this[yt].has(l.store):this[yt].size>0)&&(this[c]=l.selector(u.getState(),this))}})}subscribeToStore(l,c){var p;this[yt].set(l,c.subscribe(()=>this.updateFromStores())),this[Mr].set(l,[]),Eo(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,y)=>{if(typeof this[y]=="function"&&(!u.store||c.name===u.store)){let h=g=>this[y](g);c.addEventListener(u.eventName,h),this[Mr].get(l).push(()=>c.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[yt].forEach((l,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(l){var c;this[yt].has(l)&&this[yt].get(l)(),this[yt].delete(l),(c=this[Mr].get(l))===null||c===void 0||c.forEach(p=>p()),this[Mr].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=yt,o=Dt,n=Mr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Ll=class extends Dd(qe){};function Ie(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function at(e){return!!e&&!!e[q]}function $e(e){var t;return!!e&&(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)===Wd}(e)||Array.isArray(e)||!!e[Ml]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ml])||ca(e)||da(e))}function Bt(e,t,o){o===void 0&&(o=!1),yr(e)===0?(o?Object.keys:hr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function yr(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ca(e)?2:da(e)?3:0}function fr(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bd(e,t){return yr(e)===2?e.get(t):e[t]}function Ul(e,t,o){var n=yr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function $l(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ca(e){return Hd&&e instanceof Map}function da(e){return zd&&e instanceof Set}function mt(e){return e.o||e.t}function pa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=zl(e);delete t[q];for(var o=hr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ua(e,t){return t===void 0&&(t=!1),fa(e)||at(e)||!$e(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=Md),Object.freeze(e),t&&Bt(e,function(o,n){return ua(n,!0)},!0)),e}function Md(){Ie(2)}function fa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ye(e){var t=la[e];return t||Ie(18,e),t}function Ud(e,t){la[e]||(la[e]=t)}function aa(){return $r}function ta(e,t){t&&(Ye("Patches"),e.u=[],e.s=[],e.v=t)}function Ao(e){ia(e),e.p.forEach($d),e.p=null}function ia(e){e===$r&&($r=e.l)}function Il(e){return $r={p:[],l:$r,h:e,m:!0,_:0}}function $d(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function ra(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Ye("ES5").S(t,e,n),n?(o[q].P&&(Ao(t),Ie(4)),$e(e)&&(e=wo(t,e),t.l||Ro(t,e)),t.u&&Ye("Patches").M(o[q].t,e,t.u,t.s)):e=wo(t,o,[]),Ao(t),t.u&&t.v(t.u,t.s),e!==Hl?e:void 0}function wo(e,t,o){if(fa(t))return t;var n=t[q];if(!n)return Bt(t,function(c,p){return _l(e,n,t,c,p,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Ro(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=pa(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Bt(i,function(c,p){return _l(e,n,a,c,p,o,l)}),Ro(e,a,!1),o&&e.u&&Ye("Patches").N(n,o,e.u,e.s)}return n.o}function _l(e,t,o,n,a,i,l){if(at(a)){var c=wo(e,a,i&&t&&t.i!==3&&!fr(t.R,n)?i.concat(n):void 0);if(Ul(o,n,c),!at(c))return;e.m=!1}else l&&o.add(a);if($e(a)&&!fa(a)){if(!e.h.D&&e._<1)return;wo(e,a),t&&t.A.l||Ro(e,a)}}function Ro(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&ua(t,o)}function oa(e,t){var o=e[q];return(o?mt(o):e)[t]}function Pl(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function gt(e){e.P||(e.P=!0,e.l&>(e.l))}function na(e){e.o||(e.o=pa(e.t))}function sa(e,t,o){var n=ca(t)?Ye("MapSet").F(t,o):da(t)?Ye("MapSet").T(t,o):e.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:aa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=c,u=Fr;l&&(p=[c],u=Ur);var y=Proxy.revocable(p,u),h=y.revoke,g=y.proxy;return c.k=g,c.j=h,g}(t,o):Ye("ES5").J(t,o);return(o?o.A:aa()).p.push(n),n}function Fd(e){return at(e)||Ie(22,e),function t(o){if(!$e(o))return o;var n,a=o[q],i=yr(o);if(a){if(!a.P&&(a.i<4||!Ye("ES5").K(a)))return a.t;a.I=!0,n=kl(o,i),a.I=!1}else n=kl(o,i);return Bt(n,function(l,c){a&&Bd(a.t,l)===c||Ul(n,l,t(c))}),i===3?new Set(n):n}(e)}function kl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return pa(e)}function Fl(){function e(l,c){var p=i[l];return p?p.enumerable=c:i[l]=p={configurable:!0,enumerable:c,get:function(){var u=this[q];return Fr.get(u,l)},set:function(u){var y=this[q];Fr.set(y,l,u)}},p}function t(l){for(var c=l.length-1;c>=0;c--){var p=l[c][q];if(!p.P)switch(p.i){case 5:n(p)&>(p);break;case 4:o(p)&>(p)}}}function o(l){for(var c=l.t,p=l.k,u=hr(p),y=u.length-1;y>=0;y--){var h=u[y];if(h!==q){var g=c[h];if(g===void 0&&!fr(c,h))return!0;var S=p[h],v=S&&S[q];if(v?v.t!==g:!$l(S,g))return!0}}var O=!!c[q];return u.length!==hr(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(l){l.g&&Ie(3,JSON.stringify(mt(l)))}var i={};Ud("ES5",{J:function(l,c){var p=Array.isArray(l),u=function(h,g){if(h){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,e(v,!0));return S}var O=zl(g);delete O[q];for(var T=hr(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,h||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,l),y={i:p?5:4,A:c?c.A:aa(),P:!1,I:!1,R:{},l:c,t:l,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,q,{value:y,writable:!0}),u},S:function(l,c,p){p?at(c)&&c[q].A===l&&t(l.p):(l.u&&function u(y){if(y&&typeof y=="object"){var h=y[q];if(h){var g=h.t,S=h.k,v=h.R,O=h.i;if(O===4)Bt(S,function(B){B!==q&&(g[B]!==void 0||fr(g,B)?v[B]||u(S[B]):(v[B]=!0,gt(h)))}),Bt(g,function(B){S[B]!==void 0||fr(S,B)||(v[B]=!1,gt(h))});else if(O===5){if(n(h)&&(gt(h),v.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)v[T]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&u(S[k])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var Dl,$r,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hd=typeof Map<"u",zd=typeof Set<"u",Bl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hl=ha?Symbol.for("immer-nothing"):((Dl={})["immer-nothing"]=!0,Dl),Ml=ha?Symbol.for("immer-draftable"):"__$immer_draftable",q=ha?Symbol.for("immer-state"):"__$immer_state";var Wd=""+Object.prototype.constructor,hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,zl=Object.getOwnPropertyDescriptors||function(e){var t={};return hr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},la={},Fr={get:function(e,t){if(t===q)return e;var o=mt(e);if(!fr(o,t))return function(a,i,l){var c,p=Pl(i,l);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!$e(n)?n:n===oa(e.t,t)?(na(e),e.o[t]=sa(e.A.h,n,e)):n},has:function(e,t){return t in mt(e)},ownKeys:function(e){return Reflect.ownKeys(mt(e))},set:function(e,t,o){var n=Pl(mt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=oa(mt(e),t),i=a?.[q];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if($l(o,a)&&(o!==void 0||fr(e.t,t)))return!0;na(e),gt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return oa(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,na(e),gt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=mt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ie(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ie(12)}},Ur={};Bt(Fr,function(e,t){Ur[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ur.deleteProperty=function(e,t){return Ur.set.call(this,e,t,void 0)},Ur.set=function(e,t,o){return Fr.set.call(this,e[0],t,o,e[0])};var Gd=function(){function e(o){var n=this;this.O=Bl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var p=n;return function(O){var T=this;O===void 0&&(O=c);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return p.produce(O,function(B){var M;return(M=i).call.apply(M,[T,B].concat(N))})}}var u;if(typeof i!="function"&&Ie(6),l!==void 0&&typeof l!="function"&&Ie(7),$e(a)){var y=Il(n),h=sa(n,a,void 0),g=!0;try{u=i(h),g=!1}finally{g?Ao(y):ia(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ta(y,l),ra(O,y)},function(O){throw Ao(y),O}):(ta(y,l),ra(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Hl&&(u=void 0),n.D&&ua(u,!0),l){var S=[],v=[];Ye("Patches").M(a,u,S,v),l(S,v)}return u}Ie(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),g=1;g<y;g++)h[g-1]=arguments[g];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(h))})};var l,c,p=n.produce(a,i,function(u,y){l=u,c=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,l,c]}):[p,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){$e(o)||Ie(8),at(o)&&(o=Fd(o));var n=Il(this),a=sa(this,o,void 0);return a[q].C=!0,ia(n),a},t.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return ta(i,n),ra(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Bl&&Ie(20),this.O=o},t.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 l=Ye("Patches").$;return at(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},e}(),Ae=new Gd,jd=Ae.produce,ov=Ae.produceWithPatches.bind(Ae),nv=Ae.setAutoFreeze.bind(Ae),av=Ae.setUseProxies.bind(Ae),iv=Ae.applyPatches.bind(Ae),sv=Ae.createDraft.bind(Ae),lv=Ae.finishDraft.bind(Ae),To=jd;function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Wl(e,t){if(Mt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gl(e){var t=Wl(e,"string");return Mt(t)=="symbol"?t:t+""}function jl(e,t,o){return(t=Gl(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Kl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ya(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Kl(Object(o),!0).forEach(function(n){jl(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Kl(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function pe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},No={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function Kd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ga(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(ga)(e,t)}if(typeof e!="function")throw new Error(pe(2));var a=e,i=t,l=[],c=l,p=!1;function u(){c===l&&(c=l.slice())}function y(){if(p)throw new Error(pe(3));return i}function h(O){if(typeof O!="function")throw new Error(pe(4));if(p)throw new Error(pe(5));var T=!0;return u(),c.push(O),function(){if(T){if(p)throw new Error(pe(6));T=!1,u();var N=c.indexOf(O);c.splice(N,1),l=null}}}function g(O){if(!Kd(O))throw new Error(pe(7));if(typeof O.type>"u")throw new Error(pe(8));if(p)throw new Error(pe(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var T=l=c,R=0;R<T.length;R++){var N=T[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(pe(10));a=O,g({type:No.REPLACE})}function v(){var O,T=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function k(){N.next&&N.next(y())}k();var B=T(k);return{unsubscribe:B}}},O[Vl]=function(){return this},O}return g({type:No.INIT}),n={dispatch:g,subscribe:h,getState:y,replaceReducer:S},n[Vl]=v,n}function Vd(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:No.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:No.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function Zl(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),l,c;try{Vd(o)}catch(p){c=p}return function(u,y){if(u===void 0&&(u={}),c)throw c;if(0)var h;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],T=o[O],R=u[O],N=T(R,y);if(typeof N>"u"){var k=y&&y.type;throw new Error(pe(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(u).length,g?S:u}}function mr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ql(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(p){return p(l)});return i=mr.apply(void 0,c)(a.dispatch),ya(ya({},a),{},{dispatch:i})}}}function Yl(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,e):l(c)}}};return t}var Xl=Yl();Xl.withExtraArgument=Yl;var ba=Xl;var rc=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},gr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},qd=Object.defineProperty,Yd=Object.defineProperties,Xd=Object.getOwnPropertyDescriptors,Jl=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Ql=function(e,t,o){return t in e?qd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},bt=function(e,t){for(var o in t||(t={}))Jd.call(t,o)&&Ql(e,o,t[o]);if(Jl)for(var n=0,a=Jl(t);n<a.length;n++){var o=a[n];Qd.call(t,o)&&Ql(e,o,t[o])}return e},xa=function(e,t){return Yd(e,Xd(t))},ep=function(e,t,o){return new Promise(function(n,a){var i=function(p){try{c(o.next(p))}catch(u){a(u)}},l=function(p){try{c(o.throw(p))}catch(u){a(u)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};c((o=o.apply(e,t)).next())})};var tp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mr:mr.apply(null,arguments)},wv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function rp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var op=function(e){rc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,gr([void 0],o[0].concat(this)))):new(t.bind.apply(t,gr([void 0],o.concat(this))))},t}(Array),np=function(e){rc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,gr([void 0],o[0].concat(this)))):new(t.bind.apply(t,gr([void 0],o.concat(this))))},t}(Array);function Ca(e){return $e(e)?To(e,function(){}):e}function ap(e){return typeof e=="boolean"}function ip(){return function(t){return sp(t)}}function sp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,c=new op;if(o&&(ap(o)?c.push(ba):c.push(ba.withExtraArgument(o.extraArgument))),0){if(a)var p;if(l)var u}return c}var va=!0;function oc(e){var t=ip(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?t():i,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(rp(a))S=Zl(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 v=l;if(typeof v=="function"&&(v=v(t),!va&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!va&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ql.apply(void 0,v),T=mr;p&&(T=tp(bt({trace:!va},typeof p=="object"&&p)));var R=new np(O),N=R;Array.isArray(g)?N=gr([O],g):typeof g=="function"&&(N=g(R));var k=T.apply(void 0,N);return ga(S,y,k)}function xt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return bt(bt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function nc(e){var t={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function lp(e){return typeof e=="function"}function cp(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?nc(t):[t,o,n],i=a[0],l=a[1],c=a[2],p;if(lp(e))p=function(){return Ca(e())};else{var u=Ca(e);p=function(){return u}}function y(h,g){h===void 0&&(h=p());var S=gr([i[g.type]],l.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(at(v)){var T=v,R=O(T,g);return R===void 0?v:R}else{if($e(v))return To(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},h)}return y.getInitialState=p,y}function dp(e,t){return e+"/"+t}function ac(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Ca(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(y){var h=n[y],g=dp(t,y),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[y]=S,l[g]=S,c[y]=v?xt(g,v):xt(g)});function p(){var y=typeof e.extraReducers=="function"?nc(e.extraReducers):[e.extraReducers],h=y[0],g=h===void 0?{}:h,S=y[1],v=S===void 0?[]:S,O=y[2],T=O===void 0?void 0:O,R=bt(bt({},g),l);return cp(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var B=0,M=v;B<M.length;B++){var ye=M[B];N.addMatcher(ye.matcher,ye.reducer)}T&&N.addDefaultCase(T)})}var u;return{name:t,reducer:function(y,h){return u||(u=p()),u(y,h)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var pp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",up=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=pp[Math.random()*64|0];return t},fp=["name","message","stack","code"],Sa=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ec=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),hp=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=fp;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Lv=function(){function e(t,o,n){var a=xt(t+"/fulfilled",function(y,h,g,S){return{payload:y,meta:xa(bt({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=xt(t+"/pending",function(y,h,g){return{payload:void 0,meta:xa(bt({},g||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=xt(t+"/rejected",function(y,h,g,S,v){return{payload:S,error:(n&&n.serializeError||hp)(y||"Rejected"),meta:xa(bt({},v||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(h,g,S){var v=n?.idGenerator?n.idGenerator(y):up(),O=new p,T,R=!1;function N(B){T=B,O.abort()}var k=function(){return ep(this,null,function(){var B,M,ye,Ge,ue,je,se;return Zd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),Ge=(B=n?.condition)==null?void 0:B.call(n,y,{getState:g,extra:S}),mp(Ge)?[4,Ge]:[3,2];case 1:Ge=m.sent(),m.label=2;case 2:if(Ge===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ue=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),h(i(v,y,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:v,arg:y},{getState:g,extra:S}))),[4,Promise.race([ue,Promise.resolve(o(y,{dispatch:h,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Sa(x,P)},fulfillWithValue:function(x,P){return new ec(x,P)}})).then(function(x){if(x instanceof Sa)throw x;return x instanceof ec?a(x.payload,v,y,x.meta):a(x,v,y)})])];case 3:return ye=m.sent(),[3,5];case 4:return je=m.sent(),ye=je instanceof Sa?l(null,v,y,je.payload,je.meta):l(je,v,y),[3,5];case 5:return se=n&&!n.dispatchConditionRejection&&l.match(ye)&&ye.meta.condition,se||h(ye),[2,ye]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:y,unwrap:function(){return k.then(yp)}})}}return Object.assign(u,{pending:i,rejected:l,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function yp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ic="listener",sc="completed",lc="cancelled",Iv="task-"+lc,_v="task-"+sc,Pv=ic+"-"+lc,kv=ic+"-"+sc;var Oa="listenerMiddleware";var Dv=xt(Oa+"/add"),Bv=xt(Oa+"/removeAll"),Mv=xt(Oa+"/remove");var tc,Uv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(tc||(tc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},gp=function(e){return function(t){setTimeout(t,e)}},$v=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gp(10);Fl();var bp=xo(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Lo=class extends bp(Object){};window.ftReduxStores||(window.ftReduxStores={});var cc=class e extends Lo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Eo(i))return i;if(a==null)return;let l=ac({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=oc({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:l.reducer(p,u)});return window.ftReduxStores[a.name]=new e(l,c,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new vo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let p=l,u=i[p];return u?(...y)=>{let h=u(...y.map(a));return this.reduxStore.dispatch(h),h}:y=>{this.setState({[p]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Io=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return l;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${l} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var dc=b(_()),_o=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},p0=(0,dc.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(L)}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=>Io.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return _o([(0,Ea.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),_o([(0,Ea.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),_o([ea({store:L.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),_o([ea({store:L.name})],t.prototype,"uiLocale",void 0),t});var Do=b(_());var Po=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=L.getState().session;return!!t?.sessionAuthenticated}};var ko=class extends Ee{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 t=L.getState().session;return!!t?.sessionAuthenticated}};var xp="ft-user-assets",vp={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Le).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;wa(e,o,[...Aa(e,o),a]),pc(e,o,1,n),uc(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;wa(e,o,Aa(e,o).map(a=>a.id===n.id?n:a)),uc(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;wa(e,o,Aa(e,o).filter(i=>i.id!==a)),pc(e,o,-1,n)}},fc={[Le.SEARCHES]:"savedSearches",[Le.BOOKMARKS]:"bookmarks",[Le.BOOKS]:void 0,[Le.COLLECTIONS]:void 0},Aa=(e,t)=>{var o;let n=fc[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},wa=(e,t,o)=>{let n=fc[t];n&&(e[n]=o)},pc=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Le.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},uc=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},we=Do.FtReduxStore.get({name:xp,reducers:vp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ra=class{constructor(t=new Po,o=new ko){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new po,this.savedSearchesService=new mo,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=L.getState();(0,Do.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),we.actions.clearAssetCount(),we.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),we.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),we.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();we.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();we.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&we.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&we.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(we.getState().assetCounts.bookmarkByMap).length!==0;t===Le.BOOKMARKS&&o&&we.actions.clearBookmarkCountByMap(),we.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;we.actions.bookmarks(o)}}},Sp=new Ra;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sp);(0,hc.customElement)("ft-app-context")(j);var yc=b(ee());var Ta=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},br=new Ta;var Cp=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},zr=Symbol("i18nAttributes"),mc=Symbol("i18nListAttributes"),gc=Symbol("i18nProperties"),Bo=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),$o=(0,xr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?fo:cr}i18n(i){let{context:l,key:c,message:p}=i,{custom:u,args:y,argsProvider:h}=i;if(l&&c){this.hasI18nContext(l)||this.addI18nContext(l,void 0,u);let g=y??(h?h(this):[]);return this.getI18nService(u).resolveMessage(l,c,...g)}return p}async awaitI18n(i){let{context:l,custom:c}=i;return l&&await this.getI18nService(c).prepareContext(l),this.i18n(i)}customI18n(i,l){if(br.isI18nKey(i)){let[c,p]=i.split(".");return this.i18n({custom:!0,context:c,key:p,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,p)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let p=this,u=(y,h,g)=>g?.context&&g.key&&i(y,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...y})}:g;(l=this[zr])===null||l===void 0||l.forEach((y,h)=>p[h]=u(y,h,p[h])),(c=this[mc])===null||c===void 0||c.forEach((y,h)=>{var g;return p[h]=(g=p[h])===null||g===void 0?void 0:g.map(S=>u(y,h,S))})}updateI18nProperties(i){var l;(l=this[gc])===null||l===void 0||l.forEach((c,p)=>{i(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let p=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Bo].set(p,{isCustomContext:c}),this[Hr].has(p)||this[Hr].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,l)}hasI18nContext(i){return this[Bo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bo].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Hr].forEach(i=>i()),this[Hr].clear()}}return t=Bo,o=Hr,Cp([(0,yc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Mo=class extends $o(xr.FtLitElement){},Uo=class extends $o(xr.FtLitElementRedux){};var bc=b(_());var Na=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?br.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Op=new Na;var xc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:bc.hasChanged,converter:br,...t}),o[zr]=(a=o[zr])!==null&&a!==void 0?a:new Map,o[zr].set(n,e??{})};var Cc=b(_());var Fo=b(H()),Ho=b(ee()),zo=b(_());var vc=b(H());var Sc=vc.css`
|
|
570
570
|
`;var Wr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Fe=class extends Uo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fo.nothing:Fo.html`
|
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var yl={};var ai={};K(ai,{ParametrizedLabelResolver:()=>no});var no=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 Ni={};K(Ni,{FtCommandQueue:()=>ao,FtLitElementRedux:()=>Wt,FtReduxStore:()=>Vt,FtStateManager:()=>_i,ReduxWatcher:()=>vn,clearAllStores:()=>lf,isFtReduxStore:()=>ur,redux:()=>ze,reduxEventListener:()=>Eu,reduxReactive:()=>Ou,watch:()=>cf,withRedux:()=>ml});var Ou=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ze=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ae,attribute:!1,...e};v(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:l=>l[n],store:e.store})}},Eu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var ao=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 ur(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores"),ml=ie(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(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[zt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[zt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[zt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[zt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[bt].has(s.store):this[bt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[bt].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),ur(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[io].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[bt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[bt].has(s)&&this[bt].get(s)(),this[bt].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,o=zt,n=io,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Wt=class extends ml(G){};function De(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 dt(t){return!!t&&!!t[re]}function We(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)===Iu}(t)||Array.isArray(t)||!!t[Ol]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ol])||hi(t)||yi(t))}function Gt(t,e,o){o===void 0&&(o=!1),yr(t)===0?(o?Object.keys:hr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function yr(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hi(t)?2:yi(t)?3:0}function fr(t,e){return yr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Au(t,e){return yr(t)===2?t.get(e):t[e]}function El(t,e,o){var n=yr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Al(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function hi(t){return Nu&&t instanceof Map}function yi(t){return Lu&&t instanceof Set}function xt(t){return t.o||t.t}function mi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tl(t);delete e[re];for(var o=hr(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 gi(t,e){return e===void 0&&(e=!1),bi(t)||dt(t)||!We(t)||(yr(t)>1&&(t.set=t.add=t.clear=t.delete=wu),Object.freeze(t),e&&Gt(t,function(o,n){return gi(n,!0)},!0)),t}function wu(){De(2)}function bi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Qe(t){var e=fi[t];return e||De(18,t),e}function Ru(t,e){fi[t]||(fi[t]=e)}function di(){return lo}function ii(t,e){e&&(Qe("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){pi(t),t.p.forEach(Tu),t.p=null}function pi(t){t===lo&&(lo=t.l)}function gl(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Tu(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function si(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Qe("ES5").S(e,t,n),n?(o[re].P&&(yn(e),De(4)),We(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&Qe("Patches").M(o[re].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Rl?t:void 0}function mn(t,e,o){if(bi(e))return e;var n=e[re];if(!n)return Gt(e,function(l,d){return bl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=mi(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Gt(i,function(l,d){return bl(t,n,a,l,d,o,s)}),gn(t,a,!1),o&&t.u&&Qe("Patches").N(n,o,t.u,t.s)}return n.o}function bl(t,e,o,n,a,i,s){if(dt(a)){var l=mn(t,a,i&&e&&e.i!==3&&!fr(e.R,n)?i.concat(n):void 0);if(El(o,n,l),!dt(l))return;t.m=!1}else s&&o.add(a);if(We(a)&&!bi(a)){if(!t.h.D&&t._<1)return;mn(t,a),e&&e.A.l||gn(t,a)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&gi(e,o)}function li(t,e){var o=t[re];return(o?xt(o):t)[e]}function xl(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 vt(t){t.P||(t.P=!0,t.l&&vt(t.l))}function ci(t){t.o||(t.o=mi(t.t))}function ui(t,e,o){var n=hi(e)?Qe("MapSet").F(e,o):yi(e)?Qe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:di(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):Qe("ES5").J(e,o);return(o?o.A:di()).p.push(n),n}function _u(t){return dt(t)||De(22,t),function e(o){if(!We(o))return o;var n,a=o[re],i=yr(o);if(a){if(!a.P&&(a.i<4||!Qe("ES5").K(a)))return a.t;a.I=!0,n=vl(o,i),a.I=!1}else n=vl(o,i);return Gt(n,function(s,l){a&&Au(a.t,s)===l||El(n,s,e(l))}),i===3?new Set(n):n}(t)}function vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mi(t)}function wl(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[re];return co.get(u,s)},set:function(u){var h=this[re];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&vt(d);break;case 4:o(d)&&vt(d)}}}function o(s){for(var l=s.t,d=s.k,u=hr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==re){var y=l[f];if(y===void 0&&!fr(l,f))return!0;var x=d[f],b=x&&x[re];if(b?b.t!==y:!Al(x,y))return!0}}var w=!!l[re];return u.length!==hr(l).length+(w?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&De(3,JSON.stringify(xt(s)))}var i={};Ru("ES5",{J:function(s,l){var d=Array.isArray(s),u=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 w=Tl(y);delete w[re];for(var R=hr(w),T=0;T<R.length;T++){var L=R[T];w[L]=t(L,f||!!w[L].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:di(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,re,{value:h,writable:!0}),u},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[re];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Gt(x,function(S){S!==re&&(y[S]!==void 0||fr(y,S)?b[S]||u(x[S]):(b[S]=!0,vt(f)))}),Gt(y,function(S){x[S]!==void 0||fr(x,S)||(b[S]=!1,vt(f))});else if(w===5){if(n(f)&&(vt(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 L=Math.min(x.length,y.length),O=0;O<L;O++)x.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(x[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Sl,lo,xi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",Lu=typeof Set<"u",Cl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rl=xi?Symbol.for("immer-nothing"):((Sl={})["immer-nothing"]=!0,Sl),Ol=xi?Symbol.for("immer-draftable"):"__$immer_draftable",re=xi?Symbol.for("immer-state"):"__$immer_state";var Iu=""+Object.prototype.constructor,hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tl=Object.getOwnPropertyDescriptors||function(t){var e={};return hr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},fi={},co={get:function(t,e){if(e===re)return t;var o=xt(t);if(!fr(o,e))return function(a,i,s){var l,d=xl(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===li(t.t,e)?(ci(t),t.o[e]=ui(t.A.h,n,t)):n},has:function(t,e){return e in xt(t)},ownKeys:function(t){return Reflect.ownKeys(xt(t))},set:function(t,e,o){var n=xl(xt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=li(xt(t),e),i=a?.[re];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Al(o,a)&&(o!==void 0||fr(t.t,e)))return!0;ci(t),vt(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 li(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ci(t),vt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=xt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){De(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){De(12)}},so={};Gt(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Pu=function(){function t(o){var n=this;this.O=Cl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(w){var R=this;w===void 0&&(w=l);for(var T=arguments.length,L=Array(T>1?T-1:0),O=1;O<T;O++)L[O-1]=arguments[O];return d.produce(w,function(S){var E;return(E=i).call.apply(E,[R,S].concat(L))})}}var u;if(typeof i!="function"&&De(6),s!==void 0&&typeof s!="function"&&De(7),We(a)){var h=gl(n),f=ui(n,a,void 0),y=!0;try{u=i(f),y=!1}finally{y?yn(h):pi(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ii(h,s),si(w,h)},function(w){throw yn(h),w}):(ii(h,s),si(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Rl&&(u=void 0),n.D&&gi(u,!0),s){var x=[],b=[];Qe("Patches").M(a,u,x,b),s(x,b)}return u}De(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){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(u,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},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){We(o)||De(8),dt(o)&&(o=_u(o));var n=gl(this),a=ui(this,o,void 0);return a[re].C=!0,pi(n),a},e.finishDraft=function(o,n){var a=o&&o[re],i=a.A;return ii(i,n),si(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Cl&&De(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=Qe("Patches").$;return dt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Re=new Pu,ku=Re.produce,bx=Re.produceWithPatches.bind(Re),xx=Re.setAutoFreeze.bind(Re),vx=Re.setUseProxies.bind(Re),Sx=Re.applyPatches.bind(Re),Cx=Re.createDraft.bind(Re),Ox=Re.finishDraft.bind(Re),bn=ku;function jt(t){"@babel/helpers - typeof";return jt=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},jt(t)}function _l(t,e){if(jt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nl(t){var e=_l(t,"string");return jt(e)=="symbol"?e:e+""}function Ll(t,e,o){return(e=Nl(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Il(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 vi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(o),!0).forEach(function(n){Ll(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Il(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function me(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Si=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+Si(),REPLACE:"@@redux/REPLACE"+Si(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Si()}};function Du(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 Ci(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(me(1));return o(Ci)(t,e)}if(typeof t!="function")throw new Error(me(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(me(3));return i}function f(w){if(typeof w!="function")throw new Error(me(4));if(d)throw new Error(me(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(me(6));R=!1,u();var L=l.indexOf(w);l.splice(L,1),s=null}}}function y(w){if(!Du(w))throw new Error(me(7));if(typeof w.type>"u")throw new Error(me(8));if(d)throw new Error(me(9));try{d=!0,i=a(i,w)}finally{d=!1}for(var R=s=l,T=0;T<R.length;T++){var L=R[T];L()}return w}function x(w){if(typeof w!="function")throw new Error(me(10));a=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(me(11));function O(){L.next&&L.next(h())}O();var S=R(O);return{unsubscribe:S}}},w[Pl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Pl]=b,n}function Mu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(me(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function kl(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,l;try{Mu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var w=i[b],R=o[w],T=u[w],L=R(T,h);if(typeof L>"u"){var O=h&&h.type;throw new Error(me(14))}x[w]=L,y=y||L!==T}return y=y||i.length!==Object.keys(u).length,y?x:u}}function mr(){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 Dl(){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(me(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=mr.apply(void 0,l)(a.dispatch),vi(vi({},a),{},{dispatch:i})}}}function Ml(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Bl=Ml();Bl.withExtraArgument=Ml;var Oi=Bl;var zl=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)}}(),Bu=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},gr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},$u=Object.defineProperty,Uu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,zu=Object.prototype.propertyIsEnumerable,Ul=function(t,e,o){return e in t?$u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},St=function(t,e){for(var o in e||(e={}))Hu.call(e,o)&&Ul(t,o,e[o]);if($l)for(var n=0,a=$l(e);n<a.length;n++){var o=a[n];zu.call(e,o)&&Ul(t,o,e[o])}return t},Ei=function(t,e){return Uu(t,Fu(e))},Wu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Gu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mr:mr.apply(null,arguments)},Hx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ju(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 Vu=function(t){zl(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,gr([void 0],o[0].concat(this)))):new(e.bind.apply(e,gr([void 0],o.concat(this))))},e}(Array),Ku=function(t){zl(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,gr([void 0],o[0].concat(this)))):new(e.bind.apply(e,gr([void 0],o.concat(this))))},e}(Array);function Ri(t){return We(t)?bn(t,function(){}):t}function Zu(t){return typeof t=="boolean"}function qu(){return function(e){return Yu(e)}}function Yu(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,l=new Vu;if(o&&(Zu(o)?l.push(Oi):l.push(Oi.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var Ai=!0;function Wl(t){var e=qu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(ju(a))x=kl(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),!Ai&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ai&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Dl.apply(void 0,b),R=mr;d&&(R=Gu(St({trace:!Ai},typeof d=="object"&&d)));var T=new Ku(w),L=T;Array.isArray(y)?L=gr([w],y):typeof y=="function"&&(L=y(T));var O=R.apply(void 0,L);return Ci(x,h,O)}function Ct(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 St(St({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 Gl(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=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 Xu(t){return typeof t=="function"}function Ju(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Gl(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Xu(t))d=function(){return Ri(t())};else{var u=Ri(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=gr([i[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(dt(b)){var R=b,T=w(R,y);return T===void 0?b:T}else{if(We(b))return bn(b,function(L){return w(L,y)});var T=w(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 Qu(t,e){return t+"/"+e}function jl(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:Ri(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=Qu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,l[h]=b?Ct(y,b):Ct(y)});function d(){var h=typeof t.extraReducers=="function"?Gl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,T=St(St({},y),s);return Ju(o,function(L){for(var O in T)L.addCase(O,T[O]);for(var S=0,E=b;S<E.length;S++){var D=E[S];L.addMatcher(D.matcher,D.reducer)}R&&L.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var ef="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=ef[Math.random()*64|0];return e},rf=["name","message","stack","code"],wi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Fl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),of=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=rf;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},jx=function(){function t(e,o,n){var a=Ct(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:Ei(St({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=Ct(e+"/pending",function(h,f,y){return{payload:void 0,meta:Ei(St({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ct(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||of)(h||"Rejected"),meta:Ei(St({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!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 u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):tf(),w=new d,R,T=!1;function L(S){R=S,w.abort()}var O=function(){return Wu(this,null,function(){var S,E,D,U,V,H,M;return Bu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:x}),af(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({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([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:L,rejectWithValue:function(C,P){return new wi(C,P)},fulfillWithValue:function(C,P){return new Fl(C,P)}})).then(function(C){if(C instanceof wi)throw C;return C instanceof Fl?a(C.payload,b,h,C.meta):a(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return H=m.sent(),D=H instanceof wi?s(null,b,h,H.payload,H.meta):s(H,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(O,{abort:L,requestId:b,arg:h,unwrap:function(){return O.then(nf)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function nf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function af(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vl="listener",Kl="completed",Zl="cancelled",Vx="task-"+Zl,Kx="task-"+Kl,Zx=Vl+"-"+Zl,qx=Vl+"-"+Kl;var Ti="listenerMiddleware";var Yx=Ct(Ti+"/add"),Xx=Ct(Ti+"/removeAll"),Jx=Ct(Ti+"/remove");var Hl,Qx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hl||(Hl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},sf=function(t){return function(e){setTimeout(e,t)}},ev=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sf(10);wl();window.ftReduxStores||(window.ftReduxStores={});var Vt=class t extends at{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(ur(i))return i;if(a==null)return;let s=jl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Wl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ao;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...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 lf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ur(e)&&e.clear()}var vn=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);Ae(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 cf(t,e,o){return new vn(t,e,o).watch()}var _i=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 ki={};K(ki,{scrollHelper:()=>Pi});var Li,Sn=new Map,Ii=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of ma(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&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,l=Kr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(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=(Li=window.FluidTopicsScrollHelper)!==null&&Li!==void 0?Li:new Ii;var Pi=window.FluidTopicsScrollHelper;var Mi={};K(Mi,{SearchPlaceConverter:()=>Sr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>_c,serializeRequest:()=>ff});var pf=Ud(Yl(),1);var Xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xl||(Xl={}));var Jl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(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"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(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"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ic||(ic={}));var sc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sc||(sc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var cc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var xr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(xr||(xr={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(uc||(uc={}));var Di;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Di||(Di={}));var xc=t=>Object.keys(Di).includes(t);var fc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(fc||(fc={}));var hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var vr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(vr||(vr={}));var vc=t=>Object.keys(vr).includes(t);var mc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(mc||(mc={}));var gc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gc||(gc={}));var bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bc||(bc={}));var se;(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"})(se||(se={}));var Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var Sc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sc||(Sc={}));var Cc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Cc||(Cc={}));var Oc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Oc||(Oc={}));var Ec;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ec||(Ec={}));var Ac;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ac||(Ac={}));var df={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function wc(t,e){return t===e||(df[t]??[]).some(o=>wc(o,e))}function Rc(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=>wc(n,e))}function uf(t){return`"${t}"`}function Tc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ff(t,e){return new Sr(t).serialize(e)}var Y;(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"})(Y||(Y={}));var hf=new Set(Object.values(Y));function _c(t){return hf.has(t)}var Sr=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,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let w=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&i!==void 0?i:[];if(w.length>0){let S=w.map(E=>{var D,U;let V=((U=(D=E.valueFilter)===null||D===void 0?void 0:D.values)!==null&&U!==void 0?U:[]).map(H=>this.escapeFilters(H)).map(H=>uf(Tc(H))).join("_");return`${E.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(E=>{var D;return`${E.key}~${(D=E.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let T=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(T.length>0){let S=T.map(E=>{var D,U;return`${E.key}~${(D=E.rangeFilter)===null||D===void 0?void 0:D.from}_${(U=E.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.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(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let L=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in L)b.append(S,L[S]);let O=new Array;return b.forEach((S,E)=>{O.push(this.encodeQueryString(E)+"="+this.encodeQueryString(S))}),encodeURI(O.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,l;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),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(Y.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(Y.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),w=b?b.toUpperCase()===xr.MANDATORY?xr.MANDATORY:xr.OPTIONAL:void 0,R={};for(let T of d.keys())_c(T)||(R[T]=d.get(T));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:xc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Kr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(Y.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(Y.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(Tc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:vr[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(vc(e))return[{key:"ft:lastEdition",dateFilter:{type:vr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ui={};K(Ui,{toFtFormComponent:()=>$i});var Bi=Symbol("elementInternals"),$i=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...n){super(n),this[Bi]=this.attachInternals()}setFormValue(n){this[Bi].setFormValue(n)}}return e});var Fi={};K(Fi,{DateFormatter:()=>Kt});var Kt=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 l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}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 zi={};K(zi,{ALL_KEYS_VALUE:()=>Hi,SameWindowStorageEvent:()=>Cr});var Hi="__all__",Cr=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==Hi}};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 Cr(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 Cr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Cr(Hi))}});var Gi={};K(Gi,{FocusMainContentEvent:()=>Wi});var Wi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Nc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function yf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function mf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",yf);document.addEventListener("click",mf);var Lc=I`
|
|
48
|
+
`;var yl={};var ai={};K(ai,{ParametrizedLabelResolver:()=>no});var no=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 Ni={};K(Ni,{FtCommandQueue:()=>ao,FtLitElementRedux:()=>Wt,FtReduxStore:()=>Vt,FtStateManager:()=>_i,ReduxWatcher:()=>vn,clearAllStores:()=>lf,isFtReduxStore:()=>ur,redux:()=>ze,reduxEventListener:()=>Eu,reduxReactive:()=>Ou,watch:()=>cf,withRedux:()=>ml});var Ou=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ze=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ae,attribute:!1,...e};v(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:l=>l[n],store:e.store})}},Eu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var ao=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 ur(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores"),ml=ie(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(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[zt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[zt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[zt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[zt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[bt].has(s.store):this[bt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[bt].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),ur(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[io].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[bt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[bt].has(s)&&this[bt].get(s)(),this[bt].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,o=zt,n=io,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Wt=class extends ml(G){};function De(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 dt(t){return!!t&&!!t[re]}function We(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)===Iu}(t)||Array.isArray(t)||!!t[Ol]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ol])||hi(t)||yi(t))}function Gt(t,e,o){o===void 0&&(o=!1),yr(t)===0?(o?Object.keys:hr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function yr(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hi(t)?2:yi(t)?3:0}function fr(t,e){return yr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Au(t,e){return yr(t)===2?t.get(e):t[e]}function El(t,e,o){var n=yr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Al(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function hi(t){return Nu&&t instanceof Map}function yi(t){return Lu&&t instanceof Set}function xt(t){return t.o||t.t}function mi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tl(t);delete e[re];for(var o=hr(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 gi(t,e){return e===void 0&&(e=!1),bi(t)||dt(t)||!We(t)||(yr(t)>1&&(t.set=t.add=t.clear=t.delete=wu),Object.freeze(t),e&&Gt(t,function(o,n){return gi(n,!0)},!0)),t}function wu(){De(2)}function bi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Qe(t){var e=fi[t];return e||De(18,t),e}function Ru(t,e){fi[t]||(fi[t]=e)}function di(){return lo}function ii(t,e){e&&(Qe("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){pi(t),t.p.forEach(Tu),t.p=null}function pi(t){t===lo&&(lo=t.l)}function gl(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Tu(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function si(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Qe("ES5").S(e,t,n),n?(o[re].P&&(yn(e),De(4)),We(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&Qe("Patches").M(o[re].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Rl?t:void 0}function mn(t,e,o){if(bi(e))return e;var n=e[re];if(!n)return Gt(e,function(l,d){return bl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=mi(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Gt(i,function(l,d){return bl(t,n,a,l,d,o,s)}),gn(t,a,!1),o&&t.u&&Qe("Patches").N(n,o,t.u,t.s)}return n.o}function bl(t,e,o,n,a,i,s){if(dt(a)){var l=mn(t,a,i&&e&&e.i!==3&&!fr(e.R,n)?i.concat(n):void 0);if(El(o,n,l),!dt(l))return;t.m=!1}else s&&o.add(a);if(We(a)&&!bi(a)){if(!t.h.D&&t._<1)return;mn(t,a),e&&e.A.l||gn(t,a)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&gi(e,o)}function li(t,e){var o=t[re];return(o?xt(o):t)[e]}function xl(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 vt(t){t.P||(t.P=!0,t.l&&vt(t.l))}function ci(t){t.o||(t.o=mi(t.t))}function ui(t,e,o){var n=hi(e)?Qe("MapSet").F(e,o):yi(e)?Qe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:di(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):Qe("ES5").J(e,o);return(o?o.A:di()).p.push(n),n}function _u(t){return dt(t)||De(22,t),function e(o){if(!We(o))return o;var n,a=o[re],i=yr(o);if(a){if(!a.P&&(a.i<4||!Qe("ES5").K(a)))return a.t;a.I=!0,n=vl(o,i),a.I=!1}else n=vl(o,i);return Gt(n,function(s,l){a&&Au(a.t,s)===l||El(n,s,e(l))}),i===3?new Set(n):n}(t)}function vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mi(t)}function wl(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[re];return co.get(u,s)},set:function(u){var h=this[re];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&vt(d);break;case 4:o(d)&&vt(d)}}}function o(s){for(var l=s.t,d=s.k,u=hr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==re){var y=l[f];if(y===void 0&&!fr(l,f))return!0;var x=d[f],b=x&&x[re];if(b?b.t!==y:!Al(x,y))return!0}}var w=!!l[re];return u.length!==hr(l).length+(w?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&De(3,JSON.stringify(xt(s)))}var i={};Ru("ES5",{J:function(s,l){var d=Array.isArray(s),u=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 w=Tl(y);delete w[re];for(var R=hr(w),T=0;T<R.length;T++){var L=R[T];w[L]=t(L,f||!!w[L].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:di(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,re,{value:h,writable:!0}),u},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[re];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Gt(x,function(S){S!==re&&(y[S]!==void 0||fr(y,S)?b[S]||u(x[S]):(b[S]=!0,vt(f)))}),Gt(y,function(S){x[S]!==void 0||fr(x,S)||(b[S]=!1,vt(f))});else if(w===5){if(n(f)&&(vt(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 L=Math.min(x.length,y.length),O=0;O<L;O++)x.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(x[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Sl,lo,xi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",Lu=typeof Set<"u",Cl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rl=xi?Symbol.for("immer-nothing"):((Sl={})["immer-nothing"]=!0,Sl),Ol=xi?Symbol.for("immer-draftable"):"__$immer_draftable",re=xi?Symbol.for("immer-state"):"__$immer_state";var Iu=""+Object.prototype.constructor,hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tl=Object.getOwnPropertyDescriptors||function(t){var e={};return hr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},fi={},co={get:function(t,e){if(e===re)return t;var o=xt(t);if(!fr(o,e))return function(a,i,s){var l,d=xl(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===li(t.t,e)?(ci(t),t.o[e]=ui(t.A.h,n,t)):n},has:function(t,e){return e in xt(t)},ownKeys:function(t){return Reflect.ownKeys(xt(t))},set:function(t,e,o){var n=xl(xt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=li(xt(t),e),i=a?.[re];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Al(o,a)&&(o!==void 0||fr(t.t,e)))return!0;ci(t),vt(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 li(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ci(t),vt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=xt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){De(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){De(12)}},so={};Gt(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Pu=function(){function t(o){var n=this;this.O=Cl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(w){var R=this;w===void 0&&(w=l);for(var T=arguments.length,L=Array(T>1?T-1:0),O=1;O<T;O++)L[O-1]=arguments[O];return d.produce(w,function(S){var E;return(E=i).call.apply(E,[R,S].concat(L))})}}var u;if(typeof i!="function"&&De(6),s!==void 0&&typeof s!="function"&&De(7),We(a)){var h=gl(n),f=ui(n,a,void 0),y=!0;try{u=i(f),y=!1}finally{y?yn(h):pi(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ii(h,s),si(w,h)},function(w){throw yn(h),w}):(ii(h,s),si(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Rl&&(u=void 0),n.D&&gi(u,!0),s){var x=[],b=[];Qe("Patches").M(a,u,x,b),s(x,b)}return u}De(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){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(u,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},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){We(o)||De(8),dt(o)&&(o=_u(o));var n=gl(this),a=ui(this,o,void 0);return a[re].C=!0,pi(n),a},e.finishDraft=function(o,n){var a=o&&o[re],i=a.A;return ii(i,n),si(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Cl&&De(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=Qe("Patches").$;return dt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Re=new Pu,ku=Re.produce,bx=Re.produceWithPatches.bind(Re),xx=Re.setAutoFreeze.bind(Re),vx=Re.setUseProxies.bind(Re),Sx=Re.applyPatches.bind(Re),Cx=Re.createDraft.bind(Re),Ox=Re.finishDraft.bind(Re),bn=ku;function jt(t){"@babel/helpers - typeof";return jt=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},jt(t)}function _l(t,e){if(jt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nl(t){var e=_l(t,"string");return jt(e)=="symbol"?e:e+""}function Ll(t,e,o){return(e=Nl(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Il(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 vi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(o),!0).forEach(function(n){Ll(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Il(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function me(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Si=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+Si(),REPLACE:"@@redux/REPLACE"+Si(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Si()}};function Du(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 Ci(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(me(1));return o(Ci)(t,e)}if(typeof t!="function")throw new Error(me(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(me(3));return i}function f(w){if(typeof w!="function")throw new Error(me(4));if(d)throw new Error(me(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(me(6));R=!1,u();var L=l.indexOf(w);l.splice(L,1),s=null}}}function y(w){if(!Du(w))throw new Error(me(7));if(typeof w.type>"u")throw new Error(me(8));if(d)throw new Error(me(9));try{d=!0,i=a(i,w)}finally{d=!1}for(var R=s=l,T=0;T<R.length;T++){var L=R[T];L()}return w}function x(w){if(typeof w!="function")throw new Error(me(10));a=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(me(11));function O(){L.next&&L.next(h())}O();var S=R(O);return{unsubscribe:S}}},w[Pl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Pl]=b,n}function Mu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(me(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function kl(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,l;try{Mu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var w=i[b],R=o[w],T=u[w],L=R(T,h);if(typeof L>"u"){var O=h&&h.type;throw new Error(me(14))}x[w]=L,y=y||L!==T}return y=y||i.length!==Object.keys(u).length,y?x:u}}function mr(){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 Dl(){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(me(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=mr.apply(void 0,l)(a.dispatch),vi(vi({},a),{},{dispatch:i})}}}function Ml(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Bl=Ml();Bl.withExtraArgument=Ml;var Oi=Bl;var zl=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)}}(),Bu=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},gr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},$u=Object.defineProperty,Uu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,zu=Object.prototype.propertyIsEnumerable,Ul=function(t,e,o){return e in t?$u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},St=function(t,e){for(var o in e||(e={}))Hu.call(e,o)&&Ul(t,o,e[o]);if($l)for(var n=0,a=$l(e);n<a.length;n++){var o=a[n];zu.call(e,o)&&Ul(t,o,e[o])}return t},Ei=function(t,e){return Uu(t,Fu(e))},Wu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Gu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mr:mr.apply(null,arguments)},Hx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ju(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 Vu=function(t){zl(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,gr([void 0],o[0].concat(this)))):new(e.bind.apply(e,gr([void 0],o.concat(this))))},e}(Array),Ku=function(t){zl(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,gr([void 0],o[0].concat(this)))):new(e.bind.apply(e,gr([void 0],o.concat(this))))},e}(Array);function Ri(t){return We(t)?bn(t,function(){}):t}function Zu(t){return typeof t=="boolean"}function qu(){return function(e){return Yu(e)}}function Yu(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,l=new Vu;if(o&&(Zu(o)?l.push(Oi):l.push(Oi.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var Ai=!0;function Wl(t){var e=qu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(ju(a))x=kl(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),!Ai&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ai&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Dl.apply(void 0,b),R=mr;d&&(R=Gu(St({trace:!Ai},typeof d=="object"&&d)));var T=new Ku(w),L=T;Array.isArray(y)?L=gr([w],y):typeof y=="function"&&(L=y(T));var O=R.apply(void 0,L);return Ci(x,h,O)}function Ct(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 St(St({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 Gl(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=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 Xu(t){return typeof t=="function"}function Ju(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Gl(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Xu(t))d=function(){return Ri(t())};else{var u=Ri(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=gr([i[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(dt(b)){var R=b,T=w(R,y);return T===void 0?b:T}else{if(We(b))return bn(b,function(L){return w(L,y)});var T=w(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 Qu(t,e){return t+"/"+e}function jl(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:Ri(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=Qu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,l[h]=b?Ct(y,b):Ct(y)});function d(){var h=typeof t.extraReducers=="function"?Gl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,T=St(St({},y),s);return Ju(o,function(L){for(var O in T)L.addCase(O,T[O]);for(var S=0,E=b;S<E.length;S++){var D=E[S];L.addMatcher(D.matcher,D.reducer)}R&&L.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var ef="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=ef[Math.random()*64|0];return e},rf=["name","message","stack","code"],wi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Fl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),of=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=rf;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},jx=function(){function t(e,o,n){var a=Ct(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:Ei(St({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=Ct(e+"/pending",function(h,f,y){return{payload:void 0,meta:Ei(St({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ct(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||of)(h||"Rejected"),meta:Ei(St({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!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 u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):tf(),w=new d,R,T=!1;function L(S){R=S,w.abort()}var O=function(){return Wu(this,null,function(){var S,E,D,U,V,H,M;return Bu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:x}),af(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({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([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:L,rejectWithValue:function(C,P){return new wi(C,P)},fulfillWithValue:function(C,P){return new Fl(C,P)}})).then(function(C){if(C instanceof wi)throw C;return C instanceof Fl?a(C.payload,b,h,C.meta):a(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return H=m.sent(),D=H instanceof wi?s(null,b,h,H.payload,H.meta):s(H,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(O,{abort:L,requestId:b,arg:h,unwrap:function(){return O.then(nf)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function nf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function af(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vl="listener",Kl="completed",Zl="cancelled",Vx="task-"+Zl,Kx="task-"+Kl,Zx=Vl+"-"+Zl,qx=Vl+"-"+Kl;var Ti="listenerMiddleware";var Yx=Ct(Ti+"/add"),Xx=Ct(Ti+"/removeAll"),Jx=Ct(Ti+"/remove");var Hl,Qx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hl||(Hl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},sf=function(t){return function(e){setTimeout(e,t)}},ev=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sf(10);wl();window.ftReduxStores||(window.ftReduxStores={});var Vt=class t extends at{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(ur(i))return i;if(a==null)return;let s=jl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Wl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ao;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...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 lf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ur(e)&&e.clear()}var vn=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);Ae(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 cf(t,e,o){return new vn(t,e,o).watch()}var _i=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 ki={};K(ki,{scrollHelper:()=>Pi});var Li,Sn=new Map,Ii=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of ma(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&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,l=Kr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(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=(Li=window.FluidTopicsScrollHelper)!==null&&Li!==void 0?Li:new Ii;var Pi=window.FluidTopicsScrollHelper;var Mi={};K(Mi,{SearchPlaceConverter:()=>Sr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Nc,serializeRequest:()=>ff});var pf=Ud(Yl(),1);var Xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xl||(Xl={}));var Jl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(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"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(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"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ic||(ic={}));var sc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sc||(sc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var cc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var xr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(xr||(xr={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(uc||(uc={}));var Di;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Di||(Di={}));var vc=t=>Object.keys(Di).includes(t);var fc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(fc||(fc={}));var hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var vr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(vr||(vr={}));var Sc=t=>Object.keys(vr).includes(t);var mc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(mc||(mc={}));var gc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gc||(gc={}));var bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bc||(bc={}));var se;(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"})(se||(se={}));var Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var xc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xc||(xc={}));var Cc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Cc||(Cc={}));var Oc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Oc||(Oc={}));var Ec;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ec||(Ec={}));var Ac;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ac||(Ac={}));var wc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wc||(wc={}));var df={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function Rc(t,e){return t===e||(df[t]??[]).some(o=>Rc(o,e))}function Tc(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=>Rc(n,e))}function uf(t){return`"${t}"`}function _c(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ff(t,e){return new Sr(t).serialize(e)}var Y;(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"})(Y||(Y={}));var hf=new Set(Object.values(Y));function Nc(t){return hf.has(t)}var Sr=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,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let w=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&i!==void 0?i:[];if(w.length>0){let S=w.map(E=>{var D,U;let V=((U=(D=E.valueFilter)===null||D===void 0?void 0:D.values)!==null&&U!==void 0?U:[]).map(H=>this.escapeFilters(H)).map(H=>uf(_c(H))).join("_");return`${E.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(E=>{var D;return`${E.key}~${(D=E.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let T=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(T.length>0){let S=T.map(E=>{var D,U;return`${E.key}~${(D=E.rangeFilter)===null||D===void 0?void 0:D.from}_${(U=E.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.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(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let L=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in L)b.append(S,L[S]);let O=new Array;return b.forEach((S,E)=>{O.push(this.encodeQueryString(E)+"="+this.encodeQueryString(S))}),encodeURI(O.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,l;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),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(Y.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(Y.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),w=b?b.toUpperCase()===xr.MANDATORY?xr.MANDATORY:xr.OPTIONAL:void 0,R={};for(let T of d.keys())Nc(T)||(R[T]=d.get(T));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:vc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Kr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(Y.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(Y.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(_c).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:vr[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(Sc(e))return[{key:"ft:lastEdition",dateFilter:{type:vr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ui={};K(Ui,{toFtFormComponent:()=>$i});var Bi=Symbol("elementInternals"),$i=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...n){super(n),this[Bi]=this.attachInternals()}setFormValue(n){this[Bi].setFormValue(n)}}return e});var Fi={};K(Fi,{DateFormatter:()=>Kt});var Kt=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 l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}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 zi={};K(zi,{ALL_KEYS_VALUE:()=>Hi,SameWindowStorageEvent:()=>Cr});var Hi="__all__",Cr=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==Hi}};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 Cr(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 Cr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Cr(Hi))}});var Gi={};K(Gi,{FocusMainContentEvent:()=>Wi});var Wi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Lc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function yf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function mf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",yf);document.addEventListener("click",mf);var Ic=I`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var gf={checkVisibility:!0},Fv=ie(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...gf,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new qr({type:"aria",message:n})))},20)}}return e});function
|
|
72
|
+
`;var gf={checkVisibility:!0},Fv=ie(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...gf,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new qr({type:"aria",message:n})))},20)}}return e});function Pc(t,e,o){return t?e(t):o?.(t)}var fe=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Zt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Zt||(Zt={}));var qt;(function(t){t.default="default",t.warning="warning",t.error="error"})(qt||(qt={}));var ji=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Yv=ie(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Zt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=qt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Zt.blur||this.validateOn===Zt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==qt.default&&this.validateOn===Zt.blurWithStatusResolutionOnInput||this.validateOn===Zt.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 ji(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return $`
|
|
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
|
${kt(this.errorMessages,n=>$`
|
|
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
78
78
|
${kt(this.warningMessages,n=>$`
|
|
79
79
|
<li>${n}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${Pc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>$`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?qt.error:this.warningMessages.length?qt.warning:qt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return fe([v()],e.prototype,"warningRules",void 0),fe([v()],e.prototype,"errorRules",void 0),fe([v()],e.prototype,"validateOn",void 0),fe([v({type:Boolean})],e.prototype,"validateAtRender",void 0),fe([v()],e.prototype,"label",void 0),fe([v({type:Boolean})],e.prototype,"hideLabel",void 0),fe([v()],e.prototype,"name",void 0),fe([v({type:Boolean})],e.prototype,"disabled",void 0),fe([v()],e.prototype,"helperText",void 0),fe([v()],e.prototype,"forceStatus",void 0),fe([v({reflect:!0})],e.prototype,"value",void 0),fe([Z()],e.prototype,"errorMessages",void 0),fe([Z()],e.prototype,"warningMessages",void 0),fe([Z()],e.prototype,"status",void 0),fe([Z()],e.prototype,"focused",void 0),fe([Z()],e.prototype,"additionalWarningRules",void 0),fe([Z()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?qt.error:this.warningMessages.length?qt.warning:qt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return fe([v()],e.prototype,"warningRules",void 0),fe([v()],e.prototype,"errorRules",void 0),fe([v()],e.prototype,"validateOn",void 0),fe([v({type:Boolean})],e.prototype,"validateAtRender",void 0),fe([v()],e.prototype,"label",void 0),fe([v({type:Boolean})],e.prototype,"hideLabel",void 0),fe([v()],e.prototype,"name",void 0),fe([v({type:Boolean})],e.prototype,"disabled",void 0),fe([v()],e.prototype,"helperText",void 0),fe([v()],e.prototype,"forceStatus",void 0),fe([v({reflect:!0})],e.prototype,"value",void 0),fe([Z()],e.prototype,"errorMessages",void 0),fe([Z()],e.prototype,"warningMessages",void 0),fe([Z()],e.prototype,"status",void 0),fe([Z()],e.prototype,"focused",void 0),fe([Z()],e.prototype,"additionalWarningRules",void 0),fe([Z()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},kc=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),vf(e)}};function bf(t){this._$AN!==void 0?(En(this),this._$AM=t,kc(this)):this._$AM=t}function xf(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++)po(n[i],!1),En(n[i]);else n!=null&&(po(n,!1),En(n));else po(this,t)}var vf=t=>{t.type==Ze.CHILD&&(t._$AP??=xf,t._$AQ??=bf)},An=class extends Pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),kc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(po(this,e),En(this))}setValue(e){if(_s(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 Dc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Dc||(Dc={}));var Sf={sm:640,md:768,lg:1024,xl:1280},Vi=class extends An{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??(()=>z);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:Sf[e]}},d0=Fe(Vi);var Ki,Zi,qi,Yi,Xi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((qi=(Zi=(Ki=window.safari)===null||Ki===void 0?void 0:Ki.pushNotification)===null||Zi===void 0?void 0:Zi.toString())!==null&&qi!==void 0?qi:"")==="[object SafariRemoteNotification]",Cf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Yi=window.ftGlobals)!==null&&Yi!==void 0?Yi:{lit:na,litDecorators:ia,litRepeat:sa,litClassMap:la,litStyleMap:da,litUnsafeHTML:ua,wcUtils:{...Sa,...ha,...wa,...Fi,...Ra,...Ta,...Ia,...va,...Za,...Gi,...Lc,...ki,...La,...ei,...Ui,...Ja,...fl,...ga,...oi,...Pa,...ni,...Ic,...yl,...ai,...Ni,...zi,...qa,...Xa,...Mi,...Oa,isSafari:Xi,isTouchScreen:Cf,setVariable:A}};var uo=t=>t??z;var Mc;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(Mc||(Mc={}));var Bc;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Bc||(Bc={}));var Of=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Qi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ji=Symbol("registerInterval"),Ef=ie(Symbol("toFtReaderComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Ji]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ji]):this.dispatchEvent(new Qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ji,Of([Z()],o.prototype,"stateManager",void 0),o}),Or=class extends Ef(Wt){};var Uc=Symbol.for(""),Af=t=>{if(t?.r===Uc)return t?._$litStatic$},Er=t=>({_$litStatic$:t,r:Uc});var $c=new Map,es=t=>(e,...o)=>{let n=o.length,a,i,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(i=o[u],(a=Af(i))!==void 0);)d+=a+e[++u],h=!0;u!==n&&l.push(i),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=$c.get(f))===void 0&&(s.raw=s,$c.set(f,e=s)),o=l}return t(e,...o)},Ar=es($),lS=es(Qn),cS=es(ea);var Et;(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"})(Et||(Et={}));function Fc(t,e){let o=yt[t];return I`
|
|
86
86
|
${e?$e(e):I`.ft-typography--${$e(t)}`} {
|
|
87
87
|
font-family: ${o.fontFamily};
|
|
88
88
|
font-size: ${o.fontSize};
|
|
@@ -92,7 +92,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
92
92
|
text-decoration: ${o.textDecoration};
|
|
93
93
|
text-transform: ${o.textCase};
|
|
94
94
|
}
|
|
95
|
-
`}var
|
|
95
|
+
`}var Hc=r.extend("--ft-typography-font-family","",F.titleFont),pt=r.extend("--ft-typography-font-family","",F.contentFont),B={fontFamily:pt,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")},wr={fontFamily:r.extend("--ft-typography-title-font-family","",Hc),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")},Rr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Hc),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")},Tr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",pt),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")},_r={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",pt),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")},Nr={fontFamily:r.extend("--ft-typography-body1-font-family","",pt),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")},Lr={fontFamily:r.extend("--ft-typography-body2-font-family","",pt),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")},Ir={fontFamily:r.extend("--ft-typography-caption-font-family","",pt),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")},Pr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",pt),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")},kr={fontFamily:r.extend("--ft-typography-overline-font-family","",pt),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")},et={fontFamily:r.extend("--ft-typography-button-font-family","",pt),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")},zc=I`
|
|
96
96
|
.ft-typography--title {
|
|
97
97
|
font-family: ${wr.fontFamily};
|
|
98
98
|
font-size: ${wr.fontSize};
|
|
@@ -101,7 +101,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
101
101
|
line-height: ${wr.lineHeight};
|
|
102
102
|
text-transform: ${wr.textTransform};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,Wc=I`
|
|
105
105
|
.ft-typography--title-dense {
|
|
106
106
|
font-family: ${Rr.fontFamily};
|
|
107
107
|
font-size: ${Rr.fontSize};
|
|
@@ -110,7 +110,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
110
110
|
line-height: ${Rr.lineHeight};
|
|
111
111
|
text-transform: ${Rr.textTransform};
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,Gc=I`
|
|
114
114
|
.ft-typography--subtitle1 {
|
|
115
115
|
font-family: ${Tr.fontFamily};
|
|
116
116
|
font-size: ${Tr.fontSize};
|
|
@@ -119,7 +119,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
119
119
|
line-height: ${Tr.lineHeight};
|
|
120
120
|
text-transform: ${Tr.textTransform};
|
|
121
121
|
}
|
|
122
|
-
`,
|
|
122
|
+
`,jc=I`
|
|
123
123
|
.ft-typography--subtitle2 {
|
|
124
124
|
font-family: ${_r.fontFamily};
|
|
125
125
|
font-size: ${_r.fontSize};
|
|
@@ -129,7 +129,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
129
129
|
text-transform: ${_r.textTransform};
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
`,
|
|
132
|
+
`,Vc=I`
|
|
133
133
|
.ft-typography--body1 {
|
|
134
134
|
font-family: ${Nr.fontFamily};
|
|
135
135
|
font-size: ${Nr.fontSize};
|
|
@@ -138,7 +138,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
138
138
|
line-height: ${Nr.lineHeight};
|
|
139
139
|
text-transform: ${Nr.textTransform};
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Kc=I`
|
|
142
142
|
.ft-typography--body2 {
|
|
143
143
|
font-family: ${Lr.fontFamily};
|
|
144
144
|
font-size: ${Lr.fontSize};
|
|
@@ -147,7 +147,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
147
147
|
line-height: ${Lr.lineHeight};
|
|
148
148
|
text-transform: ${Lr.textTransform};
|
|
149
149
|
}
|
|
150
|
-
`,
|
|
150
|
+
`,Zc=I`
|
|
151
151
|
.ft-typography--caption {
|
|
152
152
|
font-family: ${Ir.fontFamily};
|
|
153
153
|
font-size: ${Ir.fontSize};
|
|
@@ -156,7 +156,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
156
156
|
line-height: ${Ir.lineHeight};
|
|
157
157
|
text-transform: ${Ir.textTransform};
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`,qc=I`
|
|
160
160
|
.ft-typography--breadcrumb {
|
|
161
161
|
font-family: ${Pr.fontFamily};
|
|
162
162
|
font-size: ${Pr.fontSize};
|
|
@@ -165,7 +165,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
165
165
|
line-height: ${Pr.lineHeight};
|
|
166
166
|
text-transform: ${Pr.textTransform};
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,Yc=I`
|
|
169
169
|
.ft-typography--overline {
|
|
170
170
|
font-family: ${kr.fontFamily};
|
|
171
171
|
font-size: ${kr.fontSize};
|
|
@@ -174,7 +174,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
174
174
|
line-height: ${kr.lineHeight};
|
|
175
175
|
text-transform: ${kr.textTransform};
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,Xc=I`
|
|
178
178
|
.ft-typography--button {
|
|
179
179
|
font-family: ${et.fontFamily};
|
|
180
180
|
font-size: ${et.fontSize};
|
|
@@ -183,11 +183,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
183
183
|
line-height: ${et.lineHeight};
|
|
184
184
|
text-transform: ${et.textTransform};
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,Jc=I`
|
|
187
187
|
.ft-typography {
|
|
188
188
|
vertical-align: inherit;
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Qc=[Object.keys(yt).map(t=>Fc(t))];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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Te=class extends G{constructor(){super(...arguments),this.variant=Et.body1}render(){return this.element?Ar`
|
|
191
191
|
<${Er(this.element)}
|
|
192
192
|
part="text"
|
|
193
193
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -195,7 +195,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
195
195
|
</${Er(this.element)}>
|
|
196
196
|
`:Ar`
|
|
197
197
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
198
|
-
`}};Te.styles=[
|
|
198
|
+
`}};Te.styles=[zc,Wc,Gc,jc,Vc,Kc,Zc,qc,Yc,Xc,Jc,...Qc];ed([v()],Te.prototype,"element",void 0);ed([v()],Te.prototype,"variant",void 0);var At;(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"})(At||(At={}));function wf(t,e){let o=yt[t];return I`
|
|
199
199
|
${e?$e(e):I`.ftds-typography--${$e(t)}`} {
|
|
200
200
|
font-family: ${o.fontFamily};
|
|
201
201
|
font-size: ${o.fontSize};
|
|
@@ -205,7 +205,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
205
205
|
text-decoration: ${o.textDecoration};
|
|
206
206
|
text-transform: ${o.textCase};
|
|
207
207
|
}
|
|
208
|
-
`}var
|
|
208
|
+
`}var td=[Object.keys(yt).map(t=>wf(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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},ut=class extends G{constructor(){super(...arguments),this.variant=At.body2medium}render(){return this.element?Ar`
|
|
209
209
|
<${Er(this.element)}
|
|
210
210
|
part="text"
|
|
211
211
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -213,7 +213,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
213
213
|
</${Er(this.element)}>
|
|
214
214
|
`:Ar`
|
|
215
215
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
216
|
-
`}};ut.styles=[...
|
|
216
|
+
`}};ut.styles=[...td];rd([v()],ut.prototype,"element",void 0);rd([v()],ut.prototype,"variant",void 0);J("ft-typography")(Te);J("ftds-typography")(ut);var Rf={outlineColor:r.extend("--ft-reader-internal-link-outline-color","",F.colorPrimary)},od=I`
|
|
217
217
|
:host {
|
|
218
218
|
display: contents;
|
|
219
219
|
}
|
|
@@ -232,7 +232,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
232
232
|
@click=${n=>this.onLinkClick(n)}>
|
|
233
233
|
<slot></slot>
|
|
234
234
|
</a>
|
|
235
|
-
`}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())}};Ge.styles=rd;wn([v()],Ge.prototype,"tocId",void 0);wn([v()],Ge.prototype,"section",void 0);wn([v({type:Number})],Ge.prototype,"pageNumber",void 0);wn([v({type:Boolean})],Ge.prototype,"removeStyle",void 0);J("ft-reader-internal-link")(Ge);var Rn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(Rn||(Rn={}));var N;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(N||(N={}));var aO=new Map([...["abw"].map(t=>[t,N.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,N.AUDIO]),...["avi"].map(t=>[t,N.AVI]),...["chm","xhs"].map(t=>[t,N.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,N.CODE]),...["csv"].map(t=>[t,N.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,N.DITA]),...["epub"].map(t=>[t,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,N.EXCEL]),...["flac"].map(t=>[t,N.FLAC]),...["gif"].map(t=>[t,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,N.GZIP]),...["html","htm","xhtml"].map(t=>[t,N.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,N.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,N.JPEG]),...["json"].map(t=>[t,N.JSON]),...["m4a","m4p"].map(t=>[t,N.M4A]),...["mov","qt"].map(t=>[t,N.MOV]),...["mp3"].map(t=>[t,N.MP3]),...["mp4","m4v"].map(t=>[t,N.MP4]),...["ogg","oga"].map(t=>[t,N.OGG]),...["pdf","ps"].map(t=>[t,N.PDF]),...["png"].map(t=>[t,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,N.POWERPOINT]),...["rar"].map(t=>[t,N.RAR]),...["stp"].map(t=>[t,N.STP]),...["txt","rtf","md","mdown"].map(t=>[t,N.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,N.VIDEO]),...["wav"].map(t=>[t,N.WAV]),...["wma"].map(t=>[t,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,N.WORD]),...["xml","xsl","rdf"].map(t=>[t,N.XML]),...["yaml","yml","x-yaml"].map(t=>[t,N.YAML]),...["zip"].map(t=>[t,N.ZIP])]);var iO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var be={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")},od=[I`
|
|
235
|
+
`}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())}};Ge.styles=od;wn([v()],Ge.prototype,"tocId",void 0);wn([v()],Ge.prototype,"section",void 0);wn([v({type:Number})],Ge.prototype,"pageNumber",void 0);wn([v({type:Boolean})],Ge.prototype,"removeStyle",void 0);J("ft-reader-internal-link")(Ge);var Rn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(Rn||(Rn={}));var N;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(N||(N={}));var aO=new Map([...["abw"].map(t=>[t,N.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,N.AUDIO]),...["avi"].map(t=>[t,N.AVI]),...["chm","xhs"].map(t=>[t,N.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,N.CODE]),...["csv"].map(t=>[t,N.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,N.DITA]),...["epub"].map(t=>[t,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,N.EXCEL]),...["flac"].map(t=>[t,N.FLAC]),...["gif"].map(t=>[t,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,N.GZIP]),...["html","htm","xhtml"].map(t=>[t,N.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,N.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,N.JPEG]),...["json"].map(t=>[t,N.JSON]),...["m4a","m4p"].map(t=>[t,N.M4A]),...["mov","qt"].map(t=>[t,N.MOV]),...["mp3"].map(t=>[t,N.MP3]),...["mp4","m4v"].map(t=>[t,N.MP4]),...["ogg","oga"].map(t=>[t,N.OGG]),...["pdf","ps"].map(t=>[t,N.PDF]),...["png"].map(t=>[t,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,N.POWERPOINT]),...["rar"].map(t=>[t,N.RAR]),...["stp"].map(t=>[t,N.STP]),...["txt","rtf","md","mdown"].map(t=>[t,N.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,N.VIDEO]),...["wav"].map(t=>[t,N.WAV]),...["wma"].map(t=>[t,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,N.WORD]),...["xml","xsl","rdf"].map(t=>[t,N.XML]),...["yaml","yml","x-yaml"].map(t=>[t,N.YAML]),...["zip"].map(t=>[t,N.ZIP])]);var iO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var be={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")},nd=[I`
|
|
236
236
|
:host, i.ft-icon {
|
|
237
237
|
display: inline-flex;
|
|
238
238
|
align-items: center;
|
|
@@ -285,7 +285,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
285
285
|
${pa(this.resolvedIcon)}
|
|
286
286
|
<slot ?hidden=${o}></slot>
|
|
287
287
|
</i>
|
|
288
|
-
`}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 _e.file_format:this.resolvedIcon=(e=N[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case _e.material:this.resolvedIcon=this.value||z;break;default:this.resolvedIcon=(o=Rn[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=
|
|
288
|
+
`}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 _e.file_format:this.resolvedIcon=(e=N[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case _e.material:this.resolvedIcon=this.value||z;break;default:this.resolvedIcon=(o=Rn[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=nd;fo([v()],xe.prototype,"variant",void 0);fo([v()],xe.prototype,"value",void 0);fo([v({reflect:!0,attribute:"aria-hidden"})],xe.prototype,"ariaHidden",void 0);fo([Z()],xe.prototype,"resolvedIcon",void 0);fo([ye("slot")],xe.prototype,"slottedContent",void 0);J("ft-icon")(xe);var ad=r.extend("--ft-ripple-color","",F.colorContent),_={color:ad,backgroundColor:r.extend("--ft-ripple-background-color","",ad),opacityContentOnSurfacePressed:r.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},id=r.extend("--ft-ripple-color","",F.colorPrimary),sd={color:id,backgroundColor:r.extend("--ft-ripple-background-color","",id)},ld=r.extend("--ft-ripple-color","",F.colorSecondary),cd={color:ld,backgroundColor:r.extend("--ft-ripple-background-color","",ld)},dd=I`
|
|
289
289
|
:host {
|
|
290
290
|
display: contents;
|
|
291
291
|
}
|
|
@@ -340,19 +340,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
343
|
-
background-color: ${
|
|
343
|
+
background-color: ${cd.backgroundColor};
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
347
|
-
background-color: ${
|
|
347
|
+
background-color: ${cd.color};
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
351
|
-
background-color: ${
|
|
351
|
+
background-color: ${sd.backgroundColor};
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
355
|
-
background-color: ${
|
|
355
|
+
background-color: ${sd.color};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
.ft-ripple .ft-ripple--background {
|
|
@@ -397,7 +397,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
397
397
|
opacity: ${_.opacityContentOnSurfacePressed};
|
|
398
398
|
transform: translate(-50%, -50%) scale(1);
|
|
399
399
|
}
|
|
400
|
-
`;var oe={color:r.extend("--ft-loader-color","",F.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},
|
|
400
|
+
`;var oe={color:r.extend("--ft-loader-color","",F.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},pd=I`
|
|
401
401
|
:host {
|
|
402
402
|
line-height: 0;
|
|
403
403
|
}
|
|
@@ -466,7 +466,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
466
466
|
transform: translate(calc(0.35 * ${oe.size}), 0);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
`;var
|
|
469
|
+
`;var ud=r.extend("--ft-button-color","",F.colorPrimary),ne={backgroundColor:r.extend("--ft-button-background-color","",F.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",F.borderRadiusL),color:ud,fontSize:r.extend("--ft-button-font-size","",et.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",ud),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(F.colorOpacityDisabled,"Design system")},fd=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",F.colorOnPrimary)),ts={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",F.colorPrimary)),color:fd,rippleColor:r.extend("--ft-button-primary-ripple-color","",fd)},tt={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",F.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")},hd=[I`
|
|
470
470
|
:host {
|
|
471
471
|
display: inline-block;
|
|
472
472
|
max-width: 100%;
|
|
@@ -614,7 +614,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
614
614
|
<div class="ft-ripple--background"></div>
|
|
615
615
|
<div class="ft-ripple--effect"></div>
|
|
616
616
|
</div>
|
|
617
|
-
`}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=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},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()}};ae.elementDefinitions={};ae.styles=
|
|
617
|
+
`}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=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},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()}};ae.elementDefinitions={};ae.styles=dd;Se([v({type:Boolean})],ae.prototype,"primary",void 0);Se([v({type:Boolean})],ae.prototype,"secondary",void 0);Se([v({type:Boolean})],ae.prototype,"unbounded",void 0);Se([v({type:Boolean})],ae.prototype,"activated",void 0);Se([v({type:Boolean})],ae.prototype,"selected",void 0);Se([v({type:Boolean})],ae.prototype,"disabled",void 0);Se([Z()],ae.prototype,"hovered",void 0);Se([Z()],ae.prototype,"focused",void 0);Se([Z()],ae.prototype,"pressed",void 0);Se([Z()],ae.prototype,"rippling",void 0);Se([Z()],ae.prototype,"originX",void 0);Se([Z()],ae.prototype,"originY",void 0);Se([ye(".ft-ripple")],ae.prototype,"ripple",void 0);Se([ye(".ft-ripple--effect")],ae.prototype,"rippleEffect",void 0);J("ft-ripple")(ae);var Dr={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","",F.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},yd=I`
|
|
618
618
|
.ft-tooltip--container {
|
|
619
619
|
display: block;
|
|
620
620
|
}
|
|
@@ -643,10 +643,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
643
643
|
position: relative;
|
|
644
644
|
word-break: break-word;
|
|
645
645
|
}
|
|
646
|
-
`;var
|
|
647
|
-
`;var Tf="ft-app-info",Yt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yt.eventName="authentication-change";var _f={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Yt(e.payload)),0))}},k=Vt.get({name:Tf,reducers:_f,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 Xt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.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=k.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Tn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Xt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Xt.await()}};var Ne=class extends Tn{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(([l],[d])=>l.localeCompare(d)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ye,this.cache=e?a.commonCache:new Ye}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 _n=class extends Ne{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var rs=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rs;var md,Mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Nf=Symbol("clearAfterUnitTest"),Nn=class extends Po(Ne){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[md]=()=>{this.defaultMessages={},this.cache=new Ye,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.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};Ee(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 no((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 Dt)&&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 Mr({loadedContexts:e})),this.dispatchEvent(new Mr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Mr({loadedContexts:[e]})),this.dispatchEvent(new Mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Lo(0).then(()=>n()).catch(()=>null)))}};md=Nf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Nn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Nn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Br=window.FluidTopicsI18nService,Ln=window.FluidTopicsCustomI18nService;var os=class{highlightHtml(e,o,n){ri(e,o,n)}};window.FluidTopicsHighlightHtmlService=new os;var In=class extends Ne{async listMySearches(){let{session:e}=k.getState();return Rc(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ns=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Kt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ns;var ho=class{static get(e,o){var n,a;let i=k.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Sr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var as=class{urlToSearchRequest(e){return ho.get().parse(e)}searchRequestToUrl(e){return ho.get().serialize(e)}};window.FluidTopicsUrlService=new as;var Jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Jt.eventName="change";var is=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))}},gd=new is;var Pn=class t extends at{static build(){return new t(window.history,gd,()=>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),Ee(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,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let 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 Zr(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 Zr(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 Zr(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=Pn.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 bd=k;function xd(t,e){var o;return bd.getState().authenticationRequired&&!(!((o=bd.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var le=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},te=class extends G{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=()=>Xt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ye,this.cleanSessionDebouncer=new ge,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return $`
|
|
646
|
+
`;var md=I`
|
|
647
|
+
`;var Tf="ft-app-info",Yt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yt.eventName="authentication-change";var _f={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Yt(e.payload)),0))}},k=Vt.get({name:Tf,reducers:_f,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 Xt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.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=k.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Tn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Xt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Xt.await()}};var Ne=class extends Tn{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(([l],[d])=>l.localeCompare(d)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ye,this.cache=e?a.commonCache:new Ye}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 _n=class extends Ne{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var rs=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rs;var gd,Mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Nf=Symbol("clearAfterUnitTest"),Nn=class extends Po(Ne){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gd]=()=>{this.defaultMessages={},this.cache=new Ye,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.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};Ee(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 no((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 Dt)&&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 Mr({loadedContexts:e})),this.dispatchEvent(new Mr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Mr({loadedContexts:[e]})),this.dispatchEvent(new Mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Lo(0).then(()=>n()).catch(()=>null)))}};gd=Nf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Nn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Nn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Br=window.FluidTopicsI18nService,Ln=window.FluidTopicsCustomI18nService;var os=class{highlightHtml(e,o,n){ri(e,o,n)}};window.FluidTopicsHighlightHtmlService=new os;var In=class extends Ne{async listMySearches(){let{session:e}=k.getState();return Tc(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ns=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Kt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ns;var ho=class{static get(e,o){var n,a;let i=k.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Sr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var as=class{urlToSearchRequest(e){return ho.get().parse(e)}searchRequestToUrl(e){return ho.get().serialize(e)}};window.FluidTopicsUrlService=new as;var Jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Jt.eventName="change";var is=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))}},bd=new is;var Pn=class t extends at{static build(){return new t(window.history,bd,()=>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),Ee(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,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let 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 Zr(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 Zr(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 Zr(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=Pn.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 xd(t,e){let{authenticationRequired:o,session:n}=k.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var le=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},te=class extends G{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=()=>Xt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ye,this.cleanSessionDebouncer=new ge,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return $`
|
|
648
648
|
<slot></slot>
|
|
649
|
-
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Yt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Yt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Br.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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",()=>xd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};te.elementDefinitions={};te.styles=yd;le([v()],te.prototype,"baseUrl",void 0);le([v()],te.prototype,"apiIntegrationIdentifier",void 0);le([v()],te.prototype,"apiIntegrationAppVersion",void 0);le([v()],te.prototype,"uiLocale",void 0);le([ke(null)],te.prototype,"availableUiLocales",void 0);le([ke(null)],te.prototype,"metadataConfiguration",void 0);le([v({type:Boolean})],te.prototype,"editorMode",void 0);le([v({type:Boolean})],te.prototype,"noCustom",void 0);le([v({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);le([v({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);le([v({type:Boolean})],te.prototype,"withManualResources",void 0);le([v({type:Boolean})],te.prototype,"navigatorOnline",void 0);le([v({type:Boolean})],te.prototype,"forcedOffline",void 0);le([v({type:Object})],te.prototype,"apiProvider",void 0);le([v({type:Boolean})],te.prototype,"authenticationRequired",void 0);le([ke([])],te.prototype,"messageContexts",void 0);le([ke(void 0)],te.prototype,"session",void 0);le([Z()],te.prototype,"localesConfiguration",void 0);le([Z()],te.prototype,"availableContentLocales",void 0);var kn=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},OA=ie(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(k)}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(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Kt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kn([v({type:Boolean})],e.prototype,"useLongDateFormat",void 0),kn([v({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),kn([ze({store:k.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),kn([ze({store:k.name})],e.prototype,"uiLocale",void 0),e});var Dn=class extends Ne{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=k.getState().session;return!!e?.sessionAuthenticated}};var Mn=class extends Ne{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=k.getState().session;return!!e?.sessionAuthenticated}};var Lf="ft-user-assets",If={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Me).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;ls(t,o,[...ss(t,o),a]),vd(t,o,1,n),Sd(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ls(t,o,ss(t,o).map(a=>a.id===n.id?n:a)),Sd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;ls(t,o,ss(t,o).filter(i=>i.id!==a)),vd(t,o,-1,n)}},Cd={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},ss=(t,e)=>{var o;let n=Cd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ls=(t,e,o)=>{let n=Cd[e];n&&(t[n]=o)},vd=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Me.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Sd=(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)},Le=Vt.get({name:Lf,reducers:If,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cs=class{constructor(e=new Dn,o=new Mn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _n,this.savedSearchesService=new In,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((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(),Le.actions.clearAssetCount(),Le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Le.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Le.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Le.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Le.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&o&&Le.actions.clearBookmarkCountByMap(),Le.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;Le.actions.bookmarks(o)}}},Pf=new cs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Pf);J("ft-app-context")(te);var ds=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-]+$/)}},$r=new ds;var kf=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},mo=Symbol("i18nAttributes"),Od=Symbol("i18nListAttributes"),Ed=Symbol("i18nProperties"),Bn=Symbol("i18nContexts"),yo=Symbol("i18nUnsubs"),Fn=ie(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?Ln:Br}i18n(i){let{context:s,key:l,message:d}=i,{custom:u,args:h,argsProvider:f}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if($r.isI18nKey(i)){let[l,d]=i.split(".");return this.i18n({custom:!0,context:l,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,l,d)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let d=this,u=(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[mo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[Od])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(i){var s;(s=this[Ed])===null||s===void 0||s.forEach((l,d)=>{i(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let d=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Bn].set(d,{isCustomContext:l}),this[yo].has(d)||this[yo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(i){return this[Bn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yo].forEach(i=>i()),this[yo].clear()}}return e=Bn,o=yo,kf([v({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),$n=class extends Fn(G){},Un=class extends Fn(Wt){};var ps=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?$r.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Df=new ps;var Ad=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Ae,converter:$r,...e}),o[mo]=(a=o[mo])!==null&&a!==void 0?a:new Map,o[mo].set(n,t??{})};var wd=I`
|
|
649
|
+
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Yt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Yt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Br.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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",()=>xd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};te.elementDefinitions={};te.styles=md;le([v()],te.prototype,"baseUrl",void 0);le([v()],te.prototype,"apiIntegrationIdentifier",void 0);le([v()],te.prototype,"apiIntegrationAppVersion",void 0);le([v()],te.prototype,"uiLocale",void 0);le([ke(null)],te.prototype,"availableUiLocales",void 0);le([ke(null)],te.prototype,"metadataConfiguration",void 0);le([v({type:Boolean})],te.prototype,"editorMode",void 0);le([v({type:Boolean})],te.prototype,"noCustom",void 0);le([v({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);le([v({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);le([v({type:Boolean})],te.prototype,"withManualResources",void 0);le([v({type:Boolean})],te.prototype,"navigatorOnline",void 0);le([v({type:Boolean})],te.prototype,"forcedOffline",void 0);le([v({type:Object})],te.prototype,"apiProvider",void 0);le([v({type:Boolean})],te.prototype,"authenticationRequired",void 0);le([ke([])],te.prototype,"messageContexts",void 0);le([ke(void 0)],te.prototype,"session",void 0);le([Z()],te.prototype,"localesConfiguration",void 0);le([Z()],te.prototype,"availableContentLocales",void 0);var kn=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},OA=ie(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(k)}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(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Kt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kn([v({type:Boolean})],e.prototype,"useLongDateFormat",void 0),kn([v({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),kn([ze({store:k.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),kn([ze({store:k.name})],e.prototype,"uiLocale",void 0),e});var Dn=class extends Ne{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=k.getState().session;return!!e?.sessionAuthenticated}};var Mn=class extends Ne{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=k.getState().session;return!!e?.sessionAuthenticated}};var Lf="ft-user-assets",If={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Me).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;ls(t,o,[...ss(t,o),a]),vd(t,o,1,n),Sd(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ls(t,o,ss(t,o).map(a=>a.id===n.id?n:a)),Sd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;ls(t,o,ss(t,o).filter(i=>i.id!==a)),vd(t,o,-1,n)}},Cd={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},ss=(t,e)=>{var o;let n=Cd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ls=(t,e,o)=>{let n=Cd[e];n&&(t[n]=o)},vd=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Me.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Sd=(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)},Le=Vt.get({name:Lf,reducers:If,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cs=class{constructor(e=new Dn,o=new Mn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _n,this.savedSearchesService=new In,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((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(),Le.actions.clearAssetCount(),Le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Le.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Le.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Le.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Le.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&o&&Le.actions.clearBookmarkCountByMap(),Le.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;Le.actions.bookmarks(o)}}},Pf=new cs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Pf);J("ft-app-context")(te);var ds=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-]+$/)}},$r=new ds;var kf=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},mo=Symbol("i18nAttributes"),Od=Symbol("i18nListAttributes"),Ed=Symbol("i18nProperties"),Bn=Symbol("i18nContexts"),yo=Symbol("i18nUnsubs"),Fn=ie(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?Ln:Br}i18n(i){let{context:s,key:l,message:d}=i,{custom:u,args:h,argsProvider:f}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if($r.isI18nKey(i)){let[l,d]=i.split(".");return this.i18n({custom:!0,context:l,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,l,d)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let d=this,u=(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[mo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[Od])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(i){var s;(s=this[Ed])===null||s===void 0||s.forEach((l,d)=>{i(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let d=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Bn].set(d,{isCustomContext:l}),this[yo].has(d)||this[yo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(i){return this[Bn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yo].forEach(i=>i()),this[yo].clear()}}return e=Bn,o=yo,kf([v({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),$n=class extends Fn(G){},Un=class extends Fn(Wt){};var ps=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?$r.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Df=new ps;var Ad=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Ae,converter:$r,...e}),o[mo]=(a=o[mo])!==null&&a!==void 0?a:new Map,o[mo].set(n,t??{})};var wd=I`
|
|
650
650
|
`;var go=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},je=class extends Un{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":z:$`
|
|
651
651
|
<span class="ft-i18n">
|
|
652
652
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -666,14 +666,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
666
666
|
</div>
|
|
667
667
|
</div>
|
|
668
668
|
</div>
|
|
669
|
-
`}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="",Ka(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 ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ya(e,this.ignoreMatchingElements,this.eventsTarget)}};ce.elementDefinitions={"ft-typography":Te};ce.styles=
|
|
669
|
+
`}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="",Ka(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 ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ya(e,this.ignoreMatchingElements,this.eventsTarget)}};ce.elementDefinitions={"ft-typography":Te};ce.styles=yd;Ve([Ad()],ce.prototype,"text",void 0);Ve([v({type:Boolean})],ce.prototype,"manual",void 0);Ve([v({type:Boolean})],ce.prototype,"inline",void 0);Ve([ko()],ce.prototype,"delay",void 0);Ve([v()],ce.prototype,"position",void 0);Ve([ke([])],ce.prototype,"ignoreMatchingElements",void 0);Ve([aa()],ce.prototype,"slotNodes",void 0);Ve([ye(".ft-tooltip--container")],ce.prototype,"container",void 0);Ve([ye(".ft-tooltip")],ce.prototype,"tooltip",void 0);Ve([ye(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0);Ve([Z()],ce.prototype,"visible",void 0);J("ft-tooltip")(ce);var Qt=class extends G{render(){return $`
|
|
670
670
|
<div class="ft-loader">
|
|
671
671
|
<div></div>
|
|
672
672
|
<div></div>
|
|
673
673
|
<div></div>
|
|
674
674
|
<div></div>
|
|
675
675
|
</div>
|
|
676
|
-
`}};Qt.styles=
|
|
676
|
+
`}};Qt.styles=pd;J("ft-loader")(Qt);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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},X=class extends $i(G){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=$`
|
|
677
677
|
<ft-ripple part="ripple"
|
|
678
678
|
?disabled=${this.isDisabled()}
|
|
679
679
|
?activated=${this.activated}
|
|
@@ -715,7 +715,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
715
715
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
716
716
|
`:$`
|
|
717
717
|
<slot part="icon" name="icon"></slot>
|
|
718
|
-
`}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 Io(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};X.elementDefinitions={"ft-ripple":ae,"ft-tooltip":ce,"ft-icon":xe,"ft-loader":Qt};de([v()],X.prototype,"href",void 0);de([v()],X.prototype,"target",void 0);de([v()],X.prototype,"type",void 0);de([v({type:Boolean})],X.prototype,"disabled",void 0);de([v()],X.prototype,"label",void 0);de([v()],X.prototype,"icon",void 0);de([v()],X.prototype,"iconVariant",void 0);de([v({type:Boolean})],X.prototype,"trailingIcon",void 0);de([v({type:Boolean})],X.prototype,"loading",void 0);de([v({attribute:"aria-label"})],X.prototype,"ariaLabel",void 0);de([v()],X.prototype,"ariaHasPopup",void 0);de([v({attribute:"aria-pressed"})],X.prototype,"ariaPressed",void 0);de([v()],X.prototype,"tooltipPosition",void 0);de([v({type:Boolean})],X.prototype,"hideTooltip",void 0);de([v({type:Boolean})],X.prototype,"forceTooltip",void 0);de([v({type:Boolean})],X.prototype,"activated",void 0);de([ye(".ft-button")],X.prototype,"button",void 0);de([ye(".ft-button--label slot")],X.prototype,"slottedContent",void 0);de([ye("[part=tooltip]")],X.prototype,"tooltip",void 0);var zn=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Be=class extends X{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 Et.button}};Be.elementDefinitions={...X.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[oo,
|
|
718
|
+
`}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 Io(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};X.elementDefinitions={"ft-ripple":ae,"ft-tooltip":ce,"ft-icon":xe,"ft-loader":Qt};de([v()],X.prototype,"href",void 0);de([v()],X.prototype,"target",void 0);de([v()],X.prototype,"type",void 0);de([v({type:Boolean})],X.prototype,"disabled",void 0);de([v()],X.prototype,"label",void 0);de([v()],X.prototype,"icon",void 0);de([v()],X.prototype,"iconVariant",void 0);de([v({type:Boolean})],X.prototype,"trailingIcon",void 0);de([v({type:Boolean})],X.prototype,"loading",void 0);de([v({attribute:"aria-label"})],X.prototype,"ariaLabel",void 0);de([v()],X.prototype,"ariaHasPopup",void 0);de([v({attribute:"aria-pressed"})],X.prototype,"ariaPressed",void 0);de([v()],X.prototype,"tooltipPosition",void 0);de([v({type:Boolean})],X.prototype,"hideTooltip",void 0);de([v({type:Boolean})],X.prototype,"forceTooltip",void 0);de([v({type:Boolean})],X.prototype,"activated",void 0);de([ye(".ft-button")],X.prototype,"button",void 0);de([ye(".ft-button--label slot")],X.prototype,"slottedContent",void 0);de([ye("[part=tooltip]")],X.prototype,"tooltip",void 0);var zn=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Be=class extends X{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 Et.button}};Be.elementDefinitions={...X.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[oo,hd];zn([v({type:Boolean})],Be.prototype,"primary",void 0);zn([v({type:Boolean})],Be.prototype,"outlined",void 0);zn([v({type:Boolean})],Be.prototype,"dense",void 0);zn([v({type:Boolean})],Be.prototype,"round",void 0);var Mf={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},Rd=[I`
|
|
719
719
|
:host {
|
|
720
720
|
display: inline-block;
|
|
721
721
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.55",
|
|
4
4
|
"description": "Main table of content for integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.3.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "1.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.3.55",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.3.55",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "1.3.55",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.3.55",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.3.55",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4b1a60c10c8b8d68e0b9075038c0508a94ff7d38"
|
|
30
30
|
}
|