@fluid-topics/ft-reader-topic-content 1.3.0 → 1.3.2

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 Si=Object.create;var hr=Object.defineProperty;var xi=Object.getOwnPropertyDescriptor;var Ai=Object.getOwnPropertyNames;var Oi=Object.getPrototypeOf,_i=Object.prototype.hasOwnProperty;var Me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ti=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ai(t))!_i.call(e,i)&&i!==r&&hr(e,i,{get:()=>t[i],enumerable:!(n=xi(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?Si(Oi(e)):{},Ti(t||!e||!e.__esModule?hr(r,"default",{value:e,enumerable:!0}):r,e));var L=Me((Ta,mr)=>{mr.exports=ftGlobals.wcUtils});var Q=Me((wa,vr)=>{vr.exports=ftGlobals.lit});var W=Me((Ca,Er)=>{Er.exports=ftGlobals.litDecorators});var Mt=Me((Ia,_r)=>{_r.exports=ftGlobals.litUnsafeHTML});var Ln=Me((fe,Pn)=>{var ht=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,mt=function(){function e(){this.fetch=!1,this.DOMException=ht.DOMException}return e.prototype=ht,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={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 a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(u){return u&&s.indexOf(Object.prototype.toString.call(u))>-1};function l(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function c(u){return typeof u!="string"&&(u=String(u)),u}function f(u){var d={next:function(){var b=u.shift();return{done:b===void 0,value:b}}};return i.iterable&&(d[Symbol.iterator]=function(){return d}),d}function h(u){this.map={},u instanceof h?u.forEach(function(d,b){this.append(b,d)},this):Array.isArray(u)?u.forEach(function(d){if(d.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+d.length);this.append(d[0],d[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(d){this.append(d,u[d])},this)}h.prototype.append=function(u,d){u=l(u),d=c(d);var b=this.map[u];this.map[u]=b?b+", "+d:d},h.prototype.delete=function(u){delete this.map[l(u)]},h.prototype.get=function(u){return u=l(u),this.has(u)?this.map[u]:null},h.prototype.has=function(u){return this.map.hasOwnProperty(l(u))},h.prototype.set=function(u,d){this.map[l(u)]=c(d)},h.prototype.forEach=function(u,d){for(var b in this.map)this.map.hasOwnProperty(b)&&u.call(d,this.map[b],b,this)},h.prototype.keys=function(){var u=[];return this.forEach(function(d,b){u.push(b)}),f(u)},h.prototype.values=function(){var u=[];return this.forEach(function(d){u.push(d)}),f(u)},h.prototype.entries=function(){var u=[];return this.forEach(function(d,b){u.push([b,d])}),f(u)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function p(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function g(u){return new Promise(function(d,b){u.onload=function(){d(u.result)},u.onerror=function(){b(u.error)}})}function v(u){var d=new FileReader,b=g(d);return d.readAsArrayBuffer(u),b}function y(u){var d=new FileReader,b=g(d),w=/charset=([A-Za-z0-9_-]+)/.exec(u.type),P=w?w[1]:"utf-8";return d.readAsText(u,P),b}function _(u){for(var d=new Uint8Array(u),b=new Array(d.length),w=0;w<d.length;w++)b[w]=String.fromCharCode(d[w]);return b.join("")}function x(u){if(u.slice)return u.slice(0);var d=new Uint8Array(u.byteLength);return d.set(new Uint8Array(u)),d.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:i.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:i.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():i.arrayBuffer&&i.blob&&a(u)?(this._bodyArrayBuffer=x(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||o(u))?this._bodyArrayBuffer=x(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var u=p(this);if(u)return u;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 u=p(this);return u||(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(i.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=p(this);if(u)return u;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function T(u){var d=u.toUpperCase();return R.indexOf(d)>-1?d:u}function I(u,d){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');d=d||{};var b=d.body;if(u instanceof I){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,d.headers||(this.headers=new h(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!b&&u._bodyInit!=null&&(b=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=d.credentials||this.credentials||"same-origin",(d.headers||!this.headers)&&(this.headers=new h(d.headers)),this.method=T(d.method||this.method||"GET"),this.mode=d.mode||this.mode||null,this.signal=d.signal||this.signal||function(){if("AbortController"in n){var O=new AbortController;return O.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),(this.method==="GET"||this.method==="HEAD")&&(d.cache==="no-store"||d.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var P=/\?/;this.url+=(P.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function $(u){var d=new FormData;return u.trim().split("&").forEach(function(b){if(b){var w=b.split("="),P=w.shift().replace(/\+/g," "),O=w.join("=").replace(/\+/g," ");d.append(decodeURIComponent(P),decodeURIComponent(O))}}),d}function ve(u){var d=new h,b=u.replace(/\r?\n[\t ]+/g," ");return b.split("\r").map(function(w){return w.indexOf(`
2
- `)===0?w.substr(1,w.length):w}).forEach(function(w){var P=w.split(":"),O=P.shift().trim();if(O){var Fe=P.join(":").trim();try{d.append(O,Fe)}catch(Rt){console.warn("Response "+Rt.message)}}}),d}A.call(I.prototype);function H(u,d){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(d||(d={}),this.type="default",this.status=d.status===void 0?200:d.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=d.statusText===void 0?"":""+d.statusText,this.headers=new h(d.headers),this.url=d.url||"",this._initBody(u)}A.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},H.error=function(){var u=new H(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var ye=[301,302,303,307,308];H.redirect=function(u,d){if(ye.indexOf(d)===-1)throw new RangeError("Invalid status code");return new H(null,{status:d,headers:{location:u}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(d,b){this.message=d,this.name=b;var w=Error(d);this.stack=w.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Oe(u,d){return new Promise(function(b,w){var P=new I(u,d);if(P.signal&&P.signal.aborted)return w(new r.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function Fe(){O.abort()}O.onload=function(){var k={statusText:O.statusText,headers:ve(O.getAllResponseHeaders()||"")};P.url.indexOf("file://")===0&&(O.status<200||O.status>599)?k.status=200:k.status=O.status,k.url="responseURL"in O?O.responseURL:k.headers.get("X-Request-URL");var ge="response"in O?O.response:O.responseText;setTimeout(function(){b(new H(ge,k))},0)},O.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request timed out"))},0)},O.onabort=function(){setTimeout(function(){w(new r.DOMException("Aborted","AbortError"))},0)};function Rt(k){try{return k===""&&n.location.href?n.location.href:k}catch{return k}}if(O.open(P.method,Rt(P.url),!0),P.credentials==="include"?O.withCredentials=!0:P.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(i.blob?O.responseType="blob":i.arrayBuffer&&(O.responseType="arraybuffer")),d&&typeof d.headers=="object"&&!(d.headers instanceof h||n.Headers&&d.headers instanceof n.Headers)){var pr=[];Object.getOwnPropertyNames(d.headers).forEach(function(k){pr.push(l(k)),O.setRequestHeader(k,c(d.headers[k]))}),P.headers.forEach(function(k,ge){pr.indexOf(ge)===-1&&O.setRequestHeader(ge,k)})}else P.headers.forEach(function(k,ge){O.setRequestHeader(ge,k)});P.signal&&(P.signal.addEventListener("abort",Fe),O.onreadystatechange=function(){O.readyState===4&&P.signal.removeEventListener("abort",Fe)}),O.send(typeof P._bodyInit>"u"?null:P._bodyInit)})}return Oe.polyfill=!0,n.fetch||(n.fetch=Oe,n.Headers=h,n.Request=I,n.Response=H),r.Headers=h,r.Request=I,r.Response=H,r.fetch=Oe,r}({})})(mt);mt.fetch.ponyfill=!0;delete mt.fetch.polyfill;var De=ht.fetch?ht:mt;fe=De.fetch;fe.default=De.fetch;fe.fetch=De.fetch;fe.Headers=De.Headers;fe.Request=De.Request;fe.Response=De.Response;Pn.exports=fe});var Ei=E(L());var he=E(Q());var gr=E(Q()),_e=E(L()),yr={colorError:_e.FtCssVariableFactory.external(_e.designSystemVariables.colorError,"Design system"),fontFamily:_e.FtCssVariableFactory.external(_e.designSystemVariables.contentFont,"Design system")},br=gr.css`
1
+ "use strict";(()=>{var xi=Object.create;var hr=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Oi=Object.getOwnPropertyNames;var _i=Object.getPrototypeOf,Ti=Object.prototype.hasOwnProperty;var Me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Oi(t))!Ti.call(e,i)&&i!==r&&hr(e,i,{get:()=>t[i],enumerable:!(n=Ai(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?xi(_i(e)):{},wi(t||!e||!e.__esModule?hr(r,"default",{value:e,enumerable:!0}):r,e));var L=Me((wa,mr)=>{mr.exports=ftGlobals.wcUtils});var Q=Me((Ca,vr)=>{vr.exports=ftGlobals.lit});var W=Me((Pa,Er)=>{Er.exports=ftGlobals.litDecorators});var It=Me((ka,_r)=>{_r.exports=ftGlobals.litUnsafeHTML});var Ln=Me((fe,Pn)=>{var mt=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,vt=function(){function e(){this.fetch=!1,this.DOMException=mt.DOMException}return e.prototype=mt,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={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 a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(u){return u&&s.indexOf(Object.prototype.toString.call(u))>-1};function l(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function c(u){return typeof u!="string"&&(u=String(u)),u}function f(u){var d={next:function(){var b=u.shift();return{done:b===void 0,value:b}}};return i.iterable&&(d[Symbol.iterator]=function(){return d}),d}function h(u){this.map={},u instanceof h?u.forEach(function(d,b){this.append(b,d)},this):Array.isArray(u)?u.forEach(function(d){if(d.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+d.length);this.append(d[0],d[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(d){this.append(d,u[d])},this)}h.prototype.append=function(u,d){u=l(u),d=c(d);var b=this.map[u];this.map[u]=b?b+", "+d:d},h.prototype.delete=function(u){delete this.map[l(u)]},h.prototype.get=function(u){return u=l(u),this.has(u)?this.map[u]:null},h.prototype.has=function(u){return this.map.hasOwnProperty(l(u))},h.prototype.set=function(u,d){this.map[l(u)]=c(d)},h.prototype.forEach=function(u,d){for(var b in this.map)this.map.hasOwnProperty(b)&&u.call(d,this.map[b],b,this)},h.prototype.keys=function(){var u=[];return this.forEach(function(d,b){u.push(b)}),f(u)},h.prototype.values=function(){var u=[];return this.forEach(function(d){u.push(d)}),f(u)},h.prototype.entries=function(){var u=[];return this.forEach(function(d,b){u.push([b,d])}),f(u)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function p(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function g(u){return new Promise(function(d,b){u.onload=function(){d(u.result)},u.onerror=function(){b(u.error)}})}function v(u){var d=new FileReader,b=g(d);return d.readAsArrayBuffer(u),b}function y(u){var d=new FileReader,b=g(d),w=/charset=([A-Za-z0-9_-]+)/.exec(u.type),P=w?w[1]:"utf-8";return d.readAsText(u,P),b}function _(u){for(var d=new Uint8Array(u),b=new Array(d.length),w=0;w<d.length;w++)b[w]=String.fromCharCode(d[w]);return b.join("")}function x(u){if(u.slice)return u.slice(0);var d=new Uint8Array(u.byteLength);return d.set(new Uint8Array(u)),d.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:i.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:i.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():i.arrayBuffer&&i.blob&&a(u)?(this._bodyArrayBuffer=x(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||o(u))?this._bodyArrayBuffer=x(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var u=p(this);if(u)return u;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 u=p(this);return u||(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(i.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=p(this);if(u)return u;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function T(u){var d=u.toUpperCase();return C.indexOf(d)>-1?d:u}function I(u,d){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');d=d||{};var b=d.body;if(u instanceof I){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,d.headers||(this.headers=new h(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!b&&u._bodyInit!=null&&(b=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=d.credentials||this.credentials||"same-origin",(d.headers||!this.headers)&&(this.headers=new h(d.headers)),this.method=T(d.method||this.method||"GET"),this.mode=d.mode||this.mode||null,this.signal=d.signal||this.signal||function(){if("AbortController"in n){var O=new AbortController;return O.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),(this.method==="GET"||this.method==="HEAD")&&(d.cache==="no-store"||d.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var P=/\?/;this.url+=(P.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function $(u){var d=new FormData;return u.trim().split("&").forEach(function(b){if(b){var w=b.split("="),P=w.shift().replace(/\+/g," "),O=w.join("=").replace(/\+/g," ");d.append(decodeURIComponent(P),decodeURIComponent(O))}}),d}function ve(u){var d=new h,b=u.replace(/\r?\n[\t ]+/g," ");return b.split("\r").map(function(w){return w.indexOf(`
2
+ `)===0?w.substr(1,w.length):w}).forEach(function(w){var P=w.split(":"),O=P.shift().trim();if(O){var Fe=P.join(":").trim();try{d.append(O,Fe)}catch(Rt){console.warn("Response "+Rt.message)}}}),d}A.call(I.prototype);function H(u,d){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(d||(d={}),this.type="default",this.status=d.status===void 0?200:d.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=d.statusText===void 0?"":""+d.statusText,this.headers=new h(d.headers),this.url=d.url||"",this._initBody(u)}A.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},H.error=function(){var u=new H(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var ye=[301,302,303,307,308];H.redirect=function(u,d){if(ye.indexOf(d)===-1)throw new RangeError("Invalid status code");return new H(null,{status:d,headers:{location:u}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(d,b){this.message=d,this.name=b;var w=Error(d);this.stack=w.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Oe(u,d){return new Promise(function(b,w){var P=new I(u,d);if(P.signal&&P.signal.aborted)return w(new r.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function Fe(){O.abort()}O.onload=function(){var k={statusText:O.statusText,headers:ve(O.getAllResponseHeaders()||"")};P.url.indexOf("file://")===0&&(O.status<200||O.status>599)?k.status=200:k.status=O.status,k.url="responseURL"in O?O.responseURL:k.headers.get("X-Request-URL");var ge="response"in O?O.response:O.responseText;setTimeout(function(){b(new H(ge,k))},0)},O.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request timed out"))},0)},O.onabort=function(){setTimeout(function(){w(new r.DOMException("Aborted","AbortError"))},0)};function Rt(k){try{return k===""&&n.location.href?n.location.href:k}catch{return k}}if(O.open(P.method,Rt(P.url),!0),P.credentials==="include"?O.withCredentials=!0:P.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(i.blob?O.responseType="blob":i.arrayBuffer&&(O.responseType="arraybuffer")),d&&typeof d.headers=="object"&&!(d.headers instanceof h||n.Headers&&d.headers instanceof n.Headers)){var pr=[];Object.getOwnPropertyNames(d.headers).forEach(function(k){pr.push(l(k)),O.setRequestHeader(k,c(d.headers[k]))}),P.headers.forEach(function(k,ge){pr.indexOf(ge)===-1&&O.setRequestHeader(ge,k)})}else P.headers.forEach(function(k,ge){O.setRequestHeader(ge,k)});P.signal&&(P.signal.addEventListener("abort",Fe),O.onreadystatechange=function(){O.readyState===4&&P.signal.removeEventListener("abort",Fe)}),O.send(typeof P._bodyInit>"u"?null:P._bodyInit)})}return Oe.polyfill=!0,n.fetch||(n.fetch=Oe,n.Headers=h,n.Request=I,n.Response=H),r.Headers=h,r.Request=I,r.Response=H,r.fetch=Oe,r}({})})(vt);vt.fetch.ponyfill=!0;delete vt.fetch.polyfill;var De=mt.fetch?mt:vt;fe=De.fetch;fe.default=De.fetch;fe.fetch=De.fetch;fe.Headers=De.Headers;fe.Request=De.Request;fe.Response=De.Response;Pn.exports=fe});var Si=E(L());var he=E(Q());var gr=E(Q()),_e=E(L()),yr={colorError:_e.FtCssVariableFactory.external(_e.designSystemVariables.colorError,"Design system"),fontFamily:_e.FtCssVariableFactory.external(_e.designSystemVariables.contentFont,"Design system")},br=gr.css`
3
3
  .topic {
4
4
  font-family: ${yr.fontFamily};
5
5
  overflow-x: auto;
@@ -26,7 +26,7 @@
26
26
  ft-skeleton {
27
27
  height: 100px;
28
28
  }
29
- `;var Xe=E(W());var Ar=E(L()),Or=E(W());var Sr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Sr||(Sr={}));var xr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(xr||(xr={}));var wi=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Pt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ct=Symbol("registerInterval");function Ri(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Ct]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ct]):this.dispatchEvent(new Pt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ct,wi([(0,Or.state)()],r.prototype,"stateManager",void 0),r}var Ye=class extends Ri(Ar.FtLitElementRedux){};var Lt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Dt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Nt=Symbol("registerInterval");function Ci(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[Nt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Nt]):this.dispatchEvent(new Dt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Nt,Lt([(0,Xe.state)()],r.prototype,"tocNode",void 0),Lt([(0,Xe.state)()],r.prototype,"disableContextInteractions",void 0),Lt([(0,Xe.state)()],r.prototype,"headingLevelsShift",void 0),r}var Je=class extends Ci(Ye){};var bi=E(Mt()),B=E(L()),me=E(W());var Pr=E(L());var Ie=E(Q()),ae=E(W()),Rr=E(L()),Cr=E(Mt());var Qe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;"})(Qe||(Qe={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var ka=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Ua={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Tr=E(Q()),z=E(L()),te={size:z.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:z.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:z.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:z.FtCssVariableFactory.extend("--ft-icon-material-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:z.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wr=[Tr.css`
29
+ `;var Xe=E(W());var Ar=E(L()),Or=E(W());var Sr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Sr||(Sr={}));var xr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(xr||(xr={}));var Ci=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Lt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Pt=Symbol("registerInterval");function Ri(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Pt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Pt]):this.dispatchEvent(new Lt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Pt,Ci([(0,Or.state)()],r.prototype,"stateManager",void 0),r}var Ye=class extends Ri(Ar.FtLitElementRedux){};var Nt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Mt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Dt=Symbol("registerInterval");function Pi(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[Dt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Dt]):this.dispatchEvent(new Mt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Dt,Nt([(0,Xe.state)()],r.prototype,"tocNode",void 0),Nt([(0,Xe.state)()],r.prototype,"disableContextInteractions",void 0),Nt([(0,Xe.state)()],r.prototype,"headingLevelsShift",void 0),r}var Je=class extends Pi(Ye){};var Ei=E(It()),B=E(L()),me=E(W());var Pr=E(L());var Ie=E(Q()),ae=E(W()),Cr=E(L()),Rr=E(It());var Qe;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;"})(Qe||(Qe={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var Ua=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var ja={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Tr=E(Q()),z=E(L()),te={size:z.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:z.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:z.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:z.FtCssVariableFactory.extend("--ft-icon-material-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:z.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wr=[Tr.css`
30
30
  :host, i.ft-icon {
31
31
  display: inline-flex;
32
32
  align-items: center;
@@ -74,20 +74,20 @@
74
74
  .ft-icon--material {
75
75
  font-family: ${te.materialFontFamily}, "Material Icons", sans-serif;
76
76
  }
77
- `,z.noTextSelect];var ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ie||(ie={}));var ke=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F=class extends Rr.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ie.nothing}render(){let t=this.variant&&Object.values(ie).includes(this.variant)?this.variant:ie.fluid_topics,r=t!==ie.material||!!this.value;return Ie.html`
77
+ `,z.noTextSelect];var ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ie||(ie={}));var ke=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F=class extends Cr.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ie.nothing}render(){let t=this.variant&&Object.values(ie).includes(this.variant)?this.variant:ie.fluid_topics,r=t!==ie.material||!!this.value;return Ie.html`
78
78
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
79
- ${(0,Cr.unsafeHTML)(this.resolvedIcon)}
79
+ ${(0,Rr.unsafeHTML)(this.resolvedIcon)}
80
80
  <slot ?hidden=${r}></slot>
81
81
  </i>
82
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ie.material:this.resolvedIcon=this.value||Ie.nothing;break;default:this.resolvedIcon=(r=Qe[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};F.elementDefinitions={};F.styles=wr;ke([(0,ae.property)()],F.prototype,"variant",void 0);ke([(0,ae.property)()],F.prototype,"value",void 0);ke([(0,ae.property)({reflect:!0,attribute:"aria-hidden"})],F.prototype,"ariaHidden",void 0);ke([(0,ae.state)()],F.prototype,"resolvedIcon",void 0);ke([(0,ae.query)("slot")],F.prototype,"slottedContent",void 0);(0,Pr.customElement)("ft-icon")(F);var gi=E(L());var Ot=E(Q()),_t=E(W()),Tt=E(L());var Lr=E(Q());var Nr=Lr.css`
83
- `;var At=E(L());var ci=E(L());var kr=E(Q()),V=E(W()),Y=E(L());var Dr=E(Q());var Mr=Dr.css`
84
- `;var Ze=E(L()),Pi="ft-app-info",It=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Li={session:(e,t)=>{(0,Ze.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>S.dispatchEvent(new It(t.payload)),0))}},S=Ze.FtReduxStore.get({name:Pi,reducers:Li,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 Z=E(L());var kt=E(L());var be=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=S.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):be.await()}};var se=class extends Ue{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new kt.CacheRegistry,this.cache=t?i.commonCache:new kt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ir,Ni=Symbol("clearAfterUnitTest"),et=class extends se{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ir]=()=>{this.defaultMessages={},this.cache=new Z.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Z.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new Z.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof Z.CanceledPromiseError)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Z.delay)(0).then(()=>r()).catch(()=>null)))}};Ir=Ni;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends et{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends et{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Te=window.FluidTopicsI18nService,tt=window.FluidTopicsCustomI18nService;var U=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},N=class extends Y.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=()=>be.get(),this.messageContexts=[],this.cache=new Y.CacheRegistry,this.cleanSessionDebouncer=new Y.Debouncer}render(){return kr.html`
82
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ie.material:this.resolvedIcon=this.value||Ie.nothing;break;default:this.resolvedIcon=(r=Qe[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};F.elementDefinitions={};F.styles=wr;ke([(0,ae.property)()],F.prototype,"variant",void 0);ke([(0,ae.property)()],F.prototype,"value",void 0);ke([(0,ae.property)({reflect:!0,attribute:"aria-hidden"})],F.prototype,"ariaHidden",void 0);ke([(0,ae.state)()],F.prototype,"resolvedIcon",void 0);ke([(0,ae.query)("slot")],F.prototype,"slottedContent",void 0);(0,Pr.customElement)("ft-icon")(F);var bi=E(L());var _t=E(Q()),Tt=E(W()),wt=E(L());var Lr=E(Q());var Nr=Lr.css`
83
+ `;var Ot=E(L());var di=E(L());var kr=E(Q()),K=E(W()),Y=E(L());var Dr=E(Q());var Mr=Dr.css`
84
+ `;var et=E(L()),Li="ft-app-info",Ze=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ze.eventName="authentication-change";var Ni={session:(e,t)=>{(0,et.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>S.dispatchEvent(new Ze(t.payload)),0))}},S=et.FtReduxStore.get({name:Li,reducers:Ni,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 Z=E(L());var kt=E(L());var be=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=S.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):be.await()}};var se=class extends Ue{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new kt.CacheRegistry,this.cache=t?i.commonCache:new kt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ir,Di=Symbol("clearAfterUnitTest"),tt=class extends se{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ir]=()=>{this.defaultMessages={},this.cache=new Z.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Z.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new Z.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof Z.CanceledPromiseError)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Z.delay)(0).then(()=>r()).catch(()=>null)))}};Ir=Di;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends tt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends tt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Te=window.FluidTopicsI18nService,rt=window.FluidTopicsCustomI18nService;var U=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},N=class extends Y.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=()=>be.get(),this.messageContexts=[],this.cache=new Y.CacheRegistry,this.cleanSessionDebouncer=new Y.Debouncer}render(){return kr.html`
85
85
  <slot></slot>
86
- `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&S.actions.noCustom(this.noCustom),t.has("editorMode")&&S.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&S.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Te.addContext(o)),t.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),S.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};N.elementDefinitions={};N.styles=Mr;U([(0,V.property)()],N.prototype,"baseUrl",void 0);U([(0,V.property)()],N.prototype,"apiIntegrationIdentifier",void 0);U([(0,V.property)()],N.prototype,"uiLocale",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"editorMode",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"noCustom",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);U([(0,V.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],N.prototype,"noCustomComponent",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"withManualResources",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);U([(0,V.property)({type:Object})],N.prototype,"apiProvider",void 0);U([(0,Y.jsonProperty)([])],N.prototype,"messageContexts",void 0);U([(0,Y.jsonProperty)(void 0)],N.prototype,"session",void 0);U([(0,V.state)()],N.prototype,"localesConfiguration",void 0);var ba=E(W());function Di(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!rt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!rt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(o=>s[o]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!rt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function rt(e,t){try{return Di(e,t)}catch{return!1}}function nt(e,t){return!rt(e,t)}var Mi=E(W(),1);var it=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var we=E(W(),1);var Ur=E(W(),1);function jr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ur.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:nt,...t??{}})}var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(o){i(o);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hr=E(Q(),1);var st=globalThis,Ii=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,As=Symbol();var Br=(e,t)=>{if(Ii)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=st.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var ot=class extends Hr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};function Vr(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var je=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},qr,Kr=Symbol("constructorPrototype"),Gr=Symbol("constructorName"),$r=Symbol("exportpartsDebouncer"),Wr=Symbol("dynamicDependenciesLoaded"),re=class extends ot{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qr]=new at(5),this[Gr]=this.constructor.name,this[Kr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gr]&&Object.setPrototypeOf(this,this[Kr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Wr]||(t[Wr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Vr(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$r].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,o;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(o=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(y=>y.split(":")[1]))!==null&&o!==void 0?o:[];new Array(...g,...v).filter(l).map(y=>y.trim()).forEach(y=>f.add(y))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};qr=$r;je([(0,we.property)()],re.prototype,"exportpartsPrefix",void 0);je([jr([])],re.prototype,"exportpartsPrefixes",void 0);je([(0,we.property)()],re.prototype,"customStylesheet",void 0);je([(0,we.property)()],re.prototype,"elementToFocus",void 0);je([(0,we.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Be(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var zr,Fr,Yr,He=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),Ee=Symbol("internalStores"),Ve=class extends re{constructor(){super(...arguments),this[zr]=new Map,this[Fr]=new Map,this[Yr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ee].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ee].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ee].get(t)}addStore(t,r){var n;r=(n=r??(Be(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ee].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ee].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ee].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[oe].set(t,r.subscribe(()=>this.updateFromStores())),this[He].set(t,[]),Be(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=o=>this[a](o);r.addEventListener(i.eventName,s),this[He].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(r=this[He].get(t))===null||r===void 0||r.forEach(n=>n()),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zr=oe,Fr=Ee,Yr=He;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ne(e){return!!e&&!!e[C]}function X(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Gi}(e)||Array.isArray(e)||!!e[rn]||!!(!((t=e.constructor)===null||t===void 0)&&t[rn])||qt(e)||$t(e))}function Se(e,t,r){r===void 0&&(r=!1),Pe(e)===0?(r?Object.keys:Ce)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Pe(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:qt(e)?2:$t(e)?3:0}function Re(e,t){return Pe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ki(e,t){return Pe(e)===2?e.get(t):e[t]}function nn(e,t,r){var n=Pe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function an(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function qt(e){return Vi&&e instanceof Map}function $t(e){return Ki&&e instanceof Set}function ue(e){return e.o||e.t}function zt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=un(e);delete t[C];for(var r=Ce(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ft(e,t){return t===void 0&&(t=!1),Yt(e)||ne(e)||!X(e)||(Pe(e)>1&&(e.set=e.add=e.clear=e.delete=Ui),Object.freeze(e),t&&Se(e,function(r,n){return Ft(n,!0)},!0)),e}function Ui(){q(2)}function Yt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ee(e){var t=Wt[e];return t||q(18,e),t}function ji(e,t){Wt[e]||(Wt[e]=t)}function Vt(){return Ge}function Ut(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function ut(e){Kt(e),e.p.forEach(Bi),e.p=null}function Kt(e){e===Ge&&(Ge=e.l)}function Xr(e){return Ge={p:[],l:Ge,h:e,m:!0,_:0}}function Bi(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function jt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ee("ES5").S(t,e,n),n?(r[C].P&&(ut(t),q(4)),X(e)&&(e=lt(t,e),t.l||ct(t,e)),t.u&&ee("Patches").M(r[C].t,e,t.u,t.s)):e=lt(t,r,[]),ut(t),t.u&&t.v(t.u,t.s),e!==on?e:void 0}function lt(e,t,r){if(Yt(t))return t;var n=t[C];if(!n)return Se(t,function(o,l){return Jr(e,n,t,o,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ct(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Se(a,function(o,l){return Jr(e,n,i,o,l,r,s)}),ct(e,i,!1),r&&e.u&&ee("Patches").N(n,r,e.u,e.s)}return n.o}function Jr(e,t,r,n,i,a,s){if(ne(i)){var o=lt(e,i,a&&t&&t.i!==3&&!Re(t.R,n)?a.concat(n):void 0);if(nn(r,n,o),!ne(o))return;e.m=!1}else s&&r.add(i);if(X(i)&&!Yt(i)){if(!e.h.D&&e._<1)return;lt(e,i),t&&t.A.l||ct(e,i)}}function ct(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ft(t,r)}function Bt(e,t){var r=e[C];return(r?ue(r):e)[t]}function Qr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function le(e){e.P||(e.P=!0,e.l&&le(e.l))}function Ht(e){e.o||(e.o=zt(e.t))}function Gt(e,t,r){var n=qt(t)?ee("MapSet").F(t,r):$t(t)?ee("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),o={i:s?1:0,A:a?a.A:Vt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=o,c=We;s&&(l=[o],c=Ke);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return o.k=p,o.j=h,p}(t,r):ee("ES5").J(t,r);return(r?r.A:Vt()).p.push(n),n}function Hi(e){return ne(e)||q(22,e),function t(r){if(!X(r))return r;var n,i=r[C],a=Pe(r);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Zr(r,a),i.I=!1}else n=Zr(r,a);return Se(n,function(s,o){i&&ki(i.t,s)===o||nn(n,s,t(o))}),a===3?new Set(n):n}(e)}function Zr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zt(e)}function sn(){function e(s,o){var l=a[s];return l?l.enumerable=o:a[s]=l={configurable:!0,enumerable:o,get:function(){var c=this[C];return We.get(c,s)},set:function(c){var f=this[C];We.set(f,s,c)}},l}function t(s){for(var o=s.length-1;o>=0;o--){var l=s[o][C];if(!l.P)switch(l.i){case 5:n(l)&&le(l);break;case 4:r(l)&&le(l)}}}function r(s){for(var o=s.t,l=s.k,c=Ce(l),f=c.length-1;f>=0;f--){var h=c[f];if(h!==C){var p=o[h];if(p===void 0&&!Re(o,h))return!0;var g=l[h],v=g&&g[C];if(v?v.t!==p:!an(g,p))return!0}}var y=!!o[C];return c.length!==Ce(o).length+(y?0:1)}function n(s){var o=s.k;if(o.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(o,o.length-1);if(l&&!l.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&q(3,JSON.stringify(ue(s)))}var a={};ji("ES5",{J:function(s,o){var l=Array.isArray(s),c=function(h,p){if(h){for(var g=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(g,""+v,e(v,!0));return g}var y=un(p);delete y[C];for(var _=Ce(y),x=0;x<_.length;x++){var A=_[x];y[A]=e(A,h||!!y[A].enumerable)}return Object.create(Object.getPrototypeOf(p),y)}(l,s),f={i:l?5:4,A:o?o.A:Vt(),P:!1,I:!1,R:{},l:o,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:f,writable:!0}),c},S:function(s,o,l){l?ne(o)&&o[C].A===s&&t(s.p):(s.u&&function c(f){if(f&&typeof f=="object"){var h=f[C];if(h){var p=h.t,g=h.k,v=h.R,y=h.i;if(y===4)Se(g,function(T){T!==C&&(p[T]!==void 0||Re(p,T)?v[T]||c(g[T]):(v[T]=!0,le(h)))}),Se(p,function(T){g[T]!==void 0||Re(g,T)||(v[T]=!1,le(h))});else if(y===5){if(n(h)&&(le(h),v.length=!0),g.length<p.length)for(var _=g.length;_<p.length;_++)v[_]=!1;else for(var x=p.length;x<g.length;x++)v[x]=!0;for(var A=Math.min(g.length,p.length),R=0;R<A;R++)g.hasOwnProperty(R)||(v[R]=!0),v[R]===void 0&&c(g[R])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var en,Ge,Xt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Vi=typeof Map<"u",Ki=typeof Set<"u",tn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",on=Xt?Symbol.for("immer-nothing"):((en={})["immer-nothing"]=!0,en),rn=Xt?Symbol.for("immer-draftable"):"__$immer_draftable",C=Xt?Symbol.for("immer-state"):"__$immer_state";var Gi=""+Object.prototype.constructor,Ce=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,un=Object.getOwnPropertyDescriptors||function(e){var t={};return Ce(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Wt={},We={get:function(e,t){if(t===C)return e;var r=ue(e);if(!Re(r,t))return function(i,a,s){var o,l=Qr(a,s);return l?"value"in l?l.value:(o=l.get)===null||o===void 0?void 0:o.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!X(n)?n:n===Bt(e.t,t)?(Ht(e),e.o[t]=Gt(e.A.h,n,e)):n},has:function(e,t){return t in ue(e)},ownKeys:function(e){return Reflect.ownKeys(ue(e))},set:function(e,t,r){var n=Qr(ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Bt(ue(e),t),a=i?.[C];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(an(r,i)&&(r!==void 0||Re(e.t,t)))return!0;Ht(e),le(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ht(e),le(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){q(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){q(12)}},Ke={};Se(We,function(e,t){Ke[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ke.deleteProperty=function(e,t){return Ke.set.call(this,e,t,void 0)},Ke.set=function(e,t,r){return We.set.call(this,e[0],t,r,e[0])};var Wi=function(){function e(r){var n=this;this.O=tn,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var o=a;a=i;var l=n;return function(y){var _=this;y===void 0&&(y=o);for(var x=arguments.length,A=Array(x>1?x-1:0),R=1;R<x;R++)A[R-1]=arguments[R];return l.produce(y,function(T){var I;return(I=a).call.apply(I,[_,T].concat(A))})}}var c;if(typeof a!="function"&&q(6),s!==void 0&&typeof s!="function"&&q(7),X(i)){var f=Xr(n),h=Gt(n,i,void 0),p=!0;try{c=a(h),p=!1}finally{p?ut(f):Kt(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return Ut(f,s),jt(y,f)},function(y){throw ut(f),y}):(Ut(f,s),jt(c,f))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===on&&(c=void 0),n.D&&Ft(c,!0),s){var g=[],v=[];ee("Patches").M(i,c,g,v),s(g,v)}return c}q(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return n.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(h))})};var s,o,l=n.produce(i,a,function(c,f){s=c,o=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,o]}):[l,s,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){X(r)||q(8),ne(r)&&(r=Hi(r));var n=Xr(this),i=Gt(this,r,void 0);return i[C].C=!0,Kt(n),i},t.finishDraft=function(r,n){var i=r&&r[C],a=i.A;return Ut(a,n),jt(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!tn&&q(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ee("Patches").$;return ne(r)?s(r,n):this.produce(r,function(o){return s(o,n)})},e}(),K=new Wi,qi=K.produce,Us=K.produceWithPatches.bind(K),js=K.setAutoFreeze.bind(K),Bs=K.setUseProxies.bind(K),Hs=K.applyPatches.bind(K),Vs=K.createDraft.bind(K),Ks=K.finishDraft.bind(K),dt=qi;function xe(e){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xe(e)}function ln(e,t){if(xe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cn(e){var t=ln(e,"string");return xe(t)=="symbol"?t:t+""}function dn(e,t,r){return(t=cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fn(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var pn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ft={INIT:"@@redux/INIT"+Qt(),REPLACE:"@@redux/REPLACE"+Qt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qt()}};function $i(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Zt)(e,t)}if(typeof e!="function")throw new Error(j(2));var i=e,a=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function f(){if(l)throw new Error(j(3));return a}function h(y){if(typeof y!="function")throw new Error(j(4));if(l)throw new Error(j(5));var _=!0;return c(),o.push(y),function(){if(_){if(l)throw new Error(j(6));_=!1,c();var A=o.indexOf(y);o.splice(A,1),s=null}}}function p(y){if(!$i(y))throw new Error(j(7));if(typeof y.type>"u")throw new Error(j(8));if(l)throw new Error(j(9));try{l=!0,a=i(a,y)}finally{l=!1}for(var _=s=o,x=0;x<_.length;x++){var A=_[x];A()}return y}function g(y){if(typeof y!="function")throw new Error(j(10));i=y,p({type:ft.REPLACE})}function v(){var y,_=h;return y={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(j(11));function R(){A.next&&A.next(f())}R();var T=_(R);return{unsubscribe:T}}},y[pn]=function(){return this},y}return p({type:ft.INIT}),n={dispatch:p,subscribe:h,getState:f,replaceReducer:g},n[pn]=v,n}function zi(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ft.INIT});if(typeof n>"u")throw new Error(j(12));if(typeof r(void 0,{type:ft.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function hn(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,o;try{zi(r)}catch(l){o=l}return function(c,f){if(c===void 0&&(c={}),o)throw o;if(0)var h;for(var p=!1,g={},v=0;v<a.length;v++){var y=a[v],_=r[y],x=c[y],A=_(x,f);if(typeof A>"u"){var R=f&&f.type;throw new Error(j(14))}g[y]=A,p=p||A!==x}return p=p||a.length!==Object.keys(c).length,p?g:c}}function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(j(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map(function(l){return l(s)});return a=Le.apply(void 0,o)(i.dispatch),Jt(Jt({},i),{},{dispatch:a})}}}function vn(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(o){return typeof o=="function"?o(i,a,e):s(o)}}};return t}var yn=vn();yn.withExtraArgument=vn;var er=yn;var xn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fi=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(f){c=[6,f],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ne=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Yi=Object.defineProperty,Xi=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable,bn=function(e,t,r){return t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ce=function(e,t){for(var r in t||(t={}))Qi.call(t,r)&&bn(e,r,t[r]);if(gn)for(var n=0,i=gn(t);n<i.length;n++){var r=i[n];Zi.call(t,r)&&bn(e,r,t[r])}return e},tr=function(e,t){return Xi(e,Ji(t))},ea=function(e,t,r){return new Promise(function(n,i){var a=function(l){try{o(r.next(l))}catch(c){i(c)}},s=function(l){try{o(r.throw(l))}catch(c){i(c)}},o=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};o((r=r.apply(e,t)).next())})};var ta=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},so=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ra(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var na=function(e){xn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array),ia=function(e){xn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array);function ir(e){return X(e)?dt(e,function(){}):e}function aa(e){return typeof e=="boolean"}function sa(){return function(t){return oa(t)}}function oa(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,o=new na;if(r&&(aa(r)?o.push(er):o.push(er.withExtraArgument(r.extraArgument))),0){if(i)var l;if(s)var c}return o}var rr=!0;function An(e){var t=sa(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,o=r.devTools,l=o===void 0?!0:o,c=r.preloadedState,f=c===void 0?void 0:c,h=r.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(ra(i))g=hn(i);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=s;if(typeof v=="function"&&(v=v(t),!rr&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rr&&v.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mn.apply(void 0,v),_=Le;l&&(_=ta(ce({trace:!rr},typeof l=="object"&&l)));var x=new ia(y),A=x;Array.isArray(p)?A=Ne([y],p):typeof p=="function"&&(A=p(x));var R=_.apply(void 0,A);return Zt(g,f,R)}function de(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ce(ce({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function On(e){var t={},r=[],n,i={addCase:function(a,s){var o=typeof a=="string"?a:a.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function ua(e){return typeof e=="function"}function la(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?On(t):[t,r,n],a=i[0],s=i[1],o=i[2],l;if(ua(e))l=function(){return ir(e())};else{var c=ir(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var g=Ne([a[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[o]),g.reduce(function(v,y){if(y)if(ne(v)){var _=v,x=y(_,p);return x===void 0?v:x}else{if(X(v))return dt(v,function(A){return y(A,p)});var x=y(v,p);if(x===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return v},h)}return f.getInitialState=l,f}function ca(e,t){return e+"/"+t}function _n(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ir(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},o={};i.forEach(function(f){var h=n[f],p=ca(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,a[f]=g,s[p]=g,o[f]=v?de(p,v):de(p)});function l(){var f=typeof e.extraReducers=="function"?On(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],_=y===void 0?void 0:y,x=ce(ce({},p),s);return la(r,function(A){for(var R in x)A.addCase(R,x[R]);for(var T=0,I=v;T<I.length;T++){var $=I[T];A.addMatcher($.matcher,$.reducer)}_&&A.addDefaultCase(_)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:o,caseReducers:a,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var da="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fa=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=da[Math.random()*64|0];return t},pa=["name","message","stack","code"],nr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),En=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ha=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=pa;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},co=function(){function e(t,r,n){var i=de(t+"/fulfilled",function(f,h,p,g){return{payload:f,meta:tr(ce({},g||{}),{arg:p,requestId:h,requestStatus:"fulfilled"})}}),a=de(t+"/pending",function(f,h,p){return{payload:void 0,meta:tr(ce({},p||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=de(t+"/rejected",function(f,h,p,g,v){return{payload:g,error:(n&&n.serializeError||ha)(f||"Rejected"),meta:tr(ce({},v||{}),{arg:p,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),o=!1,l=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function c(f){return function(h,p,g){var v=n?.idGenerator?n.idGenerator(f):fa(),y=new l,_,x=!1;function A(T){_=T,y.abort()}var R=function(){return ea(this,null,function(){var T,I,$,ve,H,ye,Oe;return Fi(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),ve=(T=n?.condition)==null?void 0:T.call(n,f,{getState:p,extra:g}),va(ve)?[4,ve]:[3,2];case 1:ve=u.sent(),u.label=2;case 2:if(ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,H=new Promise(function(d,b){return y.signal.addEventListener("abort",function(){return b({name:"AbortError",message:_||"Aborted"})})}),h(a(v,f,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:v,arg:f},{getState:p,extra:g}))),[4,Promise.race([H,Promise.resolve(r(f,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:A,rejectWithValue:function(d,b){return new nr(d,b)},fulfillWithValue:function(d,b){return new En(d,b)}})).then(function(d){if(d instanceof nr)throw d;return d instanceof En?i(d.payload,v,f,d.meta):i(d,v,f)})])];case 3:return $=u.sent(),[3,5];case 4:return ye=u.sent(),$=ye instanceof nr?s(null,v,f,ye.payload,ye.meta):s(ye,v,f),[3,5];case 5:return Oe=n&&!n.dispatchConditionRejection&&s.match($)&&$.meta.condition,Oe||h($),[2,$]}})})}();return Object.assign(R,{abort:A,requestId:v,arg:f,unwrap:function(){return R.then(ma)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ma(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function va(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn="listener",wn="completed",Rn="cancelled",fo="task-"+Rn,po="task-"+wn,ho=Tn+"-"+Rn,mo=Tn+"-"+wn;var ar="listenerMiddleware";var vo=de(ar+"/add"),yo=de(ar+"/removeAll"),go=de(ar+"/remove");var Sn,bo=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Sn||(Sn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ya=function(e){return function(t){setTimeout(t,e)}},Eo=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ya(10);sn();function ga(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var pt=class extends ga(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cn=class e extends pt{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Be(a))return a;if(i==null)return;let s=_n({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=An({reducer:(l,c)=>c.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...c.overwrites}:s.reducer(l,c)});return window.ftReduxStores[i.name]=new e(s,o,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new it;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,o)=>{let l=s,c=a[l];return c?(...f)=>{let h=c(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[l]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var bt=E(L());var Sa=E(Ln(),1);var Nn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Nn||(Nn={}));var Dn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Dn||(Dn={}));var Mn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Mn||(Mn={}));var In;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(In||(In={}));var kn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(kn||(kn={}));var Un;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Un||(Un={}));var jn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(jn||(jn={}));var Bn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Bn||(Bn={}));var Hn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Hn||(Hn={}));var Vn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Vn||(Vn={}));var Kn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Kn||(Kn={}));var Gn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gn||(Gn={}));var Wn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Wn||(Wn={}));var qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(qn||(qn={}));var $n;(function(e){e.ASC="ASC",e.DESC="DESC"})($n||($n={}));var zn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(zn||(zn={}));var Fn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Fn||(Fn={}));var Yn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Yn||(Yn={}));var Xn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Xn||(Xn={}));var Jn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Jn||(Jn={}));var Qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qn||(Qn={}));var Zn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Zn||(Zn={}));var ei;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ei||(ei={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ti;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ti||(ti={}));var ri;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ri||(ri={}));var ni;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ni||(ni={}));var Ea={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function ii(e,t){return e===t||(Ea[e]??[]).some(r=>ii(r,t))}function ai(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ii(n,t))}var vt=class extends se{async listMySearches(){let{session:t}=S.getState();return ai(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var yt=class extends se{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var xa="ft-user-assets",gt=bt.FtReduxStore.get({name:xa,initialState:{savedSearches:void 0,bookmarks:void 0}}),sr=class{constructor(){this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yt,this.savedSearchesService=new vt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=S.getState();(0,bt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();gt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gt.actions.bookmarks(r)}}},vu=new sr;var or=class{addCommand(t,r=!1){S.commands.add(t,r)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new or;var si=E(L()),ur=class{highlightHtml(t,r,n){(0,si.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ur;var oi=E(L());var lr=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return oi.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new lr;var ui=E(L());var qe=class{static get(t,r){var n,i,a,s;let o=S.getState(),{lang:l,region:c}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new ui.SearchPlaceConverter(o.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,o.searchInAllLanguagesAllowed,r??`${l}-${c}`)}};var cr=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new cr;var pe=E(L());var Ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ae.eventName="change";var dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},li=new dr;var Et=class e extends pe.WithEventBus{static build(){return new e(window.history,li,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ae(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,o])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...a,index:l,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,s,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ae.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ae.eventName,t)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,a=t+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Et.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,ci.customElement)("ft-app-context")(N);var mi=E(W());var Aa=E(L());function di(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Oa=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},fi=Symbol("i18nAttributes"),pi=Symbol("i18nListAttributes"),vi=Symbol("i18nProperties"),St=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs");function yi(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?tt:Te}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let o=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...o)}customI18n(a,s){if(di(a)){let[o,l]=a.split(".");return this.i18n({custom:!0,context:o,key:l,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,o,l)=>a.has(o)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,o,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,o;let l=this,c=(f,h,p)=>p?.context&&p.key&&a(f,h,p)?{...p,message:this.i18n({context:p.context,key:p.key,...f})}:p;(s=this[fi])===null||s===void 0||s.forEach((f,h)=>l[h]=c(f,h,l[h])),(o=this[pi])===null||o===void 0||o.forEach((f,h)=>{var p;return l[h]=(p=l[h])===null||p===void 0?void 0:p.map(g=>c(f,h,g))})}updateI18nProperties(a){var s;(s=this[vi])===null||s===void 0||s.forEach((o,l)=>{a(o,l)&&(this[l]=this.i18n(o))})}addI18nMessages(a,s,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,o)}addI18nContext(a,s,o){let l=(typeof a=="string"?a:a.name).toLowerCase();o=typeof a=="string"?o:a.custom,this[St].set(l,{isCustomContext:o}),this[$e].has(l)||this[$e].set(l,this.getI18nService(o).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(o).prepareContext(l,s)}hasI18nContext(a){return this[St].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[St].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(a=>a()),this[$e].clear()}}return t=St,r=$e,Oa([(0,mi.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var hi=class extends yi(At.FtLitElement){},xt=class extends yi(At.FtLitElementRedux){};var ze=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},J=class extends xt{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ot.nothing:Ot.html`
86
+ `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&S.actions.noCustom(this.noCustom),t.has("editorMode")&&S.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&S.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Te.addContext(o)),t.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),S.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};N.elementDefinitions={};N.styles=Mr;U([(0,K.property)()],N.prototype,"baseUrl",void 0);U([(0,K.property)()],N.prototype,"apiIntegrationIdentifier",void 0);U([(0,K.property)()],N.prototype,"uiLocale",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"editorMode",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"noCustom",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);U([(0,K.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],N.prototype,"noCustomComponent",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"withManualResources",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);U([(0,K.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);U([(0,K.property)({type:Object})],N.prototype,"apiProvider",void 0);U([(0,Y.jsonProperty)([])],N.prototype,"messageContexts",void 0);U([(0,Y.jsonProperty)(void 0)],N.prototype,"session",void 0);U([(0,K.state)()],N.prototype,"localesConfiguration",void 0);var Ea=E(W());function Mi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!nt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!nt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(o=>s[o]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!nt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function nt(e,t){try{return Mi(e,t)}catch{return!1}}function it(e,t){return!nt(e,t)}var Ii=E(W(),1);var at=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var we=E(W(),1);var Ur=E(W(),1);function jr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ur.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:it,...t??{}})}var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(o){i(o);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hr=E(Q(),1);var ot=globalThis,ki=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Os=Symbol();var Br=(e,t)=>{if(ki)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=ot.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var ut=class extends Hr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};function Kr(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var je=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},qr,Vr=Symbol("constructorPrototype"),Gr=Symbol("constructorName"),$r=Symbol("exportpartsDebouncer"),Wr=Symbol("dynamicDependenciesLoaded"),re=class extends ut{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qr]=new st(5),this[Gr]=this.constructor.name,this[Vr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gr]&&Object.setPrototypeOf(this,this[Vr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Wr]||(t[Wr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Kr(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$r].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,o;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(o=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(y=>y.split(":")[1]))!==null&&o!==void 0?o:[];new Array(...g,...v).filter(l).map(y=>y.trim()).forEach(y=>f.add(y))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};qr=$r;je([(0,we.property)()],re.prototype,"exportpartsPrefix",void 0);je([jr([])],re.prototype,"exportpartsPrefixes",void 0);je([(0,we.property)()],re.prototype,"customStylesheet",void 0);je([(0,we.property)()],re.prototype,"elementToFocus",void 0);je([(0,we.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Be(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var zr,Fr,Yr,He=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),Ee=Symbol("internalStores"),Ke=class extends re{constructor(){super(...arguments),this[zr]=new Map,this[Fr]=new Map,this[Yr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ee].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ee].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ee].get(t)}addStore(t,r){var n;r=(n=r??(Be(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ee].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ee].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ee].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[oe].set(t,r.subscribe(()=>this.updateFromStores())),this[He].set(t,[]),Be(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=o=>this[a](o);r.addEventListener(i.eventName,s),this[He].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(r=this[He].get(t))===null||r===void 0||r.forEach(n=>n()),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zr=oe,Fr=Ee,Yr=He;Ke.reduxProperties=new Map;Ke.reduxReactiveProperties=new Set;Ke.reduxEventListeners=new Map;function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ne(e){return!!e&&!!e[R]}function X(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Wi}(e)||Array.isArray(e)||!!e[rn]||!!(!((t=e.constructor)===null||t===void 0)&&t[rn])||qt(e)||$t(e))}function Se(e,t,r){r===void 0&&(r=!1),Pe(e)===0?(r?Object.keys:Re)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Pe(e){var t=e[R];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:qt(e)?2:$t(e)?3:0}function Ce(e,t){return Pe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ui(e,t){return Pe(e)===2?e.get(t):e[t]}function nn(e,t,r){var n=Pe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function an(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function qt(e){return Vi&&e instanceof Map}function $t(e){return Gi&&e instanceof Set}function ue(e){return e.o||e.t}function zt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=un(e);delete t[R];for(var r=Re(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ft(e,t){return t===void 0&&(t=!1),Yt(e)||ne(e)||!X(e)||(Pe(e)>1&&(e.set=e.add=e.clear=e.delete=ji),Object.freeze(e),t&&Se(e,function(r,n){return Ft(n,!0)},!0)),e}function ji(){q(2)}function Yt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ee(e){var t=Wt[e];return t||q(18,e),t}function Bi(e,t){Wt[e]||(Wt[e]=t)}function Kt(){return Ge}function Ut(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function lt(e){Vt(e),e.p.forEach(Hi),e.p=null}function Vt(e){e===Ge&&(Ge=e.l)}function Xr(e){return Ge={p:[],l:Ge,h:e,m:!0,_:0}}function Hi(e){var t=e[R];t.i===0||t.i===1?t.j():t.g=!0}function jt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ee("ES5").S(t,e,n),n?(r[R].P&&(lt(t),q(4)),X(e)&&(e=ct(t,e),t.l||dt(t,e)),t.u&&ee("Patches").M(r[R].t,e,t.u,t.s)):e=ct(t,r,[]),lt(t),t.u&&t.v(t.u,t.s),e!==on?e:void 0}function ct(e,t,r){if(Yt(t))return t;var n=t[R];if(!n)return Se(t,function(o,l){return Jr(e,n,t,o,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return dt(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Se(a,function(o,l){return Jr(e,n,i,o,l,r,s)}),dt(e,i,!1),r&&e.u&&ee("Patches").N(n,r,e.u,e.s)}return n.o}function Jr(e,t,r,n,i,a,s){if(ne(i)){var o=ct(e,i,a&&t&&t.i!==3&&!Ce(t.R,n)?a.concat(n):void 0);if(nn(r,n,o),!ne(o))return;e.m=!1}else s&&r.add(i);if(X(i)&&!Yt(i)){if(!e.h.D&&e._<1)return;ct(e,i),t&&t.A.l||dt(e,i)}}function dt(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ft(t,r)}function Bt(e,t){var r=e[R];return(r?ue(r):e)[t]}function Qr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function le(e){e.P||(e.P=!0,e.l&&le(e.l))}function Ht(e){e.o||(e.o=zt(e.t))}function Gt(e,t,r){var n=qt(t)?ee("MapSet").F(t,r):$t(t)?ee("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),o={i:s?1:0,A:a?a.A:Kt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=o,c=We;s&&(l=[o],c=Ve);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return o.k=p,o.j=h,p}(t,r):ee("ES5").J(t,r);return(r?r.A:Kt()).p.push(n),n}function Ki(e){return ne(e)||q(22,e),function t(r){if(!X(r))return r;var n,i=r[R],a=Pe(r);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Zr(r,a),i.I=!1}else n=Zr(r,a);return Se(n,function(s,o){i&&Ui(i.t,s)===o||nn(n,s,t(o))}),a===3?new Set(n):n}(e)}function Zr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zt(e)}function sn(){function e(s,o){var l=a[s];return l?l.enumerable=o:a[s]=l={configurable:!0,enumerable:o,get:function(){var c=this[R];return We.get(c,s)},set:function(c){var f=this[R];We.set(f,s,c)}},l}function t(s){for(var o=s.length-1;o>=0;o--){var l=s[o][R];if(!l.P)switch(l.i){case 5:n(l)&&le(l);break;case 4:r(l)&&le(l)}}}function r(s){for(var o=s.t,l=s.k,c=Re(l),f=c.length-1;f>=0;f--){var h=c[f];if(h!==R){var p=o[h];if(p===void 0&&!Ce(o,h))return!0;var g=l[h],v=g&&g[R];if(v?v.t!==p:!an(g,p))return!0}}var y=!!o[R];return c.length!==Re(o).length+(y?0:1)}function n(s){var o=s.k;if(o.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(o,o.length-1);if(l&&!l.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&q(3,JSON.stringify(ue(s)))}var a={};Bi("ES5",{J:function(s,o){var l=Array.isArray(s),c=function(h,p){if(h){for(var g=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(g,""+v,e(v,!0));return g}var y=un(p);delete y[R];for(var _=Re(y),x=0;x<_.length;x++){var A=_[x];y[A]=e(A,h||!!y[A].enumerable)}return Object.create(Object.getPrototypeOf(p),y)}(l,s),f={i:l?5:4,A:o?o.A:Kt(),P:!1,I:!1,R:{},l:o,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,R,{value:f,writable:!0}),c},S:function(s,o,l){l?ne(o)&&o[R].A===s&&t(s.p):(s.u&&function c(f){if(f&&typeof f=="object"){var h=f[R];if(h){var p=h.t,g=h.k,v=h.R,y=h.i;if(y===4)Se(g,function(T){T!==R&&(p[T]!==void 0||Ce(p,T)?v[T]||c(g[T]):(v[T]=!0,le(h)))}),Se(p,function(T){g[T]!==void 0||Ce(g,T)||(v[T]=!1,le(h))});else if(y===5){if(n(h)&&(le(h),v.length=!0),g.length<p.length)for(var _=g.length;_<p.length;_++)v[_]=!1;else for(var x=p.length;x<g.length;x++)v[x]=!0;for(var A=Math.min(g.length,p.length),C=0;C<A;C++)g.hasOwnProperty(C)||(v[C]=!0),v[C]===void 0&&c(g[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var en,Ge,Xt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Vi=typeof Map<"u",Gi=typeof Set<"u",tn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",on=Xt?Symbol.for("immer-nothing"):((en={})["immer-nothing"]=!0,en),rn=Xt?Symbol.for("immer-draftable"):"__$immer_draftable",R=Xt?Symbol.for("immer-state"):"__$immer_state";var Wi=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,un=Object.getOwnPropertyDescriptors||function(e){var t={};return Re(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Wt={},We={get:function(e,t){if(t===R)return e;var r=ue(e);if(!Ce(r,t))return function(i,a,s){var o,l=Qr(a,s);return l?"value"in l?l.value:(o=l.get)===null||o===void 0?void 0:o.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!X(n)?n:n===Bt(e.t,t)?(Ht(e),e.o[t]=Gt(e.A.h,n,e)):n},has:function(e,t){return t in ue(e)},ownKeys:function(e){return Reflect.ownKeys(ue(e))},set:function(e,t,r){var n=Qr(ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Bt(ue(e),t),a=i?.[R];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(an(r,i)&&(r!==void 0||Ce(e.t,t)))return!0;Ht(e),le(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ht(e),le(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){q(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){q(12)}},Ve={};Se(We,function(e,t){Ve[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ve.deleteProperty=function(e,t){return Ve.set.call(this,e,t,void 0)},Ve.set=function(e,t,r){return We.set.call(this,e[0],t,r,e[0])};var qi=function(){function e(r){var n=this;this.O=tn,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var o=a;a=i;var l=n;return function(y){var _=this;y===void 0&&(y=o);for(var x=arguments.length,A=Array(x>1?x-1:0),C=1;C<x;C++)A[C-1]=arguments[C];return l.produce(y,function(T){var I;return(I=a).call.apply(I,[_,T].concat(A))})}}var c;if(typeof a!="function"&&q(6),s!==void 0&&typeof s!="function"&&q(7),X(i)){var f=Xr(n),h=Gt(n,i,void 0),p=!0;try{c=a(h),p=!1}finally{p?lt(f):Vt(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return Ut(f,s),jt(y,f)},function(y){throw lt(f),y}):(Ut(f,s),jt(c,f))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===on&&(c=void 0),n.D&&Ft(c,!0),s){var g=[],v=[];ee("Patches").M(i,c,g,v),s(g,v)}return c}q(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return n.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(h))})};var s,o,l=n.produce(i,a,function(c,f){s=c,o=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,o]}):[l,s,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){X(r)||q(8),ne(r)&&(r=Ki(r));var n=Xr(this),i=Gt(this,r,void 0);return i[R].C=!0,Vt(n),i},t.finishDraft=function(r,n){var i=r&&r[R],a=i.A;return Ut(a,n),jt(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!tn&&q(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ee("Patches").$;return ne(r)?s(r,n):this.produce(r,function(o){return s(o,n)})},e}(),V=new qi,$i=V.produce,js=V.produceWithPatches.bind(V),Bs=V.setAutoFreeze.bind(V),Hs=V.setUseProxies.bind(V),Ks=V.applyPatches.bind(V),Vs=V.createDraft.bind(V),Gs=V.finishDraft.bind(V),ft=$i;function xe(e){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xe(e)}function ln(e,t){if(xe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cn(e){var t=ln(e,"string");return xe(t)=="symbol"?t:t+""}function dn(e,t,r){return(t=cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fn(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var pn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qt=function(){return Math.random().toString(36).substring(7).split("").join(".")},pt={INIT:"@@redux/INIT"+Qt(),REPLACE:"@@redux/REPLACE"+Qt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qt()}};function zi(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Zt)(e,t)}if(typeof e!="function")throw new Error(j(2));var i=e,a=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function f(){if(l)throw new Error(j(3));return a}function h(y){if(typeof y!="function")throw new Error(j(4));if(l)throw new Error(j(5));var _=!0;return c(),o.push(y),function(){if(_){if(l)throw new Error(j(6));_=!1,c();var A=o.indexOf(y);o.splice(A,1),s=null}}}function p(y){if(!zi(y))throw new Error(j(7));if(typeof y.type>"u")throw new Error(j(8));if(l)throw new Error(j(9));try{l=!0,a=i(a,y)}finally{l=!1}for(var _=s=o,x=0;x<_.length;x++){var A=_[x];A()}return y}function g(y){if(typeof y!="function")throw new Error(j(10));i=y,p({type:pt.REPLACE})}function v(){var y,_=h;return y={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(j(11));function C(){A.next&&A.next(f())}C();var T=_(C);return{unsubscribe:T}}},y[pn]=function(){return this},y}return p({type:pt.INIT}),n={dispatch:p,subscribe:h,getState:f,replaceReducer:g},n[pn]=v,n}function Fi(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:pt.INIT});if(typeof n>"u")throw new Error(j(12));if(typeof r(void 0,{type:pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function hn(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,o;try{Fi(r)}catch(l){o=l}return function(c,f){if(c===void 0&&(c={}),o)throw o;if(0)var h;for(var p=!1,g={},v=0;v<a.length;v++){var y=a[v],_=r[y],x=c[y],A=_(x,f);if(typeof A>"u"){var C=f&&f.type;throw new Error(j(14))}g[y]=A,p=p||A!==x}return p=p||a.length!==Object.keys(c).length,p?g:c}}function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(j(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map(function(l){return l(s)});return a=Le.apply(void 0,o)(i.dispatch),Jt(Jt({},i),{},{dispatch:a})}}}function vn(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(o){return typeof o=="function"?o(i,a,e):s(o)}}};return t}var yn=vn();yn.withExtraArgument=vn;var er=yn;var xn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Yi=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(f){c=[6,f],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ne=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Xi=Object.defineProperty,Ji=Object.defineProperties,Qi=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,bn=function(e,t,r){return t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ce=function(e,t){for(var r in t||(t={}))Zi.call(t,r)&&bn(e,r,t[r]);if(gn)for(var n=0,i=gn(t);n<i.length;n++){var r=i[n];ea.call(t,r)&&bn(e,r,t[r])}return e},tr=function(e,t){return Ji(e,Qi(t))},ta=function(e,t,r){return new Promise(function(n,i){var a=function(l){try{o(r.next(l))}catch(c){i(c)}},s=function(l){try{o(r.throw(l))}catch(c){i(c)}},o=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};o((r=r.apply(e,t)).next())})};var ra=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},oo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function na(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var ia=function(e){xn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array),aa=function(e){xn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array);function ir(e){return X(e)?ft(e,function(){}):e}function sa(e){return typeof e=="boolean"}function oa(){return function(t){return ua(t)}}function ua(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,o=new ia;if(r&&(sa(r)?o.push(er):o.push(er.withExtraArgument(r.extraArgument))),0){if(i)var l;if(s)var c}return o}var rr=!0;function An(e){var t=oa(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,o=r.devTools,l=o===void 0?!0:o,c=r.preloadedState,f=c===void 0?void 0:c,h=r.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(na(i))g=hn(i);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=s;if(typeof v=="function"&&(v=v(t),!rr&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rr&&v.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mn.apply(void 0,v),_=Le;l&&(_=ra(ce({trace:!rr},typeof l=="object"&&l)));var x=new aa(y),A=x;Array.isArray(p)?A=Ne([y],p):typeof p=="function"&&(A=p(x));var C=_.apply(void 0,A);return Zt(g,f,C)}function de(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ce(ce({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function On(e){var t={},r=[],n,i={addCase:function(a,s){var o=typeof a=="string"?a:a.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function la(e){return typeof e=="function"}function ca(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?On(t):[t,r,n],a=i[0],s=i[1],o=i[2],l;if(la(e))l=function(){return ir(e())};else{var c=ir(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var g=Ne([a[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[o]),g.reduce(function(v,y){if(y)if(ne(v)){var _=v,x=y(_,p);return x===void 0?v:x}else{if(X(v))return ft(v,function(A){return y(A,p)});var x=y(v,p);if(x===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return v},h)}return f.getInitialState=l,f}function da(e,t){return e+"/"+t}function _n(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ir(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},o={};i.forEach(function(f){var h=n[f],p=da(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,a[f]=g,s[p]=g,o[f]=v?de(p,v):de(p)});function l(){var f=typeof e.extraReducers=="function"?On(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],_=y===void 0?void 0:y,x=ce(ce({},p),s);return ca(r,function(A){for(var C in x)A.addCase(C,x[C]);for(var T=0,I=v;T<I.length;T++){var $=I[T];A.addMatcher($.matcher,$.reducer)}_&&A.addDefaultCase(_)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:o,caseReducers:a,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var fa="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pa=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=fa[Math.random()*64|0];return t},ha=["name","message","stack","code"],nr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),En=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ma=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=ha;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},fo=function(){function e(t,r,n){var i=de(t+"/fulfilled",function(f,h,p,g){return{payload:f,meta:tr(ce({},g||{}),{arg:p,requestId:h,requestStatus:"fulfilled"})}}),a=de(t+"/pending",function(f,h,p){return{payload:void 0,meta:tr(ce({},p||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=de(t+"/rejected",function(f,h,p,g,v){return{payload:g,error:(n&&n.serializeError||ma)(f||"Rejected"),meta:tr(ce({},v||{}),{arg:p,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),o=!1,l=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function c(f){return function(h,p,g){var v=n?.idGenerator?n.idGenerator(f):pa(),y=new l,_,x=!1;function A(T){_=T,y.abort()}var C=function(){return ta(this,null,function(){var T,I,$,ve,H,ye,Oe;return Yi(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),ve=(T=n?.condition)==null?void 0:T.call(n,f,{getState:p,extra:g}),ya(ve)?[4,ve]:[3,2];case 1:ve=u.sent(),u.label=2;case 2:if(ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,H=new Promise(function(d,b){return y.signal.addEventListener("abort",function(){return b({name:"AbortError",message:_||"Aborted"})})}),h(a(v,f,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:v,arg:f},{getState:p,extra:g}))),[4,Promise.race([H,Promise.resolve(r(f,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:A,rejectWithValue:function(d,b){return new nr(d,b)},fulfillWithValue:function(d,b){return new En(d,b)}})).then(function(d){if(d instanceof nr)throw d;return d instanceof En?i(d.payload,v,f,d.meta):i(d,v,f)})])];case 3:return $=u.sent(),[3,5];case 4:return ye=u.sent(),$=ye instanceof nr?s(null,v,f,ye.payload,ye.meta):s(ye,v,f),[3,5];case 5:return Oe=n&&!n.dispatchConditionRejection&&s.match($)&&$.meta.condition,Oe||h($),[2,$]}})})}();return Object.assign(C,{abort:A,requestId:v,arg:f,unwrap:function(){return C.then(va)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function va(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ya(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn="listener",wn="completed",Cn="cancelled",po="task-"+Cn,ho="task-"+wn,mo=Tn+"-"+Cn,vo=Tn+"-"+wn;var ar="listenerMiddleware";var yo=de(ar+"/add"),go=de(ar+"/removeAll"),bo=de(ar+"/remove");var Sn,Eo=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Sn||(Sn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ga=function(e){return function(t){setTimeout(t,e)}},So=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ga(10);sn();function ba(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var ht=class extends ba(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rn=class e extends ht{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Be(a))return a;if(i==null)return;let s=_n({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=An({reducer:(l,c)=>c.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...c.overwrites}:s.reducer(l,c)});return window.ftReduxStores[i.name]=new e(s,o,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new at;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,o)=>{let l=s,c=a[l];return c?(...f)=>{let h=c(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[l]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Et=E(L());var xa=E(Ln(),1);var Nn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Nn||(Nn={}));var Dn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Dn||(Dn={}));var Mn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Mn||(Mn={}));var In;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(In||(In={}));var kn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(kn||(kn={}));var Un;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Un||(Un={}));var jn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(jn||(jn={}));var Bn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Bn||(Bn={}));var Hn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Hn||(Hn={}));var Kn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Kn||(Kn={}));var Vn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Vn||(Vn={}));var Gn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gn||(Gn={}));var Wn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Wn||(Wn={}));var qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(qn||(qn={}));var $n;(function(e){e.ASC="ASC",e.DESC="DESC"})($n||($n={}));var zn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(zn||(zn={}));var Fn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Fn||(Fn={}));var Yn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Yn||(Yn={}));var Xn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Xn||(Xn={}));var Jn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Jn||(Jn={}));var Qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qn||(Qn={}));var Zn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Zn||(Zn={}));var ei;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ei||(ei={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ti;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ti||(ti={}));var ri;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ri||(ri={}));var ni;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ni||(ni={}));var ii;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ii||(ii={}));var Sa={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function ai(e,t){return e===t||(Sa[e]??[]).some(r=>ai(r,t))}function si(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ai(n,t))}var yt=class extends se{async listMySearches(){let{session:t}=S.getState();return si(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var gt=class extends se{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Aa="ft-user-assets",bt=Et.FtReduxStore.get({name:Aa,initialState:{savedSearches:void 0,bookmarks:void 0}}),sr=class{constructor(){this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gt,this.savedSearchesService=new yt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=S.getState();(0,Et.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();bt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;bt.actions.bookmarks(r)}}},yu=new sr;var or=class{addCommand(t,r=!1){S.commands.add(t,r)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new or;var oi=E(L()),ur=class{highlightHtml(t,r,n){(0,oi.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ur;var ui=E(L());var lr=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return ui.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new lr;var li=E(L());var qe=class{static get(t,r){var n,i,a,s;let o=S.getState(),{lang:l,region:c}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new li.SearchPlaceConverter(o.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,o.searchInAllLanguagesAllowed,r??`${l}-${c}`)}};var cr=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new cr;var pe=E(L());var Ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ae.eventName="change";var dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},ci=new dr;var St=class e extends pe.WithEventBus{static build(){return new e(window.history,ci,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ae(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,o])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...a,index:l,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,s,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ae.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ae.eventName,t)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,a=t+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=St.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,di.customElement)("ft-app-context")(N);var vi=E(W());var Oa=E(L());function fi(e){return e.match(/^[\w-]+\.[\w-]+$/)}var _a=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},pi=Symbol("i18nAttributes"),hi=Symbol("i18nListAttributes"),yi=Symbol("i18nProperties"),xt=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs");function gi(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?rt:Te}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let o=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...o)}customI18n(a,s){if(fi(a)){let[o,l]=a.split(".");return this.i18n({custom:!0,context:o,key:l,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,o,l)=>a.has(o)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,o,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,o;let l=this,c=(f,h,p)=>p?.context&&p.key&&a(f,h,p)?{...p,message:this.i18n({context:p.context,key:p.key,...f})}:p;(s=this[pi])===null||s===void 0||s.forEach((f,h)=>l[h]=c(f,h,l[h])),(o=this[hi])===null||o===void 0||o.forEach((f,h)=>{var p;return l[h]=(p=l[h])===null||p===void 0?void 0:p.map(g=>c(f,h,g))})}updateI18nProperties(a){var s;(s=this[yi])===null||s===void 0||s.forEach((o,l)=>{a(o,l)&&(this[l]=this.i18n(o))})}addI18nMessages(a,s,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,o)}addI18nContext(a,s,o){let l=(typeof a=="string"?a:a.name).toLowerCase();o=typeof a=="string"?o:a.custom,this[xt].set(l,{isCustomContext:o}),this[$e].has(l)||this[$e].set(l,this.getI18nService(o).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(o).prepareContext(l,s)}hasI18nContext(a){return this[xt].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[xt].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(a=>a()),this[$e].clear()}}return t=xt,r=$e,_a([(0,vi.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var mi=class extends gi(Ot.FtLitElement){},At=class extends gi(Ot.FtLitElementRedux){};var ze=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},J=class extends At{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":_t.nothing:_t.html`
87
87
  <span class="ft-i18n">
88
88
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
89
89
  </span>
90
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};J.elementDefinitions={};J.styles=Nr;ze([(0,Tt.redux)()],J.prototype,"editorMode",void 0);ze([(0,_t.property)()],J.prototype,"context",void 0);ze([(0,_t.property)()],J.prototype,"key",void 0);ze([(0,Tt.jsonProperty)([])],J.prototype,"args",void 0);ze([(0,_t.property)()],J.prototype,"defaultMessage",void 0);var wt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?tt:Te}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};(0,gi.customElement)("ft-i18n")(J);var fr=wt.build("designedReaderTopicContent");var G=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=class extends Je{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?he.html`
90
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};J.elementDefinitions={};J.styles=Nr;ze([(0,wt.redux)()],J.prototype,"editorMode",void 0);ze([(0,Tt.property)()],J.prototype,"context",void 0);ze([(0,Tt.property)()],J.prototype,"key",void 0);ze([(0,wt.jsonProperty)([])],J.prototype,"args",void 0);ze([(0,Tt.property)()],J.prototype,"defaultMessage",void 0);var Ct=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?rt:Te}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};(0,bi.customElement)("ft-i18n")(J);var fr=Ct.build("designedReaderTopicContent");var G=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=class extends Je{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?he.html`
91
91
  <section class="topic-loading"></section>
92
92
  `:he.html`
93
93
  <style>
@@ -106,9 +106,9 @@
106
106
  `;let i=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"",a=(((n=this.tocNode)===null||n===void 0?void 0:n.depth)||1)+this.headingLevelsShift;return this.translationLoading||!this.content?he.html`
107
107
  <ft-skeleton></ft-skeleton>`:he.html`
108
108
  <div class="depth-${a} content-locale-${this.getTopicLanguage()} ${i}">
109
- ${this.content!=null?(0,bi.unsafeHTML)(`${this.content}`):he.nothing}
109
+ ${this.content!=null?(0,Ei.unsafeHTML)(`${this.content}`):he.nothing}
110
110
  </div>
111
- `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}};M.styles=[br,B.highlightHtmlStyles];G([(0,B.redux)()],M.prototype,"map",void 0);G([(0,B.redux)({selector:e=>e.translation.profileId})],M.prototype,"translationProfileId",void 0);G([(0,B.redux)({selector:e=>e.translation.destinationLanguage})],M.prototype,"translationDestinationLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.sourceLanguage})],M.prototype,"translationSourceLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.isLoading})],M.prototype,"translationLoading",void 0);G([(0,B.redux)({selector:e=>e.translation.isError})],M.prototype,"translationError",void 0);G([(0,B.redux)()],M.prototype,"scrollTarget",void 0);G([(0,me.state)()],M.prototype,"content",void 0);G([(0,me.state)()],M.prototype,"error",void 0);G([(0,B.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],M.prototype,"searchInDocumentQuery",void 0);G([(0,me.property)({attribute:!1})],M.prototype,"contentPreprocessor",void 0);G([(0,me.property)({attribute:!1})],M.prototype,"onContentAvailable",void 0);G([(0,me.query)("section.topic")],M.prototype,"topicContainer",void 0);(0,Ei.customElement)("ft-reader-topic-content")(M);})();
111
+ `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}};M.styles=[br,B.highlightHtmlStyles];G([(0,B.redux)()],M.prototype,"map",void 0);G([(0,B.redux)({selector:e=>e.translation.profileId})],M.prototype,"translationProfileId",void 0);G([(0,B.redux)({selector:e=>e.translation.destinationLanguage})],M.prototype,"translationDestinationLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.sourceLanguage})],M.prototype,"translationSourceLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.isLoading})],M.prototype,"translationLoading",void 0);G([(0,B.redux)({selector:e=>e.translation.isError})],M.prototype,"translationError",void 0);G([(0,B.redux)()],M.prototype,"scrollTarget",void 0);G([(0,me.state)()],M.prototype,"content",void 0);G([(0,me.state)()],M.prototype,"error",void 0);G([(0,B.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],M.prototype,"searchInDocumentQuery",void 0);G([(0,me.property)({attribute:!1})],M.prototype,"contentPreprocessor",void 0);G([(0,me.property)({attribute:!1})],M.prototype,"onContentAvailable",void 0);G([(0,me.query)("section.topic")],M.prototype,"topicContainer",void 0);(0,Si.customElement)("ft-reader-topic-content")(M);})();
112
112
  /*! Bundled license information:
113
113
 
114
114
  @lit/reactive-element/css-tag.js: