@fluid-topics/ft-button 1.3.54 → 1.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-button.light.js +1 -1
- package/build/ft-button.min.js +34 -34
- package/package.json +8 -8
package/build/ft-button.light.js
CHANGED
|
@@ -540,7 +540,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
540
540
|
word-break: break-word;
|
|
541
541
|
}
|
|
542
542
|
`;var hi=["top","right","bottom","left"],fi=["start","end"],dn=hi.reduce((e,r)=>e.concat(r,r+"-"+fi[0],r+"-"+fi[1]),[]),yi=Math.min,mi=Math.max;var al={left:"right",right:"left",bottom:"top",top:"bottom"},il={start:"end",end:"start"};function un(e,r,o){return mi(e,yi(r,o))}function _r(e,r){return typeof e=="function"?e(r):e}function Wt(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function pn(e){return e==="x"?"y":"x"}function fn(e){return e==="y"?"height":"width"}function Pr(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function hn(e){return pn(Pr(e))}function gi(e,r,o){o===void 0&&(o=!1);let n=Je(e),a=hn(e),i=fn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=ln(c)),[c,ln(c)]}function bi(e){return e.replace(/start|end/g,r=>il[r])}function ln(e){return e.replace(/left|right|bottom|top/g,r=>al[r])}function sl(e){return{top:0,right:0,bottom:0,left:0,...e}}function xi(e){return typeof e!="number"?sl(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:r,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function vi(e,r,o){let{reference:n,floating:a}=e,i=Pr(r),c=hn(r),l=fn(c),u=Wt(r),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(u){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:h};break;case"left":v={x:n.x-a.width,y:h};break;default:v={x:n.x,y:n.y}}switch(Je(r)){case"start":v[c]-=g*(o&&p?-1:1);break;case"end":v[c]+=g*(o&&p?-1:1);break}return v}var Si=async(e,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(r)),p=await c.getElementRects({reference:e,floating:r,strategy:a}),{x:m,y:h}=vi(p,n,u),g=n,v={},x=0;for(let O=0;O<l.length;O++){let{name:T,fn:R}=l[O],{x:N,y:P,data:B,reset:M}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:c,elements:{reference:e,floating:r}});m=N??m,h=P??h,v={...v,[T]:{...v[T],...B}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(p=M.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:a}):M.rects),{x:m,y:h}=vi(p,g,u)),O=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:v}};async function yn(e,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=_r(r,e),x=xi(v),T=l[g?h==="floating"?"reference":"floating":h],R=ht(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(l.floating)),boundary:p,rootBoundary:m,strategy:u})),N=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},M=ht(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:P,strategy:u}):N);return{top:(R.top-M.top+x.top)/B.y,bottom:(M.bottom-R.bottom+x.bottom)/B.y,left:(R.left-M.left+x.left)/B.x,right:(M.right-R.right+x.right)/B.x}}function cl(e,r,o){return(e?[...o.filter(a=>Je(a)===e),...o.filter(a=>Je(a)!==e)]:o.filter(a=>Wt(a)===a)).filter(a=>e?Je(a)===e||(r?bi(a)!==a:!1):!0)}var mn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=r,{crossAxis:m=!1,alignment:h,allowedPlacements:g=dn,autoAlignment:v=!0,...x}=_r(e,r),O=h!==void 0||g===dn?cl(h||null,v,g):g,T=await yn(r,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=O[R];if(N==null)return{};let P=gi(N,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==N)return{reset:{placement:O[0]}};let B=[T[Wt(N)],T[P[0]],T[P[1]]],M=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],le=O[R+1];if(le)return{data:{index:R+1,overflows:M},reset:{placement:le}};let Le=M.map(te=>{let y=Je(te.placement);return[te.placement,y&&m?te.overflows.slice(0,2).reduce((b,_)=>b+_,0):te.overflows[0],te.overflows]}).sort((te,y)=>te[1]-y[1]),Ie=((a=Le.filter(te=>te[2].slice(0,Je(te[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Le[0][0];return Ie!==l?{data:{index:R+1,overflows:M},reset:{placement:Ie}}:{}}}};var gn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...u}=_r(e,r),p={x:o,y:n},m=await yn(r,u),h=Pr(Wt(a)),g=pn(h),v=p[g],x=p[h];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=v+m[T],P=v-m[R];v=un(N,v,P)}if(c){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",N=x+m[T],P=x-m[R];x=un(N,x,P)}let O=l.fn({...r,[g]:v,[h]:x});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:c}}}}}};var bn=Math.min,zt=Math.max,lr=Math.round;var Ge=e=>({x:e,y:e});function je(e){return Ci(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Ke(e){var r;return(r=(Ci(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Ci(e){return e instanceof Node||e instanceof ue(e).Node}function ke(e){return e instanceof Element||e instanceof ue(e).Element}function Ae(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function Oi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Gt(e){let{overflow:r,overflowX:o,overflowY:n,display:a}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function Ei(e){return["table","td","th"].includes(je(e))}function Dr(e){let r=Br(),o=pe(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(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 Ai(e){let r=yt(e);for(;Ae(r)&&!dr(r);){if(Dr(r))return r;r=yt(r)}return null}function Br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(e){return["html","body","#document"].includes(je(e))}function pe(e){return ue(e).getComputedStyle(e)}function ur(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function yt(e){if(je(e)==="html")return e;let r=e.assignedSlot||e.parentNode||Oi(e)&&e.host||Ke(e);return Oi(r)?r.host:r}function wi(e){let r=yt(e);return dr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(r)&&Gt(r)?r:wi(r)}function kr(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=wi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=ue(a);return i?r.concat(c,c.visualViewport||[],Gt(a)?a:[],c.frameElement&&o?kr(c.frameElement):[]):r.concat(a,kr(a,[],o))}function Ni(e){let r=pe(e),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=Ae(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=lr(o)!==i||lr(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function Li(e){return ke(e)?e:e.contextElement}function jt(e){let r=Li(e);if(!Ae(r))return Ge(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=Ni(r),c=(i?lr(o.width):o.width)/n,l=(i?lr(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var ul=Ge(0);function Ii(e){let r=ue(e);return!Br()||!r.visualViewport?ul:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function pl(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==ue(e)?!1:r}function pr(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=Li(e),c=Ge(1);r&&(n?ke(n)&&(c=jt(n)):c=jt(e));let l=pl(i,o,n)?Ii(i):Ge(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,m=a.width/c.x,h=a.height/c.y;if(i){let g=ue(i),v=n&&ke(n)?ue(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let O=jt(x),T=x.getBoundingClientRect(),R=pe(x),N=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*O.x,P=T.top+(x.clientTop+parseFloat(R.paddingTop))*O.y;u*=O.x,p*=O.y,m*=O.x,h*=O.y,u+=N,p+=P,x=ue(x).frameElement}}return ht({width:m,height:h,x:u,y:p})}function fl(e){let{rect:r,offsetParent:o,strategy:n}=e,a=Ae(o),i=Ke(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},l=Ge(1),u=Ge(0);if((a||!a&&n!=="fixed")&&((je(o)!=="body"||Gt(i))&&(c=ur(o)),Ae(o))){let p=pr(o);l=jt(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function hl(e){return Array.from(e.getClientRects())}function _i(e){return pr(Ke(e)).left+ur(e).scrollLeft}function yl(e){let r=Ke(e),o=ur(e),n=e.ownerDocument.body,a=zt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=zt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+_i(e),l=-o.scrollTop;return pe(n).direction==="rtl"&&(c+=zt(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function ml(e,r){let o=ue(e),n=Ke(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let p=Br();(!p||p&&r==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:c,x:l,y:u}}function gl(e,r){let o=pr(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Ae(e)?jt(e):Ge(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function Ri(e,r,o){let n;if(r==="viewport")n=ml(e,o);else if(r==="document")n=yl(Ke(e));else if(ke(r))n=gl(r,o);else{let a=Ii(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return ht(n)}function Pi(e,r){let o=yt(e);return o===r||!ke(o)||dr(o)?!1:pe(o).position==="fixed"||Pi(o,r)}function bl(e,r){let o=r.get(e);if(o)return o;let n=kr(e,[],!1).filter(l=>ke(l)&&je(l)!=="body"),a=null,i=pe(e).position==="fixed",c=i?yt(e):e;for(;ke(c)&&!dr(c);){let l=pe(c),u=Dr(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Gt(c)&&!u&&Pi(e,c))?n=n.filter(m=>m!==c):a=l,c=yt(c)}return r.set(e,n),n}function xl(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?bl(r,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,m)=>{let h=Ri(r,m,a);return p.top=zt(h.top,p.top),p.right=bn(h.right,p.right),p.bottom=bn(h.bottom,p.bottom),p.left=zt(h.left,p.left),p},Ri(r,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vl(e){return Ni(e)}function Sl(e,r,o){let n=Ae(r),a=Ke(r),i=o==="fixed",c=pr(e,!0,i,r),l={scrollLeft:0,scrollTop:0},u=Ge(0);if(n||!n&&!i)if((je(r)!=="body"||Gt(a))&&(l=ur(r)),n){let p=pr(r,!0,i,r);u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}else a&&(u.x=_i(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Ti(e,r){return!Ae(e)||pe(e).position==="fixed"?null:r?r(e):e.offsetParent}function ki(e,r){let o=ue(e);if(!Ae(e))return o;let n=Ti(e,r);for(;n&&Ei(n)&&pe(n).position==="static";)n=Ti(n,r);return n&&(je(n)==="html"||je(n)==="body"&&pe(n).position==="static"&&!Dr(n))?o:n||Ai(e)||o}var Ol=async function(e){let{reference:r,floating:o,strategy:n}=e,a=this.getOffsetParent||ki,i=this.getDimensions;return{reference:Sl(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Cl(e){return pe(e).direction==="rtl"}var Mr={convertOffsetParentRelativeRectToViewportRelativeRect:fl,getDocumentElement:Ke,getClippingRect:xl,getOffsetParent:ki,getElementRects:Ol,getClientRects:hl,getDimensions:vl,getScale:jt,isElement:ke,isRTL:Cl};var Di=(e,r,o)=>{let n=new Map,a={platform:Mr,...o},i={...a.platform,_c:n};return Si(e,r,{...a,platform:i})};function Bi(e){return El(e)}function xn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function El(e){for(let r=e;r;r=xn(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=xn(e);r;r=xn(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Mi(e,r,o){return Di(e,r,{platform:{...Mr,getOffsetParent:n=>Mr.getOffsetParent(n,Bi)},middleware:[gn({crossAxis:!0}),mn({allowedPlacements:[o]})]})}var rr=C(D());var Cc=C(D());var Rs=C(K()),ne=C(ae()),we=C(D());var Ui=C(K());var $i=Ui.css`
|
|
543
|
-
`;var Ur=C(D()),Al="ft-app-info",mt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:r})}};mt.eventName="authentication-change";var wl={session:(e,r)=>{(0,Ur.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>L.dispatchEvent(new mt(r.payload)),0))}},L=Ur.FtReduxStore.get({name:Al,reducers:wl,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 vn=C(D());var gt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var $r=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:gt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):gt.await()}};var fe=class extends $r{constructor(r=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new vn.CacheRegistry,this.cache=r?a.commonCache:new vn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(r){return String(Array.from(JSON.stringify(r,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Hr=class extends fe{async listMyBookmarks(){let r=L.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Sn=class{addCommand(r,o=!1){L.commands.add(r,o)}consumeCommand(r){return L.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new Sn;var be=C(D());var Hi,Kt=class extends CustomEvent{constructor(r){super("ft-i18n-context-loaded",{detail:r})}},Rl=Symbol("clearAfterUnitTest"),Fr=class extends(0,be.withEventBus)(fe){constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hi]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=L.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,be.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new be.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),o&&await this.notify(r)}catch(a){!(a instanceof be.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let r=Object.keys(this.listeners);document.body.dispatchEvent(new Kt({loadedContexts:r})),this.dispatchEvent(new Kt({loadedContexts:r})),await Promise.all(r.map(o=>this.notify(o,!1)))}async notify(r,o=!0){o&&(document.body.dispatchEvent(new Kt({loadedContexts:[r]})),this.dispatchEvent(new Kt({loadedContexts:[r]}))),this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(n=>(0,be.delay)(0).then(()=>n()).catch(()=>null)))}};Hi=Rl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var fr=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService;var Fi=C(D()),Cn=class{highlightHtml(r,o,n){(0,Fi.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Cn;var Nl=C(zi(),1);var Gi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gi||(Gi={}));var ji;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ji||(ji={}));var Ki;(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"})(Ki||(Ki={}));var Vi;(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"})(Vi||(Vi={}));var Zi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Zi||(Zi={}));var qi;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(qi||(qi={}));var Yi;(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"})(Yi||(Yi={}));var Xi;(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"})(Xi||(Xi={}));var Ji;(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"})(Ji||(Ji={}));var Qi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qi||(Qi={}));var es;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(es||(es={}));var ts;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ts||(ts={}));var rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(rs||(rs={}));var os;(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"})(os||(os={}));var ns;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ns||(ns={}));var as;(function(e){e.ASC="ASC",e.DESC="DESC"})(as||(as={}));var is;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(is||(is={}));var ss;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ss||(ss={}));var cs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(cs||(cs={}));var ls;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ls||(ls={}));var ds;(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"})(ds||(ds={}));var us;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(us||(us={}));var ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ps||(ps={}));var fs;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fs||(fs={}));var hs;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(hs||(hs={}));var Y;(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"})(Y||(Y={}));var xe;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(xe||(xe={}));var ys;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ys||(ys={}));var ms;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ms||(ms={}));var gs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(gs||(gs={}));var bs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(bs||(bs={}));var xs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(xs||(xs={}));var Tl={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function vs(e,r){return e===r||(Tl[e]??[]).some(o=>vs(o,r))}function Ss(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>vs(n,r))}var Gr=class extends fe{async listMySearches(){let{session:r}=L.getState();return Ss(r,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Os=C(D());var En=class{isDate(r){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(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Os.DateFormatter.format(r,(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 En;var Cs=C(D());var hr=class{static get(r,o){var n,a;let i=L.getState(),{lang:c,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 Cs.SearchPlaceConverter(i.baseUrl,r??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var An=class{urlToSearchRequest(r){return hr.get().parse(r)}searchRequestToUrl(r){return hr.get().serialize(r)}};window.FluidTopicsUrlService=new An;var et=C(D());var bt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};bt.eventName="change";var wn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},Es=new wn;var jr=class e extends et.WithEventBus{static build(){return new e(window.history,Es,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,et.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new bt(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r){var o;let n={...this.buildCurrentState(),...r,index:this.currentIndex,title:(o=r?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(r){this.addEventListener(bt.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(bt.eventName,r)}currentItem(){return(0,et.deepCopy)(this.currentState)}back(){let r=this.previousDifferentMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,et.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let r=this.currentIndex>0?this.currentIndex-1:0;for(;r>0&&!this.isDifferentMajorState(r);)r--;return r}forward(){let r=this.nextMajorPosition();r&&r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){let r=this.nextMajorPosition();if(r)return(0,et.deepCopy)(this.states[r])}nextMajorPosition(){let r=this.currentIndex;if(!(r>=this.states.length)){do r++;while(r<this.states.length&&!this.isDifferentMajorState(r));return this.getHigherPositionInTheSameState(r)}}getHigherPositionInTheSameState(r){var o;let n=(o=this.states[r])===null||o===void 0?void 0:o.majorStateId;if(!n)return r;let a=r,i=r+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isDifferentMajorState(r,o){var n;if(!this.hasState(r))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[r])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=jr.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 As=L;function ws(e,r){var o;return As.getState().authenticationRequired&&!(!((o=As.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(r):e()}var X=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends we.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=()=>gt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new we.CacheRegistry,this.cleanSessionDebouncer=new we.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Rs.html`
|
|
543
|
+
`;var Ur=C(D()),Al="ft-app-info",mt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:r})}};mt.eventName="authentication-change";var wl={session:(e,r)=>{(0,Ur.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>L.dispatchEvent(new mt(r.payload)),0))}},L=Ur.FtReduxStore.get({name:Al,reducers:wl,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 vn=C(D());var gt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var $r=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:gt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):gt.await()}};var fe=class extends $r{constructor(r=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new vn.CacheRegistry,this.cache=r?a.commonCache:new vn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(r){return String(Array.from(JSON.stringify(r,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Hr=class extends fe{async listMyBookmarks(){let r=L.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Sn=class{addCommand(r,o=!1){L.commands.add(r,o)}consumeCommand(r){return L.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new Sn;var be=C(D());var Hi,Kt=class extends CustomEvent{constructor(r){super("ft-i18n-context-loaded",{detail:r})}},Rl=Symbol("clearAfterUnitTest"),Fr=class extends(0,be.withEventBus)(fe){constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hi]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=L.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,be.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new be.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),o&&await this.notify(r)}catch(a){!(a instanceof be.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let r=Object.keys(this.listeners);document.body.dispatchEvent(new Kt({loadedContexts:r})),this.dispatchEvent(new Kt({loadedContexts:r})),await Promise.all(r.map(o=>this.notify(o,!1)))}async notify(r,o=!0){o&&(document.body.dispatchEvent(new Kt({loadedContexts:[r]})),this.dispatchEvent(new Kt({loadedContexts:[r]}))),this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(n=>(0,be.delay)(0).then(()=>n()).catch(()=>null)))}};Hi=Rl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var fr=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService;var Fi=C(D()),Cn=class{highlightHtml(r,o,n){(0,Fi.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Cn;var Nl=C(zi(),1);var Gi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gi||(Gi={}));var ji;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ji||(ji={}));var Ki;(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"})(Ki||(Ki={}));var Vi;(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"})(Vi||(Vi={}));var Zi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Zi||(Zi={}));var qi;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(qi||(qi={}));var Yi;(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"})(Yi||(Yi={}));var Xi;(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"})(Xi||(Xi={}));var Ji;(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"})(Ji||(Ji={}));var Qi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qi||(Qi={}));var es;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(es||(es={}));var ts;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ts||(ts={}));var rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(rs||(rs={}));var os;(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"})(os||(os={}));var ns;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ns||(ns={}));var as;(function(e){e.ASC="ASC",e.DESC="DESC"})(as||(as={}));var is;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(is||(is={}));var ss;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ss||(ss={}));var cs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(cs||(cs={}));var ls;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ls||(ls={}));var ds;(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"})(ds||(ds={}));var us;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(us||(us={}));var ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ps||(ps={}));var fs;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fs||(fs={}));var hs;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(hs||(hs={}));var Y;(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"})(Y||(Y={}));var xe;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(xe||(xe={}));var ys;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ys||(ys={}));var ms;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ms||(ms={}));var gs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(gs||(gs={}));var bs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(bs||(bs={}));var xs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(xs||(xs={}));var vs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(vs||(vs={}));var Tl={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function Ss(e,r){return e===r||(Tl[e]??[]).some(o=>Ss(o,r))}function Os(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ss(n,r))}var Gr=class extends fe{async listMySearches(){let{session:r}=L.getState();return Os(r,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Cs=C(D());var En=class{isDate(r){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(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Cs.DateFormatter.format(r,(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 En;var Es=C(D());var hr=class{static get(r,o){var n,a;let i=L.getState(),{lang:c,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 Es.SearchPlaceConverter(i.baseUrl,r??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var An=class{urlToSearchRequest(r){return hr.get().parse(r)}searchRequestToUrl(r){return hr.get().serialize(r)}};window.FluidTopicsUrlService=new An;var et=C(D());var bt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};bt.eventName="change";var wn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},As=new wn;var jr=class e extends et.WithEventBus{static build(){return new e(window.history,As,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,et.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new bt(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r){var o;let n={...this.buildCurrentState(),...r,index:this.currentIndex,title:(o=r?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(r){this.addEventListener(bt.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(bt.eventName,r)}currentItem(){return(0,et.deepCopy)(this.currentState)}back(){let r=this.previousDifferentMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,et.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let r=this.currentIndex>0?this.currentIndex-1:0;for(;r>0&&!this.isDifferentMajorState(r);)r--;return r}forward(){let r=this.nextMajorPosition();r&&r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){let r=this.nextMajorPosition();if(r)return(0,et.deepCopy)(this.states[r])}nextMajorPosition(){let r=this.currentIndex;if(!(r>=this.states.length)){do r++;while(r<this.states.length&&!this.isDifferentMajorState(r));return this.getHigherPositionInTheSameState(r)}}getHigherPositionInTheSameState(r){var o;let n=(o=this.states[r])===null||o===void 0?void 0:o.majorStateId;if(!n)return r;let a=r,i=r+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isDifferentMajorState(r,o){var n;if(!this.hasState(r))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[r])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=jr.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 ws(e,r){let{authenticationRequired:o,session:n}=L.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(r):e()}var X=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends we.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=()=>gt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new we.CacheRegistry,this.cleanSessionDebouncer=new we.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Rs.html`
|
|
544
544
|
<slot></slot>
|
|
545
545
|
`}connectedCallback(){super.connectedCallback(),L.addEventListener(mt.eventName,this.reloadConfiguration)}disconnectedCallback(){L.addEventListener(mt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(r){var o,n,a,i,c,l,u;super.update(r),r.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("apiIntegrationAppVersion")&&L.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),r.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&L.actions.noCustom(this.noCustom),r.has("editorMode")&&L.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&L.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>fr.addContext(p)),r.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),r.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((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),r.has("authenticationRequired")&&L.actions.authenticationRequired(this.authenticationRequired),r.has("availableContentLocales")&&L.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}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",()=>ws(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};F.elementDefinitions={};F.styles=$i;X([(0,ne.property)()],F.prototype,"baseUrl",void 0);X([(0,ne.property)()],F.prototype,"apiIntegrationIdentifier",void 0);X([(0,ne.property)()],F.prototype,"apiIntegrationAppVersion",void 0);X([(0,ne.property)()],F.prototype,"uiLocale",void 0);X([(0,we.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);X([(0,we.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"editorMode",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"noCustom",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);X([(0,ne.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"withManualResources",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);X([(0,ne.property)({type:Object})],F.prototype,"apiProvider",void 0);X([(0,ne.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);X([(0,we.jsonProperty)([])],F.prototype,"messageContexts",void 0);X([(0,we.jsonProperty)(void 0)],F.prototype,"session",void 0);X([(0,ne.state)()],F.prototype,"localesConfiguration",void 0);X([(0,ne.state)()],F.prototype,"availableContentLocales",void 0);var Xn=C(ae());function Ll(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Kr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Kr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Kr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Kr(e,r){try{return Ll(e,r)}catch{return!1}}function yr(e,r){return!Kr(e,r)}function Vr(e,r){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=r(n);return a[e]=!0,a}}var Ts=C(ae(),1);var Rn=e=>{let r=e??{};return(o,n)=>{var a;let i={hasChanged:yr,attribute:!1,...r};(0,Ts.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=r.selector)!==null&&a!==void 0?a:l=>l[n],store:r.store})}};var Zr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var xt=C(ae(),1);var Ns=C(ae(),1);function Ls(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ns.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:yr,...r??{}})}var qr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);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 _s=C(K(),1);var Yr=globalThis,Il=Yr.ShadowRoot&&(Yr.ShadyCSS===void 0||Yr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ib=Symbol();var Is=(e,r)=>{if(Il)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Yr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Xr=class extends _s.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Is(n,r.elementStyles),n}};function Ps(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var qt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ms,ks=Symbol("constructorPrototype"),Ds=Symbol("constructorName"),Us=Symbol("exportpartsDebouncer"),Bs=Symbol("dynamicDependenciesLoaded"),Zt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Zt.eventName="exportparts-updated";var De=class extends Xr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ms]=new qr(5),this.scheduleExportpartsUpdate=()=>{var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Us].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[Ds]=this.constructor.name,this[ks]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ds]&&Object.setPrototypeOf(this,this[ks])}connectedCallback(){var r;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[Bs]||(o[Bs]=!0,this.importDynamicDependencies()),(r=this.shadowRoot)===null||r===void 0||r.addEventListener(Zt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.shadowRoot)===null||r===void 0||r.removeEventListener(Zt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate(),r.has("exportparts")&&this.dispatchEvent(new Zt)})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ps(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){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(r.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(r){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=r.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=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 v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],O=[...v,...x].filter(u).map(T=>T.trim());for(let T of O)m.add(T)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Ms=Us;qt([(0,xt.property)()],De.prototype,"exportpartsPrefix",void 0);qt([Ls([])],De.prototype,"exportpartsPrefixes",void 0);qt([(0,xt.property)({reflect:!0})],De.prototype,"exportparts",void 0);qt([(0,xt.property)()],De.prototype,"customStylesheet",void 0);qt([(0,xt.property)()],De.prototype,"elementToFocus",void 0);qt([(0,xt.state)()],De.prototype,"useAdoptedStyleSheets",void 0);function Jr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var mr=Symbol("internalReduxEventsUnsubscribers"),tt=Symbol("internalStoresUnsubscribers"),vt=Symbol("internalStores"),_l=Vr(Symbol("withRedux"),function(e){var r,o,n;class a extends e{constructor(){super(...arguments),this[r]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[vt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[vt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[vt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[vt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[vt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[tt].has(c.store):this[tt].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[tt].set(c,l.subscribe(()=>this.updateFromStores())),this[mr].set(c,[]),Jr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[mr].get(c).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[tt].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[tt].has(c)&&this[tt].get(c)(),this[tt].delete(c),(l=this[mr].get(c))===null||l===void 0||l.forEach(u=>u()),this[mr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return r=tt,o=vt,n=mr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),$s=class extends _l(De){};function ve(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ve(e){return!!e&&!!e[z]}function Re(e){var r;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)===Hl}(e)||Array.isArray(e)||!!e[Ks]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ks])||Bn(e)||Mn(e))}function St(e,r,o){o===void 0&&(o=!1),Jt(e)===0?(o?Object.keys:Xt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Jt(e){var r=e[z];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Bn(e)?2:Mn(e)?3:0}function Yt(e,r){return Jt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Pl(e,r){return Jt(e)===2?e.get(r):e[r]}function Vs(e,r,o){var n=Jt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Zs(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Bn(e){return Ul&&e instanceof Map}function Mn(e){return $l&&e instanceof Set}function rt(e){return e.o||e.t}function Un(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Xs(e);delete r[z];for(var o=Xt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function $n(e,r){return r===void 0&&(r=!1),Hn(e)||Ve(e)||!Re(e)||(Jt(e)>1&&(e.set=e.add=e.clear=e.delete=kl),Object.freeze(e),r&&St(e,function(o,n){return $n(n,!0)},!0)),e}function kl(){ve(2)}function Hn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Be(e){var r=Dn[e];return r||ve(18,e),r}function Dl(e,r){Dn[e]||(Dn[e]=r)}function _n(){return br}function Tn(e,r){r&&(Be("Patches"),e.u=[],e.s=[],e.v=r)}function Qr(e){Pn(e),e.p.forEach(Bl),e.p=null}function Pn(e){e===br&&(br=e.l)}function Hs(e){return br={p:[],l:br,h:e,m:!0,_:0}}function Bl(e){var r=e[z];r.i===0||r.i===1?r.j():r.g=!0}function Nn(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Be("ES5").S(r,e,n),n?(o[z].P&&(Qr(r),ve(4)),Re(e)&&(e=eo(r,e),r.l||to(r,e)),r.u&&Be("Patches").M(o[z].t,e,r.u,r.s)):e=eo(r,o,[]),Qr(r),r.u&&r.v(r.u,r.s),e!==Ys?e:void 0}function eo(e,r,o){if(Hn(r))return r;var n=r[z];if(!n)return St(r,function(l,u){return Fs(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return to(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Un(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),St(i,function(l,u){return Fs(e,n,a,l,u,o,c)}),to(e,a,!1),o&&e.u&&Be("Patches").N(n,o,e.u,e.s)}return n.o}function Fs(e,r,o,n,a,i,c){if(Ve(a)){var l=eo(e,a,i&&r&&r.i!==3&&!Yt(r.R,n)?i.concat(n):void 0);if(Vs(o,n,l),!Ve(l))return;e.m=!1}else c&&o.add(a);if(Re(a)&&!Hn(a)){if(!e.h.D&&e._<1)return;eo(e,a),r&&r.A.l||to(e,a)}}function to(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&$n(r,o)}function Ln(e,r){var o=e[z];return(o?rt(o):e)[r]}function Ws(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ot(e){e.P||(e.P=!0,e.l&&ot(e.l))}function In(e){e.o||(e.o=Un(e.t))}function kn(e,r,o){var n=Bn(r)?Be("MapSet").F(r,o):Mn(r)?Be("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:_n(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=xr;c&&(u=[l],p=gr);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(r,o):Be("ES5").J(r,o);return(o?o.A:_n()).p.push(n),n}function Ml(e){return Ve(e)||ve(22,e),function r(o){if(!Re(o))return o;var n,a=o[z],i=Jt(o);if(a){if(!a.P&&(a.i<4||!Be("ES5").K(a)))return a.t;a.I=!0,n=zs(o,i),a.I=!1}else n=zs(o,i);return St(n,function(c,l){a&&Pl(a.t,c)===l||Vs(n,c,r(l))}),i===3?new Set(n):n}(e)}function zs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Un(e)}function qs(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[z];return xr.get(p,c)},set:function(p){var m=this[z];xr.set(m,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][z];if(!u.P)switch(u.i){case 5:n(u)&&ot(u);break;case 4:o(u)&&ot(u)}}}function o(c){for(var l=c.t,u=c.k,p=Xt(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==z){var g=l[h];if(g===void 0&&!Yt(l,h))return!0;var v=u[h],x=v&&v[z];if(x?x.t!==g:!Zs(v,g))return!0}}var O=!!l[z];return p.length!==Xt(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ve(3,JSON.stringify(rt(c)))}var i={};Dl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var O=Xs(g);delete O[z];for(var T=Xt(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)}(u,c),m={i:u?5:4,A:l?l.A:_n(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,z,{value:m,writable:!0}),p},S:function(c,l,u){u?Ve(l)&&l[z].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var h=m[z];if(h){var g=h.t,v=h.k,x=h.R,O=h.i;if(O===4)St(v,function(B){B!==z&&(g[B]!==void 0||Yt(g,B)?x[B]||p(v[B]):(x[B]=!0,ot(h)))}),St(g,function(B){v[B]!==void 0||Yt(v,B)||(x[B]=!1,ot(h))});else if(O===5){if(n(h)&&(ot(h),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Gs,br,Fn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ul=typeof Map<"u",$l=typeof Set<"u",js=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=Fn?Symbol.for("immer-nothing"):((Gs={})["immer-nothing"]=!0,Gs),Ks=Fn?Symbol.for("immer-draftable"):"__$immer_draftable",z=Fn?Symbol.for("immer-state"):"__$immer_state";var Hl=""+Object.prototype.constructor,Xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(e){var r={};return Xt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Dn={},xr={get:function(e,r){if(r===z)return e;var o=rt(e);if(!Yt(o,r))return function(a,i,c){var l,u=Ws(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Re(n)?n:n===Ln(e.t,r)?(In(e),e.o[r]=kn(e.A.h,n,e)):n},has:function(e,r){return r in rt(e)},ownKeys:function(e){return Reflect.ownKeys(rt(e))},set:function(e,r,o){var n=Ws(rt(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Ln(rt(e),r),i=a?.[z];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Zs(o,a)&&(o!==void 0||Yt(e.t,r)))return!0;In(e),ot(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Ln(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,In(e),ot(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=rt(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){ve(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ve(12)}},gr={};St(xr,function(e,r){gr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),gr.deleteProperty=function(e,r){return gr.set.call(this,e,r,void 0)},gr.set=function(e,r,o){return xr.set.call(this,e[0],r,o,e[0])};var Fl=function(){function e(o){var n=this;this.O=js,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(O,function(B){var M;return(M=i).call.apply(M,[T,B].concat(N))})}}var p;if(typeof i!="function"&&ve(6),c!==void 0&&typeof c!="function"&&ve(7),Re(a)){var m=Hs(n),h=kn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?Qr(m):Pn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Tn(m,c),Nn(O,m)},function(O){throw Qr(m),O}):(Tn(m,c),Nn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Ys&&(p=void 0),n.D&&$n(p,!0),c){var v=[],x=[];Be("Patches").M(a,p,v,x),c(v,x)}return p}ve(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Re(o)||ve(8),Ve(o)&&(o=Ml(o));var n=Hs(this),a=kn(this,o,void 0);return a[z].C=!0,Pn(n),a},r.finishDraft=function(o,n){var a=o&&o[z],i=a.A;return Tn(i,n),Nn(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!js&&ve(20),this.O=o},r.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 c=Be("Patches").$;return Ve(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),he=new Fl,Wl=he.produce,Sb=he.produceWithPatches.bind(he),Ob=he.setAutoFreeze.bind(he),Cb=he.setUseProxies.bind(he),Eb=he.applyPatches.bind(he),Ab=he.createDraft.bind(he),wb=he.finishDraft.bind(he),ro=Wl;function Ot(e){"@babel/helpers - typeof";return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ot(e)}function Js(e,r){if(Ot(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(Ot(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Qs(e){var r=Js(e,"string");return Ot(r)=="symbol"?r:r+""}function ec(e,r,o){return(r=Qs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function tc(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Wn(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?tc(Object(o),!0).forEach(function(n){ec(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(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 rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zn=function(){return Math.random().toString(36).substring(7).split("").join(".")},oo={INIT:"@@redux/INIT"+zn(),REPLACE:"@@redux/REPLACE"+zn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zn()}};function zl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function Gn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(Gn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(ie(3));return i}function h(O){if(typeof O!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));var T=!0;return p(),l.push(O),function(){if(T){if(u)throw new Error(ie(6));T=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!zl(O))throw new Error(ie(7));if(typeof O.type>"u")throw new Error(ie(8));if(u)throw new Error(ie(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function v(O){if(typeof O!="function")throw new Error(ie(10));a=O,g({type:oo.REPLACE})}function x(){var O,T=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},O[rc]=function(){return this},O}return g({type:oo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:v},n[rc]=x,n}function Gl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:oo.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function oc(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{Gl(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=p[O],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(ie(14))}v[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function Qt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function nc(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=Qt.apply(void 0,l)(a.dispatch),Wn(Wn({},a),{},{dispatch:i})}}}function ac(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var ic=ac();ic.withExtraArgument=ac;var jn=ic;var uc=function(){var e=function(r,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(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),jl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},er=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Kl=Object.defineProperty,Vl=Object.defineProperties,Zl=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,ql=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,cc=function(e,r,o){return r in e?Kl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},nt=function(e,r){for(var o in r||(r={}))ql.call(r,o)&&cc(e,o,r[o]);if(sc)for(var n=0,a=sc(r);n<a.length;n++){var o=a[n];Yl.call(r,o)&&cc(e,o,r[o])}return e},Kn=function(e,r){return Vl(e,Zl(r))},Xl=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Jl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qt:Qt.apply(null,arguments)},Gb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ql(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var ed=function(e){uc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,er([void 0],o[0].concat(this)))):new(r.bind.apply(r,er([void 0],o.concat(this))))},r}(Array),td=function(e){uc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,er([void 0],o[0].concat(this)))):new(r.bind.apply(r,er([void 0],o.concat(this))))},r}(Array);function qn(e){return Re(e)?ro(e,function(){}):e}function rd(e){return typeof e=="boolean"}function od(){return function(r){return nd(r)}}function nd(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new ed;if(o&&(rd(o)?l.push(jn):l.push(jn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Vn=!0;function pc(e){var r=od(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(Ql(a))v=oc(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 x=c;if(typeof x=="function"&&(x=x(r),!Vn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=nc.apply(void 0,x),T=Qt;u&&(T=Jl(nt({trace:!Vn},typeof u=="object"&&u)));var R=new td(O),N=R;Array.isArray(g)?N=er([O],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return Gn(v,m,P)}function at(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return nt(nt({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 fc(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function ad(e){return typeof e=="function"}function id(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?fc(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(ad(e))u=function(){return qn(e())};else{var p=qn(e);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var v=er([i[g.type]],c.filter(function(x){var O=x.matcher;return O(g)}).map(function(x){var O=x.reducer;return O}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,O){if(O)if(Ve(x)){var T=x,R=O(T,g);return R===void 0?x:R}else{if(Re(x))return ro(x,function(N){return O(N,g)});var R=O(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=u,m}function sd(e,r){return e+"/"+r}function hc(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:qn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=sd(r,m),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[m]=v,c[g]=v,l[m]=x?at(g,x):at(g)});function u(){var m=typeof e.extraReducers=="function"?fc(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,v=m[1],x=v===void 0?[]:v,O=m[2],T=O===void 0?void 0:O,R=nt(nt({},g),c);return id(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,M=x;B<M.length;B++){var le=M[B];N.addMatcher(le.matcher,le.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var cd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ld=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=cd[Math.random()*64|0];return r},dd=["name","message","stack","code"],Zn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),lc=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),ud=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=dd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Zb=function(){function e(r,o,n){var a=at(r+"/fulfilled",function(m,h,g,v){return{payload:m,meta:Kn(nt({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=at(r+"/pending",function(m,h,g){return{payload:void 0,meta:Kn(nt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=at(r+"/rejected",function(m,h,g,v,x){return{payload:v,error:(n&&n.serializeError||ud)(m||"Rejected"),meta:Kn(nt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(m):ld(),O=new u,T,R=!1;function N(B){T=B,O.abort()}var P=function(){return Xl(this,null,function(){var B,M,le,Le,se,Ie,te;return jl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Le=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),fd(Le)?[4,Le]:[3,2];case 1:Le=y.sent(),y.label=2;case 2:if(Le===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,se=new Promise(function(b,_){return O.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),h(i(x,m,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(m,{dispatch:h,getState:g,extra:v,requestId:x,signal:O.signal,abort:N,rejectWithValue:function(b,_){return new Zn(b,_)},fulfillWithValue:function(b,_){return new lc(b,_)}})).then(function(b){if(b instanceof Zn)throw b;return b instanceof lc?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return le=y.sent(),[3,5];case 4:return Ie=y.sent(),le=Ie instanceof Zn?c(null,x,m,Ie.payload,Ie.meta):c(Ie,x,m),[3,5];case 5:return te=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,te||h(le),[2,le]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(pd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function pd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function fd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var yc="listener",mc="completed",gc="cancelled",qb="task-"+gc,Yb="task-"+mc,Xb=yc+"-"+gc,Jb=yc+"-"+mc;var Yn="listenerMiddleware";var Qb=at(Yn+"/add"),ex=at(Yn+"/removeAll"),tx=at(Yn+"/remove");var dc,rx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(dc||(dc=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},hd=function(e){return function(r){setTimeout(r,e)}},ox=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hd(10);qs();var yd=Vr(Symbol("withEventBus"),function(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??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)}}}),no=class extends yd(Object){};window.ftReduxStores||(window.ftReduxStores={});var bc=class e extends no{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(Jr(i))return i;if(a==null)return;let c=hc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=pc({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Zr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ao=class{static format(r,o,n,a){return window.moment?window.moment(r).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(r,o,n,a)}static getMomentDateFormat(r,o){return r?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(r,o,n,a){let i=typeof r=="string"?new Date(r):r,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let r=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${r(Math.abs(o)/60)}:${r(Math.abs(o)%60)}`}};var xc=C(D()),io=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Nx=(0,xc.applyMixinOnce)(Symbol("withDateFormat"),function(e){class r 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(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>ao.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return io([(0,Xn.property)({type:Boolean})],r.prototype,"useLongDateFormat",void 0),io([(0,Xn.property)({type:Boolean})],r.prototype,"useDateTimeFormat",void 0),io([Rn({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:[]}})],r.prototype,"metadataDescriptors",void 0),io([Rn({store:L.name})],r.prototype,"uiLocale",void 0),r});var lo=C(D());var so=class extends fe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(r){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${r}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(r){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${r}`),this.CACHE_DURATION)}isAuthenticated(){let r=L.getState().session;return!!r?.sessionAuthenticated}};var co=class extends fe{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 r=L.getState().session;return!!r?.sessionAuthenticated}};var md="ft-user-assets",gd={setAssetCount:(e,r)=>{let{userAssetType:o,count:n}=r.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(xe).forEach(r=>{e.assetCounts.allAsset[r]=void 0})},setBookmarkCountByMap:(e,r)=>{let o=r.payload.mapId;e.assetCounts.bookmarkByMap[o]=r.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,r)=>{let{assetType:o,mapId:n,asset:a}=r.payload;Qn(e,o,[...Jn(e,o),a]),vc(e,o,1,n),Sc(e,a)},editAsset:(e,r)=>{let{assetType:o,asset:n}=r.payload;Qn(e,o,Jn(e,o).map(a=>a.id===n.id?n:a)),Sc(e,n)},removeAsset:(e,r)=>{let{assetType:o,mapId:n,assetId:a}=r.payload;Qn(e,o,Jn(e,o).filter(i=>i.id!==a)),vc(e,o,-1,n)}},Oc={[xe.SEARCHES]:"savedSearches",[xe.BOOKMARKS]:"bookmarks",[xe.BOOKS]:void 0,[xe.COLLECTIONS]:void 0},Jn=(e,r)=>{var o;let n=Oc[r];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},Qn=(e,r,o)=>{let n=Oc[r];n&&(e[n]=o)},vc=(e,r,o,n)=>{let a=e.assetCounts.allAsset[r];if(a!==void 0&&(e.assetCounts.allAsset[r]=Math.max(0,a+o),r===xe.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Sc=(e,r)=>{let o=e.assetLabels.map(a=>a.title),n=r.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ye=lo.FtReduxStore.get({name:md,reducers:gd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(xe).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ea=class{constructor(r=new so,o=new co){this.assetCountsService=r,this.assetLabelsService=o,this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hr,this.savedSearchesService=new Gr,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=L.getState();(0,lo.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ye.actions.clearAssetCount(),ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();ye.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let r=await this.assetLabelsService.getUserAssetLabels();ye.actions.assetLabels(r)}async loadAssetCount(r){let o=await this.assetCountsService.getUserAssetCount(r);o&&ye.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(r){let o=await this.assetCountsService.getUserBookmarkCountByMap(r);o&&ye.actions.setBookmarkCountByMap({count:o.count,mapId:r})}async reloadAssetCount(r){this.assetCountsService.clearCache();let o=Object.keys(ye.getState().assetCounts.bookmarkByMap).length!==0;r===xe.BOOKMARKS&&o&&ye.actions.clearBookmarkCountByMap(),ye.getState().assetCounts.allAsset[r]!==void 0&&await this.loadAssetCount(r)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ye.actions.bookmarks(o)}}},bd=new ea;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=bd);(0,Cc.customElement)("ft-app-context")(F);var Ec=C(ae());var ta=class{fromLocalizableLabel(r){return r.type=="PLAIN_TEXT"?{message:r.text}:{key:r.key,custom:r.type=="LOCALIZED_CUSTOM",context:r.context,message:r.key}}fromAttribute(r){if(r!=null)try{return JSON.parse(r)}catch{if(this.isI18nKey(r)){let[n,a]=r.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:r}}}toAttribute(r){if(r!=null)return JSON.stringify(r)}isI18nKey(r){return r.match(/^[\w-]+\.[\w-]+$/)}},tr=new ta;var xd=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Sr=Symbol("i18nAttributes"),Ac=Symbol("i18nListAttributes"),wc=Symbol("i18nProperties"),uo=Symbol("i18nContexts"),vr=Symbol("i18nUnsubs"),Rc=(0,rr.applyMixinOnce)(Symbol("withI18n"),function(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?On:fr}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:m,argsProvider:h}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,l,...g)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(tr.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(c=this[Sr])===null||c===void 0||c.forEach((m,h)=>u[h]=p(m,h,u[h])),(l=this[Ac])===null||l===void 0||l.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(i){var c;(c=this[wc])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[uo].set(u,{isCustomContext:l}),this[vr].has(u)||this[vr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[uo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[uo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vr].forEach(i=>i()),this[vr].clear()}}return r=uo,o=vr,xd([(0,Ec.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),po=class extends Rc(rr.FtLitElement){},fo=class extends Rc(rr.FtLitElementRedux){};var Tc=C(D());var ra=class{fromAttribute(r){if(!r)return[];try{let o=JSON.parse(r);return Array.isArray(o)?o.map(n=>typeof n=="string"?tr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(r){if(r!=null)return JSON.stringify(r)}},vd=new ra;var Nc=(e,r)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Tc.hasChanged,converter:tr,...r}),o[Sr]=(a=o[Sr])!==null&&a!==void 0?a:new Map,o[Sr].set(n,e??{})};var _c=C(D());var ho=C(K()),yo=C(ae()),mo=C(D());var Lc=C(K());var Ic=Lc.css`
|
|
546
546
|
`;var Or=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Te=class extends fo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ho.nothing:ho.html`
|
package/build/ft-button.min.js
CHANGED
|
@@ -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 Ys={};var Wa={};W(Wa,{ParametrizedLabelResolver:()=>jr});var jr=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 fi={};W(fi,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>Zr,FtReduxStore:()=>Pt,FtStateManager:()=>pi,ReduxWatcher:()=>cn,clearAllStores:()=>Bp,isFtReduxStore:()=>tr,redux:()=>er,reduxEventListener:()=>ep,reduxReactive:()=>Qu,watch:()=>Up,withRedux:()=>Xs});var Qu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},er=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:qe,attribute:!1,...e};A(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})}},ep=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Vr=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 tr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),Xs=le(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[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Lt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lt].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 p=this.getStore(s.store);p&&(s.store?this[lt].has(s.store):this[lt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[lt].set(s,l.subscribe(()=>this.updateFromStores())),this[Kr].set(s,[]),tr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=y=>this[h](y);l.addEventListener(p.eventName,f),this[Kr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[lt].has(s)&&this[lt].get(s)(),this[lt].delete(s),(l=this[Kr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lt,o=Lt,n=Kr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Zr=class extends Xs(V){};function we(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 tt(t){return!!t&&!!t[Q]}function Ie(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)===cp}(t)||Array.isArray(t)||!!t[nc]||!!(!((e=t.constructor)===null||e===void 0)&&e[nc])||Xa(t)||Ja(t))}function Nt(t,e,o){o===void 0&&(o=!1),nr(t)===0?(o?Object.keys:or)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function nr(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xa(t)?2:Ja(t)?3:0}function rr(t,e){return nr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tp(t,e){return nr(t)===2?t.get(e):t[e]}function ac(t,e,o){var n=nr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ic(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xa(t){return ip&&t instanceof Map}function Ja(t){return sp&&t instanceof Set}function dt(t){return t.o||t.t}function Qa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=lc(t);delete e[Q];for(var o=or(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 ei(t,e){return e===void 0&&(e=!1),ti(t)||tt(t)||!Ie(t)||(nr(t)>1&&(t.set=t.add=t.clear=t.delete=rp),Object.freeze(t),e&&Nt(t,function(o,n){return ei(n,!0)},!0)),t}function rp(){we(2)}function ti(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function He(t){var e=Ya[t];return e||we(18,t),e}function op(t,e){Ya[t]||(Ya[t]=e)}function Ka(){return Yr}function za(t,e){e&&(He("Patches"),t.u=[],t.s=[],t.v=e)}function rn(t){Za(t),t.p.forEach(np),t.p=null}function Za(t){t===Yr&&(Yr=t.l)}function Js(t){return Yr={p:[],l:Yr,h:t,m:!0,_:0}}function np(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ga(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||He("ES5").S(e,t,n),n?(o[Q].P&&(rn(e),we(4)),Ie(t)&&(t=on(e,t),e.l||nn(e,t)),e.u&&He("Patches").M(o[Q].t,t,e.u,e.s)):t=on(e,o,[]),rn(e),e.u&&e.v(e.u,e.s),t!==cc?t:void 0}function on(t,e,o){if(ti(e))return e;var n=e[Q];if(!n)return Nt(e,function(l,d){return Qs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return nn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Nt(i,function(l,d){return Qs(t,n,a,l,d,o,s)}),nn(t,a,!1),o&&t.u&&He("Patches").N(n,o,t.u,t.s)}return n.o}function Qs(t,e,o,n,a,i,s){if(tt(a)){var l=on(t,a,i&&e&&e.i!==3&&!rr(e.R,n)?i.concat(n):void 0);if(ac(o,n,l),!tt(l))return;t.m=!1}else s&&o.add(a);if(Ie(a)&&!ti(a)){if(!t.h.D&&t._<1)return;on(t,a),e&&e.A.l||nn(t,a)}}function nn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ei(e,o)}function ja(t,e){var o=t[Q];return(o?dt(o):t)[e]}function ec(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 ut(t){t.P||(t.P=!0,t.l&&ut(t.l))}function Va(t){t.o||(t.o=Qa(t.t))}function qa(t,e,o){var n=Xa(e)?He("MapSet").F(e,o):Ja(e)?He("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ka(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Xr;s&&(d=[l],p=qr);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):He("ES5").J(e,o);return(o?o.A:Ka()).p.push(n),n}function ap(t){return tt(t)||we(22,t),function e(o){if(!Ie(o))return o;var n,a=o[Q],i=nr(o);if(a){if(!a.P&&(a.i<4||!He("ES5").K(a)))return a.t;a.I=!0,n=tc(o,i),a.I=!1}else n=tc(o,i);return Nt(n,function(s,l){a&&tp(a.t,s)===l||ac(n,s,e(l))}),i===3?new Set(n):n}(t)}function tc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qa(t)}function sc(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Q];return Xr.get(p,s)},set:function(p){var h=this[Q];Xr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Q];if(!d.P)switch(d.i){case 5:n(d)&&ut(d);break;case 4:o(d)&&ut(d)}}}function o(s){for(var l=s.t,d=s.k,p=or(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Q){var y=l[f];if(y===void 0&&!rr(l,f))return!0;var x=d[f],b=x&&x[Q];if(b?b.t!==y:!ic(x,y))return!0}}var E=!!l[Q];return p.length!==or(l).length+(E?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&we(3,JSON.stringify(dt(s)))}var i={};op("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var E=lc(y);delete E[Q];for(var R=or(E),T=0;T<R.length;T++){var N=R[T];E[N]=t(N,f||!!E[N].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),h={i:d?5:4,A:l?l.A:Ka(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Q,{value:h,writable:!0}),p},S:function(s,l,d){d?tt(l)&&l[Q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Q];if(f){var y=f.t,x=f.k,b=f.R,E=f.i;if(E===4)Nt(x,function(v){v!==Q&&(y[v]!==void 0||rr(y,v)?b[v]||p(x[v]):(b[v]=!0,ut(f)))}),Nt(y,function(v){x[v]!==void 0||rr(x,v)||(b[v]=!1,ut(f))});else if(E===5){if(n(f)&&(ut(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var T=y.length;T<x.length;T++)b[T]=!0;for(var N=Math.min(x.length,y.length),O=0;O<N;O++)x.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(x[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var rc,Yr,ri=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ip=typeof Map<"u",sp=typeof Set<"u",oc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cc=ri?Symbol.for("immer-nothing"):((rc={})["immer-nothing"]=!0,rc),nc=ri?Symbol.for("immer-draftable"):"__$immer_draftable",Q=ri?Symbol.for("immer-state"):"__$immer_state";var cp=""+Object.prototype.constructor,or=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,lc=Object.getOwnPropertyDescriptors||function(t){var e={};return or(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ya={},Xr={get:function(t,e){if(e===Q)return t;var o=dt(t);if(!rr(o,e))return function(a,i,s){var l,d=ec(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||!Ie(n)?n:n===ja(t.t,e)?(Va(t),t.o[e]=qa(t.A.h,n,t)):n},has:function(t,e){return e in dt(t)},ownKeys:function(t){return Reflect.ownKeys(dt(t))},set:function(t,e,o){var n=ec(dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=ja(dt(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ic(o,a)&&(o!==void 0||rr(t.t,e)))return!0;Va(t),ut(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 ja(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Va(t),ut(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){we(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){we(12)}},qr={};Nt(Xr,function(t,e){qr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),qr.deleteProperty=function(t,e){return qr.set.call(this,t,e,void 0)},qr.set=function(t,e,o){return Xr.set.call(this,t[0],e,o,t[0])};var lp=function(){function t(o){var n=this;this.O=oc,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(E){var R=this;E===void 0&&(E=l);for(var T=arguments.length,N=Array(T>1?T-1:0),O=1;O<T;O++)N[O-1]=arguments[O];return d.produce(E,function(v){var C;return(C=i).call.apply(C,[R,v].concat(N))})}}var p;if(typeof i!="function"&&we(6),s!==void 0&&typeof s!="function"&&we(7),Ie(a)){var h=Js(n),f=qa(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?rn(h):Za(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return za(h,s),Ga(E,h)},function(E){throw rn(h),E}):(za(h,s),Ga(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===cc&&(p=void 0),n.D&&ei(p,!0),s){var x=[],b=[];He("Patches").M(a,p,x,b),s(x,b)}return p}we(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,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){Ie(o)||we(8),tt(o)&&(o=ap(o));var n=Js(this),a=qa(this,o,void 0);return a[Q].C=!0,Za(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return za(i,n),Ga(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!oc&&we(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=He("Patches").$;return tt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ve=new lp,dp=ve.produce,Vb=ve.produceWithPatches.bind(ve),Kb=ve.setAutoFreeze.bind(ve),Zb=ve.setUseProxies.bind(ve),qb=ve.applyPatches.bind(ve),Yb=ve.createDraft.bind(ve),Xb=ve.finishDraft.bind(ve),an=dp;function It(t){"@babel/helpers - typeof";return It=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},It(t)}function dc(t,e){if(It(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uc(t){var e=dc(t,"string");return It(e)=="symbol"?e:e+""}function pc(t,e,o){return(e=uc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function fc(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 oi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?fc(Object(o),!0).forEach(function(n){pc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):fc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var hc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},sn={INIT:"@@redux/INIT"+ni(),REPLACE:"@@redux/REPLACE"+ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ni()}};function up(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 ai(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(ai)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(E){if(typeof E!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var R=!0;return p(),l.push(E),function(){if(R){if(d)throw new Error(pe(6));R=!1,p();var N=l.indexOf(E);l.splice(N,1),s=null}}}function y(E){if(!up(E))throw new Error(pe(7));if(typeof E.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,E)}finally{d=!1}for(var R=s=l,T=0;T<R.length;T++){var N=R[T];N()}return E}function x(E){if(typeof E!="function")throw new Error(pe(10));a=E,y({type:sn.REPLACE})}function b(){var E,R=f;return E={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function O(){N.next&&N.next(h())}O();var v=R(O);return{unsubscribe:v}}},E[hc]=function(){return this},E}return y({type:sn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[hc]=b,n}function pp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:sn.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:sn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function yc(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{pp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var E=i[b],R=o[E],T=p[E],N=R(T,h);if(typeof N>"u"){var O=h&&h.type;throw new Error(pe(14))}x[E]=N,y=y||N!==T}return y=y||i.length!==Object.keys(p).length,y?x:p}}function ar(){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 mc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=ar.apply(void 0,l)(a.dispatch),oi(oi({},a),{},{dispatch:i})}}}function gc(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 bc=gc();bc.withExtraArgument=gc;var ii=bc;var Cc=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)}}(),fp=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(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ir=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},hp=Object.defineProperty,yp=Object.defineProperties,mp=Object.getOwnPropertyDescriptors,xc=Object.getOwnPropertySymbols,gp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable,vc=function(t,e,o){return e in t?hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},pt=function(t,e){for(var o in e||(e={}))gp.call(e,o)&&vc(t,o,e[o]);if(xc)for(var n=0,a=xc(e);n<a.length;n++){var o=a[n];bp.call(e,o)&&vc(t,o,e[o])}return t},si=function(t,e){return yp(t,mp(e))},xp=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ar:ar.apply(null,arguments)},yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sp(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 Op=function(t){Cc(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,ir([void 0],o[0].concat(this)))):new(e.bind.apply(e,ir([void 0],o.concat(this))))},e}(Array),Cp=function(t){Cc(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,ir([void 0],o[0].concat(this)))):new(e.bind.apply(e,ir([void 0],o.concat(this))))},e}(Array);function di(t){return Ie(t)?an(t,function(){}):t}function Ep(t){return typeof t=="boolean"}function Ap(){return function(e){return wp(e)}}function wp(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 Op;if(o&&(Ep(o)?l.push(ii):l.push(ii.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var ci=!0;function Ec(t){var e=Ap(),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,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Sp(a))x=yc(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),!ci&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ci&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=mc.apply(void 0,b),R=ar;d&&(R=vp(pt({trace:!ci},typeof d=="object"&&d)));var T=new Cp(E),N=T;Array.isArray(y)?N=ir([E],y):typeof y=="function"&&(N=y(T));var O=R.apply(void 0,N);return ai(x,h,O)}function ft(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 pt(pt({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 Ac(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 Rp(t){return typeof t=="function"}function Tp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ac(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Rp(t))d=function(){return di(t())};else{var p=di(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var x=ir([i[y.type]],s.filter(function(b){var E=b.matcher;return E(y)}).map(function(b){var E=b.reducer;return E}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,E){if(E)if(tt(b)){var R=b,T=E(R,y);return T===void 0?b:T}else{if(Ie(b))return an(b,function(N){return E(N,y)});var T=E(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 _p(t,e){return t+"/"+e}function wc(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:di(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=_p(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,l[h]=b?ft(y,b):ft(y)});function d(){var h=typeof t.extraReducers=="function"?Ac(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,E=h[2],R=E===void 0?void 0:E,T=pt(pt({},y),s);return Tp(o,function(N){for(var O in T)N.addCase(O,T[O]);for(var v=0,C=b;v<C.length;v++){var k=C[v];N.addMatcher(k.matcher,k.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Lp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Lp[Math.random()*64|0];return e},Ip=["name","message","stack","code"],li=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Sc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Pp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ip;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},xx=function(){function t(e,o,n){var a=ft(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:si(pt({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=ft(e+"/pending",function(h,f,y){return{payload:void 0,meta:si(pt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Pp)(h||"Rejected"),meta:si(pt({},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 p(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):Np(),E=new d,R,T=!1;function N(v){R=v,E.abort()}var O=function(){return xp(this,null,function(){var v,C,k,U,H,$,D;return fp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),Dp(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,H=new Promise(function(S,I){return E.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(b,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([H,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:E.signal,abort:N,rejectWithValue:function(S,I){return new li(S,I)},fulfillWithValue:function(S,I){return new Sc(S,I)}})).then(function(S){if(S instanceof li)throw S;return S instanceof Sc?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return k=m.sent(),[3,5];case 4:return $=m.sent(),k=$ instanceof li?s(null,b,h,$.payload,$.meta):s($,b,h),[3,5];case 5:return D=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,D||f(k),[2,k]}})})}();return Object.assign(O,{abort:N,requestId:b,arg:h,unwrap:function(){return O.then(kp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function kp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Dp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Rc="listener",Tc="completed",_c="cancelled",vx="task-"+_c,Sx="task-"+Tc,Ox=Rc+"-"+_c,Cx=Rc+"-"+Tc;var ui="listenerMiddleware";var Ex=ft(ui+"/add"),Ax=ft(ui+"/removeAll"),wx=ft(ui+"/remove");var Oc,Rx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Oc||(Oc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Mp=function(t){return function(e){setTimeout(e,t)}},Tx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Mp(10);sc();window.ftReduxStores||(window.ftReduxStores={});var Pt=class t extends Ye{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(tr(i))return i;if(a==null)return;let s=wc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ec({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Vr;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,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Bp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))tr(e)&&e.clear()}var cn=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);qe(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 Up(t,e,o){return new cn(t,e,o).watch()}var pi=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 mi={};W(mi,{scrollHelper:()=>$p});var hi,ln=new Map,yi=class{lock(e,o){if(o){let n=ln.get(o);if(n==null||n===e)return ln.set(o,e),o}}release(e,o){o&&ln.get(o)===e&&ln.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Qn(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=(hi=window.FluidTopicsScrollHelper)!==null&&hi!==void 0?hi:new yi;var $p=window.FluidTopicsScrollHelper;var bi={};W(bi,{SearchPlaceConverter:()=>dr,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>dl,serializeRequest:()=>zp});var Hp=hd(Nc(),1);var Ic;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ic||(Ic={}));var Pc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pc||(Pc={}));var kc;(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"})(kc||(kc={}));var Dc;(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"})(Dc||(Dc={}));var Mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Mc||(Mc={}));var Bc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Bc||(Bc={}));var Uc;(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"})(Uc||(Uc={}));var $c;(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"})($c||($c={}));var Fc;(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"})(Fc||(Fc={}));var Hc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Hc||(Hc={}));var Wc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Wc||(Wc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var Gc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Gc||(Gc={}));var jc;(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"})(jc||(jc={}));var cr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cr||(cr={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var gi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gi||(gi={}));var el=t=>Object.keys(gi).includes(t);var Zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zc||(Zc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));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 lr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(lr||(lr={}));var tl=t=>Object.keys(lr).includes(t);var Xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Xc||(Xc={}));var Jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jc||(Jc={}));var Qc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qc||(Qc={}));var oe;(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"})(oe||(oe={}));var Re;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Re||(Re={}));var rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(rl||(rl={}));var ol;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ol||(ol={}));var nl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(nl||(nl={}));var al;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(al||(al={}));var il;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(il||(il={}));var Fp={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};function sl(t,e){return t===e||(Fp[t]??[]).some(o=>sl(o,e))}function cl(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=>sl(n,e))}function Wp(t){return`"${t}"`}function ll(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zp(t,e){return new dr(t).serialize(e)}var j;(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"})(j||(j={}));var Gp=new Set(Object.values(j));function dl(t){return Gp.has(t)}var dr=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,p,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(j.LOCALE,e.contentLocale):b.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(j.QUERY,e.query);let E=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&i!==void 0?i:[];if(E.length>0){let v=E.map(C=>{var k,U;let H=((U=(k=C.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map($=>this.escapeFilters($)).map($=>Wp(ll($))).join("_");return`${C.key}~${H}`}).join("*");b.append(j.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(C=>{var k;return`${C.key}~${(k=C.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");b.append(j.DATE_FILTERS,v)}let T=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(T.length>0){let v=T.map(C=>{var k,U;return`${C.key}~${(k=C.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=C.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(j.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(j.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(j.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(j.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(j.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(j.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let O=new Array;return b.forEach((v,C)=>{O.push(this.encodeQueryString(C)+"="+this.encodeQueryString(v))}),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),p=d.get(j.LOCALE)==="all"?void 0:d.get(j.LOCALE),h=((o=d.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(j.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(j.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(j.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(j.KEYWORD_MATCH),E=b?b.toUpperCase()===cr.MANDATORY?cr.MANDATORY:cr.OPTIONAL:void 0,R={};for(let T of d.keys())dl(T)||(R[T]=d.get(T));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(j.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:el(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:kr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:E,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(j.FILTERS)&&(d=this.parseValueFilters((o=e.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(j.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(j.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(j.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(ll).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:lr[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(tl(e))return[{key:"ft:lastEdition",dateFilter:{type:lr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Si={};W(Si,{toFtFormComponent:()=>vi});var xi=Symbol("elementInternals"),vi=le(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xi].form}constructor(...n){super(n),this[xi]=this.attachInternals()}setFormValue(n){this[xi].setFormValue(n)}}return e});var Oi={};W(Oi,{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 Ei={};W(Ei,{ALL_KEYS_VALUE:()=>Ci,SameWindowStorageEvent:()=>ur});var Ci="__all__",ur=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==Ci}};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 ur(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 ur(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new ur(Ci))}});var wi={};W(wi,{FocusMainContentEvent:()=>Ai});var Ai=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ul={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function jp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Vp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",jp);document.addEventListener("click",Vp);var pl=M`
|
|
48
|
+
`;var Ys={};var Wa={};W(Wa,{ParametrizedLabelResolver:()=>jr});var jr=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 fi={};W(fi,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>Zr,FtReduxStore:()=>Pt,FtStateManager:()=>pi,ReduxWatcher:()=>cn,clearAllStores:()=>Bp,isFtReduxStore:()=>tr,redux:()=>er,reduxEventListener:()=>ep,reduxReactive:()=>Qu,watch:()=>Up,withRedux:()=>Xs});var Qu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},er=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:qe,attribute:!1,...e};A(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})}},ep=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Vr=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 tr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),Xs=le(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[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Lt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lt].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 p=this.getStore(s.store);p&&(s.store?this[lt].has(s.store):this[lt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[lt].set(s,l.subscribe(()=>this.updateFromStores())),this[Kr].set(s,[]),tr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=y=>this[h](y);l.addEventListener(p.eventName,f),this[Kr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[lt].has(s)&&this[lt].get(s)(),this[lt].delete(s),(l=this[Kr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lt,o=Lt,n=Kr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Zr=class extends Xs(V){};function we(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 tt(t){return!!t&&!!t[Q]}function Ie(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)===cp}(t)||Array.isArray(t)||!!t[nc]||!!(!((e=t.constructor)===null||e===void 0)&&e[nc])||Xa(t)||Ja(t))}function Nt(t,e,o){o===void 0&&(o=!1),nr(t)===0?(o?Object.keys:or)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function nr(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xa(t)?2:Ja(t)?3:0}function rr(t,e){return nr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tp(t,e){return nr(t)===2?t.get(e):t[e]}function ac(t,e,o){var n=nr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ic(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xa(t){return ip&&t instanceof Map}function Ja(t){return sp&&t instanceof Set}function dt(t){return t.o||t.t}function Qa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=lc(t);delete e[Q];for(var o=or(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 ei(t,e){return e===void 0&&(e=!1),ti(t)||tt(t)||!Ie(t)||(nr(t)>1&&(t.set=t.add=t.clear=t.delete=rp),Object.freeze(t),e&&Nt(t,function(o,n){return ei(n,!0)},!0)),t}function rp(){we(2)}function ti(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function He(t){var e=Ya[t];return e||we(18,t),e}function op(t,e){Ya[t]||(Ya[t]=e)}function Ka(){return Yr}function za(t,e){e&&(He("Patches"),t.u=[],t.s=[],t.v=e)}function rn(t){Za(t),t.p.forEach(np),t.p=null}function Za(t){t===Yr&&(Yr=t.l)}function Js(t){return Yr={p:[],l:Yr,h:t,m:!0,_:0}}function np(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ga(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||He("ES5").S(e,t,n),n?(o[Q].P&&(rn(e),we(4)),Ie(t)&&(t=on(e,t),e.l||nn(e,t)),e.u&&He("Patches").M(o[Q].t,t,e.u,e.s)):t=on(e,o,[]),rn(e),e.u&&e.v(e.u,e.s),t!==cc?t:void 0}function on(t,e,o){if(ti(e))return e;var n=e[Q];if(!n)return Nt(e,function(l,d){return Qs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return nn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Nt(i,function(l,d){return Qs(t,n,a,l,d,o,s)}),nn(t,a,!1),o&&t.u&&He("Patches").N(n,o,t.u,t.s)}return n.o}function Qs(t,e,o,n,a,i,s){if(tt(a)){var l=on(t,a,i&&e&&e.i!==3&&!rr(e.R,n)?i.concat(n):void 0);if(ac(o,n,l),!tt(l))return;t.m=!1}else s&&o.add(a);if(Ie(a)&&!ti(a)){if(!t.h.D&&t._<1)return;on(t,a),e&&e.A.l||nn(t,a)}}function nn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ei(e,o)}function ja(t,e){var o=t[Q];return(o?dt(o):t)[e]}function ec(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 ut(t){t.P||(t.P=!0,t.l&&ut(t.l))}function Va(t){t.o||(t.o=Qa(t.t))}function qa(t,e,o){var n=Xa(e)?He("MapSet").F(e,o):Ja(e)?He("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ka(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Xr;s&&(d=[l],p=qr);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):He("ES5").J(e,o);return(o?o.A:Ka()).p.push(n),n}function ap(t){return tt(t)||we(22,t),function e(o){if(!Ie(o))return o;var n,a=o[Q],i=nr(o);if(a){if(!a.P&&(a.i<4||!He("ES5").K(a)))return a.t;a.I=!0,n=tc(o,i),a.I=!1}else n=tc(o,i);return Nt(n,function(s,l){a&&tp(a.t,s)===l||ac(n,s,e(l))}),i===3?new Set(n):n}(t)}function tc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qa(t)}function sc(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Q];return Xr.get(p,s)},set:function(p){var h=this[Q];Xr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Q];if(!d.P)switch(d.i){case 5:n(d)&&ut(d);break;case 4:o(d)&&ut(d)}}}function o(s){for(var l=s.t,d=s.k,p=or(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Q){var y=l[f];if(y===void 0&&!rr(l,f))return!0;var x=d[f],b=x&&x[Q];if(b?b.t!==y:!ic(x,y))return!0}}var E=!!l[Q];return p.length!==or(l).length+(E?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&we(3,JSON.stringify(dt(s)))}var i={};op("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var E=lc(y);delete E[Q];for(var R=or(E),T=0;T<R.length;T++){var N=R[T];E[N]=t(N,f||!!E[N].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),h={i:d?5:4,A:l?l.A:Ka(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Q,{value:h,writable:!0}),p},S:function(s,l,d){d?tt(l)&&l[Q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Q];if(f){var y=f.t,x=f.k,b=f.R,E=f.i;if(E===4)Nt(x,function(v){v!==Q&&(y[v]!==void 0||rr(y,v)?b[v]||p(x[v]):(b[v]=!0,ut(f)))}),Nt(y,function(v){x[v]!==void 0||rr(x,v)||(b[v]=!1,ut(f))});else if(E===5){if(n(f)&&(ut(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var T=y.length;T<x.length;T++)b[T]=!0;for(var N=Math.min(x.length,y.length),O=0;O<N;O++)x.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(x[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var rc,Yr,ri=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ip=typeof Map<"u",sp=typeof Set<"u",oc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cc=ri?Symbol.for("immer-nothing"):((rc={})["immer-nothing"]=!0,rc),nc=ri?Symbol.for("immer-draftable"):"__$immer_draftable",Q=ri?Symbol.for("immer-state"):"__$immer_state";var cp=""+Object.prototype.constructor,or=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,lc=Object.getOwnPropertyDescriptors||function(t){var e={};return or(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ya={},Xr={get:function(t,e){if(e===Q)return t;var o=dt(t);if(!rr(o,e))return function(a,i,s){var l,d=ec(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||!Ie(n)?n:n===ja(t.t,e)?(Va(t),t.o[e]=qa(t.A.h,n,t)):n},has:function(t,e){return e in dt(t)},ownKeys:function(t){return Reflect.ownKeys(dt(t))},set:function(t,e,o){var n=ec(dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=ja(dt(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ic(o,a)&&(o!==void 0||rr(t.t,e)))return!0;Va(t),ut(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 ja(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Va(t),ut(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){we(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){we(12)}},qr={};Nt(Xr,function(t,e){qr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),qr.deleteProperty=function(t,e){return qr.set.call(this,t,e,void 0)},qr.set=function(t,e,o){return Xr.set.call(this,t[0],e,o,t[0])};var lp=function(){function t(o){var n=this;this.O=oc,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(E){var R=this;E===void 0&&(E=l);for(var T=arguments.length,N=Array(T>1?T-1:0),O=1;O<T;O++)N[O-1]=arguments[O];return d.produce(E,function(v){var C;return(C=i).call.apply(C,[R,v].concat(N))})}}var p;if(typeof i!="function"&&we(6),s!==void 0&&typeof s!="function"&&we(7),Ie(a)){var h=Js(n),f=qa(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?rn(h):Za(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return za(h,s),Ga(E,h)},function(E){throw rn(h),E}):(za(h,s),Ga(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===cc&&(p=void 0),n.D&&ei(p,!0),s){var x=[],b=[];He("Patches").M(a,p,x,b),s(x,b)}return p}we(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,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){Ie(o)||we(8),tt(o)&&(o=ap(o));var n=Js(this),a=qa(this,o,void 0);return a[Q].C=!0,Za(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return za(i,n),Ga(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!oc&&we(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=He("Patches").$;return tt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ve=new lp,dp=ve.produce,Vb=ve.produceWithPatches.bind(ve),Kb=ve.setAutoFreeze.bind(ve),Zb=ve.setUseProxies.bind(ve),qb=ve.applyPatches.bind(ve),Yb=ve.createDraft.bind(ve),Xb=ve.finishDraft.bind(ve),an=dp;function It(t){"@babel/helpers - typeof";return It=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},It(t)}function dc(t,e){if(It(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uc(t){var e=dc(t,"string");return It(e)=="symbol"?e:e+""}function pc(t,e,o){return(e=uc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function fc(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 oi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?fc(Object(o),!0).forEach(function(n){pc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):fc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var hc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},sn={INIT:"@@redux/INIT"+ni(),REPLACE:"@@redux/REPLACE"+ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ni()}};function up(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 ai(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(ai)(t,e)}if(typeof t!="function")throw new Error(pe(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pe(3));return i}function f(E){if(typeof E!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));var R=!0;return p(),l.push(E),function(){if(R){if(d)throw new Error(pe(6));R=!1,p();var N=l.indexOf(E);l.splice(N,1),s=null}}}function y(E){if(!up(E))throw new Error(pe(7));if(typeof E.type>"u")throw new Error(pe(8));if(d)throw new Error(pe(9));try{d=!0,i=a(i,E)}finally{d=!1}for(var R=s=l,T=0;T<R.length;T++){var N=R[T];N()}return E}function x(E){if(typeof E!="function")throw new Error(pe(10));a=E,y({type:sn.REPLACE})}function b(){var E,R=f;return E={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function O(){N.next&&N.next(h())}O();var v=R(O);return{unsubscribe:v}}},E[hc]=function(){return this},E}return y({type:sn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[hc]=b,n}function pp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:sn.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:sn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function yc(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{pp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<i.length;b++){var E=i[b],R=o[E],T=p[E],N=R(T,h);if(typeof N>"u"){var O=h&&h.type;throw new Error(pe(14))}x[E]=N,y=y||N!==T}return y=y||i.length!==Object.keys(p).length,y?x:p}}function ar(){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 mc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=ar.apply(void 0,l)(a.dispatch),oi(oi({},a),{},{dispatch:i})}}}function gc(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 bc=gc();bc.withExtraArgument=gc;var ii=bc;var Cc=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)}}(),fp=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(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ir=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},hp=Object.defineProperty,yp=Object.defineProperties,mp=Object.getOwnPropertyDescriptors,xc=Object.getOwnPropertySymbols,gp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable,vc=function(t,e,o){return e in t?hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},pt=function(t,e){for(var o in e||(e={}))gp.call(e,o)&&vc(t,o,e[o]);if(xc)for(var n=0,a=xc(e);n<a.length;n++){var o=a[n];bp.call(e,o)&&vc(t,o,e[o])}return t},si=function(t,e){return yp(t,mp(e))},xp=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ar:ar.apply(null,arguments)},yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sp(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 Op=function(t){Cc(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,ir([void 0],o[0].concat(this)))):new(e.bind.apply(e,ir([void 0],o.concat(this))))},e}(Array),Cp=function(t){Cc(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,ir([void 0],o[0].concat(this)))):new(e.bind.apply(e,ir([void 0],o.concat(this))))},e}(Array);function di(t){return Ie(t)?an(t,function(){}):t}function Ep(t){return typeof t=="boolean"}function Ap(){return function(e){return wp(e)}}function wp(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 Op;if(o&&(Ep(o)?l.push(ii):l.push(ii.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var ci=!0;function Ec(t){var e=Ap(),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,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Sp(a))x=yc(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),!ci&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ci&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=mc.apply(void 0,b),R=ar;d&&(R=vp(pt({trace:!ci},typeof d=="object"&&d)));var T=new Cp(E),N=T;Array.isArray(y)?N=ir([E],y):typeof y=="function"&&(N=y(T));var O=R.apply(void 0,N);return ai(x,h,O)}function ft(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 pt(pt({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 Ac(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 Rp(t){return typeof t=="function"}function Tp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ac(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Rp(t))d=function(){return di(t())};else{var p=di(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var x=ir([i[y.type]],s.filter(function(b){var E=b.matcher;return E(y)}).map(function(b){var E=b.reducer;return E}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,E){if(E)if(tt(b)){var R=b,T=E(R,y);return T===void 0?b:T}else{if(Ie(b))return an(b,function(N){return E(N,y)});var T=E(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 _p(t,e){return t+"/"+e}function wc(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:di(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=_p(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[y]=x,l[h]=b?ft(y,b):ft(y)});function d(){var h=typeof t.extraReducers=="function"?Ac(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,E=h[2],R=E===void 0?void 0:E,T=pt(pt({},y),s);return Tp(o,function(N){for(var O in T)N.addCase(O,T[O]);for(var v=0,C=b;v<C.length;v++){var k=C[v];N.addMatcher(k.matcher,k.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Lp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Lp[Math.random()*64|0];return e},Ip=["name","message","stack","code"],li=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Sc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Pp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ip;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},xx=function(){function t(e,o,n){var a=ft(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:si(pt({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=ft(e+"/pending",function(h,f,y){return{payload:void 0,meta:si(pt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Pp)(h||"Rejected"),meta:si(pt({},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 p(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):Np(),E=new d,R,T=!1;function N(v){R=v,E.abort()}var O=function(){return xp(this,null,function(){var v,C,k,U,H,$,D;return fp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),Dp(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,H=new Promise(function(S,I){return E.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(b,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([H,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:E.signal,abort:N,rejectWithValue:function(S,I){return new li(S,I)},fulfillWithValue:function(S,I){return new Sc(S,I)}})).then(function(S){if(S instanceof li)throw S;return S instanceof Sc?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return k=m.sent(),[3,5];case 4:return $=m.sent(),k=$ instanceof li?s(null,b,h,$.payload,$.meta):s($,b,h),[3,5];case 5:return D=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,D||f(k),[2,k]}})})}();return Object.assign(O,{abort:N,requestId:b,arg:h,unwrap:function(){return O.then(kp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function kp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Dp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Rc="listener",Tc="completed",_c="cancelled",vx="task-"+_c,Sx="task-"+Tc,Ox=Rc+"-"+_c,Cx=Rc+"-"+Tc;var ui="listenerMiddleware";var Ex=ft(ui+"/add"),Ax=ft(ui+"/removeAll"),wx=ft(ui+"/remove");var Oc,Rx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Oc||(Oc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Mp=function(t){return function(e){setTimeout(e,t)}},Tx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Mp(10);sc();window.ftReduxStores||(window.ftReduxStores={});var Pt=class t extends Ye{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(tr(i))return i;if(a==null)return;let s=wc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ec({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Vr;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,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Bp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))tr(e)&&e.clear()}var cn=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);qe(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 Up(t,e,o){return new cn(t,e,o).watch()}var pi=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 mi={};W(mi,{scrollHelper:()=>$p});var hi,ln=new Map,yi=class{lock(e,o){if(o){let n=ln.get(o);if(n==null||n===e)return ln.set(o,e),o}}release(e,o){o&&ln.get(o)===e&&ln.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Qn(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=(hi=window.FluidTopicsScrollHelper)!==null&&hi!==void 0?hi:new yi;var $p=window.FluidTopicsScrollHelper;var bi={};W(bi,{SearchPlaceConverter:()=>dr,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>ul,serializeRequest:()=>zp});var Hp=hd(Nc(),1);var Ic;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ic||(Ic={}));var Pc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pc||(Pc={}));var kc;(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"})(kc||(kc={}));var Dc;(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"})(Dc||(Dc={}));var Mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Mc||(Mc={}));var Bc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Bc||(Bc={}));var Uc;(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"})(Uc||(Uc={}));var $c;(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"})($c||($c={}));var Fc;(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"})(Fc||(Fc={}));var Hc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Hc||(Hc={}));var Wc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Wc||(Wc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var Gc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Gc||(Gc={}));var jc;(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"})(jc||(jc={}));var cr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cr||(cr={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var gi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gi||(gi={}));var tl=t=>Object.keys(gi).includes(t);var Zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zc||(Zc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));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 lr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(lr||(lr={}));var rl=t=>Object.keys(lr).includes(t);var Xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Xc||(Xc={}));var Jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jc||(Jc={}));var Qc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qc||(Qc={}));var oe;(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"})(oe||(oe={}));var Re;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Re||(Re={}));var el;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(el||(el={}));var ol;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ol||(ol={}));var nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(nl||(nl={}));var al;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(al||(al={}));var il;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(il||(il={}));var sl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(sl||(sl={}));var Fp={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};function cl(t,e){return t===e||(Fp[t]??[]).some(o=>cl(o,e))}function ll(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=>cl(n,e))}function Wp(t){return`"${t}"`}function dl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zp(t,e){return new dr(t).serialize(e)}var j;(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"})(j||(j={}));var Gp=new Set(Object.values(j));function ul(t){return Gp.has(t)}var dr=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,p,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(j.LOCALE,e.contentLocale):b.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(j.QUERY,e.query);let E=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&i!==void 0?i:[];if(E.length>0){let v=E.map(C=>{var k,U;let H=((U=(k=C.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map($=>this.escapeFilters($)).map($=>Wp(dl($))).join("_");return`${C.key}~${H}`}).join("*");b.append(j.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(C=>{var k;return`${C.key}~${(k=C.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");b.append(j.DATE_FILTERS,v)}let T=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(T.length>0){let v=T.map(C=>{var k,U;return`${C.key}~${(k=C.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=C.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(j.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(j.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(j.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(j.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(j.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(j.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let O=new Array;return b.forEach((v,C)=>{O.push(this.encodeQueryString(C)+"="+this.encodeQueryString(v))}),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),p=d.get(j.LOCALE)==="all"?void 0:d.get(j.LOCALE),h=((o=d.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(j.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(a=d.get(j.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=d.get(j.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),b=d.get(j.KEYWORD_MATCH),E=b?b.toUpperCase()===cr.MANDATORY?cr.MANDATORY:cr.OPTIONAL:void 0,R={};for(let T of d.keys())ul(T)||(R[T]=d.get(T));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(j.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:tl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:kr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:E,otherQueryParams:R}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(j.FILTERS)&&(d=this.parseValueFilters((o=e.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(j.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(j.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(j.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(dl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:lr[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(rl(e))return[{key:"ft:lastEdition",dateFilter:{type:lr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Si={};W(Si,{toFtFormComponent:()=>vi});var xi=Symbol("elementInternals"),vi=le(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xi].form}constructor(...n){super(n),this[xi]=this.attachInternals()}setFormValue(n){this[xi].setFormValue(n)}}return e});var Oi={};W(Oi,{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 Ei={};W(Ei,{ALL_KEYS_VALUE:()=>Ci,SameWindowStorageEvent:()=>ur});var Ci="__all__",ur=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==Ci}};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 ur(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 ur(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new ur(Ci))}});var wi={};W(wi,{FocusMainContentEvent:()=>Ai});var Ai=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var pl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function jp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Vp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",jp);document.addEventListener("click",Vp);var fl=M`
|
|
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 Kp={checkVisibility:!0},hv=le(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...Kp,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Mr({type:"aria",message:n})))},20)}}return e});function
|
|
72
|
+
`;var Kp={checkVisibility:!0},hv=le(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,a){let{checkVisibility:i}={...Kp,...a};setTimeout(()=>{(!i||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Mr({type:"aria",message:n})))},20)}}return e});function hl(t,e,o){return t?e(t):o?.(t)}var de=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var 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},Dt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Dt||(Dt={}));var Mt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Mt||(Mt={}));var Ri=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Ev=le(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Dt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Mt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Dt.blur||this.validateOn===Dt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Mt.default&&this.validateOn===Dt.blurWithStatusResolutionOnInput||this.validateOn===Dt.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 Ri(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return K`
|
|
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
|
${go(this.errorMessages,n=>K`
|
|
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
78
78
|
${go(this.warningMessages,n=>K`
|
|
79
79
|
<li>${n}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${hl(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>K`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Mt.error:this.warningMessages.length?Mt.warning:Mt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return de([A()],e.prototype,"warningRules",void 0),de([A()],e.prototype,"errorRules",void 0),de([A()],e.prototype,"validateOn",void 0),de([A({type:Boolean})],e.prototype,"validateAtRender",void 0),de([A()],e.prototype,"label",void 0),de([A({type:Boolean})],e.prototype,"hideLabel",void 0),de([A()],e.prototype,"name",void 0),de([A({type:Boolean})],e.prototype,"disabled",void 0),de([A()],e.prototype,"helperText",void 0),de([A()],e.prototype,"forceStatus",void 0),de([A({reflect:!0})],e.prototype,"value",void 0),de([J()],e.prototype,"errorMessages",void 0),de([J()],e.prototype,"warningMessages",void 0),de([J()],e.prototype,"status",void 0),de([J()],e.prototype,"focused",void 0),de([J()],e.prototype,"additionalWarningRules",void 0),de([J()],e.prototype,"additionalErrorRules",void 0),e});var Jr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),Jr(n,e);return!0},pn=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?Mt.error:this.warningMessages.length?Mt.warning:Mt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return de([A()],e.prototype,"warningRules",void 0),de([A()],e.prototype,"errorRules",void 0),de([A()],e.prototype,"validateOn",void 0),de([A({type:Boolean})],e.prototype,"validateAtRender",void 0),de([A()],e.prototype,"label",void 0),de([A({type:Boolean})],e.prototype,"hideLabel",void 0),de([A()],e.prototype,"name",void 0),de([A({type:Boolean})],e.prototype,"disabled",void 0),de([A()],e.prototype,"helperText",void 0),de([A()],e.prototype,"forceStatus",void 0),de([A({reflect:!0})],e.prototype,"value",void 0),de([J()],e.prototype,"errorMessages",void 0),de([J()],e.prototype,"warningMessages",void 0),de([J()],e.prototype,"status",void 0),de([J()],e.prototype,"focused",void 0),de([J()],e.prototype,"additionalWarningRules",void 0),de([J()],e.prototype,"additionalErrorRules",void 0),e});var Jr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),Jr(n,e);return!0},pn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},yl=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),Yp(e)}};function Zp(t){this._$AN!==void 0?(pn(this),this._$AM=t,yl(this)):this._$AM=t}function qp(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++)Jr(n[i],!1),pn(n[i]);else n!=null&&(Jr(n,!1),pn(n));else Jr(this,t)}var Yp=t=>{t.type==Be.CHILD&&(t._$AP??=qp,t._$AQ??=Zp)},fn=class extends Ee{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),yl(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(Jr(this,e),pn(this))}setValue(e){if(ds(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 ml;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(ml||(ml={}));var Xp={sm:640,md:768,lg:1024,xl:1280},Ti=class extends fn{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??(()=>G);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:Xp[e]}},Uv=Le(Ti);var _i,Li,Ni,Ii,Pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ni=(Li=(_i=window.safari)===null||_i===void 0?void 0:_i.pushNotification)===null||Li===void 0?void 0:Li.toString())!==null&&Ni!==void 0?Ni:"")==="[object SafariRemoteNotification]",Jp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ii=window.ftGlobals)!==null&&Ii!==void 0?Ii:{lit:Wn,litDecorators:Gn,litRepeat:jn,litClassMap:Vn,litStyleMap:Kn,litUnsafeHTML:qn,wcUtils:{...na,...Xn,...la,...Oi,...da,...ua,...ya,...oa,...Na,...wi,...pl,...mi,...ha,...Ba,...Si,...Da,...Zs,...ea,...Fa,...ma,...Ha,...fl,...Ys,...Wa,...fi,...Ei,...Ia,...ka,...bi,...ia,isSafari:Pi,isTouchScreen:Jp,setVariable:w}};var gl=r.extend("--ft-ripple-color","",q.colorContent),_={color:gl,backgroundColor:r.extend("--ft-ripple-background-color","",gl),opacityContentOnSurfacePressed:r.external(q.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(q.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(q.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(q.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},bl=r.extend("--ft-ripple-color","",q.colorPrimary),xl={color:bl,backgroundColor:r.extend("--ft-ripple-background-color","",bl)},vl=r.extend("--ft-ripple-color","",q.colorSecondary),Sl={color:vl,backgroundColor:r.extend("--ft-ripple-background-color","",vl)},Ol=M`
|
|
86
86
|
:host {
|
|
87
87
|
display: contents;
|
|
88
88
|
}
|
|
@@ -137,19 +137,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
140
|
+
background-color: ${Sl.backgroundColor};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${Sl.color};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${xl.backgroundColor};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${xl.color};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -194,7 +194,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
194
194
|
opacity: ${_.opacityContentOnSurfacePressed};
|
|
195
195
|
transform: translate(-50%, -50%) scale(1);
|
|
196
196
|
}
|
|
197
|
-
`;function
|
|
197
|
+
`;function Cl(t,e){let o=it[t];return M`
|
|
198
198
|
${e?Te(e):M`.ft-typography--${Te(t)}`} {
|
|
199
199
|
font-family: ${o.fontFamily};
|
|
200
200
|
font-size: ${o.fontSize};
|
|
@@ -204,7 +204,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
204
204
|
text-decoration: ${o.textDecoration};
|
|
205
205
|
text-transform: ${o.textCase};
|
|
206
206
|
}
|
|
207
|
-
`}var
|
|
207
|
+
`}var El=r.extend("--ft-typography-font-family","",q.titleFont),rt=r.extend("--ft-typography-font-family","",q.contentFont),B={fontFamily:rt,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")},pr={fontFamily:r.extend("--ft-typography-title-font-family","",El),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")},fr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",El),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")},hr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",rt),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")},yr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",rt),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")},mr={fontFamily:r.extend("--ft-typography-body1-font-family","",rt),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")},gr={fontFamily:r.extend("--ft-typography-body2-font-family","",rt),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")},br={fontFamily:r.extend("--ft-typography-caption-font-family","",rt),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")},xr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",rt),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")},vr={fontFamily:r.extend("--ft-typography-overline-font-family","",rt),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")},We={fontFamily:r.extend("--ft-typography-button-font-family","",rt),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")},Al=M`
|
|
208
208
|
.ft-typography--title {
|
|
209
209
|
font-family: ${pr.fontFamily};
|
|
210
210
|
font-size: ${pr.fontSize};
|
|
@@ -213,7 +213,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
213
213
|
line-height: ${pr.lineHeight};
|
|
214
214
|
text-transform: ${pr.textTransform};
|
|
215
215
|
}
|
|
216
|
-
`,
|
|
216
|
+
`,wl=M`
|
|
217
217
|
.ft-typography--title-dense {
|
|
218
218
|
font-family: ${fr.fontFamily};
|
|
219
219
|
font-size: ${fr.fontSize};
|
|
@@ -222,7 +222,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
222
222
|
line-height: ${fr.lineHeight};
|
|
223
223
|
text-transform: ${fr.textTransform};
|
|
224
224
|
}
|
|
225
|
-
`,
|
|
225
|
+
`,Rl=M`
|
|
226
226
|
.ft-typography--subtitle1 {
|
|
227
227
|
font-family: ${hr.fontFamily};
|
|
228
228
|
font-size: ${hr.fontSize};
|
|
@@ -231,7 +231,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
231
231
|
line-height: ${hr.lineHeight};
|
|
232
232
|
text-transform: ${hr.textTransform};
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Tl=M`
|
|
235
235
|
.ft-typography--subtitle2 {
|
|
236
236
|
font-family: ${yr.fontFamily};
|
|
237
237
|
font-size: ${yr.fontSize};
|
|
@@ -241,7 +241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
241
241
|
text-transform: ${yr.textTransform};
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
`,
|
|
244
|
+
`,_l=M`
|
|
245
245
|
.ft-typography--body1 {
|
|
246
246
|
font-family: ${mr.fontFamily};
|
|
247
247
|
font-size: ${mr.fontSize};
|
|
@@ -250,7 +250,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
250
250
|
line-height: ${mr.lineHeight};
|
|
251
251
|
text-transform: ${mr.textTransform};
|
|
252
252
|
}
|
|
253
|
-
`,
|
|
253
|
+
`,Ll=M`
|
|
254
254
|
.ft-typography--body2 {
|
|
255
255
|
font-family: ${gr.fontFamily};
|
|
256
256
|
font-size: ${gr.fontSize};
|
|
@@ -259,7 +259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
259
259
|
line-height: ${gr.lineHeight};
|
|
260
260
|
text-transform: ${gr.textTransform};
|
|
261
261
|
}
|
|
262
|
-
`,
|
|
262
|
+
`,Nl=M`
|
|
263
263
|
.ft-typography--caption {
|
|
264
264
|
font-family: ${br.fontFamily};
|
|
265
265
|
font-size: ${br.fontSize};
|
|
@@ -268,7 +268,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
268
268
|
line-height: ${br.lineHeight};
|
|
269
269
|
text-transform: ${br.textTransform};
|
|
270
270
|
}
|
|
271
|
-
`,
|
|
271
|
+
`,Il=M`
|
|
272
272
|
.ft-typography--breadcrumb {
|
|
273
273
|
font-family: ${xr.fontFamily};
|
|
274
274
|
font-size: ${xr.fontSize};
|
|
@@ -277,7 +277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
277
277
|
line-height: ${xr.lineHeight};
|
|
278
278
|
text-transform: ${xr.textTransform};
|
|
279
279
|
}
|
|
280
|
-
`,
|
|
280
|
+
`,Pl=M`
|
|
281
281
|
.ft-typography--overline {
|
|
282
282
|
font-family: ${vr.fontFamily};
|
|
283
283
|
font-size: ${vr.fontSize};
|
|
@@ -286,7 +286,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
286
286
|
line-height: ${vr.lineHeight};
|
|
287
287
|
text-transform: ${vr.textTransform};
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
289
|
+
`,kl=M`
|
|
290
290
|
.ft-typography--button {
|
|
291
291
|
font-family: ${We.fontFamily};
|
|
292
292
|
font-size: ${We.fontSize};
|
|
@@ -295,11 +295,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
295
295
|
line-height: ${We.lineHeight};
|
|
296
296
|
text-transform: ${We.textTransform};
|
|
297
297
|
}
|
|
298
|
-
`,
|
|
298
|
+
`,Dl=M`
|
|
299
299
|
.ft-typography {
|
|
300
300
|
vertical-align: inherit;
|
|
301
301
|
}
|
|
302
|
-
`,
|
|
302
|
+
`,Ml=[Object.keys(it).map(t=>Cl(t))];var ee={color:r.extend("--ft-loader-color","",q.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},Bl=M`
|
|
303
303
|
:host {
|
|
304
304
|
line-height: 0;
|
|
305
305
|
}
|
|
@@ -368,7 +368,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
368
368
|
transform: translate(calc(0.35 * ${ee.size}), 0);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
`;var fe={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")},
|
|
371
|
+
`;var fe={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")},Ul=[M`
|
|
372
372
|
:host, i.ft-icon {
|
|
373
373
|
display: inline-flex;
|
|
374
374
|
align-items: center;
|
|
@@ -416,7 +416,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
416
416
|
.ft-icon--material {
|
|
417
417
|
font-family: ${fe.materialFontFamily}, "Material Icons", sans-serif;
|
|
418
418
|
}
|
|
419
|
-
`,_t];var
|
|
419
|
+
`,_t];var $l=r.extend("--ft-button-color","",q.colorPrimary),se={backgroundColor:r.extend("--ft-button-background-color","",q.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",q.borderRadiusL),color:$l,fontSize:r.extend("--ft-button-font-size","",We.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",$l),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(q.colorOpacityDisabled,"Design system")},Fl=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",q.colorOnPrimary)),ki={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",q.colorPrimary)),color:Fl,rippleColor:r.extend("--ft-button-primary-ripple-color","",Fl)},ze={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",q.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")},Hl=[M`
|
|
420
420
|
:host {
|
|
421
421
|
display: inline-block;
|
|
422
422
|
max-width: 100%;
|
|
@@ -564,7 +564,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
564
564
|
<div class="ft-ripple--background"></div>
|
|
565
565
|
<div class="ft-ripple--effect"></div>
|
|
566
566
|
</div>
|
|
567
|
-
`}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(p=>window.addEventListener(p,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()}};te.elementDefinitions={};te.styles=
|
|
567
|
+
`}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(p=>window.addEventListener(p,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()}};te.elementDefinitions={};te.styles=Ol;me([A({type:Boolean})],te.prototype,"primary",void 0);me([A({type:Boolean})],te.prototype,"secondary",void 0);me([A({type:Boolean})],te.prototype,"unbounded",void 0);me([A({type:Boolean})],te.prototype,"activated",void 0);me([A({type:Boolean})],te.prototype,"selected",void 0);me([A({type:Boolean})],te.prototype,"disabled",void 0);me([J()],te.prototype,"hovered",void 0);me([J()],te.prototype,"focused",void 0);me([J()],te.prototype,"pressed",void 0);me([J()],te.prototype,"rippling",void 0);me([J()],te.prototype,"originX",void 0);me([J()],te.prototype,"originY",void 0);me([he(".ft-ripple")],te.prototype,"ripple",void 0);me([he(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0);re("ft-ripple")(te);var zl=Symbol.for(""),Qp=t=>{if(t?.r===zl)return t?._$litStatic$},Sr=t=>({_$litStatic$:t,r:zl});var Wl=new Map,Di=t=>(e,...o)=>{let n=o.length,a,i,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(i=o[p],(a=Qp(i))!==void 0);)d+=a+e[++p],h=!0;p!==n&&l.push(i),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Wl.get(f))===void 0&&(s.raw=s,Wl.set(f,e=s)),o=l}return t(e,...o)},Or=Di(K),kS=Di(Bn),DS=Di(Un);var yt;(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"})(yt||(yt={}));var Gl=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},Pe=class extends V{constructor(){super(...arguments),this.variant=yt.body1}render(){return this.element?Or`
|
|
568
568
|
<${Sr(this.element)}
|
|
569
569
|
part="text"
|
|
570
570
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -572,7 +572,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
572
572
|
</${Sr(this.element)}>
|
|
573
573
|
`:Or`
|
|
574
574
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
575
|
-
`}};Pe.styles=[
|
|
575
|
+
`}};Pe.styles=[Al,wl,Rl,Tl,_l,Ll,Nl,Il,Pl,kl,Dl,...Ml];Gl([A()],Pe.prototype,"element",void 0);Gl([A()],Pe.prototype,"variant",void 0);var mt;(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"})(mt||(mt={}));function ef(t,e){let o=it[t];return M`
|
|
576
576
|
${e?Te(e):M`.ftds-typography--${Te(t)}`} {
|
|
577
577
|
font-family: ${o.fontFamily};
|
|
578
578
|
font-size: ${o.fontSize};
|
|
@@ -582,7 +582,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
582
582
|
text-decoration: ${o.textDecoration};
|
|
583
583
|
text-transform: ${o.textCase};
|
|
584
584
|
}
|
|
585
|
-
`}var
|
|
585
|
+
`}var jl=[Object.keys(it).map(t=>ef(t))];var Vl=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},ot=class extends V{constructor(){super(...arguments),this.variant=mt.body2medium}render(){return this.element?Or`
|
|
586
586
|
<${Sr(this.element)}
|
|
587
587
|
part="text"
|
|
588
588
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -590,7 +590,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
590
590
|
</${Sr(this.element)}>
|
|
591
591
|
`:Or`
|
|
592
592
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
593
|
-
`}};ot.styles=[...
|
|
593
|
+
`}};ot.styles=[...jl];Vl([A()],ot.prototype,"element",void 0);Vl([A()],ot.prototype,"variant",void 0);re("ft-typography")(Pe);re("ftds-typography")(ot);var Cr={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","",q.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},Kl=M`
|
|
594
594
|
.ft-tooltip--container {
|
|
595
595
|
display: block;
|
|
596
596
|
}
|
|
@@ -619,10 +619,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
619
619
|
position: relative;
|
|
620
620
|
word-break: break-word;
|
|
621
621
|
}
|
|
622
|
-
`;var
|
|
623
|
-
`;var tf="ft-app-info",Bt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Bt.eventName="authentication-change";var rf={session:(t,e)=>{ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Bt(e.payload)),0))}},P=Pt.get({name:tf,reducers:rf,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 Ut=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var hn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ut.await()}};var Se=class extends hn{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 Ue,this.cache=e?a.commonCache:new Ue}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 yn=class extends Se{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Mi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Mi;var Zl,Er=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},of=Symbol("clearAfterUnitTest"),mn=class extends So(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zl]=()=>{this.defaultMessages={},this.cache=new Ue,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};ge(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 jr((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 Ct)&&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 Er({loadedContexts:e})),this.dispatchEvent(new Er({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Er({loadedContexts:[e]})),this.dispatchEvent(new Er({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>xo(0).then(()=>n()).catch(()=>null)))}};Zl=of;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends mn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends mn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Qr=window.FluidTopicsI18nService,Bi=window.FluidTopicsCustomI18nService;var Ui=class{highlightHtml(e,o,n){$a(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ui;var gn=class extends Se{async listMySearches(){let{session:e}=P.getState();return cl(e,oe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var $i=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(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:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new $i;var eo=class{static get(e,o){var n,a;let i=P.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 dr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Fi=class{urlToSearchRequest(e){return eo.get().parse(e)}searchRequestToUrl(e){return eo.get().serialize(e)}};window.FluidTopicsUrlService=new Fi;var $t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};$t.eventName="change";var Hi=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))}},ql=new Hi;var bn=class t extends Ye{static build(){return new t(window.history,ql,()=>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),ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new $t(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener($t.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener($t.eventName,e)}currentItem(){return Dr(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 Dr(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 Dr(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=bn.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 Yl=P;function Xl(t,e){var o;return Yl.getState().authenticationRequired&&!(!((o=Yl.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ne=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 V{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=()=>Ut.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ue,this.cleanSessionDebouncer=new be,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return K`
|
|
622
|
+
`;var Zl=M`
|
|
623
|
+
`;var tf="ft-app-info",Bt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Bt.eventName="authentication-change";var rf={session:(t,e)=>{ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Bt(e.payload)),0))}},P=Pt.get({name:tf,reducers:rf,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 Ut=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var hn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ut.await()}};var Se=class extends hn{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 Ue,this.cache=e?a.commonCache:new Ue}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 yn=class extends Se{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Mi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Mi;var ql,Er=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},of=Symbol("clearAfterUnitTest"),mn=class extends So(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ql]=()=>{this.defaultMessages={},this.cache=new Ue,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};ge(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 jr((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 Ct)&&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 Er({loadedContexts:e})),this.dispatchEvent(new Er({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Er({loadedContexts:[e]})),this.dispatchEvent(new Er({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>xo(0).then(()=>n()).catch(()=>null)))}};ql=of;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends mn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends mn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Qr=window.FluidTopicsI18nService,Bi=window.FluidTopicsCustomI18nService;var Ui=class{highlightHtml(e,o,n){$a(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ui;var gn=class extends Se{async listMySearches(){let{session:e}=P.getState();return ll(e,oe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var $i=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(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:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new $i;var eo=class{static get(e,o){var n,a;let i=P.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 dr(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Fi=class{urlToSearchRequest(e){return eo.get().parse(e)}searchRequestToUrl(e){return eo.get().serialize(e)}};window.FluidTopicsUrlService=new Fi;var $t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};$t.eventName="change";var Hi=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))}},Yl=new Hi;var bn=class t extends Ye{static build(){return new t(window.history,Yl,()=>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),ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new $t(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener($t.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener($t.eventName,e)}currentItem(){return Dr(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 Dr(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 Dr(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=bn.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 Xl(t,e){let{authenticationRequired:o,session:n}=P.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ne=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 V{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=()=>Ut.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ue,this.cleanSessionDebouncer=new be,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return K`
|
|
624
624
|
<slot></slot>
|
|
625
|
-
`}connectedCallback(){super.connectedCallback(),P.addEventListener(Bt.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(Bt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Qr.addContext(p)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(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",()=>Xl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};X.elementDefinitions={};X.styles=Kl;ne([A()],X.prototype,"baseUrl",void 0);ne([A()],X.prototype,"apiIntegrationIdentifier",void 0);ne([A()],X.prototype,"apiIntegrationAppVersion",void 0);ne([A()],X.prototype,"uiLocale",void 0);ne([Ae(null)],X.prototype,"availableUiLocales",void 0);ne([Ae(null)],X.prototype,"metadataConfiguration",void 0);ne([A({type:Boolean})],X.prototype,"editorMode",void 0);ne([A({type:Boolean})],X.prototype,"noCustom",void 0);ne([A({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);ne([A({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomComponent",void 0);ne([A({type:Boolean})],X.prototype,"withManualResources",void 0);ne([A({type:Boolean})],X.prototype,"navigatorOnline",void 0);ne([A({type:Boolean})],X.prototype,"forcedOffline",void 0);ne([A({type:Object})],X.prototype,"apiProvider",void 0);ne([A({type:Boolean})],X.prototype,"authenticationRequired",void 0);ne([Ae([])],X.prototype,"messageContexts",void 0);ne([Ae(void 0)],X.prototype,"session",void 0);ne([J()],X.prototype,"localesConfiguration",void 0);ne([J()],X.prototype,"availableContentLocales",void 0);var xn=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},cE=le(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(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 xn([A({type:Boolean})],e.prototype,"useLongDateFormat",void 0),xn([A({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),xn([er({store:P.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),xn([er({store:P.name})],e.prototype,"uiLocale",void 0),e});var vn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Sn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var nf="ft-user-assets",af={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Re).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;zi(t,o,[...Wi(t,o),a]),Jl(t,o,1,n),Ql(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;zi(t,o,Wi(t,o).map(a=>a.id===n.id?n:a)),Ql(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;zi(t,o,Wi(t,o).filter(i=>i.id!==a)),Jl(t,o,-1,n)}},ed={[Re.SEARCHES]:"savedSearches",[Re.BOOKMARKS]:"bookmarks",[Re.BOOKS]:void 0,[Re.COLLECTIONS]:void 0},Wi=(t,e)=>{var o;let n=ed[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},zi=(t,e,o)=>{let n=ed[e];n&&(t[n]=o)},Jl=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Re.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Ql=(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)},Oe=Pt.get({name:nf,reducers:af,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Re).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gi=class{constructor(e=new vn,o=new Sn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yn,this.savedSearchesService=new gn,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();ge((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(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Oe.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Oe.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;e===Re.BOOKMARKS&&o&&Oe.actions.clearBookmarkCountByMap(),Oe.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;Oe.actions.bookmarks(o)}}},sf=new Gi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=sf);re("ft-app-context")(X);var ji=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-]+$/)}},Ar=new ji;var cf=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},ro=Symbol("i18nAttributes"),td=Symbol("i18nListAttributes"),rd=Symbol("i18nProperties"),On=Symbol("i18nContexts"),to=Symbol("i18nUnsubs"),od=le(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?Bi:Qr}i18n(i){let{context:s,key:l,message:d}=i,{custom:p,args:h,argsProvider:f}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let y=h??(f?f(this):[]);return this.getI18nService(p).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(Ar.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 p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let d=this,p=(h,f,y)=>y?.context&&y.key&&i(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[ro])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[td])===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=>p(h,f,x))})}updateI18nProperties(i){var s;(s=this[rd])===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[On].set(d,{isCustomContext:l}),this[to].has(d)||this[to].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(i){return this[On].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[On].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[to].forEach(i=>i()),this[to].clear()}}return e=On,o=to,cf([A({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Cn=class extends od(V){},En=class extends od(Zr){};var Vi=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Ar.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lf=new Vi;var nd=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:qe,converter:Ar,...e}),o[ro]=(a=o[ro])!==null&&a!==void 0?a:new Map,o[ro].set(n,t??{})};var ad=M`
|
|
625
|
+
`}connectedCallback(){super.connectedCallback(),P.addEventListener(Bt.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(Bt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Qr.addContext(p)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(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",()=>Xl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};X.elementDefinitions={};X.styles=Zl;ne([A()],X.prototype,"baseUrl",void 0);ne([A()],X.prototype,"apiIntegrationIdentifier",void 0);ne([A()],X.prototype,"apiIntegrationAppVersion",void 0);ne([A()],X.prototype,"uiLocale",void 0);ne([Ae(null)],X.prototype,"availableUiLocales",void 0);ne([Ae(null)],X.prototype,"metadataConfiguration",void 0);ne([A({type:Boolean})],X.prototype,"editorMode",void 0);ne([A({type:Boolean})],X.prototype,"noCustom",void 0);ne([A({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);ne([A({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomComponent",void 0);ne([A({type:Boolean})],X.prototype,"withManualResources",void 0);ne([A({type:Boolean})],X.prototype,"navigatorOnline",void 0);ne([A({type:Boolean})],X.prototype,"forcedOffline",void 0);ne([A({type:Object})],X.prototype,"apiProvider",void 0);ne([A({type:Boolean})],X.prototype,"authenticationRequired",void 0);ne([Ae([])],X.prototype,"messageContexts",void 0);ne([Ae(void 0)],X.prototype,"session",void 0);ne([J()],X.prototype,"localesConfiguration",void 0);ne([J()],X.prototype,"availableContentLocales",void 0);var xn=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},cE=le(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(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 xn([A({type:Boolean})],e.prototype,"useLongDateFormat",void 0),xn([A({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),xn([er({store:P.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),xn([er({store:P.name})],e.prototype,"uiLocale",void 0),e});var vn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Sn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var nf="ft-user-assets",af={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Re).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;zi(t,o,[...Wi(t,o),a]),Jl(t,o,1,n),Ql(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;zi(t,o,Wi(t,o).map(a=>a.id===n.id?n:a)),Ql(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;zi(t,o,Wi(t,o).filter(i=>i.id!==a)),Jl(t,o,-1,n)}},ed={[Re.SEARCHES]:"savedSearches",[Re.BOOKMARKS]:"bookmarks",[Re.BOOKS]:void 0,[Re.COLLECTIONS]:void 0},Wi=(t,e)=>{var o;let n=ed[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},zi=(t,e,o)=>{let n=ed[e];n&&(t[n]=o)},Jl=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Re.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Ql=(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)},Oe=Pt.get({name:nf,reducers:af,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Re).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gi=class{constructor(e=new vn,o=new Sn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yn,this.savedSearchesService=new gn,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();ge((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(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Oe.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Oe.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;e===Re.BOOKMARKS&&o&&Oe.actions.clearBookmarkCountByMap(),Oe.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;Oe.actions.bookmarks(o)}}},sf=new Gi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=sf);re("ft-app-context")(X);var ji=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-]+$/)}},Ar=new ji;var cf=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},ro=Symbol("i18nAttributes"),td=Symbol("i18nListAttributes"),rd=Symbol("i18nProperties"),On=Symbol("i18nContexts"),to=Symbol("i18nUnsubs"),od=le(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?Bi:Qr}i18n(i){let{context:s,key:l,message:d}=i,{custom:p,args:h,argsProvider:f}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let y=h??(f?f(this):[]);return this.getI18nService(p).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(Ar.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 p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let d=this,p=(h,f,y)=>y?.context&&y.key&&i(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[ro])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[td])===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=>p(h,f,x))})}updateI18nProperties(i){var s;(s=this[rd])===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[On].set(d,{isCustomContext:l}),this[to].has(d)||this[to].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(i){return this[On].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[On].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[to].forEach(i=>i()),this[to].clear()}}return e=On,o=to,cf([A({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Cn=class extends od(V){},En=class extends od(Zr){};var Vi=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Ar.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lf=new Vi;var nd=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:qe,converter:Ar,...e}),o[ro]=(a=o[ro])!==null&&a!==void 0?a:new Map,o[ro].set(n,t??{})};var ad=M`
|
|
626
626
|
`;var oo=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},ke=class extends En{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":G:K`
|
|
627
627
|
<span class="ft-i18n">
|
|
628
628
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -642,19 +642,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
642
642
|
</div>
|
|
643
643
|
</div>
|
|
644
644
|
</div>
|
|
645
|
-
`}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="",La(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 ${q.transitionDuration}, left ${q.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Jn(e,this.ignoreMatchingElements,this.eventsTarget)}};ae.elementDefinitions={"ft-typography":Pe};ae.styles=Vl;De([nd()],ae.prototype,"text",void 0);De([A({type:Boolean})],ae.prototype,"manual",void 0);De([A({type:Boolean})],ae.prototype,"inline",void 0);De([Oo()],ae.prototype,"delay",void 0);De([A()],ae.prototype,"position",void 0);De([Ae([])],ae.prototype,"ignoreMatchingElements",void 0);De([zn()],ae.prototype,"slotNodes",void 0);De([he(".ft-tooltip--container")],ae.prototype,"container",void 0);De([he(".ft-tooltip")],ae.prototype,"tooltip",void 0);De([he(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);De([J()],ae.prototype,"visible",void 0);re("ft-tooltip")(ae);var An;(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=""})(An||(An={}));var L;(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=""})(L||(L={}));var kA=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var DA={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Ge;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ge||(Ge={}));var no=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},Ce=class extends V{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=G}render(){let e=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,o=e!==Ge.material||!!this.value;return K`
|
|
645
|
+
`}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="",La(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 ${q.transitionDuration}, left ${q.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Jn(e,this.ignoreMatchingElements,this.eventsTarget)}};ae.elementDefinitions={"ft-typography":Pe};ae.styles=Kl;De([nd()],ae.prototype,"text",void 0);De([A({type:Boolean})],ae.prototype,"manual",void 0);De([A({type:Boolean})],ae.prototype,"inline",void 0);De([Oo()],ae.prototype,"delay",void 0);De([A()],ae.prototype,"position",void 0);De([Ae([])],ae.prototype,"ignoreMatchingElements",void 0);De([zn()],ae.prototype,"slotNodes",void 0);De([he(".ft-tooltip--container")],ae.prototype,"container",void 0);De([he(".ft-tooltip")],ae.prototype,"tooltip",void 0);De([he(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);De([J()],ae.prototype,"visible",void 0);re("ft-tooltip")(ae);var An;(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=""})(An||(An={}));var L;(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=""})(L||(L={}));var kA=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var DA={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Ge;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ge||(Ge={}));var no=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},Ce=class extends V{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=G}render(){let e=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,o=e!==Ge.material||!!this.value;return K`
|
|
646
646
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
647
647
|
${Zn(this.resolvedIcon)}
|
|
648
648
|
<slot ?hidden=${o}></slot>
|
|
649
649
|
</i>
|
|
650
|
-
`}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 Ge.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ge.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=An[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=
|
|
650
|
+
`}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 Ge.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ge.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=An[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=Ul;no([A()],Ce.prototype,"variant",void 0);no([A()],Ce.prototype,"value",void 0);no([A({reflect:!0,attribute:"aria-hidden"})],Ce.prototype,"ariaHidden",void 0);no([J()],Ce.prototype,"resolvedIcon",void 0);no([he("slot")],Ce.prototype,"slottedContent",void 0);re("ft-icon")(Ce);var Ft=class extends V{render(){return K`
|
|
651
651
|
<div class="ft-loader">
|
|
652
652
|
<div></div>
|
|
653
653
|
<div></div>
|
|
654
654
|
<div></div>
|
|
655
655
|
<div></div>
|
|
656
656
|
</div>
|
|
657
|
-
`}};Ft.styles=
|
|
657
|
+
`}};Ft.styles=Bl;re("ft-loader")(Ft);var Ki=t=>t??G;var ie=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},Z=class extends vi(V){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=K`
|
|
658
658
|
<ft-ripple part="ripple"
|
|
659
659
|
?disabled=${this.isDisabled()}
|
|
660
660
|
?activated=${this.activated}
|
|
@@ -696,7 +696,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
696
696
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
697
697
|
`:K`
|
|
698
698
|
<slot part="icon" name="icon"></slot>
|
|
699
|
-
`}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 vo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Z.elementDefinitions={"ft-ripple":te,"ft-tooltip":ae,"ft-icon":Ce,"ft-loader":Ft};ie([A()],Z.prototype,"href",void 0);ie([A()],Z.prototype,"target",void 0);ie([A()],Z.prototype,"type",void 0);ie([A({type:Boolean})],Z.prototype,"disabled",void 0);ie([A()],Z.prototype,"label",void 0);ie([A()],Z.prototype,"icon",void 0);ie([A()],Z.prototype,"iconVariant",void 0);ie([A({type:Boolean})],Z.prototype,"trailingIcon",void 0);ie([A({type:Boolean})],Z.prototype,"loading",void 0);ie([A({attribute:"aria-label"})],Z.prototype,"ariaLabel",void 0);ie([A()],Z.prototype,"ariaHasPopup",void 0);ie([A({attribute:"aria-pressed"})],Z.prototype,"ariaPressed",void 0);ie([A()],Z.prototype,"tooltipPosition",void 0);ie([A({type:Boolean})],Z.prototype,"hideTooltip",void 0);ie([A({type:Boolean})],Z.prototype,"forceTooltip",void 0);ie([A({type:Boolean})],Z.prototype,"activated",void 0);ie([he(".ft-button")],Z.prototype,"button",void 0);ie([he(".ft-button--label slot")],Z.prototype,"slottedContent",void 0);ie([he("[part=tooltip]")],Z.prototype,"tooltip",void 0);var wn=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 Z{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 yt.button}};je.elementDefinitions={...Z.elementDefinitions,"ft-or-ftds-typography":Pe};je.styles=[Gr,
|
|
699
|
+
`}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 vo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Z.elementDefinitions={"ft-ripple":te,"ft-tooltip":ae,"ft-icon":Ce,"ft-loader":Ft};ie([A()],Z.prototype,"href",void 0);ie([A()],Z.prototype,"target",void 0);ie([A()],Z.prototype,"type",void 0);ie([A({type:Boolean})],Z.prototype,"disabled",void 0);ie([A()],Z.prototype,"label",void 0);ie([A()],Z.prototype,"icon",void 0);ie([A()],Z.prototype,"iconVariant",void 0);ie([A({type:Boolean})],Z.prototype,"trailingIcon",void 0);ie([A({type:Boolean})],Z.prototype,"loading",void 0);ie([A({attribute:"aria-label"})],Z.prototype,"ariaLabel",void 0);ie([A()],Z.prototype,"ariaHasPopup",void 0);ie([A({attribute:"aria-pressed"})],Z.prototype,"ariaPressed",void 0);ie([A()],Z.prototype,"tooltipPosition",void 0);ie([A({type:Boolean})],Z.prototype,"hideTooltip",void 0);ie([A({type:Boolean})],Z.prototype,"forceTooltip",void 0);ie([A({type:Boolean})],Z.prototype,"activated",void 0);ie([he(".ft-button")],Z.prototype,"button",void 0);ie([he(".ft-button--label slot")],Z.prototype,"slottedContent",void 0);ie([he("[part=tooltip]")],Z.prototype,"tooltip",void 0);var wn=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 Z{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 yt.button}};je.elementDefinitions={...Z.elementDefinitions,"ft-or-ftds-typography":Pe};je.styles=[Gr,Hl];wn([A({type:Boolean})],je.prototype,"primary",void 0);wn([A({type:Boolean})],je.prototype,"outlined",void 0);wn([A({type:Boolean})],je.prototype,"dense",void 0);wn([A({type:Boolean})],je.prototype,"round",void 0);var df={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},id=[M`
|
|
700
700
|
:host {
|
|
701
701
|
display: inline-block;
|
|
702
702
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.56",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "2.53.1",
|
|
23
|
-
"@fluid-topics/ft-icon": "1.3.
|
|
24
|
-
"@fluid-topics/ft-loader": "1.3.
|
|
25
|
-
"@fluid-topics/ft-ripple": "1.3.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.3.
|
|
27
|
-
"@fluid-topics/ft-typography": "1.3.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
23
|
+
"@fluid-topics/ft-icon": "1.3.56",
|
|
24
|
+
"@fluid-topics/ft-loader": "1.3.56",
|
|
25
|
+
"@fluid-topics/ft-ripple": "1.3.56",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.3.56",
|
|
27
|
+
"@fluid-topics/ft-typography": "1.3.56",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "1.3.56",
|
|
29
29
|
"lit": "3.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "01868f9694982c27cc22b788567208da17c855e2"
|
|
32
32
|
}
|