@fluid-topics/ft-search-result-metadata 1.2.61 → 1.2.63
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
|
-
"use strict";(()=>{var Jl=Object.create;var Na=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var ed=Object.getOwnPropertyNames;var rd=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var Te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var nd=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ed(e))!od.call(t,a)&&a!==o&&Na(t,a,{get:()=>e[a],enumerable:!(n=td(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Jl(rd(t)):{},nd(e||!t||!t.__esModule?Na(o,"default",{value:t,enumerable:!0}):o,t));var T=Te((_u,Ta)=>{Ta.exports=ftGlobals.wcUtils});var W=Te((Pu,Ia)=>{Ia.exports=ftGlobals.lit});var X=Te((ku,La)=>{La.exports=ftGlobals.litDecorators});var Ba=Te((le,Da)=>{var Xr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Qr=function(){function t(){this.fetch=!1,this.DOMException=Xr.DOMException}return t.prototype=Xr,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(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function h(y){this.map={},y instanceof h?y.forEach(function(x,P){this.append(P,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}h.prototype.append=function(y,x){y=u(y),x=p(x);var P=this.map[y];this.map[y]=P?P+", "+x:x},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,x){this.map[u(y)]=p(x)},h.prototype.forEach=function(y,x){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(x,this.map[P],P,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(x,P){y.push(P)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(x,P){y.push([P,x])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,P){y.onload=function(){x(y.result)},y.onerror=function(){P(y.error)}})}function v(y){var x=new FileReader,P=S(x);return x.readAsArrayBuffer(y),P}function O(y){var x=new FileReader,P=S(x),H=/charset=([A-Za-z0-9_-]+)/.exec(y.type),
|
|
2
|
-
`)===0?H.substr(1,H.length):H}).forEach(function(H){var
|
|
1
|
+
"use strict";(()=>{var Jl=Object.create;var Na=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var ed=Object.getOwnPropertyNames;var rd=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var Te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var nd=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ed(e))!od.call(t,a)&&a!==o&&Na(t,a,{get:()=>e[a],enumerable:!(n=td(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?Jl(rd(t)):{},nd(e||!t||!t.__esModule?Na(o,"default",{value:t,enumerable:!0}):o,t));var T=Te((_u,Ta)=>{Ta.exports=ftGlobals.wcUtils});var W=Te((Pu,Ia)=>{Ia.exports=ftGlobals.lit});var X=Te((ku,La)=>{La.exports=ftGlobals.litDecorators});var Ba=Te((le,Da)=>{var Xr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Qr=function(){function t(){this.fetch=!1,this.DOMException=Xr.DOMException}return t.prototype=Xr,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(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function h(y){this.map={},y instanceof h?y.forEach(function(x,P){this.append(P,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}h.prototype.append=function(y,x){y=u(y),x=p(x);var P=this.map[y];this.map[y]=P?P+", "+x:x},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,x){this.map[u(y)]=p(x)},h.prototype.forEach=function(y,x){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(x,this.map[P],P,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(x,P){y.push(P)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(x,P){y.push([P,x])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,P){y.onload=function(){x(y.result)},y.onerror=function(){P(y.error)}})}function v(y){var x=new FileReader,P=S(x);return x.readAsArrayBuffer(y),P}function O(y){var x=new FileReader,P=S(x),H=/charset=([A-Za-z0-9_-]+)/.exec(y.type),q=H?H[1]:"utf-8";return x.readAsText(y,q),P}function I(y){for(var x=new Uint8Array(y),P=new Array(x.length),H=0;H<x.length;H++)P[H]=String.fromCharCode(x[H]);return P.join("")}function R(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="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(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;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 y=g(this);return y||(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(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(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(Ct)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $(y){var x=y.toUpperCase();return k.indexOf(x)>-1?x:y}function U(y,x){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var P=x.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new h(x.headers)),this.method=$(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var F=new AbortController;return F.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")&&(x.cache==="no-store"||x.cache==="no-cache")){var H=/([?&])_=[^&]*/;if(H.test(this.url))this.url=this.url.replace(H,"$1_="+new Date().getTime());else{var q=/\?/;this.url+=(q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function Ct(y){var x=new FormData;return y.trim().split("&").forEach(function(P){if(P){var H=P.split("="),q=H.shift().replace(/\+/g," "),F=H.join("=").replace(/\+/g," ");x.append(decodeURIComponent(q),decodeURIComponent(F))}}),x}function Kt(y){var x=new h,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(H){return H.indexOf(`
|
|
2
|
+
`)===0?H.substr(1,H.length):H}).forEach(function(H){var q=H.split(":"),F=q.shift().trim();if(F){var Yr=q.join(":").trim();try{x.append(F,Yr)}catch(ln){console.warn("Response "+ln.message)}}}),x}N.call(U.prototype);function vt(y,x){if(!(this instanceof vt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new h(x.headers),this.url=x.url||"",this._initBody(y)}N.call(vt.prototype),vt.prototype.clone=function(){return new vt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},vt.error=function(){var y=new vt(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Zt=[301,302,303,307,308];vt.redirect=function(y,x){if(Zt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new vt(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,P){this.message=x,this.name=P;var H=Error(x);this.stack=H.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ut(y,x){return new Promise(function(P,H){var q=new U(y,x);if(q.signal&&q.signal.aborted)return H(new o.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function Yr(){F.abort()}F.onload=function(){var pt={statusText:F.statusText,headers:Kt(F.getAllResponseHeaders()||"")};q.url.indexOf("file://")===0&&(F.status<200||F.status>599)?pt.status=200:pt.status=F.status,pt.url="responseURL"in F?F.responseURL:pt.headers.get("X-Request-URL");var Ne="response"in F?F.response:F.responseText;setTimeout(function(){P(new vt(Ne,pt))},0)},F.onerror=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},F.ontimeout=function(){setTimeout(function(){H(new TypeError("Network request timed out"))},0)},F.onabort=function(){setTimeout(function(){H(new o.DOMException("Aborted","AbortError"))},0)};function ln(pt){try{return pt===""&&n.location.href?n.location.href:pt}catch{return pt}}if(F.open(q.method,ln(q.url),!0),q.credentials==="include"?F.withCredentials=!0:q.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&(a.blob?F.responseType="blob":a.arrayBuffer&&(F.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof h||n.Headers&&x.headers instanceof n.Headers)){var Ra=[];Object.getOwnPropertyNames(x.headers).forEach(function(pt){Ra.push(u(pt)),F.setRequestHeader(pt,p(x.headers[pt]))}),q.headers.forEach(function(pt,Ne){Ra.indexOf(Ne)===-1&&F.setRequestHeader(Ne,pt)})}else q.headers.forEach(function(pt,Ne){F.setRequestHeader(Ne,pt)});q.signal&&(q.signal.addEventListener("abort",Yr),F.onreadystatechange=function(){F.readyState===4&&q.signal.removeEventListener("abort",Yr)}),F.send(typeof q._bodyInit>"u"?null:q._bodyInit)})}return ut.polyfill=!0,n.fetch||(n.fetch=ut,n.Headers=h,n.Request=U,n.Response=vt),o.Headers=h,o.Request=U,o.Response=vt,o.fetch=ut,o}({})})(Qr);Qr.fetch.ponyfill=!0;delete Qr.fetch.polyfill;var We=Xr.fetch?Xr:Qr;le=We.fetch;le.default=We.fetch;le.fetch=We.fetch;le.Headers=We.Headers;le.Request=We.Request;le.Response=We.Response;Da.exports=le});var pr=Te((Iv,Jc)=>{Jc.exports=ftGlobals.litClassMap});var ul=Te((Uv,dl)=>{dl.exports=ftGlobals.litUnsafeHTML});var ql=Te((hO,Zl)=>{Zl.exports=ftGlobals.litRepeat});var Ql=b(T());var bt=b(W()),Ot=b(X()),Re=b(T());var _a=b(W()),Du={},Pa=_a.css`
|
|
3
3
|
.ft-search-result-metadata--container {
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
all: unset;
|
|
13
13
|
}
|
|
14
14
|
`;var ds=b(T()),us=b(X());var Oo=b(T());var ka=b(T());var id=b(Ba(),1);var $a;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})($a||($a={}));var Ma;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ma||(Ma={}));var Ua;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Ua||(Ua={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fa||(Fa={}));var Wa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Wa||(Wa={}));var Ha;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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__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"})(Ha||(Ha={}));var za;(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"})(za||(za={}));var Ga;(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"})(Ga||(Ga={}));var ja;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ja||(ja={}));var Va;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Va||(Va={}));var Ka;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ka||(Ka={}));var Za;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Za||(Za={}));var qa;(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"})(qa||(qa={}));var Ya;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ya||(Ya={}));var Xa;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xa||(Xa={}));var dn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(dn||(dn={}));var Qa;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Qa||(Qa={}));var Jr;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Jr||(Jr={}));var Ja;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ja||(Ja={}));var ti;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ti||(ti={}));var He;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(He||(He={}));var un;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(un||(un={}));var at;(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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(at||(at={}));var ei;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ei||(ei={}));var ri;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ri||(ri={}));var oi;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(oi||(oi={}));var ad={[at.PERSONAL_BOOK_SHARE_USER]:[at.PERSONAL_BOOK_USER],[at.HTML_EXPORT_USER]:[at.PERSONAL_BOOK_USER],[at.PDF_EXPORT_USER]:[at.PERSONAL_BOOK_USER],[at.KHUB_ADMIN]:[at.CONTENT_PUBLISHER],[at.ADMIN]:[at.KHUB_ADMIN,at.USERS_ADMIN,at.PORTAL_ADMIN],[at.GENERATIVE_AI_EXPORT_USER]:[at.GENERATIVE_AI_USER]};function ni(t,e){return t===e||(ad[t]??[]).some(o=>ni(o,e))}function ai(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=>ni(n,e))}var cs=b(T());var li=b(W()),Et=b(X()),Ht=b(T());var ii=b(W());var si=ii.css`
|
|
15
|
-
`;var to=b(T()),sd="ft-app-info",pn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},cd={session:(t,e)=>{(0,to.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new pn(e.payload)),0))}},_=to.FtReduxStore.get({name:sd,reducers:cd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var qt=b(T());var fn=b(T());var Ie=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=_.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=_.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var br=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ie.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ie.await()}};var te=class extends br{constructor(e=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new fn.CacheRegistry,this.cache=e?a.commonCache:new fn.CacheRegistry}clearCache(){this.cache.clearAll()}};var ci,ld=Symbol("clearAfterUnitTest"),eo=class extends te{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ci]=()=>{this.defaultMessages={},this.cache=new qt.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.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,qt.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(),c=this.resolveContext(i);return new qt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).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))}catch(a){!(a instanceof qt.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(e),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(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,qt.delay)(0).then(()=>o()).catch(()=>null)))}};ci=ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ze=window.FluidTopicsI18nService,ro=window.FluidTopicsCustomI18nService;var
|
|
15
|
+
`;var to=b(T()),sd="ft-app-info",pn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},cd={session:(t,e)=>{(0,to.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new pn(e.payload)),0))}},_=to.FtReduxStore.get({name:sd,reducers:cd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var qt=b(T());var fn=b(T());var Ie=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=_.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=_.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var br=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ie.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ie.await()}};var te=class extends br{constructor(e=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new fn.CacheRegistry,this.cache=e?a.commonCache:new fn.CacheRegistry}clearCache(){this.cache.clearAll()}};var ci,ld=Symbol("clearAfterUnitTest"),eo=class extends te{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ci]=()=>{this.defaultMessages={},this.cache=new qt.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.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,qt.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(),c=this.resolveContext(i);return new qt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).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))}catch(a){!(a instanceof qt.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(e),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(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,qt.delay)(0).then(()=>o()).catch(()=>null)))}};ci=ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ze=window.FluidTopicsI18nService,ro=window.FluidTopicsCustomI18nService;var yt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Q=class extends Ht.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>Ie.get(),this.messageContexts=[],this.cache=new Ht.CacheRegistry,this.cleanSessionDebouncer=new Ht.Debouncer}render(){return li.html`
|
|
16
16
|
<slot></slot>
|
|
17
|
-
`}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>ze.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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())}};Q.elementDefinitions={};Q.styles=si;ht([(0,Et.property)()],Q.prototype,"baseUrl",void 0);ht([(0,Et.property)()],Q.prototype,"apiIntegrationIdentifier",void 0);ht([(0,Et.property)()],Q.prototype,"uiLocale",void 0);ht([(0,Ht.jsonProperty)(null)],Q.prototype,"availableUiLocales",void 0);ht([(0,Ht.jsonProperty)(null)],Q.prototype,"metadataConfiguration",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"editorMode",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"noCustom",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);ht([(0,Et.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"withManualResources",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"navigatorOnline",void 0);ht([(0,Et.property)({type:Boolean})],Q.prototype,"forcedOffline",void 0);ht([(0,Et.property)({type:Object})],Q.prototype,"apiProvider",void 0);ht([(0,Ht.jsonProperty)([])],Q.prototype,"messageContexts",void 0);ht([(0,Ht.jsonProperty)(void 0)],Q.prototype,"session",void 0);ht([(0,Et.state)()],Q.prototype,"localesConfiguration",void 0);var Mn=b(X());function dd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!oo(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(!oo(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=c=>Object.keys(c).filter(l=>c[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 c=a[n];if(!oo(t[c],e[c]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function oo(t,e){try{return dd(t,e)}catch{return!1}}function xr(t,e){return!oo(t,e)}var di=b(X(),1);var hn=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:xr,attribute:!1,...e};(0,di.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var no=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 Ge=b(X(),1);var ui=b(X(),1);function pi(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ui.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:xr,...e??{}})}var ao=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 c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var hi=b(W(),1);var io=globalThis,ud=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cp=Symbol();var fi=(t,e)=>{if(ud)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=io.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var so=class extends hi.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 fi(n,e.elementStyles),n}};function yi(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 vr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},xi,mi=Symbol("constructorPrototype"),gi=Symbol("constructorName"),vi=Symbol("exportpartsDebouncer"),bi=Symbol("dynamicDependenciesLoaded"),ee=class extends so{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[xi]=new ao(5),this[gi]=this.constructor.name,this[mi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[gi]&&Object.setPrototypeOf(this,this[mi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[bi]||(e[bi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}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=yi(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)}}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[vi].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)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};xi=vi;vr([(0,Ge.property)()],ee.prototype,"exportpartsPrefix",void 0);vr([pi([])],ee.prototype,"exportpartsPrefixes",void 0);vr([(0,Ge.property)()],ee.prototype,"customStylesheet",void 0);vr([(0,Ge.property)()],ee.prototype,"elementToFocus",void 0);vr([(0,Ge.state)()],ee.prototype,"useAdoptedStyleSheets",void 0);function Sr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Si,Oi,Ci,Or=Symbol("internalReduxEventsUnsubscribers"),de=Symbol("internalStoresUnsubscribers"),Le=Symbol("internalStores"),Cr=class extends ee{constructor(){super(...arguments),this[Si]=new Map,this[Oi]=new Map,this[Ci]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Le].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Le].get(e)}addStore(e,o){var n;o=(n=o??(Sr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Le].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Le].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[de].has(e.store):this[de].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[de].set(e,o.subscribe(()=>this.updateFromStores())),this[Or].set(e,[]),Sr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Or].get(e).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[de].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[de].has(e)&&this[de].get(e)(),this[de].delete(e),(o=this[Or].get(e))===null||o===void 0||o.forEach(n=>n()),this[Or].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Si=de,Oi=Le,Ci=Or;Cr.reduxProperties=new Map;Cr.reduxReactiveProperties=new Set;Cr.reduxEventListeners=new Map;function $t(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(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function re(t){return!!t&&!!t[j]}function zt(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)===xd}(t)||Array.isArray(t)||!!t[Ii]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ii])||Cn(t)||En(t))}function _e(t,e,o){o===void 0&&(o=!1),Ke(t)===0?(o?Object.keys:Ve)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ke(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Cn(t)?2:En(t)?3:0}function je(t,e){return Ke(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pd(t,e){return Ke(t)===2?t.get(e):t[e]}function Li(t,e,o){var n=Ke(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function _i(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Cn(t){return gd&&t instanceof Map}function En(t){return bd&&t instanceof Set}function ue(t){return t.o||t.t}function wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Di(t);delete e[j];for(var o=Ve(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 An(t,e){return e===void 0&&(e=!1),Rn(t)||re(t)||!zt(t)||(Ke(t)>1&&(t.set=t.add=t.clear=t.delete=fd),Object.freeze(t),e&&_e(t,function(o,n){return An(n,!0)},!0)),t}function fd(){$t(2)}function Rn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=On[t];return e||$t(18,t),e}function hd(t,e){On[t]||(On[t]=e)}function xn(){return wr}function yn(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function co(t){vn(t),t.p.forEach(yd),t.p=null}function vn(t){t===wr&&(wr=t.l)}function Ei(t){return wr={p:[],l:wr,h:t,m:!0,_:0}}function yd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function mn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[j].P&&(co(e),$t(4)),zt(t)&&(t=lo(e,t),e.l||uo(e,t)),e.u&&Yt("Patches").M(o[j].t,t,e.u,e.s)):t=lo(e,o,[]),co(e),e.u&&e.v(e.u,e.s),t!==ki?t:void 0}function lo(t,e,o){if(Rn(e))return e;var n=e[j];if(!n)return _e(e,function(l,u){return wi(t,n,e,l,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=wn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),_e(i,function(l,u){return wi(t,n,a,l,u,o,c)}),uo(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function wi(t,e,o,n,a,i,c){if(re(a)){var l=lo(t,a,i&&e&&e.i!==3&&!je(e.R,n)?i.concat(n):void 0);if(Li(o,n,l),!re(l))return;t.m=!1}else c&&o.add(a);if(zt(a)&&!Rn(a)){if(!t.h.D&&t._<1)return;lo(t,a),e&&e.A.l||uo(t,a)}}function uo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&An(e,o)}function gn(t,e){var o=t[j];return(o?ue(o):t)[e]}function Ai(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 pe(t){t.P||(t.P=!0,t.l&&pe(t.l))}function bn(t){t.o||(t.o=wn(t.t))}function Sn(t,e,o){var n=Cn(e)?Yt("MapSet").F(e,o):En(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:xn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Ar;c&&(u=[l],p=Er);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:xn()).p.push(n),n}function md(t){return re(t)||$t(22,t),function e(o){if(!zt(o))return o;var n,a=o[j],i=Ke(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=Ri(o,i),a.I=!1}else n=Ri(o,i);return _e(n,function(c,l){a&&pd(a.t,c)===l||Li(n,c,e(l))}),i===3?new Set(n):n}(t)}function Ri(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wn(t)}function Pi(){function t(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[j];return Ar.get(p,c)},set:function(p){var m=this[j];Ar.set(m,c,p)}},u}function e(c){for(var l=c.length-1;l>=0;l--){var u=c[l][j];if(!u.P)switch(u.i){case 5:n(u)&&pe(u);break;case 4:o(u)&&pe(u)}}}function o(c){for(var l=c.t,u=c.k,p=Ve(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==j){var g=l[h];if(g===void 0&&!je(l,h))return!0;var S=u[h],v=S&&S[j];if(v?v.t!==g:!_i(S,g))return!0}}var O=!!l[j];return p.length!==Ve(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&$t(3,JSON.stringify(ue(c)))}var i={};hd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(h,g){if(h){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Di(g);delete O[j];for(var I=Ve(O),R=0;R<I.length;R++){var N=I[R];O[N]=t(N,h||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,c),m={i:u?5:4,A:l?l.A:xn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:m,writable:!0}),p},S:function(c,l,u){u?re(l)&&l[j].A===c&&e(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var h=m[j];if(h){var g=h.t,S=h.k,v=h.R,O=h.i;if(O===4)_e(S,function($){$!==j&&(g[$]!==void 0||je(g,$)?v[$]||p(S[$]):(v[$]=!0,pe(h)))}),_e(g,function($){S[$]!==void 0||je(S,$)||(v[$]=!1,pe(h))});else if(O===5){if(n(h)&&(pe(h),v.length=!0),S.length<g.length)for(var I=S.length;I<g.length;I++)v[I]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ni,wr,Nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",Ti=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ki=Nn?Symbol.for("immer-nothing"):((Ni={})["immer-nothing"]=!0,Ni),Ii=Nn?Symbol.for("immer-draftable"):"__$immer_draftable",j=Nn?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,Ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Di=Object.getOwnPropertyDescriptors||function(t){var e={};return Ve(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},On={},Ar={get:function(t,e){if(e===j)return t;var o=ue(t);if(!je(o,e))return function(a,i,c){var l,u=Ai(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!zt(n)?n:n===gn(t.t,e)?(bn(t),t.o[e]=Sn(t.A.h,n,t)):n},has:function(t,e){return e in ue(t)},ownKeys:function(t){return Reflect.ownKeys(ue(t))},set:function(t,e,o){var n=Ai(ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=gn(ue(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(_i(o,a)&&(o!==void 0||je(t.t,e)))return!0;bn(t),pe(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 gn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,bn(t),pe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$t(12)}},Er={};_e(Ar,function(t,e){Er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Er.deleteProperty=function(t,e){return Er.set.call(this,t,e,void 0)},Er.set=function(t,e,o){return Ar.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=Ti,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var I=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return u.produce(O,function($){var U;return(U=i).call.apply(U,[I,$].concat(N))})}}var p;if(typeof i!="function"&&$t(6),c!==void 0&&typeof c!="function"&&$t(7),zt(a)){var m=Ei(n),h=Sn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?co(m):vn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return yn(m,c),mn(O,m)},function(O){throw co(m),O}):(yn(m,c),mn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===ki&&(p=void 0),n.D&&An(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}$t(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){zt(o)||$t(8),re(o)&&(o=md(o));var n=Ei(this),a=Sn(this,o,void 0);return a[j].C=!0,vn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return yn(i,n),mn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ti&&$t(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 c=Yt("Patches").$;return re(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),Lt=new vd,Sd=Lt.produce,$p=Lt.produceWithPatches.bind(Lt),Mp=Lt.setAutoFreeze.bind(Lt),Up=Lt.setUseProxies.bind(Lt),Fp=Lt.applyPatches.bind(Lt),Wp=Lt.createDraft.bind(Lt),Hp=Lt.finishDraft.bind(Lt),po=Sd;function Pe(t){"@babel/helpers - typeof";return Pe=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},Pe(t)}function Bi(t,e){if(Pe(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $i(t){var e=Bi(t,"string");return Pe(e)=="symbol"?e:e+""}function Mi(t,e,o){return(e=$i(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ui(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 Tn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ui(Object(o),!0).forEach(function(n){Mi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ui(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function yt(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 Fi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),In=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+In(),REPLACE:"@@redux/REPLACE"+In(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+In()}};function Od(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 Ln(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(yt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(yt(1));return o(Ln)(t,e)}if(typeof t!="function")throw new Error(yt(2));var a=t,i=e,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(yt(3));return i}function h(O){if(typeof O!="function")throw new Error(yt(4));if(u)throw new Error(yt(5));var I=!0;return p(),l.push(O),function(){if(I){if(u)throw new Error(yt(6));I=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!Od(O))throw new Error(yt(7));if(typeof O.type>"u")throw new Error(yt(8));if(u)throw new Error(yt(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var I=c=l,R=0;R<I.length;R++){var N=I[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(yt(10));a=O,g({type:fo.REPLACE})}function v(){var O,I=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(yt(11));function k(){N.next&&N.next(m())}k();var $=I(k);return{unsubscribe:$}}},O[Fi]=function(){return this},O}return g({type:fo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Fi]=v,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:fo.INIT});if(typeof n>"u")throw new Error(yt(12));if(typeof o(void 0,{type:fo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yt(13))})}function Wi(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),c,l;try{Cd(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],I=o[O],R=p[O],N=I(R,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(yt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Ze(){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 Hi(){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(yt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(u){return u(c)});return i=Ze.apply(void 0,l)(a.dispatch),Tn(Tn({},a),{},{dispatch:i})}}}function zi(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var Gi=zi();Gi.withExtraArgument=zi;var _n=Gi;var qi=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)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qe=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,ji=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Td=Object.prototype.propertyIsEnumerable,Vi=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},fe=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&Vi(t,o,e[o]);if(ji)for(var n=0,a=ji(e);n<a.length;n++){var o=a[n];Td.call(e,o)&&Vi(t,o,e[o])}return t},Pn=function(t,e){return Ad(t,Rd(e))},Id=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(t,e)).next())})};var Ld=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)},sf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function _d(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 Pd=function(t){qi(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,qe([void 0],o[0].concat(this)))):new(e.bind.apply(e,qe([void 0],o.concat(this))))},e}(Array),kd=function(t){qi(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,qe([void 0],o[0].concat(this)))):new(e.bind.apply(e,qe([void 0],o.concat(this))))},e}(Array);function Bn(t){return zt(t)?po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function Bd(){return function(e){return $d(e)}}function $d(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,c=i===void 0?!0:i,l=new Pd;if(o&&(Dd(o)?l.push(_n):l.push(_n.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var kn=!0;function Yi(t){var e=Bd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(_d(a))S=Wi(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(e),!kn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!kn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Hi.apply(void 0,v),I=Ze;u&&(I=Ld(fe({trace:!kn},typeof u=="object"&&u)));var R=new kd(O),N=R;Array.isArray(g)?N=qe([O],g):typeof g=="function"&&(N=g(R));var k=I.apply(void 0,N);return Ln(S,m,k)}function he(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 fe(fe({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 Xi(t){var e={},o=[],n,a={addCase:function(i,c){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]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Xi(e):[e,o,n],i=a[0],c=a[1],l=a[2],u;if(Md(t))u=function(){return Bn(t())};else{var p=Bn(t);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=qe([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(re(v)){var I=v,R=O(I,g);return R===void 0?v:R}else{if(zt(v))return po(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},h)}return m.getInitialState=u,m}function Fd(t,e){return t+"/"+e}function Qi(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:Bn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=Fd(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[m]=S,c[g]=S,l[m]=v?he(g,v):he(g)});function u(){var m=typeof t.extraReducers=="function"?Xi(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,O=m[2],I=O===void 0?void 0:O,R=fe(fe({},g),c);return Ud(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var Ct=U[$];N.addMatcher(Ct.matcher,Ct.reducer)}I&&N.addDefaultCase(I)})}var p;return{name:e,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Wd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Wd[Math.random()*64|0];return e},zd=["name","message","stack","code"],Dn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ki=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Gd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=zd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},uf=function(){function t(e,o,n){var a=he(e+"/fulfilled",function(m,h,g,S){return{payload:m,meta:Pn(fe({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=he(e+"/pending",function(m,h,g){return{payload:void 0,meta:Pn(fe({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=he(e+"/rejected",function(m,h,g,S,v){return{payload:S,error:(n&&n.serializeError||Gd)(m||"Rejected"),meta:Pn(fe({},v||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var v=n?.idGenerator?n.idGenerator(m):Hd(),O=new u,I,R=!1;function N($){I=$,O.abort()}var k=function(){return Id(this,null,function(){var $,U,Ct,Kt,vt,Zt,ut;return Ed(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Kt=($=n?.condition)==null?void 0:$.call(n,m,{getState:g,extra:S}),Vd(Kt)?[4,Kt]:[3,2];case 1:Kt=y.sent(),y.label=2;case 2:if(Kt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,vt=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(v,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([vt,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Dn(x,P)},fulfillWithValue:function(x,P){return new Ki(x,P)}})).then(function(x){if(x instanceof Dn)throw x;return x instanceof Ki?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Ct=y.sent(),[3,5];case 4:return Zt=y.sent(),Ct=Zt instanceof Dn?c(null,v,m,Zt.payload,Zt.meta):c(Zt,v,m),[3,5];case 5:return ut=n&&!n.dispatchConditionRejection&&c.match(Ct)&&Ct.meta.condition,ut||h(Ct),[2,Ct]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:m,unwrap:function(){return k.then(jd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Vd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ji="listener",ts="completed",es="cancelled",pf="task-"+es,ff="task-"+ts,hf=Ji+"-"+es,yf=Ji+"-"+ts;var $n="listenerMiddleware";var mf=he($n+"/add"),gf=he($n+"/removeAll"),bf=he($n+"/remove");var Zi,xf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Zi||(Zi=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},vf=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);Pi();function Zd(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)}}}var ho=class extends Zd(Object){};window.ftReduxStores||(window.ftReduxStores={});var rs=class t extends ho{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(Sr(i))return i;if(a==null)return;let c=Qi({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Yi({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new t(c,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new no;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(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 yo=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function os(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}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=>yo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return mo([(0,Mn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),mo([(0,Mn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),mo([hn({store:_.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),mo([hn({store:_.name})],e.prototype,"uiLocale",void 0),e}var vo=b(T());var go=class extends te{async listMySearches(){let{session:e}=_.getState();return ai(e,at.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var bo=class extends te{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",xo=vo.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Un=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bo,this.savedSearchesService=new go,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,vo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}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;xo.actions.bookmarks(o)}}},th=new Un;var Fn=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Fn;var ns=b(T()),Wn=class{highlightHtml(e,o,n){(0,ns.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Wn;var as=b(T());var Hn=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.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 as.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Hn;var is=b(T());var Rr=class{static get(e,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new is.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},e??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var zn=class{urlToSearchRequest(e){return Rr.get().parse(e)}searchRequestToUrl(e){return Rr.get().serialize(e)}};window.FluidTopicsUrlService=new zn;var ye=b(T());var ke=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ke.eventName="change";var Gn=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))}},ss=new Gn;var So=class t extends ye.WithEventBus{static build(){return new t(window.history,ss,()=>window.location,!1)}constructor(e,o,n,a){var i,c;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c: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,ye.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ke(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply: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,o=!1){var n,a,i;let c={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(e){this.addEventListener(ke.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ke.eventName,e)}currentItem(){return(0,ye.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();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,ye.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,ye.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}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}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=So.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)});(0,cs.customElement)("ft-app-context")(Q);var jn=class t extends Event{constructor(){super(t.eventName)}};jn.eventName="search-context-clear-all-filters";var Yd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Kn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ls=Symbol("registerInterval"),Vn=Symbol("registerAttempts"),Xd=40;function Qd(t){class e extends t{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Vn]=0,this[ls]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Vn]>Xd?window.clearInterval(this[ls]):(this[Vn]++,this.dispatchEvent(new Kn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Yd([(0,us.state)()],e.prototype,"stateManager",void 0),e}var Co=class extends Qd(ds.FtLitElementRedux){};var Nr=b(X()),Eo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},qn=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Zn=Symbol("registerInterval");function Jd(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(a){this.resultStateManager=a}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Zn]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Zn]):this.dispatchEvent(new qn)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Zn,Eo([(0,Nr.property)({attribute:!1})],o.prototype,"cluster",void 0),Eo([(0,Nr.property)({attribute:!1})],o.prototype,"result",void 0),Eo([(0,Nr.property)({attribute:!1,type:Number})],o.prototype,"rank",void 0),Eo([(0,Nr.property)({attribute:!1,type:Boolean})],o.prototype,"openResultInNewTab",void 0),o}var wo=class extends Jd(Co){};var vs=b(T());var Io=b(W()),Lo=b(X()),_o=b(T());var ps=b(W());var fs=ps.css`
|
|
17
|
+
`}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>ze.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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())}};Q.elementDefinitions={};Q.styles=si;yt([(0,Et.property)()],Q.prototype,"baseUrl",void 0);yt([(0,Et.property)()],Q.prototype,"apiIntegrationIdentifier",void 0);yt([(0,Et.property)()],Q.prototype,"uiLocale",void 0);yt([(0,Ht.jsonProperty)(null)],Q.prototype,"availableUiLocales",void 0);yt([(0,Ht.jsonProperty)(null)],Q.prototype,"metadataConfiguration",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"editorMode",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"noCustom",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,Et.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"withManualResources",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"navigatorOnline",void 0);yt([(0,Et.property)({type:Boolean})],Q.prototype,"forcedOffline",void 0);yt([(0,Et.property)({type:Object})],Q.prototype,"apiProvider",void 0);yt([(0,Ht.jsonProperty)([])],Q.prototype,"messageContexts",void 0);yt([(0,Ht.jsonProperty)(void 0)],Q.prototype,"session",void 0);yt([(0,Et.state)()],Q.prototype,"localesConfiguration",void 0);var Mn=b(X());function dd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!oo(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(!oo(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=c=>Object.keys(c).filter(l=>c[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 c=a[n];if(!oo(t[c],e[c]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function oo(t,e){try{return dd(t,e)}catch{return!1}}function xr(t,e){return!oo(t,e)}var di=b(X(),1);var hn=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:xr,attribute:!1,...e};(0,di.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var no=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 Ge=b(X(),1);var ui=b(X(),1);function pi(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ui.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:xr,...e??{}})}var ao=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 c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var hi=b(W(),1);var io=globalThis,ud=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cp=Symbol();var fi=(t,e)=>{if(ud)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=io.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var so=class extends hi.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 fi(n,e.elementStyles),n}};function yi(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 vr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},xi,mi=Symbol("constructorPrototype"),gi=Symbol("constructorName"),vi=Symbol("exportpartsDebouncer"),bi=Symbol("dynamicDependenciesLoaded"),ee=class extends so{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[xi]=new ao(5),this[gi]=this.constructor.name,this[mi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[gi]&&Object.setPrototypeOf(this,this[mi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[bi]||(e[bi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}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=yi(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)}}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[vi].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)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};xi=vi;vr([(0,Ge.property)()],ee.prototype,"exportpartsPrefix",void 0);vr([pi([])],ee.prototype,"exportpartsPrefixes",void 0);vr([(0,Ge.property)()],ee.prototype,"customStylesheet",void 0);vr([(0,Ge.property)()],ee.prototype,"elementToFocus",void 0);vr([(0,Ge.state)()],ee.prototype,"useAdoptedStyleSheets",void 0);function Sr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Si,Oi,Ci,Or=Symbol("internalReduxEventsUnsubscribers"),de=Symbol("internalStoresUnsubscribers"),Le=Symbol("internalStores"),Cr=class extends ee{constructor(){super(...arguments),this[Si]=new Map,this[Oi]=new Map,this[Ci]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Le].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Le].get(e)}addStore(e,o){var n;o=(n=o??(Sr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Le].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Le].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[de].has(e.store):this[de].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[de].set(e,o.subscribe(()=>this.updateFromStores())),this[Or].set(e,[]),Sr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Or].get(e).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[de].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[de].has(e)&&this[de].get(e)(),this[de].delete(e),(o=this[Or].get(e))===null||o===void 0||o.forEach(n=>n()),this[Or].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Si=de,Oi=Le,Ci=Or;Cr.reduxProperties=new Map;Cr.reduxReactiveProperties=new Set;Cr.reduxEventListeners=new Map;function $t(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(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function re(t){return!!t&&!!t[j]}function zt(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)===xd}(t)||Array.isArray(t)||!!t[Ii]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ii])||Cn(t)||En(t))}function _e(t,e,o){o===void 0&&(o=!1),Ke(t)===0?(o?Object.keys:Ve)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ke(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Cn(t)?2:En(t)?3:0}function je(t,e){return Ke(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pd(t,e){return Ke(t)===2?t.get(e):t[e]}function Li(t,e,o){var n=Ke(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function _i(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Cn(t){return gd&&t instanceof Map}function En(t){return bd&&t instanceof Set}function ue(t){return t.o||t.t}function wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Di(t);delete e[j];for(var o=Ve(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 An(t,e){return e===void 0&&(e=!1),Rn(t)||re(t)||!zt(t)||(Ke(t)>1&&(t.set=t.add=t.clear=t.delete=fd),Object.freeze(t),e&&_e(t,function(o,n){return An(n,!0)},!0)),t}function fd(){$t(2)}function Rn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=On[t];return e||$t(18,t),e}function hd(t,e){On[t]||(On[t]=e)}function xn(){return wr}function yn(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function co(t){vn(t),t.p.forEach(yd),t.p=null}function vn(t){t===wr&&(wr=t.l)}function Ei(t){return wr={p:[],l:wr,h:t,m:!0,_:0}}function yd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function mn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[j].P&&(co(e),$t(4)),zt(t)&&(t=lo(e,t),e.l||uo(e,t)),e.u&&Yt("Patches").M(o[j].t,t,e.u,e.s)):t=lo(e,o,[]),co(e),e.u&&e.v(e.u,e.s),t!==ki?t:void 0}function lo(t,e,o){if(Rn(e))return e;var n=e[j];if(!n)return _e(e,function(l,u){return wi(t,n,e,l,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=wn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),_e(i,function(l,u){return wi(t,n,a,l,u,o,c)}),uo(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function wi(t,e,o,n,a,i,c){if(re(a)){var l=lo(t,a,i&&e&&e.i!==3&&!je(e.R,n)?i.concat(n):void 0);if(Li(o,n,l),!re(l))return;t.m=!1}else c&&o.add(a);if(zt(a)&&!Rn(a)){if(!t.h.D&&t._<1)return;lo(t,a),e&&e.A.l||uo(t,a)}}function uo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&An(e,o)}function gn(t,e){var o=t[j];return(o?ue(o):t)[e]}function Ai(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 pe(t){t.P||(t.P=!0,t.l&&pe(t.l))}function bn(t){t.o||(t.o=wn(t.t))}function Sn(t,e,o){var n=Cn(e)?Yt("MapSet").F(e,o):En(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:xn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Ar;c&&(u=[l],p=Er);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:xn()).p.push(n),n}function md(t){return re(t)||$t(22,t),function e(o){if(!zt(o))return o;var n,a=o[j],i=Ke(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=Ri(o,i),a.I=!1}else n=Ri(o,i);return _e(n,function(c,l){a&&pd(a.t,c)===l||Li(n,c,e(l))}),i===3?new Set(n):n}(t)}function Ri(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wn(t)}function Pi(){function t(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[j];return Ar.get(p,c)},set:function(p){var m=this[j];Ar.set(m,c,p)}},u}function e(c){for(var l=c.length-1;l>=0;l--){var u=c[l][j];if(!u.P)switch(u.i){case 5:n(u)&&pe(u);break;case 4:o(u)&&pe(u)}}}function o(c){for(var l=c.t,u=c.k,p=Ve(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==j){var g=l[h];if(g===void 0&&!je(l,h))return!0;var S=u[h],v=S&&S[j];if(v?v.t!==g:!_i(S,g))return!0}}var O=!!l[j];return p.length!==Ve(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&$t(3,JSON.stringify(ue(c)))}var i={};hd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(h,g){if(h){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Di(g);delete O[j];for(var I=Ve(O),R=0;R<I.length;R++){var N=I[R];O[N]=t(N,h||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,c),m={i:u?5:4,A:l?l.A:xn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:m,writable:!0}),p},S:function(c,l,u){u?re(l)&&l[j].A===c&&e(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var h=m[j];if(h){var g=h.t,S=h.k,v=h.R,O=h.i;if(O===4)_e(S,function($){$!==j&&(g[$]!==void 0||je(g,$)?v[$]||p(S[$]):(v[$]=!0,pe(h)))}),_e(g,function($){S[$]!==void 0||je(S,$)||(v[$]=!1,pe(h))});else if(O===5){if(n(h)&&(pe(h),v.length=!0),S.length<g.length)for(var I=S.length;I<g.length;I++)v[I]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ni,wr,Nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",Ti=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ki=Nn?Symbol.for("immer-nothing"):((Ni={})["immer-nothing"]=!0,Ni),Ii=Nn?Symbol.for("immer-draftable"):"__$immer_draftable",j=Nn?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,Ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Di=Object.getOwnPropertyDescriptors||function(t){var e={};return Ve(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},On={},Ar={get:function(t,e){if(e===j)return t;var o=ue(t);if(!je(o,e))return function(a,i,c){var l,u=Ai(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!zt(n)?n:n===gn(t.t,e)?(bn(t),t.o[e]=Sn(t.A.h,n,t)):n},has:function(t,e){return e in ue(t)},ownKeys:function(t){return Reflect.ownKeys(ue(t))},set:function(t,e,o){var n=Ai(ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=gn(ue(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(_i(o,a)&&(o!==void 0||je(t.t,e)))return!0;bn(t),pe(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 gn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,bn(t),pe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$t(12)}},Er={};_e(Ar,function(t,e){Er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Er.deleteProperty=function(t,e){return Er.set.call(this,t,e,void 0)},Er.set=function(t,e,o){return Ar.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=Ti,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var I=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return u.produce(O,function($){var U;return(U=i).call.apply(U,[I,$].concat(N))})}}var p;if(typeof i!="function"&&$t(6),c!==void 0&&typeof c!="function"&&$t(7),zt(a)){var m=Ei(n),h=Sn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?co(m):vn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return yn(m,c),mn(O,m)},function(O){throw co(m),O}):(yn(m,c),mn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===ki&&(p=void 0),n.D&&An(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}$t(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){zt(o)||$t(8),re(o)&&(o=md(o));var n=Ei(this),a=Sn(this,o,void 0);return a[j].C=!0,vn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return yn(i,n),mn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ti&&$t(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 c=Yt("Patches").$;return re(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),Lt=new vd,Sd=Lt.produce,$p=Lt.produceWithPatches.bind(Lt),Mp=Lt.setAutoFreeze.bind(Lt),Up=Lt.setUseProxies.bind(Lt),Fp=Lt.applyPatches.bind(Lt),Wp=Lt.createDraft.bind(Lt),Hp=Lt.finishDraft.bind(Lt),po=Sd;function Pe(t){"@babel/helpers - typeof";return Pe=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},Pe(t)}function Bi(t,e){if(Pe(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $i(t){var e=Bi(t,"string");return Pe(e)=="symbol"?e:e+""}function Mi(t,e,o){return(e=$i(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ui(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 Tn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ui(Object(o),!0).forEach(function(n){Mi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ui(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function mt(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 Fi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),In=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+In(),REPLACE:"@@redux/REPLACE"+In(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+In()}};function Od(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 Ln(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(mt(1));return o(Ln)(t,e)}if(typeof t!="function")throw new Error(mt(2));var a=t,i=e,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(mt(3));return i}function h(O){if(typeof O!="function")throw new Error(mt(4));if(u)throw new Error(mt(5));var I=!0;return p(),l.push(O),function(){if(I){if(u)throw new Error(mt(6));I=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!Od(O))throw new Error(mt(7));if(typeof O.type>"u")throw new Error(mt(8));if(u)throw new Error(mt(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var I=c=l,R=0;R<I.length;R++){var N=I[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(mt(10));a=O,g({type:fo.REPLACE})}function v(){var O,I=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(mt(11));function k(){N.next&&N.next(m())}k();var $=I(k);return{unsubscribe:$}}},O[Fi]=function(){return this},O}return g({type:fo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Fi]=v,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:fo.INIT});if(typeof n>"u")throw new Error(mt(12));if(typeof o(void 0,{type:fo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function Wi(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),c,l;try{Cd(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],I=o[O],R=p[O],N=I(R,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(mt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Ze(){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 Hi(){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(mt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(u){return u(c)});return i=Ze.apply(void 0,l)(a.dispatch),Tn(Tn({},a),{},{dispatch:i})}}}function zi(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var Gi=zi();Gi.withExtraArgument=zi;var _n=Gi;var qi=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)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qe=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,ji=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Td=Object.prototype.propertyIsEnumerable,Vi=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},fe=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&Vi(t,o,e[o]);if(ji)for(var n=0,a=ji(e);n<a.length;n++){var o=a[n];Td.call(e,o)&&Vi(t,o,e[o])}return t},Pn=function(t,e){return Ad(t,Rd(e))},Id=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(t,e)).next())})};var Ld=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)},sf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function _d(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 Pd=function(t){qi(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,qe([void 0],o[0].concat(this)))):new(e.bind.apply(e,qe([void 0],o.concat(this))))},e}(Array),kd=function(t){qi(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,qe([void 0],o[0].concat(this)))):new(e.bind.apply(e,qe([void 0],o.concat(this))))},e}(Array);function Bn(t){return zt(t)?po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function Bd(){return function(e){return $d(e)}}function $d(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,c=i===void 0?!0:i,l=new Pd;if(o&&(Dd(o)?l.push(_n):l.push(_n.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var kn=!0;function Yi(t){var e=Bd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(_d(a))S=Wi(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(e),!kn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!kn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Hi.apply(void 0,v),I=Ze;u&&(I=Ld(fe({trace:!kn},typeof u=="object"&&u)));var R=new kd(O),N=R;Array.isArray(g)?N=qe([O],g):typeof g=="function"&&(N=g(R));var k=I.apply(void 0,N);return Ln(S,m,k)}function he(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 fe(fe({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 Xi(t){var e={},o=[],n,a={addCase:function(i,c){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]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Xi(e):[e,o,n],i=a[0],c=a[1],l=a[2],u;if(Md(t))u=function(){return Bn(t())};else{var p=Bn(t);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=qe([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(re(v)){var I=v,R=O(I,g);return R===void 0?v:R}else{if(zt(v))return po(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},h)}return m.getInitialState=u,m}function Fd(t,e){return t+"/"+e}function Qi(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:Bn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=Fd(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[m]=S,c[g]=S,l[m]=v?he(g,v):he(g)});function u(){var m=typeof t.extraReducers=="function"?Xi(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,O=m[2],I=O===void 0?void 0:O,R=fe(fe({},g),c);return Ud(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var Ct=U[$];N.addMatcher(Ct.matcher,Ct.reducer)}I&&N.addDefaultCase(I)})}var p;return{name:e,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Wd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Wd[Math.random()*64|0];return e},zd=["name","message","stack","code"],Dn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ki=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Gd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=zd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},uf=function(){function t(e,o,n){var a=he(e+"/fulfilled",function(m,h,g,S){return{payload:m,meta:Pn(fe({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=he(e+"/pending",function(m,h,g){return{payload:void 0,meta:Pn(fe({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=he(e+"/rejected",function(m,h,g,S,v){return{payload:S,error:(n&&n.serializeError||Gd)(m||"Rejected"),meta:Pn(fe({},v||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var v=n?.idGenerator?n.idGenerator(m):Hd(),O=new u,I,R=!1;function N($){I=$,O.abort()}var k=function(){return Id(this,null,function(){var $,U,Ct,Kt,vt,Zt,ut;return Ed(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Kt=($=n?.condition)==null?void 0:$.call(n,m,{getState:g,extra:S}),Vd(Kt)?[4,Kt]:[3,2];case 1:Kt=y.sent(),y.label=2;case 2:if(Kt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,vt=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(v,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([vt,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Dn(x,P)},fulfillWithValue:function(x,P){return new Ki(x,P)}})).then(function(x){if(x instanceof Dn)throw x;return x instanceof Ki?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Ct=y.sent(),[3,5];case 4:return Zt=y.sent(),Ct=Zt instanceof Dn?c(null,v,m,Zt.payload,Zt.meta):c(Zt,v,m),[3,5];case 5:return ut=n&&!n.dispatchConditionRejection&&c.match(Ct)&&Ct.meta.condition,ut||h(Ct),[2,Ct]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:m,unwrap:function(){return k.then(jd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Vd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ji="listener",ts="completed",es="cancelled",pf="task-"+es,ff="task-"+ts,hf=Ji+"-"+es,yf=Ji+"-"+ts;var $n="listenerMiddleware";var mf=he($n+"/add"),gf=he($n+"/removeAll"),bf=he($n+"/remove");var Zi,xf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Zi||(Zi=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},vf=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);Pi();function Zd(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)}}}var ho=class extends Zd(Object){};window.ftReduxStores||(window.ftReduxStores={});var rs=class t extends ho{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(Sr(i))return i;if(a==null)return;let c=Qi({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Yi({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new t(c,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new no;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(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 yo=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function os(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}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=>yo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return mo([(0,Mn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),mo([(0,Mn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),mo([hn({store:_.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),mo([hn({store:_.name})],e.prototype,"uiLocale",void 0),e}var vo=b(T());var go=class extends te{async listMySearches(){let{session:e}=_.getState();return ai(e,at.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var bo=class extends te{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",xo=vo.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Un=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bo,this.savedSearchesService=new go,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,vo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}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;xo.actions.bookmarks(o)}}},th=new Un;var Fn=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Fn;var ns=b(T()),Wn=class{highlightHtml(e,o,n){(0,ns.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Wn;var as=b(T());var Hn=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.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 as.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Hn;var is=b(T());var Rr=class{static get(e,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new is.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},e??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var zn=class{urlToSearchRequest(e){return Rr.get().parse(e)}searchRequestToUrl(e){return Rr.get().serialize(e)}};window.FluidTopicsUrlService=new zn;var ye=b(T());var ke=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ke.eventName="change";var Gn=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))}},ss=new Gn;var So=class t extends ye.WithEventBus{static build(){return new t(window.history,ss,()=>window.location,!1)}constructor(e,o,n,a){var i,c;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c: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,ye.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ke(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply: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,o=!1){var n,a,i;let c={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(e){this.addEventListener(ke.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ke.eventName,e)}currentItem(){return(0,ye.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();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,ye.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,ye.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let o=e;do o--;while(o>0&&!this.hasState(o));return o}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}isMajorState(e){var o,n;return this.hasState(e)&&((n=(o=this.states[e])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=So.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)});(0,cs.customElement)("ft-app-context")(Q);var jn=class t extends Event{constructor(){super(t.eventName)}};jn.eventName="search-context-clear-all-filters";var Yd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Kn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ls=Symbol("registerInterval"),Vn=Symbol("registerAttempts"),Xd=40;function Qd(t){class e extends t{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Vn]=0,this[ls]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Vn]>Xd?window.clearInterval(this[ls]):(this[Vn]++,this.dispatchEvent(new Kn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Yd([(0,us.state)()],e.prototype,"stateManager",void 0),e}var Co=class extends Qd(ds.FtLitElementRedux){};var Nr=b(X()),Eo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},qn=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Zn=Symbol("registerInterval");function Jd(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(a){this.resultStateManager=a}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Zn]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Zn]):this.dispatchEvent(new qn)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Zn,Eo([(0,Nr.property)({attribute:!1})],o.prototype,"cluster",void 0),Eo([(0,Nr.property)({attribute:!1})],o.prototype,"result",void 0),Eo([(0,Nr.property)({attribute:!1,type:Number})],o.prototype,"rank",void 0),Eo([(0,Nr.property)({attribute:!1,type:Boolean})],o.prototype,"openResultInNewTab",void 0),o}var wo=class extends Jd(Co){};var vs=b(T());var Io=b(W()),Lo=b(X()),_o=b(T());var ps=b(W());var fs=ps.css`
|
|
18
18
|
`;var No=b(T());var bs=b(X());var tu=b(T());function hs(t){return t.match(/^[\w-]+\.[\w-]+$/)}var eu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ys=Symbol("i18nAttributes"),ms=Symbol("i18nListAttributes"),xs=Symbol("i18nProperties"),Ao=Symbol("i18nContexts"),Tr=Symbol("i18nUnsubs");function To(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?ro:ze}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(hs(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[ys])===null||c===void 0||c.forEach((m,h)=>u[h]=p(m,h,u[h])),(l=this[ms])===null||l===void 0||l.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(S=>p(m,h,S))})}updateI18nProperties(i){var c;(c=this[xs])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Ao].set(u,{isCustomContext:l}),this[Tr].has(u)||this[Tr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[Ao].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ao].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Tr].forEach(i=>i()),this[Tr].clear()}}return e=Ao,o=Tr,eu([(0,bs.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var gs=class extends To(No.FtLitElement){},Ro=class extends To(No.FtLitElementRedux){};var Ir=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Gt=class extends Ro{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Io.nothing:Io.html`
|
|
19
19
|
<span class="ft-i18n">
|
|
20
20
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -570,8 +570,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
570
570
|
<div></div>
|
|
571
571
|
<div></div>
|
|
572
572
|
</div>
|
|
573
|
-
`}};Fe.styles=bl;(0,wl.customElement)("ft-loader")(Fe);var ve=b(W()),Sa=b(pr()),dt=b(X()),
|
|
574
|
-
<ft-ripple part="ripple"
|
|
573
|
+
`}};Fe.styles=bl;(0,wl.customElement)("ft-loader")(Fe);var ve=b(W()),Sa=b(pr()),dt=b(X()),ht=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Z=class extends(0,Se.toFtFormComponent)(Se.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=ve.html`
|
|
574
|
+
<ft-ripple part="ripple"
|
|
575
|
+
?disabled=${this.isDisabled()}
|
|
576
|
+
?activated=${this.activated}
|
|
577
|
+
></ft-ripple>
|
|
575
578
|
<ft-typography part="label"
|
|
576
579
|
variant=${this.typographyVariant}
|
|
577
580
|
element="span"
|
|
@@ -607,7 +610,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
607
610
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
608
611
|
`:ve.html`
|
|
609
612
|
<slot part="icon" name="icon"></slot>
|
|
610
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Se.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
613
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Se.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Z.elementDefinitions={"ft-ripple":G,"ft-tooltip":V,"ft-typography":st,"ft-icon":lt,"ft-loader":Fe};ht([(0,dt.property)()],Z.prototype,"href",void 0);ht([(0,dt.property)()],Z.prototype,"target",void 0);ht([(0,dt.property)()],Z.prototype,"type",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"disabled",void 0);ht([(0,dt.property)()],Z.prototype,"label",void 0);ht([(0,dt.property)()],Z.prototype,"icon",void 0);ht([(0,dt.property)()],Z.prototype,"iconVariant",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"trailingIcon",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"loading",void 0);ht([(0,dt.property)({attribute:"aria-label"})],Z.prototype,"ariaLabel",void 0);ht([(0,dt.property)()],Z.prototype,"tooltipPosition",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"hideTooltip",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"forceTooltip",void 0);ht([(0,dt.property)({type:Boolean})],Z.prototype,"activated",void 0);ht([(0,dt.query)(".ft-button")],Z.prototype,"button",void 0);ht([(0,dt.query)(".ft-button--label slot")],Z.prototype,"slottedContent",void 0);ht([(0,dt.query)("[part=tooltip]")],Z.prototype,"tooltip",void 0);var Vo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Pt=class extends Z{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Pt.styles=[Al.safariEllipsisFix,Ol];Vo([(0,jr.property)({type:Boolean})],Pt.prototype,"primary",void 0);Vo([(0,jr.property)({type:Boolean})],Pt.prototype,"outlined",void 0);Vo([(0,jr.property)({type:Boolean})],Pt.prototype,"dense",void 0);Vo([(0,jr.property)({type:Boolean})],Pt.prototype,"round",void 0);var Vr=b(X());var Zo=b(T());var Rl=b(W()),C=b(T());var Nl=[Rl.css`
|
|
611
614
|
:host {
|
|
612
615
|
display: inline-block;
|
|
613
616
|
max-width: 100%;
|
|
@@ -1073,7 +1076,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1073
1076
|
.ftds--size-small.ft-button--icon-only {
|
|
1074
1077
|
width: ${f.smallIconOnlyWidth};
|
|
1075
1078
|
}
|
|
1076
|
-
`,C.noTextSelect];var Ko=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},kt=class extends(0,Zo.toFtdsBase)(
|
|
1079
|
+
`,C.noTextSelect];var Ko=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;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--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},kt=class extends(0,Zo.toFtdsBase)(Z){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=$o.brand,this.iconVariant=Nt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case St.large:return Mt.body2medium;case St.medium:return Mt.caption1medium;case St.small:return Mt.caption2medium}}};kt.styles=[Zo.safariEllipsisFix,Nl];Ko([(0,Vr.property)({type:Boolean})],kt.prototype,"primary",void 0);Ko([(0,Vr.property)({type:Boolean})],kt.prototype,"secondary",void 0);Ko([(0,Vr.property)({type:Boolean})],kt.prototype,"tertiary",void 0);Ko([(0,Vr.property)({type:Boolean})],kt.prototype,"round",void 0);(0,Oa.customElement)("ft-button")(Pt);(0,Oa.customElement)("ftds-button")(kt);var Tl=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Dt={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:Tl,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",Ut.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",Ut.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Tl),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},Il=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),Ca={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:Il,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Il)},Ll={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},_l=[B.noTextSelect,qo.css`
|
|
1077
1080
|
:host {
|
|
1078
1081
|
display: inline-block;
|
|
1079
1082
|
max-width: 100%;
|