@fluid-topics/ft-reader-metadata 1.3.53 → 1.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";(()=>{var Yd=Object.create;var Mi=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Qd=Object.getOwnPropertyNames;var Jd=Object.getPrototypeOf,ep=Object.prototype.hasOwnProperty;var zt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var tp=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Qd(e))!ep.call(t,a)&&a!==o&&Mi(t,a,{get:()=>e[a],enumerable:!(n=Xd(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Yd(Jd(t)):{},tp(e||!t||!t.__esModule?Mi(o,"default",{value:t,enumerable:!0}):o,t));var I=zt((Nu,Bi)=>{Bi.exports=ftGlobals.wcUtils});var $=zt((_u,Ui)=>{Ui.exports=ftGlobals.lit});var X=zt((Pu,$i)=>{$i.exports=ftGlobals.litDecorators});var tc=zt((At,ec)=>{var Bo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Uo=function(){function t(){this.fetch=!1,this.DOMException=Bo.DOMException}return t.prototype=Bo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(m){return m&&DataView.prototype.isPrototypeOf(m)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function p(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function u(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var v={next:function(){var P=m.shift();return{done:P===void 0,value:P}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function y(m){this.map={},m instanceof y?m.forEach(function(v,P){this.append(P,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}y.prototype.append=function(m,v){m=p(m),v=u(v);var P=this.map[m];this.map[m]=P?P+", "+v:v},y.prototype.delete=function(m){delete this.map[p(m)]},y.prototype.get=function(m){return m=p(m),this.has(m)?this.map[m]:null},y.prototype.has=function(m){return this.map.hasOwnProperty(p(m))},y.prototype.set=function(m,v){this.map[p(m)]=u(v)},y.prototype.forEach=function(m,v){for(var P in this.map)this.map.hasOwnProperty(P)&&m.call(v,this.map[P],P,this)},y.prototype.keys=function(){var m=[];return this.forEach(function(v,P){m.push(P)}),h(m)},y.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),h(m)},y.prototype.entries=function(){var m=[];return this.forEach(function(v,P){m.push([P,v])}),h(m)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function x(m){return new Promise(function(v,P){m.onload=function(){v(m.result)},m.onerror=function(){P(m.error)}})}function S(m){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(m),P}function O(m){var v=new FileReader,P=x(v),G=/charset=([A-Za-z0-9_-]+)/.exec(m.type),Y=G?G[1]:"utf-8";return v.readAsText(m,Y),P}function L(m){for(var v=new Uint8Array(m),P=new Array(v.length),G=0;G<v.length;G++)P[G]=String.fromCharCode(v[G]);return P.join("")}function R(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:a.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:a.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():a.arrayBuffer&&a.blob&&i(m)?(this._bodyArrayBuffer=R(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=R(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var m=g(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=g(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=g(this);if(m)return m;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(m){var v=m.toUpperCase();return D.indexOf(v)>-1?v:m}function F(m,v){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(m instanceof F){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new y(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!P&&m._bodyInit!=null&&(P=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new y(v.headers)),this.method=U(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var H=new AbortController;return H.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Ce(m){var v=new FormData;return m.trim().split("&").forEach(function(P){if(P){var G=P.split("="),Y=G.shift().replace(/\+/g," "),H=G.join("=").replace(/\+/g," ");v.append(decodeURIComponent(Y),decodeURIComponent(H))}}),v}function nt(m){var v=new y,P=m.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(G){return G.indexOf(`
|
|
2
|
-
`)===0?G.substr(1,G.length):G}).forEach(function(G){var Y=G.split(":"),H=Y.shift().trim();if(H){var bo=Y.join(":").trim();try{v.append(H,bo)}catch(Wn){console.warn("Response "+Wn.message)}}}),v}N.call(F.prototype);function ve(m,v){if(!(this instanceof ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(m)}N.call(ve.prototype),ve.prototype.clone=function(){return new ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},ve.error=function(){var m=new ve(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var at=[301,302,303,307,308];ve.redirect=function(m,v){if(at.indexOf(v)===-1)throw new RangeError("Invalid status code");return new ve(null,{status:v,headers:{location:m}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var G=Error(v);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ue(m,v){return new Promise(function(P,G){var Y=new F(m,v);if(Y.signal&&Y.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function bo(){H.abort()}H.onload=function(){var fe={statusText:H.statusText,headers:nt(H.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&(H.status<200||H.status>599)?fe.status=200:fe.status=H.status,fe.url="responseURL"in H?H.responseURL:fe.headers.get("X-Request-URL");var Ht="response"in H?H.response:H.responseText;setTimeout(function(){P(new ve(Ht,fe))},0)},H.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){G(new o.DOMException("Aborted","AbortError"))},0)};function Wn(fe){try{return fe===""&&n.location.href?n.location.href:fe}catch{return fe}}if(H.open(Y.method,Wn(Y.url),!0),Y.credentials==="include"?H.withCredentials=!0:Y.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(a.blob?H.responseType="blob":a.arrayBuffer&&(H.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||n.Headers&&v.headers instanceof n.Headers)){var Di=[];Object.getOwnPropertyNames(v.headers).forEach(function(fe){Di.push(p(fe)),H.setRequestHeader(fe,u(v.headers[fe]))}),Y.headers.forEach(function(fe,Ht){Di.indexOf(Ht)===-1&&H.setRequestHeader(Ht,fe)})}else Y.headers.forEach(function(fe,Ht){H.setRequestHeader(Ht,fe)});Y.signal&&(Y.signal.addEventListener("abort",bo),H.onreadystatechange=function(){H.readyState===4&&Y.signal.removeEventListener("abort",bo)}),H.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return ue.polyfill=!0,n.fetch||(n.fetch=ue,n.Headers=y,n.Request=F,n.Response=ve),o.Headers=y,o.Request=F,o.Response=ve,o.fetch=ue,o}({})})(Uo);Uo.fetch.ponyfill=!0;delete Uo.fetch.polyfill;var Er=Bo.fetch?Bo:Uo;At=Er.fetch;At.default=Er.fetch;At.fetch=Er.fetch;At.Headers=Er.Headers;At.Request=Er.Request;At.Response=Er.Response;ec.exports=At});var kr=zt((
|
|
2
|
+
`)===0?G.substr(1,G.length):G}).forEach(function(G){var Y=G.split(":"),H=Y.shift().trim();if(H){var bo=Y.join(":").trim();try{v.append(H,bo)}catch(Wn){console.warn("Response "+Wn.message)}}}),v}N.call(F.prototype);function ve(m,v){if(!(this instanceof ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(m)}N.call(ve.prototype),ve.prototype.clone=function(){return new ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},ve.error=function(){var m=new ve(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var at=[301,302,303,307,308];ve.redirect=function(m,v){if(at.indexOf(v)===-1)throw new RangeError("Invalid status code");return new ve(null,{status:v,headers:{location:m}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var G=Error(v);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ue(m,v){return new Promise(function(P,G){var Y=new F(m,v);if(Y.signal&&Y.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function bo(){H.abort()}H.onload=function(){var fe={statusText:H.statusText,headers:nt(H.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&(H.status<200||H.status>599)?fe.status=200:fe.status=H.status,fe.url="responseURL"in H?H.responseURL:fe.headers.get("X-Request-URL");var Ht="response"in H?H.response:H.responseText;setTimeout(function(){P(new ve(Ht,fe))},0)},H.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){G(new o.DOMException("Aborted","AbortError"))},0)};function Wn(fe){try{return fe===""&&n.location.href?n.location.href:fe}catch{return fe}}if(H.open(Y.method,Wn(Y.url),!0),Y.credentials==="include"?H.withCredentials=!0:Y.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(a.blob?H.responseType="blob":a.arrayBuffer&&(H.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||n.Headers&&v.headers instanceof n.Headers)){var Di=[];Object.getOwnPropertyNames(v.headers).forEach(function(fe){Di.push(p(fe)),H.setRequestHeader(fe,u(v.headers[fe]))}),Y.headers.forEach(function(fe,Ht){Di.indexOf(Ht)===-1&&H.setRequestHeader(Ht,fe)})}else Y.headers.forEach(function(fe,Ht){H.setRequestHeader(Ht,fe)});Y.signal&&(Y.signal.addEventListener("abort",bo),H.onreadystatechange=function(){H.readyState===4&&Y.signal.removeEventListener("abort",bo)}),H.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return ue.polyfill=!0,n.fetch||(n.fetch=ue,n.Headers=y,n.Request=F,n.Response=ve),o.Headers=y,o.Request=F,o.Response=ve,o.fetch=ue,o}({})})(Uo);Uo.fetch.ponyfill=!0;delete Uo.fetch.polyfill;var Er=Bo.fetch?Bo:Uo;At=Er.fetch;At.default=Er.fetch;At.fetch=Er.fetch;At.Headers=Er.Headers;At.Request=Er.Request;At.Response=Er.Response;ec.exports=At});var kr=zt((MS,jl)=>{jl.exports=ftGlobals.litClassMap});var od=zt((jS,rd)=>{rd.exports=ftGlobals.litUnsafeHTML});var zd=zt((CE,Hd)=>{Hd.exports=ftGlobals.litRepeat});var qd=b(I());var Pe=b($()),ot=b(X()),Ue=b(I());var Fi=b($()),ku={},Hi=Fi.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
}
|
|
@@ -183,7 +183,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
183
183
|
word-break: break-word;
|
|
184
184
|
}
|
|
185
185
|
`;var Ts=["top","right","bottom","left"],ws=["start","end"],Na=Ts.reduce((t,e)=>t.concat(e,e+"-"+ws[0],e+"-"+ws[1]),[]),Rs=Math.min,Is=Math.max;var pp={left:"right",right:"left",bottom:"top",top:"bottom"},up={start:"end",end:"start"};function _a(t,e,o){return Is(t,Rs(e,o))}function Ao(t,e){return typeof t=="function"?t(e):t}function br(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function Pa(t){return t==="x"?"y":"x"}function ka(t){return t==="y"?"height":"width"}function wo(t){return["top","bottom"].includes(br(t))?"y":"x"}function Da(t){return Pa(wo(t))}function Ls(t,e,o){o===void 0&&(o=!1);let n=Et(t),a=Da(t),i=ka(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=La(s)),[s,La(s)]}function Ns(t){return t.replace(/start|end/g,e=>up[e])}function La(t){return t.replace(/left|right|bottom|top/g,e=>pp[e])}function fp(t){return{top:0,right:0,bottom:0,left:0,...t}}function _s(t){return typeof t!="number"?fp(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){let{x:e,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:e,right:e+n,bottom:o+a,x:e,y:o}}function Ps(t,e,o){let{reference:n,floating:a}=t,i=wo(e),s=Da(e),l=ka(s),p=br(e),u=i==="y",h=n.x+n.width/2-a.width/2,y=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,x;switch(p){case"top":x={x:h,y:n.y-a.height};break;case"bottom":x={x:h,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y};break;case"left":x={x:n.x-a.width,y};break;default:x={x:n.x,y:n.y}}switch(Et(e)){case"start":x[s]-=g*(o&&u?-1:1);break;case"end":x[s]+=g*(o&&u?-1:1);break}return x}var ks=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:h,y}=Ps(u,n,p),g=n,x={},S=0;for(let O=0;O<l.length;O++){let{name:L,fn:R}=l[O],{x:N,y:D,data:U,reset:F}=await R({x:h,y,initialPlacement:n,placement:g,strategy:a,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=N??h,y=D??y,x={...x,[L]:{...x[L],...U}},F&&S<=50&&(S++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:h,y}=Ps(u,g,p)),O=-1)}return{x:h,y,placement:g,strategy:a,middlewareData:x}};async function Ma(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:g=!1,padding:x=0}=Ao(e,t),S=_s(x),L=l[g?y==="floating"?"reference":"floating":y],R=Zt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:p})),N=y==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),U=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},F=Zt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:p}):N);return{top:(R.top-F.top+S.top)/U.y,bottom:(F.bottom-R.bottom+S.bottom)/U.y,left:(R.left-F.left+S.left)/U.x,right:(F.right-R.right+S.right)/U.x}}function hp(t,e,o){return(t?[...o.filter(a=>Et(a)===t),...o.filter(a=>Et(a)!==t)]:o.filter(a=>br(a)===a)).filter(a=>t?Et(a)===t||(e?Ns(a)!==a:!1):!0)}var Ba=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:y,allowedPlacements:g=Na,autoAlignment:x=!0,...S}=Ao(t,e),O=y!==void 0||g===Na?hp(y||null,x,g):g,L=await Ma(e,S),R=((o=s.autoPlacement)==null?void 0:o.index)||0,N=O[R];if(N==null)return{};let D=Ls(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(l!==N)return{reset:{placement:O[0]}};let U=[L[br(N)],L[D[0]],L[D[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:U}],Ce=O[R+1];if(Ce)return{data:{index:R+1,overflows:F},reset:{placement:Ce}};let nt=F.map(ue=>{let m=Et(ue.placement);return[ue.placement,m&&h?ue.overflows.slice(0,2).reduce((v,P)=>v+P,0):ue.overflows[0],ue.overflows]}).sort((ue,m)=>ue[1]-m[1]),at=((a=nt.filter(ue=>ue[2].slice(0,Et(ue[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||nt[0][0];return at!==l?{data:{index:R+1,overflows:F},reset:{placement:at}}:{}}}};var Ua=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:L=>{let{x:R,y:N}=L;return{x:R,y:N}}},...p}=Ao(t,e),u={x:o,y:n},h=await Ma(e,p),y=wo(br(a)),g=Pa(y),x=u[g],S=u[y];if(i){let L=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=x+h[L],D=x-h[R];x=_a(N,x,D)}if(s){let L=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=S+h[L],D=S-h[R];S=_a(N,S,D)}let O=l.fn({...e,[g]:x,[y]:S});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[y]:s}}}}}};var $a=Math.min,xr=Math.max,Gr=Math.round;var mt=t=>({x:t,y:t});function gt(t){return Ms(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(Ms(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ms(t){return t instanceof Node||t instanceof Oe(t).Node}function st(t){return t instanceof Element||t instanceof Oe(t).Element}function Ye(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Ds(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}function vr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function Bs(t){return["table","td","th"].includes(gt(t))}function Ro(t){let e=Io(),o=ke(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(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 Us(t){let e=qt(t);for(;Ye(e)&&!jr(e);){if(Ro(e))return e;e=qt(e)}return null}function Io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jr(t){return["html","body","#document"].includes(gt(t))}function ke(t){return Oe(t).getComputedStyle(t)}function Vr(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(t){if(gt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ds(t)&&t.host||bt(t);return Ds(e)?e.host:e}function $s(t){let e=qt(t);return jr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ye(e)&&vr(e)?e:$s(e)}function To(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=$s(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Oe(a);return i?e.concat(s,s.visualViewport||[],vr(a)?a:[],s.frameElement&&o?To(s.frameElement):[]):e.concat(a,To(a,[],o))}function zs(t){let e=ke(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=Ye(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,l=Gr(o)!==i||Gr(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function Ws(t){return st(t)?t:t.contextElement}function Sr(t){let e=Ws(t);if(!Ye(e))return mt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=zs(e),s=(i?Gr(o.width):o.width)/n,l=(i?Gr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var gp=mt(0);function Gs(t){let e=Oe(t);return!Io()||!e.visualViewport?gp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Oe(t)?!1:e}function Kr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Ws(t),s=mt(1);e&&(n?st(n)&&(s=Sr(n)):s=Sr(t));let l=bp(i,o,n)?Gs(i):mt(0),p=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,y=a.height/s.y;if(i){let g=Oe(i),x=n&&st(n)?Oe(n):n,S=g.frameElement;for(;S&&n&&x!==g;){let O=Sr(S),L=S.getBoundingClientRect(),R=ke(S),N=L.left+(S.clientLeft+parseFloat(R.paddingLeft))*O.x,D=L.top+(S.clientTop+parseFloat(R.paddingTop))*O.y;p*=O.x,u*=O.y,h*=O.x,y*=O.y,p+=N,u+=D,S=Oe(S).frameElement}}return Zt({width:h,height:y,x:p,y:u})}function xp(t){let{rect:e,offsetParent:o,strategy:n}=t,a=Ye(o),i=bt(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},l=mt(1),p=mt(0);if((a||!a&&n!=="fixed")&&((gt(o)!=="body"||vr(i))&&(s=Vr(o)),Ye(o))){let u=Kr(o);l=Sr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function vp(t){return Array.from(t.getClientRects())}function js(t){return Kr(bt(t)).left+Vr(t).scrollLeft}function Sp(t){let e=bt(t),o=Vr(t),n=t.ownerDocument.body,a=xr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=xr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+js(t),l=-o.scrollTop;return ke(n).direction==="rtl"&&(s+=xr(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Cp(t,e){let o=Oe(t),n=bt(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,p=0;if(a){i=a.width,s=a.height;let u=Io();(!u||u&&e==="fixed")&&(l=a.offsetLeft,p=a.offsetTop)}return{width:i,height:s,x:l,y:p}}function Op(t,e){let o=Kr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Ye(t)?Sr(t):mt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:s,height:l,x:p,y:u}}function Fs(t,e,o){let n;if(e==="viewport")n=Cp(t,o);else if(e==="document")n=Sp(bt(t));else if(st(e))n=Op(e,o);else{let a=Gs(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Zt(n)}function Vs(t,e){let o=qt(t);return o===e||!st(o)||jr(o)?!1:ke(o).position==="fixed"||Vs(o,e)}function Ep(t,e){let o=e.get(t);if(o)return o;let n=To(t,[],!1).filter(l=>st(l)&>(l)!=="body"),a=null,i=ke(t).position==="fixed",s=i?qt(t):t;for(;st(s)&&!jr(s);){let l=ke(s),p=Ro(s);!p&&l.position==="fixed"&&(a=null),(i?!p&&!a:!p&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||vr(s)&&!p&&Vs(t,s))?n=n.filter(h=>h!==s):a=l,s=qt(s)}return e.set(t,n),n}function Ap(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?Ep(e,this._c):[].concat(o),n],l=s[0],p=s.reduce((u,h)=>{let y=Fs(e,h,a);return u.top=xr(y.top,u.top),u.right=$a(y.right,u.right),u.bottom=$a(y.bottom,u.bottom),u.left=xr(y.left,u.left),u},Fs(e,l,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function wp(t){return zs(t)}function Tp(t,e,o){let n=Ye(e),a=bt(e),i=o==="fixed",s=Kr(t,!0,i,e),l={scrollLeft:0,scrollTop:0},p=mt(0);if(n||!n&&!i)if((gt(e)!=="body"||vr(a))&&(l=Vr(e)),n){let u=Kr(e,!0,i,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else a&&(p.x=js(a));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function Hs(t,e){return!Ye(t)||ke(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ks(t,e){let o=Oe(t);if(!Ye(t))return o;let n=Hs(t,e);for(;n&&Bs(n)&&ke(n).position==="static";)n=Hs(n,e);return n&&(gt(n)==="html"||gt(n)==="body"&&ke(n).position==="static"&&!Ro(n))?o:n||Us(t)||o}var Rp=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||Ks,i=this.getDimensions;return{reference:Tp(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Ip(t){return ke(t).direction==="rtl"}var Lo={convertOffsetParentRelativeRectToViewportRelativeRect:xp,getDocumentElement:bt,getClippingRect:Ap,getOffsetParent:Ks,getElementRects:Rp,getClientRects:vp,getDimensions:wp,getScale:Sr,isElement:st,isRTL:Ip};var Zs=(t,e,o)=>{let n=new Map,a={platform:Lo,...o},i={...a.platform,_c:n};return ks(t,e,{...a,platform:i})};function qs(t){return Lp(t)}function Fa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Lp(t){for(let e=t;e;e=Fa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fa(t);e;e=Fa(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function No(t,e,o){return Zs(t,e,{platform:{...Lo,getOffsetParent:n=>Lo.getOffsetParent(n,qs)},middleware:[Ua({crossAxis:!0}),Ba({allowedPlacements:[o]})]})}var Pr=b(I());var kl=b(I());var Bc=b($()),ye=b(X()),Xe=b(I());var Ys=b($());var Xs=Ys.css`
|
|
186
|
-
`;var _o=b(I()),Ha="ft-app-info",ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ct.eventName="authentication-change";var Np={session:(t,e)=>{(0,_o.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ct(e.payload)),0))}},T=_o.FtReduxStore.get({name:Ha,reducers:Np,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 za=b(I());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.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=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var Se=class extends Po{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],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new za.CacheRegistry,this.cache=e?a.commonCache:new za.CacheRegistry}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 ko=class extends Se{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wa=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var He=b(I());var Qs,Cr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},_p=Symbol("clearAfterUnitTest"),Do=class extends(0,He.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qs]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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};(0,He.deepEqual)(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 He.ParametrizedLabelResolver((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 He.CanceledPromiseError)&&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 Cr({loadedContexts:e})),this.dispatchEvent(new Cr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Cr({loadedContexts:[e]})),this.dispatchEvent(new Cr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};Qs=_p;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Or=window.FluidTopicsI18nService,Mo=window.FluidTopicsCustomI18nService;var Js=b(I()),Ga=class{highlightHtml(e,o,n){(0,Js.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var kp=b(tc(),1);var rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var sc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(sc||(sc={}));var cc;(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"})(cc||(cc={}));var lc;(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"})(lc||(lc={}));var dc;(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"})(dc||(dc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(mc||(mc={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bc||(bc={}));var xc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xc||(xc={}));var vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var Sc;(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"})(Sc||(Sc={}));var Cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Oc||(Oc={}));var Ec;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ec||(Ec={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var V;(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"})(V||(V={}));var ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var wc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wc||(wc={}));var Tc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tc||(Tc={}));var Rc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Rc||(Rc={}));var Ic;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ic||(Ic={}));var Lc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Lc||(Lc={}));var Pp={[V.PERSONAL_BOOK_SHARE_USER]:[V.PERSONAL_BOOK_USER],[V.HTML_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.PDF_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.KHUB_ADMIN]:[V.CONTENT_PUBLISHER],[V.ADMIN]:[V.KHUB_ADMIN,V.USERS_ADMIN,V.PORTAL_ADMIN],[V.GENERATIVE_AI_EXPORT_USER]:[V.GENERATIVE_AI_USER]};function Nc(t,e){return t===e||(Pp[t]??[]).some(o=>Nc(o,e))}function xt(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=>Nc(n,e))}var Fo=class extends Se{async listMySearches(){let{session:e}=T.getState();return xt(e,V.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _c=b(I());var ja=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.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 _c.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ja;var Pc=b(I());var Zr=class{static get(e,o){var n,a;let i=T.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 Pc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Va=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Va;var wt=b(I());var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Ka=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))}},kc=new Ka;var Ho=class t extends wt.WithEventBus{static build(){return new t(window.history,kc,()=>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),(0,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return(0,wt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,wt.deepCopy)(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(0,wt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var 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=Ho.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 Dc=T;function Mc(t,e){var o;return Dc.getState().authenticationRequired&&!(!((o=Dc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ce=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},K=class extends Xe.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=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Bc.html`
|
|
186
|
+
`;var _o=b(I()),Ha="ft-app-info",ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ct.eventName="authentication-change";var Np={session:(t,e)=>{(0,_o.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ct(e.payload)),0))}},T=_o.FtReduxStore.get({name:Ha,reducers:Np,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 za=b(I());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.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=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var Se=class extends Po{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],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new za.CacheRegistry,this.cache=e?a.commonCache:new za.CacheRegistry}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 ko=class extends Se{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wa=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var He=b(I());var Qs,Cr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},_p=Symbol("clearAfterUnitTest"),Do=class extends(0,He.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qs]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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};(0,He.deepEqual)(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 He.ParametrizedLabelResolver((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 He.CanceledPromiseError)&&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 Cr({loadedContexts:e})),this.dispatchEvent(new Cr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Cr({loadedContexts:[e]})),this.dispatchEvent(new Cr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};Qs=_p;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Or=window.FluidTopicsI18nService,Mo=window.FluidTopicsCustomI18nService;var Js=b(I()),Ga=class{highlightHtml(e,o,n){(0,Js.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var kp=b(tc(),1);var rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var sc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(sc||(sc={}));var cc;(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"})(cc||(cc={}));var lc;(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"})(lc||(lc={}));var dc;(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"})(dc||(dc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(mc||(mc={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bc||(bc={}));var xc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xc||(xc={}));var vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var Sc;(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"})(Sc||(Sc={}));var Cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Oc||(Oc={}));var Ec;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ec||(Ec={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var V;(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"})(V||(V={}));var ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var wc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(wc||(wc={}));var Tc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Tc||(Tc={}));var Rc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Rc||(Rc={}));var Ic;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ic||(Ic={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var Nc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Nc||(Nc={}));var Pp={[V.PERSONAL_BOOK_SHARE_USER]:[V.PERSONAL_BOOK_USER],[V.HTML_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.PDF_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.KHUB_ADMIN]:[V.CONTENT_PUBLISHER],[V.ADMIN]:[V.KHUB_ADMIN,V.USERS_ADMIN,V.PORTAL_ADMIN],[V.GENERATIVE_AI_EXPORT_USER]:[V.GENERATIVE_AI_USER]};function _c(t,e){return t===e||(Pp[t]??[]).some(o=>_c(o,e))}function xt(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=>_c(n,e))}var Fo=class extends Se{async listMySearches(){let{session:e}=T.getState();return xt(e,V.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Pc=b(I());var ja=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.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 Pc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ja;var kc=b(I());var Zr=class{static get(e,o){var n,a;let i=T.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 kc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Va=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Va;var wt=b(I());var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Ka=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))}},Dc=new Ka;var Ho=class t extends wt.WithEventBus{static build(){return new t(window.history,Dc,()=>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),(0,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return(0,wt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,wt.deepCopy)(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(0,wt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var 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=Ho.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 Mc(t,e){let{authenticationRequired:o,session:n}=T.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ce=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},K=class extends Xe.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=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Bc.html`
|
|
187
187
|
<slot></slot>
|
|
188
188
|
`}connectedCallback(){super.connectedCallback(),T.addEventListener(ct.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(ct.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,p;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Or.addContext(u)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&T.actions.availableContentLocales((p=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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",()=>Mc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=Xs;ce([(0,ye.property)()],K.prototype,"baseUrl",void 0);ce([(0,ye.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ce([(0,ye.property)()],K.prototype,"apiIntegrationAppVersion",void 0);ce([(0,ye.property)()],K.prototype,"uiLocale",void 0);ce([(0,Xe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ce([(0,Xe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"editorMode",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"noCustom",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ce([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ce([(0,ye.property)({type:Object})],K.prototype,"apiProvider",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);ce([(0,Xe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ce([(0,Xe.jsonProperty)(void 0)],K.prototype,"session",void 0);ce([(0,ye.state)()],K.prototype,"localesConfiguration",void 0);ce([(0,ye.state)()],K.prototype,"availableContentLocales",void 0);var bi=b(X());function Dp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!zo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!zo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!zo(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function zo(t,e){try{return Dp(t,e)}catch{return!1}}function qr(t,e){return!zo(t,e)}function Wo(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let a=e(n);return a[t]=!0,a}}var Uc=b(X(),1);var Za=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:qr,attribute:!1,...e};(0,Uc.property)(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})}};var Go=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))}};var Qt=b(X(),1);var $c=b(X(),1);function Fc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,$c.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:qr,...e??{}})}var jo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}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 zc=b($(),1);var Vo=globalThis,Mp=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rv=Symbol();var Hc=(t,e)=>{if(Mp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=Vo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Ko=class extends zc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Hc(n,e.elementStyles),n}};function Wc(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var wr=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},Kc,Gc=Symbol("constructorPrototype"),jc=Symbol("constructorName"),Zc=Symbol("exportpartsDebouncer"),Vc=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var lt=class extends Ko{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Kc]=new jo(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Zc].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[jc]=this.constructor.name,this[Gc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jc]&&Object.setPrototypeOf(this,this[Gc])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Vc]||(o[Vc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Wc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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(e){var o,n,a,i,s,l;let p=g=>g!=null&&g.trim().length>0,u=e.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let h=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 x=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],O=[...x,...S].filter(p).map(L=>L.trim());for(let L of O)h.add(L)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(g=>u.map(x=>`${g}:${x}--${g}`));this.exportparts=[...this.part,...y].join(", ")}};Kc=Zc;wr([(0,Qt.property)()],lt.prototype,"exportpartsPrefix",void 0);wr([Fc([])],lt.prototype,"exportpartsPrefixes",void 0);wr([(0,Qt.property)({reflect:!0})],lt.prototype,"exportparts",void 0);wr([(0,Qt.property)()],lt.prototype,"customStylesheet",void 0);wr([(0,Qt.property)()],lt.prototype,"elementToFocus",void 0);wr([(0,Qt.state)()],lt.prototype,"useAdoptedStyleSheets",void 0);function Zo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),Tt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores"),Bp=Wo(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[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,l){var p;l=(p=l??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(l),this[Jt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let p=this.constructor.getPropertyOptions(l);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Tt].has(s.store):this[Tt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var p;this[Tt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),Zo(l)&&l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let y=g=>this[h](g);l.addEventListener(u.eventName,y),this[Yr].get(s).push(()=>l.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Tt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Tt].has(s)&&this[Tt].get(s)(),this[Tt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(p=>p()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Tt,o=Jt,n=Yr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),qc=class extends Bp(lt){};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 vt(t){return!!t&&!!t[Z]}function Qe(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)===jp}(t)||Array.isArray(t)||!!t[rl]||!!(!((e=t.constructor)===null||e===void 0)&&e[rl])||oi(t)||ni(t))}function er(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Rr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ir(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oi(t)?2:ni(t)?3:0}function Tr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Up(t,e){return Ir(t)===2?t.get(e):t[e]}function ol(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function nl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oi(t){return Wp&&t instanceof Map}function ni(t){return Gp&&t instanceof Set}function Rt(t){return t.o||t.t}function ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sl(t);delete e[Z];for(var o=Rr(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 ii(t,e){return e===void 0&&(e=!1),si(t)||vt(t)||!Qe(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=$p),Object.freeze(t),e&&er(t,function(o,n){return ii(n,!0)},!0)),t}function $p(){We(2)}function si(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=ri[t];return e||We(18,t),e}function Fp(t,e){ri[t]||(ri[t]=e)}function Ja(){return Qr}function qa(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function qo(t){ei(t),t.p.forEach(Hp),t.p=null}function ei(t){t===Qr&&(Qr=t.l)}function Yc(t){return Qr={p:[],l:Qr,h:t,m:!0,_:0}}function Hp(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Ya(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[Z].P&&(qo(e),We(4)),Qe(t)&&(t=Yo(e,t),e.l||Xo(e,t)),e.u&&dt("Patches").M(o[Z].t,t,e.u,e.s)):t=Yo(e,o,[]),qo(e),e.u&&e.v(e.u,e.s),t!==il?t:void 0}function Yo(t,e,o){if(si(e))return e;var n=e[Z];if(!n)return er(e,function(l,p){return Xc(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Xo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ai(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(l,p){return Xc(t,n,a,l,p,o,s)}),Xo(t,a,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function Xc(t,e,o,n,a,i,s){if(vt(a)){var l=Yo(t,a,i&&e&&e.i!==3&&!Tr(e.R,n)?i.concat(n):void 0);if(ol(o,n,l),!vt(l))return;t.m=!1}else s&&o.add(a);if(Qe(a)&&!si(a)){if(!t.h.D&&t._<1)return;Yo(t,a),e&&e.A.l||Xo(t,a)}}function Xo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ii(e,o)}function Xa(t,e){var o=t[Z];return(o?Rt(o):t)[e]}function Qc(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 It(t){t.P||(t.P=!0,t.l&&It(t.l))}function Qa(t){t.o||(t.o=ai(t.t))}function ti(t,e,o){var n=oi(e)?dt("MapSet").F(e,o):ni(e)?dt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=Jr;s&&(p=[l],u=Xr);var h=Proxy.revocable(p,u),y=h.revoke,g=h.proxy;return l.k=g,l.j=y,g}(e,o):dt("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function zp(t){return vt(t)||We(22,t),function e(o){if(!Qe(o))return o;var n,a=o[Z],i=Ir(o);if(a){if(!a.P&&(a.i<4||!dt("ES5").K(a)))return a.t;a.I=!0,n=Jc(o,i),a.I=!1}else n=Jc(o,i);return er(n,function(s,l){a&&Up(a.t,s)===l||ol(n,s,e(l))}),i===3?new Set(n):n}(t)}function Jc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ai(t)}function al(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[Z];return Jr.get(u,s)},set:function(u){var h=this[Z];Jr.set(h,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][Z];if(!p.P)switch(p.i){case 5:n(p)&&It(p);break;case 4:o(p)&&It(p)}}}function o(s){for(var l=s.t,p=s.k,u=Rr(p),h=u.length-1;h>=0;h--){var y=u[h];if(y!==Z){var g=l[y];if(g===void 0&&!Tr(l,y))return!0;var x=p[y],S=x&&x[Z];if(S?S.t!==g:!nl(x,g))return!0}}var O=!!l[Z];return u.length!==Rr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&We(3,JSON.stringify(Rt(s)))}var i={};Fp("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(y,g){if(y){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=sl(g);delete O[Z];for(var L=Rr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,s),h={i:p?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Z,{value:h,writable:!0}),u},S:function(s,l,p){p?vt(l)&&l[Z].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var y=h[Z];if(y){var g=y.t,x=y.k,S=y.R,O=y.i;if(O===4)er(x,function(U){U!==Z&&(g[U]!==void 0||Tr(g,U)?S[U]||u(x[U]):(S[U]=!0,It(y)))}),er(g,function(U){x[U]!==void 0||Tr(x,U)||(S[U]=!1,It(y))});else if(O===5){if(n(y)&&(It(y),S.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)S[L]=!1;else for(var R=g.length;R<x.length;R++)S[R]=!0;for(var N=Math.min(x.length,g.length),D=0;D<N;D++)x.hasOwnProperty(D)||(S[D]=!0),S[D]===void 0&&u(x[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var el,Qr,ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wp=typeof Map<"u",Gp=typeof Set<"u",tl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",il=ci?Symbol.for("immer-nothing"):((el={})["immer-nothing"]=!0,el),rl=ci?Symbol.for("immer-draftable"):"__$immer_draftable",Z=ci?Symbol.for("immer-state"):"__$immer_state";var jp=""+Object.prototype.constructor,Rr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sl=Object.getOwnPropertyDescriptors||function(t){var e={};return Rr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ri={},Jr={get:function(t,e){if(e===Z)return t;var o=Rt(t);if(!Tr(o,e))return function(a,i,s){var l,p=Qc(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Qe(n)?n:n===Xa(t.t,e)?(Qa(t),t.o[e]=ti(t.A.h,n,t)):n},has:function(t,e){return e in Rt(t)},ownKeys:function(t){return Reflect.ownKeys(Rt(t))},set:function(t,e,o){var n=Qc(Rt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Xa(Rt(t),e),i=a?.[Z];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(nl(o,a)&&(o!==void 0||Tr(t.t,e)))return!0;Qa(t),It(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 Xa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Qa(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Rt(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)}},Xr={};er(Jr,function(t,e){Xr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)},Xr.set=function(t,e,o){return Jr.set.call(this,t[0],e,o,t[0])};var Vp=function(){function t(o){var n=this;this.O=tl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),D=1;D<R;D++)N[D-1]=arguments[D];return p.produce(O,function(U){var F;return(F=i).call.apply(F,[L,U].concat(N))})}}var u;if(typeof i!="function"&&We(6),s!==void 0&&typeof s!="function"&&We(7),Qe(a)){var h=Yc(n),y=ti(n,a,void 0),g=!0;try{u=i(y),g=!1}finally{g?qo(h):ei(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return qa(h,s),Ya(O,h)},function(O){throw qo(h),O}):(qa(h,s),Ya(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===il&&(u=void 0),n.D&&ii(u,!0),s){var x=[],S=[];dt("Patches").M(a,u,x,S),s(x,S)}return u}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,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){Qe(o)||We(8),vt(o)&&(o=zp(o));var n=Yc(this),a=ti(this,o,void 0);return a[Z].C=!0,ei(n),a},e.finishDraft=function(o,n){var a=o&&o[Z],i=a.A;return qa(i,n),Ya(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!tl&&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=dt("Patches").$;return vt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new Vp,Kp=De.produce,gv=De.produceWithPatches.bind(De),bv=De.setAutoFreeze.bind(De),xv=De.setUseProxies.bind(De),vv=De.applyPatches.bind(De),Sv=De.createDraft.bind(De),Cv=De.finishDraft.bind(De),Qo=Kp;function tr(t){"@babel/helpers - typeof";return tr=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},tr(t)}function cl(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ll(t){var e=cl(t,"string");return tr(e)=="symbol"?e:e+""}function dl(t,e,o){return(e=ll(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pl(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 li(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?pl(Object(o),!0).forEach(function(n){dl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(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 ul=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),di=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+di(),REPLACE:"@@redux/REPLACE"+di(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+di()}};function Zp(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 pi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(pi)(t,e)}if(typeof t!="function")throw new Error(ge(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function h(){if(p)throw new Error(ge(3));return i}function y(O){if(typeof O!="function")throw new Error(ge(4));if(p)throw new Error(ge(5));var L=!0;return u(),l.push(O),function(){if(L){if(p)throw new Error(ge(6));L=!1,u();var N=l.indexOf(O);l.splice(N,1),s=null}}}function g(O){if(!Zp(O))throw new Error(ge(7));if(typeof O.type>"u")throw new Error(ge(8));if(p)throw new Error(ge(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var L=s=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function x(O){if(typeof O!="function")throw new Error(ge(10));a=O,g({type:Jo.REPLACE})}function S(){var O,L=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function D(){N.next&&N.next(h())}D();var U=L(D);return{unsubscribe:U}}},O[ul]=function(){return this},O}return g({type:Jo.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:x},n[ul]=S,n}function qp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Jo.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function fl(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{qp(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var y;for(var g=!1,x={},S=0;S<i.length;S++){var O=i[S],L=o[O],R=u[O],N=L(R,h);if(typeof N>"u"){var D=h&&h.type;throw new Error(ge(14))}x[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(u).length,g?x:u}}function Lr(){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 hl(){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(ge(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Lr.apply(void 0,l)(a.dispatch),li(li({},a),{},{dispatch:i})}}}function yl(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 ml=yl();ml.withExtraArgument=yl;var ui=ml;var Sl=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)}}(),Yp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return p([u,h])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Nr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Xp=Object.defineProperty,Qp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,bl=function(t,e,o){return e in t?Xp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))eu.call(e,o)&&bl(t,o,e[o]);if(gl)for(var n=0,a=gl(e);n<a.length;n++){var o=a[n];tu.call(e,o)&&bl(t,o,e[o])}return t},fi=function(t,e){return Qp(t,Jp(e))},ru=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lr:Lr.apply(null,arguments)},Fv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function nu(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 au=function(t){Sl(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,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array),iu=function(t){Sl(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,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array);function mi(t){return Qe(t)?Qo(t,function(){}):t}function su(t){return typeof t=="boolean"}function cu(){return function(e){return lu(e)}}function lu(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 au;if(o&&(su(o)?l.push(ui):l.push(ui.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}var hi=!0;function Cl(t){var e=cu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(nu(a))x=fl(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 S=s;if(typeof S=="function"&&(S=S(e),!hi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!hi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=hl.apply(void 0,S),L=Lr;p&&(L=ou(Lt({trace:!hi},typeof p=="object"&&p)));var R=new iu(O),N=R;Array.isArray(g)?N=Nr([O],g):typeof g=="function"&&(N=g(R));var D=L.apply(void 0,N);return pi(x,h,D)}function Nt(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 Lt(Lt({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 Ol(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 du(t){return typeof t=="function"}function pu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ol(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(du(t))p=function(){return mi(t())};else{var u=mi(t);p=function(){return u}}function h(y,g){y===void 0&&(y=p());var x=Nr([i[g.type]],s.filter(function(S){var O=S.matcher;return O(g)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,O){if(O)if(vt(S)){var L=S,R=O(L,g);return R===void 0?S:R}else{if(Qe(S))return Qo(S,function(N){return O(N,g)});var R=O(S,g);if(R===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return S},y)}return h.getInitialState=p,h}function uu(t,e){return t+"/"+e}function El(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:mi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var y=n[h],g=uu(e,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,i[h]=x,s[g]=x,l[h]=S?Nt(g,S):Nt(g)});function p(){var h=typeof t.extraReducers=="function"?Ol(t.extraReducers):[t.extraReducers],y=h[0],g=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],L=O===void 0?void 0:O,R=Lt(Lt({},g),s);return pu(o,function(N){for(var D in R)N.addCase(D,R[D]);for(var U=0,F=S;U<F.length;U++){var Ce=F[U];N.addMatcher(Ce.matcher,Ce.reducer)}L&&N.addDefaultCase(L)})}var u;return{name:e,reducer:function(h,y){return u||(u=p()),u(h,y)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var fu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=fu[Math.random()*64|0];return e},yu=["name","message","stack","code"],yi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),xl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),mu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=yu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Gv=function(){function t(e,o,n){var a=Nt(e+"/fulfilled",function(h,y,g,x){return{payload:h,meta:fi(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Nt(e+"/pending",function(h,y,g){return{payload:void 0,meta:fi(Lt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(h,y,g,x,S){return{payload:x,error:(n&&n.serializeError||mu)(h||"Rejected"),meta:fi(Lt({},S||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(y,g,x){var S=n?.idGenerator?n.idGenerator(h):hu(),O=new p,L,R=!1;function N(U){L=U,O.abort()}var D=function(){return ru(this,null,function(){var U,F,Ce,nt,ve,at,ue;return Yp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),nt=(U=n?.condition)==null?void 0:U.call(n,h,{getState:g,extra:x}),bu(nt)?[4,nt]:[3,2];case 1:nt=m.sent(),m.label=2;case 2:if(nt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),y(i(S,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([ve,Promise.resolve(o(h,{dispatch:y,getState:g,extra:x,requestId:S,signal:O.signal,abort:N,rejectWithValue:function(v,P){return new yi(v,P)},fulfillWithValue:function(v,P){return new xl(v,P)}})).then(function(v){if(v instanceof yi)throw v;return v instanceof xl?a(v.payload,S,h,v.meta):a(v,S,h)})])];case 3:return Ce=m.sent(),[3,5];case 4:return at=m.sent(),Ce=at instanceof yi?s(null,S,h,at.payload,at.meta):s(at,S,h),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,ue||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:S,arg:h,unwrap:function(){return D.then(gu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function gu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Al="listener",wl="completed",Tl="cancelled",jv="task-"+Tl,Vv="task-"+wl,Kv=Al+"-"+Tl,Zv=Al+"-"+wl;var gi="listenerMiddleware";var qv=Nt(gi+"/add"),Yv=Nt(gi+"/removeAll"),Xv=Nt(gi+"/remove");var vl,Qv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(vl||(vl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},xu=function(t){return function(e){setTimeout(e,t)}},Jv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xu(10);al();var vu=Wo(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),en=class extends vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rl=class t extends en{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(Zo(i))return i;if(a==null)return;let s=El({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Cl({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Go;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let p=s,u=i[p];return u?(...h)=>{let y=u(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]: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()}};var tn=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 Il=b(I()),rn=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},Ll=(0,Il.applyMixinOnce)(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(T)}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=>tn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rn([(0,bi.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rn([(0,bi.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rn([Za({store:T.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),rn([Za({store:T.name})],e.prototype,"uiLocale",void 0),e});var an=b(I());var on=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=T.getState().session;return!!e?.sessionAuthenticated}};var nn=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=T.getState().session;return!!e?.sessionAuthenticated}};var Su="ft-user-assets",Cu={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(ze).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;vi(t,o,[...xi(t,o),a]),Nl(t,o,1,n),_l(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;vi(t,o,xi(t,o).map(a=>a.id===n.id?n:a)),_l(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;vi(t,o,xi(t,o).filter(i=>i.id!==a)),Nl(t,o,-1,n)}},Pl={[ze.SEARCHES]:"savedSearches",[ze.BOOKMARKS]:"bookmarks",[ze.BOOKS]:void 0,[ze.COLLECTIONS]:void 0},xi=(t,e)=>{var o;let n=Pl[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},vi=(t,e,o)=>{let n=Pl[e];n&&(t[n]=o)},Nl=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===ze.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},_l=(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)},Me=an.FtReduxStore.get({name:Su,reducers:Cu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Si=class{constructor(e=new on,o=new nn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new Fo,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,an.deepEqual)((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(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Me.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Me.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===ze.BOOKMARKS&&o&&Me.actions.clearBookmarkCountByMap(),Me.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;Me.actions.bookmarks(o)}}},Ci=new Si;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ci);(0,kl.customElement)("ft-app-context")(K);var Dl=b(X());var Oi=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},_r=new Oi;var Ou=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},to=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),ro=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),eo=Symbol("i18nUnsubs"),dn=(0,Pr.applyMixinOnce)(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?Mo:Or}i18n(i){let{context:s,key:l,message:p}=i,{custom:u,args:h,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=h??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return p}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(_r.isI18nKey(i)){let[l,p]=i.split(".");return this.i18n({custom:!0,context:l,key:p,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,p)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let p=this,u=(h,y,g)=>g?.context&&g.key&&i(h,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[to])===null||s===void 0||s.forEach((h,y)=>p[y]=u(h,y,p[y])),(l=this[Ml])===null||l===void 0||l.forEach((h,y)=>{var g;return p[y]=(g=p[y])===null||g===void 0?void 0:g.map(x=>u(h,y,x))})}updateI18nProperties(i){var s;(s=this[ro])===null||s===void 0||s.forEach((l,p)=>{i(l,p)&&(this[p]=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 p=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[sn].set(p,{isCustomContext:l}),this[eo].has(p)||this[eo].set(p,this.getI18nService(l).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(l).prepareContext(p,s)}hasI18nContext(i){return this[sn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[eo].forEach(i=>i()),this[eo].clear()}}return e=sn,o=eo,Ou([(0,Dl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),cn=class extends dn(Pr.FtLitElement){},ln=class extends dn(Pr.FtLitElementRedux){};var Bl=b(I());var Ei=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?_r.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Eu=new Ei;var Ul=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Bl.hasChanged,converter:_r,...e}),o[to]=(a=o[to])!==null&&a!==void 0?a:new Map,o[to].set(n,t??{})};var zl=b(I());var pn=b($()),un=b(X()),fn=b(I());var $l=b($());var Fl=$l.css`
|
|
189
189
|
`;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},Je=class extends ln{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":pn.nothing:pn.html`
|
|
@@ -328,7 +328,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
328
328
|
<div class="ft-ripple--background"></div>
|
|
329
329
|
<div class="ft-ripple--effect"></div>
|
|
330
330
|
</div>
|
|
331
|
-
`}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)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},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()}};z.elementDefinitions={};z.styles=Ql;Ee([(0,me.property)({type:Boolean})],z.prototype,"primary",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"secondary",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"unbounded",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"activated",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"selected",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"disabled",void 0);Ee([(0,me.state)()],z.prototype,"hovered",void 0);Ee([(0,me.state)()],z.prototype,"focused",void 0);Ee([(0,me.state)()],z.prototype,"pressed",void 0);Ee([(0,me.state)()],z.prototype,"rippling",void 0);Ee([(0,me.state)()],z.prototype,"originX",void 0);Ee([(0,me.state)()],z.prototype,"originY",void 0);Ee([(0,me.query)(".ft-ripple")],z.prototype,"ripple",void 0);Ee([(0,me.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,td.customElement)("ft-ripple")(z);var cd=b(I());var ao=b($()),_t=b(X()),id=b(I()),sd=b(od());var Dr;(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=""})(Dr||(Dr={}));var A;(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=""})(A||(A={}));var GS=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var jS={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var nd=b($()),tt=b(I()),oe={size:tt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:tt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ad=[nd.css`
|
|
331
|
+
`}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)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},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()}};z.elementDefinitions={};z.styles=Ql;Ee([(0,me.property)({type:Boolean})],z.prototype,"primary",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"secondary",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"unbounded",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"activated",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"selected",void 0);Ee([(0,me.property)({type:Boolean})],z.prototype,"disabled",void 0);Ee([(0,me.state)()],z.prototype,"hovered",void 0);Ee([(0,me.state)()],z.prototype,"focused",void 0);Ee([(0,me.state)()],z.prototype,"pressed",void 0);Ee([(0,me.state)()],z.prototype,"rippling",void 0);Ee([(0,me.state)()],z.prototype,"originX",void 0);Ee([(0,me.state)()],z.prototype,"originY",void 0);Ee([(0,me.query)(".ft-ripple")],z.prototype,"ripple",void 0);Ee([(0,me.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,td.customElement)("ft-ripple")(z);var cd=b(I());var ao=b($()),_t=b(X()),id=b(I()),sd=b(od());var Dr;(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=""})(Dr||(Dr={}));var A;(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=""})(A||(A={}));var VS=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var KS={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var nd=b($()),tt=b(I()),oe={size:tt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:tt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:tt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ad=[nd.css`
|
|
332
332
|
:host, i.ft-icon {
|
|
333
333
|
display: inline-flex;
|
|
334
334
|
align-items: center;
|