@fluid-topics/ft-reader-feedback 1.3.8 → 1.3.10

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 hp=Object.create;var ka=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var yp=Object.getOwnPropertyNames;var mp=Object.getPrototypeOf,bp=Object.prototype.hasOwnProperty;var mr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xp=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yp(e))!bp.call(t,n)&&n!==o&&ka(t,n,{get:()=>e[n],enumerable:!(i=gp(e,n))||i.enumerable});return t};var m=(t,e,o)=>(o=t!=null?hp(mp(t)):{},xp(e||!t||!t.__esModule?ka(o,"default",{value:t,enumerable:!0}):o,t));var T=mr((Yu,Pa)=>{Pa.exports=ftGlobals.wcUtils});var B=mr((Xu,Da)=>{Da.exports=ftGlobals.lit});var Z=mr((Qu,$a)=>{$a.exports=ftGlobals.litDecorators});var Fs=mr((Qt,Ms)=>{var Ho=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Wo=function(){function t(){this.fetch=!1,this.DOMException=Ho.DOMException}return t.prototype=Ho,new t}();(function(t){var e=function(o){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=p(y),v=u(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,v){this.map[p(y)]=u(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function O(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),le=Y?Y[1]:"utf-8";return v.readAsText(y,le),P}function N(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var le=/\?/;this.url+=(le.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),le=Y.shift().replace(/\+/g," "),V=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(le),decodeURIComponent(V))}}),v}function wt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
- `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var le=Y.split(":"),V=le.shift().trim();if(V){var Mo=le.join(":").trim();try{v.append(V,Mo)}catch(cn){console.warn("Response "+cn.message)}}}),v}_.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new g(v.headers),this.url=v.url||"",this._initBody(y)}_.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Et=[301,302,303,307,308];Ge.redirect=function(y,v){if(Et.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function _e(y,v){return new Promise(function(P,Y){var le=new W(y,v);if(le.signal&&le.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function Mo(){V.abort()}V.onload=function(){var Ne={statusText:V.statusText,headers:wt(V.getAllResponseHeaders()||"")};le.url.indexOf("file://")===0&&(V.status<200||V.status>599)?Ne.status=200:Ne.status=V.status,Ne.url="responseURL"in V?V.responseURL:Ne.headers.get("X-Request-URL");var yr="response"in V?V.response:V.responseText;setTimeout(function(){P(new Ge(yr,Ne))},0)},V.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function cn(Ne){try{return Ne===""&&i.location.href?i.location.href:Ne}catch{return Ne}}if(V.open(le.method,cn(le.url),!0),le.credentials==="include"?V.withCredentials=!0:le.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var La=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ne){La.push(p(Ne)),V.setRequestHeader(Ne,u(v.headers[Ne]))}),le.headers.forEach(function(Ne,yr){La.indexOf(yr)===-1&&V.setRequestHeader(yr,Ne)})}else le.headers.forEach(function(Ne,yr){V.setRequestHeader(yr,Ne)});le.signal&&(le.signal.addEventListener("abort",Mo),V.onreadystatechange=function(){V.readyState===4&&le.signal.removeEventListener("abort",Mo)}),V.send(typeof le._bodyInit>"u"?null:le._bodyInit)})}return _e.polyfill=!0,i.fetch||(i.fetch=_e,i.Headers=g,i.Request=W,i.Response=Ge),o.Headers=g,o.Request=W,o.Response=Ge,o.fetch=_e,o}({})})(Wo);Wo.fetch.ponyfill=!0;delete Wo.fetch.polyfill;var Wr=Ho.fetch?Ho:Wo;Qt=Wr.fetch;Qt.default=Wr.fetch;Qt.fetch=Wr.fetch;Qt.Headers=Wr.Headers;Qt.Request=Wr.Request;Qt.Response=Wr.Response;Ms.exports=Qt});var $t=mr((db,_l)=>{_l.exports=ftGlobals.litClassMap});var dc=mr((Xb,cc)=>{cc.exports=ftGlobals.litUnsafeHTML});var Gn=mr((Pv,Dc)=>{Dc.exports=ftGlobals.litRepeat});var Na=m(T());var up=m(B()),ht=m(Z()),We=m(T());var Ba=m(T()),Ma=m(Z());var co;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(co||(co={}));var at;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(at||(at={}));var vp=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},dn=Symbol("registerInterval");function Sp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[dn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[dn]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dn,vp([(0,Ma.state)()],o.prototype,"stateManager",void 0),o}var Zt=class extends Sp(Ba.FtLitElementRedux){};var ye=m(B()),me=m(Z()),nn=m(T());var $s=m(B()),J=m(T());var Ps=m(B()),F=m(T());var Va=m(B()),be=m(T()),Fa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),w={color:Fa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fa),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ua=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),za={color:Ua,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ua)},Ha=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Wa={color:Ha,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ha)},Ga=Va.css`
1
+ "use strict";(()=>{var hp=Object.create;var ka=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var yp=Object.getOwnPropertyNames;var mp=Object.getPrototypeOf,bp=Object.prototype.hasOwnProperty;var mr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xp=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yp(e))!bp.call(t,n)&&n!==o&&ka(t,n,{get:()=>e[n],enumerable:!(i=gp(e,n))||i.enumerable});return t};var m=(t,e,o)=>(o=t!=null?hp(mp(t)):{},xp(e||!t||!t.__esModule?ka(o,"default",{value:t,enumerable:!0}):o,t));var T=mr((Yu,Pa)=>{Pa.exports=ftGlobals.wcUtils});var B=mr((Xu,Da)=>{Da.exports=ftGlobals.lit});var Z=mr((Qu,$a)=>{$a.exports=ftGlobals.litDecorators});var Fs=mr((Qt,Ms)=>{var Ho=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Wo=function(){function t(){this.fetch=!1,this.DOMException=Ho.DOMException}return t.prototype=Ho,new t}();(function(t){var e=function(o){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=p(y),v=u(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,v){this.map[p(y)]=u(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function O(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),le=Y?Y[1]:"utf-8";return v.readAsText(y,le),P}function N(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var le=/\?/;this.url+=(le.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),le=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(le),decodeURIComponent(G))}}),v}function wt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
+ `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var le=Y.split(":"),G=le.shift().trim();if(G){var Mo=le.join(":").trim();try{v.append(G,Mo)}catch(cn){console.warn("Response "+cn.message)}}}),v}_.call(W.prototype);function Ve(y,v){if(!(this instanceof Ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new g(v.headers),this.url=v.url||"",this._initBody(y)}_.call(Ve.prototype),Ve.prototype.clone=function(){return new Ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ve.error=function(){var y=new Ve(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Et=[301,302,303,307,308];Ve.redirect=function(y,v){if(Et.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ve(null,{status:v,headers:{location:y}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function _e(y,v){return new Promise(function(P,Y){var le=new W(y,v);if(le.signal&&le.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Mo(){G.abort()}G.onload=function(){var Ne={statusText:G.statusText,headers:wt(G.getAllResponseHeaders()||"")};le.url.indexOf("file://")===0&&(G.status<200||G.status>599)?Ne.status=200:Ne.status=G.status,Ne.url="responseURL"in G?G.responseURL:Ne.headers.get("X-Request-URL");var yr="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ve(yr,Ne))},0)},G.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function cn(Ne){try{return Ne===""&&i.location.href?i.location.href:Ne}catch{return Ne}}if(G.open(le.method,cn(le.url),!0),le.credentials==="include"?G.withCredentials=!0:le.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var La=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ne){La.push(p(Ne)),G.setRequestHeader(Ne,u(v.headers[Ne]))}),le.headers.forEach(function(Ne,yr){La.indexOf(yr)===-1&&G.setRequestHeader(yr,Ne)})}else le.headers.forEach(function(Ne,yr){G.setRequestHeader(yr,Ne)});le.signal&&(le.signal.addEventListener("abort",Mo),G.onreadystatechange=function(){G.readyState===4&&le.signal.removeEventListener("abort",Mo)}),G.send(typeof le._bodyInit>"u"?null:le._bodyInit)})}return _e.polyfill=!0,i.fetch||(i.fetch=_e,i.Headers=g,i.Request=W,i.Response=Ve),o.Headers=g,o.Request=W,o.Response=Ve,o.fetch=_e,o}({})})(Wo);Wo.fetch.ponyfill=!0;delete Wo.fetch.polyfill;var Wr=Ho.fetch?Ho:Wo;Qt=Wr.fetch;Qt.default=Wr.fetch;Qt.fetch=Wr.fetch;Qt.Headers=Wr.Headers;Qt.Request=Wr.Request;Qt.Response=Wr.Response;Ms.exports=Qt});var $t=mr((db,_l)=>{_l.exports=ftGlobals.litClassMap});var dc=mr((Xb,cc)=>{cc.exports=ftGlobals.litUnsafeHTML});var Vn=mr((Pv,Dc)=>{Dc.exports=ftGlobals.litRepeat});var Na=m(T());var up=m(B()),ht=m(Z()),We=m(T());var Ba=m(T()),Ma=m(Z());var co;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(co||(co={}));var at;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(at||(at={}));var vp=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},dn=Symbol("registerInterval");function Sp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[dn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[dn]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dn,vp([(0,Ma.state)()],o.prototype,"stateManager",void 0),o}var Zt=class extends Sp(Ba.FtLitElementRedux){};var ye=m(B()),me=m(Z()),nn=m(T());var $s=m(B()),J=m(T());var Ps=m(B()),F=m(T());var Ga=m(B()),be=m(T()),Fa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),w={color:Fa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fa),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ua=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),za={color:Ua,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ua)},Ha=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Wa={color:Ha,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ha)},Va=Ga.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -526,9 +526,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
526
526
  [part="buttons-container"] {
527
527
  align-self: flex-end;
528
528
  }
529
- `;var wp=m(Fs(),1);var Us;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Us||(Us={}));var zs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(zs||(zs={}));var Hs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Hs||(Hs={}));var Ws;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Ws||(Ws={}));var Vs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Gs;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Gs||(Gs={}));var js;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(js||(js={}));var Ks;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Ks||(Ks={}));var Zs;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Zs||(Zs={}));var qs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(qs||(qs={}));var Ys;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ys||(Ys={}));var Xs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Xs||(Xs={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var Qs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qs||(Qs={}));var Js;(function(t){t.ASC="ASC",t.DESC="DESC"})(Js||(Js={}));var el;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(el||(el={}));var tl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(tl||(tl={}));var rl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(rl||(rl={}));var ol;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ol||(ol={}));var il;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(il||(il={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(al||(al={}));var sl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sl||(sl={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var xr;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(xr||(xr={}));var ll;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ll||(ll={}));var cl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cl||(cl={}));var dl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(dl||(dl={}));var Op={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function pl(t,e){return t===e||(Op[t]??[]).some(o=>pl(o,e))}function Dt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>pl(i,e))}var Il=m(T());var xn=globalThis,Vo=xn.trustedTypes,ul=Vo?Vo.createPolicy("lit-html",{createHTML:t=>t}):void 0,bl="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,xl="?"+Jt,Ep=`<${xl}>`,Cr=document,Go=()=>Cr.createComment(""),fo=t=>t===null||typeof t!="object"&&typeof t!="function",vn=Array.isArray,Ap=t=>vn(t)||typeof t?.[Symbol.iterator]=="function",fn=`[
529
+ `;var wp=m(Fs(),1);var Us;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Us||(Us={}));var zs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(zs||(zs={}));var Hs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Hs||(Hs={}));var Ws;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Ws||(Ws={}));var Gs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gs||(Gs={}));var Vs;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Vs||(Vs={}));var js;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(js||(js={}));var Ks;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Ks||(Ks={}));var Zs;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Zs||(Zs={}));var qs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(qs||(qs={}));var Ys;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ys||(Ys={}));var Xs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Xs||(Xs={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var Qs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qs||(Qs={}));var Js;(function(t){t.ASC="ASC",t.DESC="DESC"})(Js||(Js={}));var el;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(el||(el={}));var tl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(tl||(tl={}));var rl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(rl||(rl={}));var ol;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ol||(ol={}));var il;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(il||(il={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(al||(al={}));var sl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sl||(sl={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var xr;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(xr||(xr={}));var ll;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ll||(ll={}));var cl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cl||(cl={}));var dl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(dl||(dl={}));var Op={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function pl(t,e){return t===e||(Op[t]??[]).some(o=>pl(o,e))}function Dt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>pl(i,e))}var Il=m(T());var xn=globalThis,Go=xn.trustedTypes,ul=Go?Go.createPolicy("lit-html",{createHTML:t=>t}):void 0,bl="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,xl="?"+Jt,Ep=`<${xl}>`,Cr=document,Vo=()=>Cr.createComment(""),fo=t=>t===null||typeof t!="object"&&typeof t!="function",vn=Array.isArray,Ap=t=>vn(t)||typeof t?.[Symbol.iterator]=="function",fn=`[
530
530
  \f\r]`,uo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fl=/-->/g,hl=/>/g,vr=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
531
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,yl=/"/g,vl=/^(?:script|style|textarea|title)$/i,Sn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Sl=Sn(1),Cl=Sn(2),Ol=Sn(3),ho=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),ml=new WeakMap,Sr=Cr.createTreeWalker(Cr,129);function wl(t,e){if(!vn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(e):e}var Rp=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=uo;for(let c=0;c<o;c++){let p=t[c],u,h,g=-1,b=0;for(;b<p.length&&(s.lastIndex=b,h=s.exec(p),h!==null);)b=s.lastIndex,s===uo?h[1]==="!--"?s=fl:h[1]!==void 0?s=hl:h[2]!==void 0?(vl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=vr):h[3]!==void 0&&(s=vr):s===vr?h[0]===">"?(s=n??uo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?vr:h[3]==='"'?yl:gl):s===yl||s===gl?s=vr:s===fl||s===hl?s=uo:(s=vr,n=void 0);let x=s===vr&&t[c+1].startsWith("/>")?" ":"";a+=s===uo?p+Ep:g>=0?(i.push(u),p.slice(0,g)+bl+p.slice(g)+Jt+x):p+Jt+(g===-2?c:x)}return[wl(t,a+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},go=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,h]=Rp(e,o);if(this.el=t.createElement(u,i),Sr.currentNode=this.el.content,o===2||o===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Sr.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(bl)){let b=h[s++],x=n.getAttribute(g).split(Jt),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?gn:S[1]==="?"?yn:S[1]==="@"?mn:Gr}),n.removeAttribute(g)}else g.startsWith(Jt)&&(p.push({type:6,index:a}),n.removeAttribute(g));if(vl.test(n.tagName)){let g=n.textContent.split(Jt),b=g.length-1;if(b>0){n.textContent=Vo?Vo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Go()),Sr.nextNode(),p.push({type:2,index:++a});n.append(g[b],Go())}}}else if(n.nodeType===8)if(n.data===xl)p.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Jt,g+1))!==-1;)p.push({type:7,index:a}),g+=Jt.length-1}a++}}static createElement(e,o){let i=Cr.createElement("template");return i.innerHTML=e,i}};function Vr(t,e,o=t,i){if(e===ho)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=fo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=Vr(t,n._$AS(t,e.values),n,i)),e}var hn=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??Cr).importNode(o,!0);Sr.currentNode=n;let a=Sr.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new jo(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new bn(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Sr.nextNode(),s++)}return Sr.currentNode=Cr,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},jo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Vr(this,e,o),fo(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==ho&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ve&&fo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Cr.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=go.createElement(wl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new hn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(e){let o=ml.get(e.strings);return o===void 0&&ml.set(e.strings,o=new go(e)),o}k(e){vn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.O(Go()),this.O(Go()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(e,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Vr(this,e,o,0),s=!fo(e)||e!==this._$AH&&e!==ho,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=Vr(this,c[i+p],o,p),u===ho&&(u=this._$AH[p]),s||=!fo(u)||u!==this._$AH[p],u===ve?e=ve:e!==ve&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gn=class extends Gr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},yn=class extends Gr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},mn=class extends Gr{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=Vr(this,e,o,0)??ve)===ho)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},bn=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Vr(this,e)}};var Tp=xn.litHtmlPolyfillSupport;Tp?.(go,jo),(xn.litHtmlVersions??=[]).push("3.3.0");var Al=Symbol.for(""),Ip=t=>{if(t?.r===Al)return t?._$litStatic$},Cn=t=>({_$litStatic$:t,r:Al});var El=new Map,On=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],p,u=0,h=!1;for(;u<i;){for(p=e[u];u<i&&(a=o[u],(n=Ip(a))!==void 0);)p+=n+e[++u],h=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=El.get(g))===void 0&&(s.raw=s,El.set(g,e=s)),o=c}return t(e,...o)},wn=On(Sl),qm=On(Cl),Ym=On(Ol);var En=m(Z()),Tl=m(T());var er;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(er||(er={}));var Rl=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},fe=class extends Tl.FtLitElement{constructor(){super(...arguments),this.variant=er.body1}render(){return this.element?wn`
531
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,yl=/"/g,vl=/^(?:script|style|textarea|title)$/i,Sn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Sl=Sn(1),Cl=Sn(2),Ol=Sn(3),ho=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),ml=new WeakMap,Sr=Cr.createTreeWalker(Cr,129);function wl(t,e){if(!vn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(e):e}var Rp=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=uo;for(let c=0;c<o;c++){let p=t[c],u,h,g=-1,b=0;for(;b<p.length&&(s.lastIndex=b,h=s.exec(p),h!==null);)b=s.lastIndex,s===uo?h[1]==="!--"?s=fl:h[1]!==void 0?s=hl:h[2]!==void 0?(vl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=vr):h[3]!==void 0&&(s=vr):s===vr?h[0]===">"?(s=n??uo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?vr:h[3]==='"'?yl:gl):s===yl||s===gl?s=vr:s===fl||s===hl?s=uo:(s=vr,n=void 0);let x=s===vr&&t[c+1].startsWith("/>")?" ":"";a+=s===uo?p+Ep:g>=0?(i.push(u),p.slice(0,g)+bl+p.slice(g)+Jt+x):p+Jt+(g===-2?c:x)}return[wl(t,a+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},go=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,h]=Rp(e,o);if(this.el=t.createElement(u,i),Sr.currentNode=this.el.content,o===2||o===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Sr.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(bl)){let b=h[s++],x=n.getAttribute(g).split(Jt),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?gn:S[1]==="?"?yn:S[1]==="@"?mn:Vr}),n.removeAttribute(g)}else g.startsWith(Jt)&&(p.push({type:6,index:a}),n.removeAttribute(g));if(vl.test(n.tagName)){let g=n.textContent.split(Jt),b=g.length-1;if(b>0){n.textContent=Go?Go.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Vo()),Sr.nextNode(),p.push({type:2,index:++a});n.append(g[b],Vo())}}}else if(n.nodeType===8)if(n.data===xl)p.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Jt,g+1))!==-1;)p.push({type:7,index:a}),g+=Jt.length-1}a++}}static createElement(e,o){let i=Cr.createElement("template");return i.innerHTML=e,i}};function Gr(t,e,o=t,i){if(e===ho)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=fo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=Gr(t,n._$AS(t,e.values),n,i)),e}var hn=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??Cr).importNode(o,!0);Sr.currentNode=n;let a=Sr.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new jo(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new bn(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Sr.nextNode(),s++)}return Sr.currentNode=Cr,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},jo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Gr(this,e,o),fo(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==ho&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ve&&fo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Cr.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=go.createElement(wl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new hn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(e){let o=ml.get(e.strings);return o===void 0&&ml.set(e.strings,o=new go(e)),o}k(e){vn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.O(Vo()),this.O(Vo()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Vr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(e,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Gr(this,e,o,0),s=!fo(e)||e!==this._$AH&&e!==ho,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=Gr(this,c[i+p],o,p),u===ho&&(u=this._$AH[p]),s||=!fo(u)||u!==this._$AH[p],u===ve?e=ve:e!==ve&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gn=class extends Vr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},yn=class extends Vr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},mn=class extends Vr{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=Gr(this,e,o,0)??ve)===ho)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},bn=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Gr(this,e)}};var Tp=xn.litHtmlPolyfillSupport;Tp?.(go,jo),(xn.litHtmlVersions??=[]).push("3.3.0");var Al=Symbol.for(""),Ip=t=>{if(t?.r===Al)return t?._$litStatic$},Cn=t=>({_$litStatic$:t,r:Al});var El=new Map,On=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],p,u=0,h=!1;for(;u<i;){for(p=e[u];u<i&&(a=o[u],(n=Ip(a))!==void 0);)p+=n+e[++u],h=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=El.get(g))===void 0&&(s.raw=s,El.set(g,e=s)),o=c}return t(e,...o)},wn=On(Sl),qm=On(Cl),Ym=On(Ol);var En=m(Z()),Tl=m(T());var er;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(er||(er={}));var Rl=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},fe=class extends Tl.FtLitElement{constructor(){super(...arguments),this.variant=er.body1}render(){return this.element?wn`
532
532
  <${Cn(this.element)}
533
533
  part="text"
534
534
  class="ft-typography ft-typography--${this.variant}">
@@ -547,7 +547,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
547
547
  <div class="ft-ripple--background"></div>
548
548
  <div class="ft-ripple--effect"></div>
549
549
  </div>
550
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Ga;Ye([(0,Le.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,Le.state)()],K.prototype,"hovered",void 0);Ye([(0,Le.state)()],K.prototype,"focused",void 0);Ye([(0,Le.state)()],K.prototype,"pressed",void 0);Ye([(0,Le.state)()],K.prototype,"rippling",void 0);Ye([(0,Le.state)()],K.prototype,"originX",void 0);Ye([(0,Le.state)()],K.prototype,"originY",void 0);Ye([(0,Le.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,Le.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,kl.customElement)("ft-ripple")(K);var yc=m($t());var lc=m(T());var sc=m(B()),Oe=m(Z()),So=m(T());var Pl=m(B()),Bt=m(T()),jr={distance:Bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Bt.FtCssVariableFactory.external(Bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Dl=Pl.css`
550
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Va;Ye([(0,Le.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,Le.state)()],K.prototype,"hovered",void 0);Ye([(0,Le.state)()],K.prototype,"focused",void 0);Ye([(0,Le.state)()],K.prototype,"pressed",void 0);Ye([(0,Le.state)()],K.prototype,"rippling",void 0);Ye([(0,Le.state)()],K.prototype,"originX",void 0);Ye([(0,Le.state)()],K.prototype,"originY",void 0);Ye([(0,Le.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,Le.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,kl.customElement)("ft-ripple")(K);var yc=m($t());var lc=m(T());var sc=m(B()),Oe=m(Z()),So=m(T());var Pl=m(B()),Bt=m(T()),jr={distance:Bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Bt.FtCssVariableFactory.external(Bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Dl=Pl.css`
551
551
  .ft-tooltip--container {
552
552
  display: block;
553
553
  }
@@ -576,7 +576,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
576
576
  position: relative;
577
577
  word-break: break-word;
578
578
  }
579
- `;var Bl=["top","right","bottom","left"],$l=["start","end"],Rn=Bl.reduce((t,e)=>t.concat(e,e+"-"+$l[0],e+"-"+$l[1]),[]),Ml=Math.min,Fl=Math.max;var _p={left:"right",right:"left",bottom:"top",top:"bottom"},Np={start:"end",end:"start"};function Tn(t,e,o){return Fl(t,Ml(e,o))}function Ko(t,e){return typeof t=="function"?t(e):t}function Kr(t){return t.split("-")[0]}function tr(t){return t.split("-")[1]}function In(t){return t==="x"?"y":"x"}function _n(t){return t==="y"?"height":"width"}function Zo(t){return["top","bottom"].includes(Kr(t))?"y":"x"}function Nn(t){return In(Zo(t))}function Ul(t,e,o){o===void 0&&(o=!1);let i=tr(t),n=Nn(t),a=_n(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=An(s)),[s,An(s)]}function zl(t){return t.replace(/start|end/g,e=>Np[e])}function An(t){return t.replace(/left|right|bottom|top/g,e=>_p[e])}function Lp(t){return{top:0,right:0,bottom:0,left:0,...t}}function Hl(t){return typeof t!="number"?Lp(t):{top:t,right:t,bottom:t,left:t}}function Or(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function Wl(t,e,o){let{reference:i,floating:n}=t,a=Zo(e),s=Nn(e),c=_n(s),p=Kr(e),u=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(p){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(tr(e)){case"start":x[s]-=b*(o&&u?-1:1);break;case"end":x[s]+=b*(o&&u?-1:1);break}return x}var Vl=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=Wl(u,i,p),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:I}=c[O],{x:_,y:$,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=_??h,g=$??g,x={...x,[N]:{...x[N],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=Wl(u,b,p)),O=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Ln(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=Ko(e,t),S=Hl(x),N=c[b?g==="floating"?"reference":"floating":g],I=Or(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:p})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=Or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:$,strategy:p}):_);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function kp(t,e,o){return(t?[...o.filter(n=>tr(n)===t),...o.filter(n=>tr(n)!==t)]:o.filter(n=>Kr(n)===n)).filter(n=>t?tr(n)===t||(e?zl(n)!==n:!1):!0)}var kn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Rn,autoAlignment:x=!0,...S}=Ko(t,e),O=g!==void 0||b===Rn?kp(g||null,x,b):b,N=await Ln(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,_=O[I];if(_==null)return{};let $=Ul(_,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==_)return{reset:{placement:O[0]}};let H=[N[Kr(_)],N[$[0]],N[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:H}],qe=O[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let wt=W.map(_e=>{let y=tr(_e.placement);return[_e.placement,y&&h?_e.overflows.slice(0,2).reduce((v,P)=>v+P,0):_e.overflows[0],_e.overflows]}).sort((_e,y)=>_e[1]-y[1]),Et=((n=wt.filter(_e=>_e[2].slice(0,tr(_e[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||wt[0][0];return Et!==c?{data:{index:I+1,overflows:W},reset:{placement:Et}}:{}}}};var Pn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:I,y:_}=N;return{x:I,y:_}}},...p}=Ko(t,e),u={x:o,y:i},h=await Ln(e,p),g=Zo(Kr(n)),b=In(g),x=u[b],S=u[g];if(a){let N=b==="y"?"top":"left",I=b==="y"?"bottom":"right",_=x+h[N],$=x-h[I];x=Tn(_,x,$)}if(s){let N=g==="y"?"top":"left",I=g==="y"?"bottom":"right",_=S+h[N],$=S-h[I];S=Tn(_,S,$)}let O=c.fn({...e,[b]:x,[g]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[g]:s}}}}}};var Dn=Math.min,Zr=Math.max,mo=Math.round;var Mt=t=>({x:t,y:t});function Ft(t){return jl(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ut(t){var e;return(e=(jl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jl(t){return t instanceof Node||t instanceof Xe(t).Node}function Tt(t){return t instanceof Element||t instanceof Xe(t).Element}function mt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function Gl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function qr(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Kl(t){return["table","td","th"].includes(Ft(t))}function Yo(t){let e=Xo(),o=rt(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function Zl(t){let e=wr(t);for(;mt(e)&&!bo(e);){if(Yo(e))return e;e=wr(e)}return null}function Xo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(t){return["html","body","#document"].includes(Ft(t))}function rt(t){return Xe(t).getComputedStyle(t)}function xo(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wr(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Gl(t)&&t.host||Ut(t);return Gl(e)?e.host:e}function ql(t){let e=wr(t);return bo(e)?t.ownerDocument?t.ownerDocument.body:t.body:mt(e)&&qr(e)?e:ql(e)}function qo(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=ql(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],qr(n)?n:[],s.frameElement&&o?qo(s.frameElement):[]):e.concat(n,qo(n,[],o))}function Ql(t){let e=rt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=mt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=mo(o)!==a||mo(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function Jl(t){return Tt(t)?t:t.contextElement}function Yr(t){let e=Jl(t);if(!mt(e))return Mt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ql(e),s=(a?mo(o.width):o.width)/i,c=(a?mo(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var $p=Mt(0);function ec(t){let e=Xe(t);return!Xo()||!e.visualViewport?$p:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Xe(t)?!1:e}function vo(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=Jl(t),s=Mt(1);e&&(i?Tt(i)&&(s=Yr(i)):s=Yr(t));let c=Bp(a,o,i)?ec(a):Mt(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Tt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Yr(S),N=S.getBoundingClientRect(),I=rt(S),_=N.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;p*=O.x,u*=O.y,h*=O.x,g*=O.y,p+=_,u+=$,S=Xe(S).frameElement}}return Or({width:h,height:g,x:p,y:u})}function Mp(t){let{rect:e,offsetParent:o,strategy:i}=t,n=mt(o),a=Ut(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Mt(1),p=Mt(0);if((n||!n&&i!=="fixed")&&((Ft(o)!=="body"||qr(a))&&(s=xo(o)),mt(o))){let u=vo(o);c=Yr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Fp(t){return Array.from(t.getClientRects())}function tc(t){return vo(Ut(t)).left+xo(t).scrollLeft}function Up(t){let e=Ut(t),o=xo(t),i=t.ownerDocument.body,n=Zr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Zr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+tc(t),c=-o.scrollTop;return rt(i).direction==="rtl"&&(s+=Zr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function zp(t,e){let o=Xe(t),i=Ut(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Xo();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Hp(t,e){let o=vo(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=mt(t)?Yr(t):Mt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Yl(t,e,o){let i;if(e==="viewport")i=zp(t,o);else if(e==="document")i=Up(Ut(t));else if(Tt(e))i=Hp(e,o);else{let n=ec(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Or(i)}function rc(t,e){let o=wr(t);return o===e||!Tt(o)||bo(o)?!1:rt(o).position==="fixed"||rc(o,e)}function Wp(t,e){let o=e.get(t);if(o)return o;let i=qo(t,[],!1).filter(c=>Tt(c)&&Ft(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?wr(t):t;for(;Tt(s)&&!bo(s);){let c=rt(s),p=Yo(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||qr(s)&&!p&&rc(t,s))?i=i.filter(h=>h!==s):n=c,s=wr(s)}return e.set(t,i),i}function Vp(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?Wp(e,this._c):[].concat(o),i],c=s[0],p=s.reduce((u,h)=>{let g=Yl(e,h,n);return u.top=Zr(g.top,u.top),u.right=Dn(g.right,u.right),u.bottom=Dn(g.bottom,u.bottom),u.left=Zr(g.left,u.left),u},Yl(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Gp(t){return Ql(t)}function jp(t,e,o){let i=mt(e),n=Ut(e),a=o==="fixed",s=vo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=Mt(0);if(i||!i&&!a)if((Ft(e)!=="body"||qr(n))&&(c=xo(e)),i){let u=vo(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=tc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Xl(t,e){return!mt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function oc(t,e){let o=Xe(t);if(!mt(t))return o;let i=Xl(t,e);for(;i&&Kl(i)&&rt(i).position==="static";)i=Xl(i,e);return i&&(Ft(i)==="html"||Ft(i)==="body"&&rt(i).position==="static"&&!Yo(i))?o:i||Zl(t)||o}var Kp=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||oc,a=this.getDimensions;return{reference:jp(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function Zp(t){return rt(t).direction==="rtl"}var Qo={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:Ut,getClippingRect:Vp,getOffsetParent:oc,getElementRects:Kp,getClientRects:Fp,getDimensions:Gp,getScale:Yr,isElement:Tt,isRTL:Zp};var ic=(t,e,o)=>{let i=new Map,n={platform:Qo,...o},a={...n.platform,_c:i};return Vl(t,e,{...n,platform:a})};function nc(t){return qp(t)}function $n(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function qp(t){for(let e=t;e;e=$n(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=$n(t);e;e=$n(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ac(t,e,o){return ic(t,e,{platform:{...Qo,getOffsetParent:i=>Qo.getOffsetParent(i,nc)},middleware:[Pn({crossAxis:!0}),kn({allowedPlacements:[o]})]})}var Qe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends So.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new So.Debouncer,this.revealDebouncer=new So.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return sc.html`
579
+ `;var Bl=["top","right","bottom","left"],$l=["start","end"],Rn=Bl.reduce((t,e)=>t.concat(e,e+"-"+$l[0],e+"-"+$l[1]),[]),Ml=Math.min,Fl=Math.max;var _p={left:"right",right:"left",bottom:"top",top:"bottom"},Np={start:"end",end:"start"};function Tn(t,e,o){return Fl(t,Ml(e,o))}function Ko(t,e){return typeof t=="function"?t(e):t}function Kr(t){return t.split("-")[0]}function tr(t){return t.split("-")[1]}function In(t){return t==="x"?"y":"x"}function _n(t){return t==="y"?"height":"width"}function Zo(t){return["top","bottom"].includes(Kr(t))?"y":"x"}function Nn(t){return In(Zo(t))}function Ul(t,e,o){o===void 0&&(o=!1);let i=tr(t),n=Nn(t),a=_n(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=An(s)),[s,An(s)]}function zl(t){return t.replace(/start|end/g,e=>Np[e])}function An(t){return t.replace(/left|right|bottom|top/g,e=>_p[e])}function Lp(t){return{top:0,right:0,bottom:0,left:0,...t}}function Hl(t){return typeof t!="number"?Lp(t):{top:t,right:t,bottom:t,left:t}}function Or(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function Wl(t,e,o){let{reference:i,floating:n}=t,a=Zo(e),s=Nn(e),c=_n(s),p=Kr(e),u=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(p){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(tr(e)){case"start":x[s]-=b*(o&&u?-1:1);break;case"end":x[s]+=b*(o&&u?-1:1);break}return x}var Gl=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=Wl(u,i,p),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:I}=c[O],{x:_,y:$,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=_??h,g=$??g,x={...x,[N]:{...x[N],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=Wl(u,b,p)),O=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Ln(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=Ko(e,t),S=Hl(x),N=c[b?g==="floating"?"reference":"floating":g],I=Or(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:p})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=Or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:$,strategy:p}):_);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function kp(t,e,o){return(t?[...o.filter(n=>tr(n)===t),...o.filter(n=>tr(n)!==t)]:o.filter(n=>Kr(n)===n)).filter(n=>t?tr(n)===t||(e?zl(n)!==n:!1):!0)}var kn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Rn,autoAlignment:x=!0,...S}=Ko(t,e),O=g!==void 0||b===Rn?kp(g||null,x,b):b,N=await Ln(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,_=O[I];if(_==null)return{};let $=Ul(_,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==_)return{reset:{placement:O[0]}};let H=[N[Kr(_)],N[$[0]],N[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:H}],qe=O[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let wt=W.map(_e=>{let y=tr(_e.placement);return[_e.placement,y&&h?_e.overflows.slice(0,2).reduce((v,P)=>v+P,0):_e.overflows[0],_e.overflows]}).sort((_e,y)=>_e[1]-y[1]),Et=((n=wt.filter(_e=>_e[2].slice(0,tr(_e[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||wt[0][0];return Et!==c?{data:{index:I+1,overflows:W},reset:{placement:Et}}:{}}}};var Pn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:I,y:_}=N;return{x:I,y:_}}},...p}=Ko(t,e),u={x:o,y:i},h=await Ln(e,p),g=Zo(Kr(n)),b=In(g),x=u[b],S=u[g];if(a){let N=b==="y"?"top":"left",I=b==="y"?"bottom":"right",_=x+h[N],$=x-h[I];x=Tn(_,x,$)}if(s){let N=g==="y"?"top":"left",I=g==="y"?"bottom":"right",_=S+h[N],$=S-h[I];S=Tn(_,S,$)}let O=c.fn({...e,[b]:x,[g]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[g]:s}}}}}};var Dn=Math.min,Zr=Math.max,mo=Math.round;var Mt=t=>({x:t,y:t});function Ft(t){return jl(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ut(t){var e;return(e=(jl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jl(t){return t instanceof Node||t instanceof Xe(t).Node}function Tt(t){return t instanceof Element||t instanceof Xe(t).Element}function mt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function Vl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function qr(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Kl(t){return["table","td","th"].includes(Ft(t))}function Yo(t){let e=Xo(),o=rt(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function Zl(t){let e=wr(t);for(;mt(e)&&!bo(e);){if(Yo(e))return e;e=wr(e)}return null}function Xo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(t){return["html","body","#document"].includes(Ft(t))}function rt(t){return Xe(t).getComputedStyle(t)}function xo(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wr(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vl(t)&&t.host||Ut(t);return Vl(e)?e.host:e}function ql(t){let e=wr(t);return bo(e)?t.ownerDocument?t.ownerDocument.body:t.body:mt(e)&&qr(e)?e:ql(e)}function qo(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=ql(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],qr(n)?n:[],s.frameElement&&o?qo(s.frameElement):[]):e.concat(n,qo(n,[],o))}function Ql(t){let e=rt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=mt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=mo(o)!==a||mo(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function Jl(t){return Tt(t)?t:t.contextElement}function Yr(t){let e=Jl(t);if(!mt(e))return Mt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ql(e),s=(a?mo(o.width):o.width)/i,c=(a?mo(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var $p=Mt(0);function ec(t){let e=Xe(t);return!Xo()||!e.visualViewport?$p:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Xe(t)?!1:e}function vo(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=Jl(t),s=Mt(1);e&&(i?Tt(i)&&(s=Yr(i)):s=Yr(t));let c=Bp(a,o,i)?ec(a):Mt(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Tt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Yr(S),N=S.getBoundingClientRect(),I=rt(S),_=N.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;p*=O.x,u*=O.y,h*=O.x,g*=O.y,p+=_,u+=$,S=Xe(S).frameElement}}return Or({width:h,height:g,x:p,y:u})}function Mp(t){let{rect:e,offsetParent:o,strategy:i}=t,n=mt(o),a=Ut(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Mt(1),p=Mt(0);if((n||!n&&i!=="fixed")&&((Ft(o)!=="body"||qr(a))&&(s=xo(o)),mt(o))){let u=vo(o);c=Yr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Fp(t){return Array.from(t.getClientRects())}function tc(t){return vo(Ut(t)).left+xo(t).scrollLeft}function Up(t){let e=Ut(t),o=xo(t),i=t.ownerDocument.body,n=Zr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Zr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+tc(t),c=-o.scrollTop;return rt(i).direction==="rtl"&&(s+=Zr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function zp(t,e){let o=Xe(t),i=Ut(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Xo();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Hp(t,e){let o=vo(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=mt(t)?Yr(t):Mt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Yl(t,e,o){let i;if(e==="viewport")i=zp(t,o);else if(e==="document")i=Up(Ut(t));else if(Tt(e))i=Hp(e,o);else{let n=ec(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Or(i)}function rc(t,e){let o=wr(t);return o===e||!Tt(o)||bo(o)?!1:rt(o).position==="fixed"||rc(o,e)}function Wp(t,e){let o=e.get(t);if(o)return o;let i=qo(t,[],!1).filter(c=>Tt(c)&&Ft(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?wr(t):t;for(;Tt(s)&&!bo(s);){let c=rt(s),p=Yo(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||qr(s)&&!p&&rc(t,s))?i=i.filter(h=>h!==s):n=c,s=wr(s)}return e.set(t,i),i}function Gp(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?Wp(e,this._c):[].concat(o),i],c=s[0],p=s.reduce((u,h)=>{let g=Yl(e,h,n);return u.top=Zr(g.top,u.top),u.right=Dn(g.right,u.right),u.bottom=Dn(g.bottom,u.bottom),u.left=Zr(g.left,u.left),u},Yl(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Vp(t){return Ql(t)}function jp(t,e,o){let i=mt(e),n=Ut(e),a=o==="fixed",s=vo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=Mt(0);if(i||!i&&!a)if((Ft(e)!=="body"||qr(n))&&(c=xo(e)),i){let u=vo(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=tc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Xl(t,e){return!mt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function oc(t,e){let o=Xe(t);if(!mt(t))return o;let i=Xl(t,e);for(;i&&Kl(i)&&rt(i).position==="static";)i=Xl(i,e);return i&&(Ft(i)==="html"||Ft(i)==="body"&&rt(i).position==="static"&&!Yo(i))?o:i||Zl(t)||o}var Kp=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||oc,a=this.getDimensions;return{reference:jp(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function Zp(t){return rt(t).direction==="rtl"}var Qo={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:Ut,getClippingRect:Gp,getOffsetParent:oc,getElementRects:Kp,getClientRects:Fp,getDimensions:Vp,getScale:Yr,isElement:Tt,isRTL:Zp};var ic=(t,e,o)=>{let i=new Map,n={platform:Qo,...o},a={...n.platform,_c:i};return Gl(t,e,{...n,platform:a})};function nc(t){return qp(t)}function $n(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function qp(t){for(let e=t;e;e=$n(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=$n(t);e;e=$n(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ac(t,e,o){return ic(t,e,{platform:{...Qo,getOffsetParent:i=>Qo.getOffsetParent(i,nc)},middleware:[Pn({crossAxis:!0}),kn({allowedPlacements:[o]})]})}var Qe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends So.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new So.Debouncer,this.revealDebouncer=new So.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return sc.html`
580
580
  <div part="container"
581
581
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
582
582
  @mouseenter=${this.onHover}
@@ -594,7 +594,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
594
594
  </div>
595
595
  </div>
596
596
  </div>
597
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ac(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ne.elementDefinitions={"ft-typography":fe};ne.styles=Dl;Qe([(0,Oe.property)()],ne.prototype,"text",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"manual",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"inline",void 0);Qe([(0,Oe.property)({type:Number})],ne.prototype,"delay",void 0);Qe([(0,Oe.property)()],ne.prototype,"position",void 0);Qe([(0,Oe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);Qe([(0,Oe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);Qe([(0,Oe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);Qe([(0,Oe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);Qe([(0,Oe.state)()],ne.prototype,"visible",void 0);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onTouch",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onHover",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onOut",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onClick",null);(0,lc.customElement)("ft-tooltip")(ne);var fc=m(T());var Co=m(B()),rr=m(Z()),pc=m(T()),uc=m(dc());var Er;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;"})(Er||(Er={}));var E;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(E||(E={}));var Qb=new Map([...["abw"].map(t=>[t,E.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,E.AUDIO]),...["avi"].map(t=>[t,E.AVI]),...["chm","xhs"].map(t=>[t,E.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,E.CODE]),...["csv"].map(t=>[t,E.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,E.DITA]),...["epub"].map(t=>[t,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,E.EXCEL]),...["flac"].map(t=>[t,E.FLAC]),...["gif"].map(t=>[t,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,E.GZIP]),...["html","htm","xhtml"].map(t=>[t,E.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,E.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,E.JPEG]),...["json"].map(t=>[t,E.JSON]),...["m4a","m4p"].map(t=>[t,E.M4A]),...["mov","qt"].map(t=>[t,E.MOV]),...["mp3"].map(t=>[t,E.MP3]),...["mp4","m4v"].map(t=>[t,E.MP4]),...["ogg","oga"].map(t=>[t,E.OGG]),...["pdf","ps"].map(t=>[t,E.PDF]),...["png"].map(t=>[t,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,E.POWERPOINT]),...["rar"].map(t=>[t,E.RAR]),...["stp"].map(t=>[t,E.STP]),...["txt","rtf","md","mdown"].map(t=>[t,E.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,E.VIDEO]),...["wav"].map(t=>[t,E.WAV]),...["wma"].map(t=>[t,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,E.WORD]),...["xml","xsl","rdf"].map(t=>[t,E.XML]),...["yaml","yml","x-yaml"].map(t=>[t,E.YAML]),...["zip"].map(t=>[t,E.ZIP])]);var Jb={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Oo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends pc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Co.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Co.html`
597
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ac(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ne.elementDefinitions={"ft-typography":fe};ne.styles=Dl;Qe([(0,Oe.property)()],ne.prototype,"text",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"manual",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"inline",void 0);Qe([(0,Oe.property)({type:Number})],ne.prototype,"delay",void 0);Qe([(0,Oe.property)()],ne.prototype,"position",void 0);Qe([(0,Oe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);Qe([(0,Oe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);Qe([(0,Oe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);Qe([(0,Oe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);Qe([(0,Oe.state)()],ne.prototype,"visible",void 0);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onTouch",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onHover",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onOut",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onClick",null);(0,lc.customElement)("ft-tooltip")(ne);var fc=m(T());var Co=m(B()),rr=m(Z()),pc=m(T()),uc=m(dc());var Er;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;"})(Er||(Er={}));var E;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(E||(E={}));var Qb=new Map([...["abw"].map(t=>[t,E.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,E.AUDIO]),...["avi"].map(t=>[t,E.AVI]),...["chm","xhs"].map(t=>[t,E.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,E.CODE]),...["csv"].map(t=>[t,E.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,E.DITA]),...["epub"].map(t=>[t,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,E.EXCEL]),...["flac"].map(t=>[t,E.FLAC]),...["gif"].map(t=>[t,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,E.GZIP]),...["html","htm","xhtml"].map(t=>[t,E.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,E.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,E.JPEG]),...["json"].map(t=>[t,E.JSON]),...["m4a","m4p"].map(t=>[t,E.M4A]),...["mov","qt"].map(t=>[t,E.MOV]),...["mp3"].map(t=>[t,E.MP3]),...["mp4","m4v"].map(t=>[t,E.MP4]),...["ogg","oga"].map(t=>[t,E.OGG]),...["pdf","ps"].map(t=>[t,E.PDF]),...["png"].map(t=>[t,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,E.POWERPOINT]),...["rar"].map(t=>[t,E.RAR]),...["stp"].map(t=>[t,E.STP]),...["txt","rtf","md","mdown"].map(t=>[t,E.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,E.VIDEO]),...["wav"].map(t=>[t,E.WAV]),...["wma"].map(t=>[t,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,E.WORD]),...["xml","xsl","rdf"].map(t=>[t,E.XML]),...["yaml","yml","x-yaml"].map(t=>[t,E.YAML]),...["zip"].map(t=>[t,E.ZIP])]);var Jb={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Oo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends pc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Co.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Co.html`
598
598
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
599
599
  ${(0,uc.unsafeHTML)(this.resolvedIcon)}
600
600
  <slot ?hidden=${o}></slot>
@@ -785,7 +785,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
785
785
  @keydown="${this.initKeydownPress}">
786
786
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
787
787
  </div>
788
- `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let o=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ei(this.fixedWidth,this.fixedHeight))}initDrag(e,o){this.dragging=!0,this.startX=e,this.startY=o,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,o){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new ei(i,n))}};ke.elementDefinitions={"ft-icon":he};ke.styles=[ri.noTextSelect,vc];Ht([(0,ct.property)({type:Number})],ke.prototype,"initialWidth",void 0);Ht([(0,ct.property)({type:Number})],ke.prototype,"initialHeight",void 0);Ht([(0,ct.property)()],ke.prototype,"icon",void 0);Ht([(0,ct.property)()],ke.prototype,"iconVariant",void 0);Ht([(0,ct.property)()],ke.prototype,"cursor",void 0);Ht([(0,ct.state)()],ke.prototype,"dragging",void 0);Ht([(0,ct.state)()],ke.prototype,"isAriaPressed",void 0);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromMouse",null);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromTouch",null);(0,Sc.customElement)("ft-resizer")(ke);var Vn=m(T());var oi=m(Z());var Cc=m(B()),re=m(T());var k={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Oc=Cc.css`
788
+ `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let o=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ei(this.fixedWidth,this.fixedHeight))}initDrag(e,o){this.dragging=!0,this.startX=e,this.startY=o,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,o){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new ei(i,n))}};ke.elementDefinitions={"ft-icon":he};ke.styles=[ri.noTextSelect,vc];Ht([(0,ct.property)({type:Number})],ke.prototype,"initialWidth",void 0);Ht([(0,ct.property)({type:Number})],ke.prototype,"initialHeight",void 0);Ht([(0,ct.property)()],ke.prototype,"icon",void 0);Ht([(0,ct.property)()],ke.prototype,"iconVariant",void 0);Ht([(0,ct.property)()],ke.prototype,"cursor",void 0);Ht([(0,ct.state)()],ke.prototype,"dragging",void 0);Ht([(0,ct.state)()],ke.prototype,"isAriaPressed",void 0);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromMouse",null);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromTouch",null);(0,Sc.customElement)("ft-resizer")(ke);var Gn=m(T());var oi=m(Z());var Cc=m(B()),re=m(T());var k={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Oc=Cc.css`
789
789
  .ft-input-label {
790
790
  position: absolute;
791
791
  inset: 0;
@@ -998,7 +998,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
998
998
  top: var(--input-content-vertical-padding);
999
999
  }
1000
1000
 
1001
- `];var wo=class extends(0,_c.toFtdsBase)(Wt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};wo.styles=[Hr,Ic];(0,Vn.customElement)("ft-input-label")(ot);(0,Vn.customElement)("ftds-input-label")(wo);var Nc=m(B()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Lc=Nc.css`
1001
+ `];var wo=class extends(0,_c.toFtdsBase)(Wt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};wo.styles=[Hr,Ic];(0,Gn.customElement)("ft-input-label")(ot);(0,Gn.customElement)("ftds-input-label")(wo);var Nc=m(B()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Lc=Nc.css`
1002
1002
  *:focus {
1003
1003
  outline: none;
1004
1004
  }
@@ -1098,7 +1098,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1098
1098
  position: absolute;
1099
1099
  bottom: 0;
1100
1100
  }
1101
- `;var Vt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Pe=class extends(0,ni.toFtFormComponent)(ni.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ii.html`
1101
+ `;var Gt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Pe=class extends(0,ni.toFtFormComponent)(ni.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ii.html`
1102
1102
  <style>
1103
1103
  .ft-text-area--main-panel {
1104
1104
  height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
@@ -1142,7 +1142,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1142
1142
  ${this.helper}
1143
1143
  </ft-typography>`:void 0}
1144
1144
  </div>
1145
- `}setValue(e,o=!1){this.value=e,this.setFormValue(e),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Pe.elementDefinitions={"ft-input-label":ot,"ft-resizer":ke,"ft-ripple":K,"ft-typography":fe};Pe.styles=[zr,Lc];Vt([(0,dt.property)({type:String})],Pe.prototype,"label",void 0);Vt([(0,dt.property)({reflect:!0})],Pe.prototype,"value",void 0);Vt([(0,dt.property)({type:String})],Pe.prototype,"helper",void 0);Vt([(0,dt.property)({type:Boolean})],Pe.prototype,"outlined",void 0);Vt([(0,dt.property)({type:Boolean})],Pe.prototype,"disabled",void 0);Vt([(0,dt.property)({type:Boolean})],Pe.prototype,"error",void 0);Vt([(0,dt.property)({type:Number,reflect:!0})],Pe.prototype,"height",void 0);Vt([(0,dt.query)("textarea")],Pe.prototype,"textarea",void 0);Vt([(0,dt.state)()],Pe.prototype,"focused",void 0);(0,Pc.customElement)("ft-text-area")(Pe);var pp=m(Gn());var Kn=m(T());var Eo=m(Z()),Fc=m(T());var ir=m(T());var Mc=m(T());var $c=m(B()),Bc=m(T());var Rr=class extends Bc.FtLitElement{render(){return $c.html`
1145
+ `}setValue(e,o=!1){this.value=e,this.setFormValue(e),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Pe.elementDefinitions={"ft-input-label":ot,"ft-resizer":ke,"ft-ripple":K,"ft-typography":fe};Pe.styles=[zr,Lc];Gt([(0,dt.property)({type:String})],Pe.prototype,"label",void 0);Gt([(0,dt.property)({reflect:!0})],Pe.prototype,"value",void 0);Gt([(0,dt.property)({type:String})],Pe.prototype,"helper",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"outlined",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"disabled",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"error",void 0);Gt([(0,dt.property)({type:Number,reflect:!0})],Pe.prototype,"height",void 0);Gt([(0,dt.query)("textarea")],Pe.prototype,"textarea",void 0);Gt([(0,dt.state)()],Pe.prototype,"focused",void 0);(0,Pc.customElement)("ft-text-area")(Pe);var pp=m(Vn());var Kn=m(T());var Eo=m(Z()),Fc=m(T());var ir=m(T());var Mc=m(T());var $c=m(B()),Bc=m(T());var Rr=class extends Bc.FtLitElement{render(){return $c.html`
1146
1146
  <div class="ft-loader">
1147
1147
  <div></div>
1148
1148
  <div></div>
@@ -1659,15 +1659,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1659
1659
  .ftds--size-small.ft-button--icon-only {
1660
1660
  width: ${f.smallIconOnlyWidth};
1661
1661
  }
1662
- `,C.noTextSelect];var si=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Gt=class extends(0,li.toFtdsBase)(ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Uo.brand,this.iconVariant=Ue.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Dr.large:return er.body2medium;case Dr.medium:return er.caption1medium;case Dr.small:return er.caption2medium}}};Gt.styles=[li.safariEllipsisFix,zc];si([(0,Ao.property)({type:Boolean})],Gt.prototype,"primary",void 0);si([(0,Ao.property)({type:Boolean})],Gt.prototype,"secondary",void 0);si([(0,Ao.property)({type:Boolean})],Gt.prototype,"tertiary",void 0);si([(0,Ao.property)({type:Boolean})],Gt.prototype,"round",void 0);(0,Kn.customElement)("ft-button")(xt);(0,Kn.customElement)("ftds-button")(Gt);var Yd=m(T());var Pi=m(B()),Di=m(Z()),$i=m(T());var Hc=m(B());var Wc=Hc.css`
1663
- `;var ki=m(T());var Vd=m(T());var Jc=m(B()),$e=m(Z()),vt=m(T());var Vc=m(B());var Gc=Vc.css`
1662
+ `,C.noTextSelect];var si=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Vt=class extends(0,li.toFtdsBase)(ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Uo.brand,this.iconVariant=Ue.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Dr.large:return er.body2medium;case Dr.medium:return er.caption1medium;case Dr.small:return er.caption2medium}}};Vt.styles=[li.safariEllipsisFix,zc];si([(0,Ao.property)({type:Boolean})],Vt.prototype,"primary",void 0);si([(0,Ao.property)({type:Boolean})],Vt.prototype,"secondary",void 0);si([(0,Ao.property)({type:Boolean})],Vt.prototype,"tertiary",void 0);si([(0,Ao.property)({type:Boolean})],Vt.prototype,"round",void 0);(0,Kn.customElement)("ft-button")(xt);(0,Kn.customElement)("ftds-button")(Vt);var Yd=m(T());var Pi=m(B()),Di=m(Z()),$i=m(T());var Hc=m(B());var Wc=Hc.css`
1663
+ `;var ki=m(T());var Gd=m(T());var Jc=m(B()),$e=m(Z()),vt=m(T());var Gc=m(B());var Vc=Gc.css`
1664
1664
  `;var ci=m(T()),Xp="ft-app-info",_t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};_t.eventName="authentication-change";var Qp={session:(t,e)=>{(0,ci.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>R.dispatchEvent(new _t(e.payload)),0))}},R=ci.FtReduxStore.get({name:Xp,reducers:Qp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Zn=m(T());var Tr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=R.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=R.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var di=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Tr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tr.await()}};var it=class extends di{constructor(e=!0,o){var i;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Zn.CacheRegistry,this.cache=e?n.commonCache:new Zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,i)=>0|31*o+i.charCodeAt(0),0))}};var pi=class extends it{async listMyBookmarks(){let e=R.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qn=class{addCommand(e,o=!1){R.commands.add(e,o)}consumeCommand(e){return R.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Nt=m(T());var jc,Jp=Symbol("clearAfterUnitTest"),ui=class extends it{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jc]=()=>{this.defaultMessages={},this.cache=new Nt.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=R.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Nt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Nt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){let o=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(n){!(n instanceof Nt.CanceledPromiseError)&&o&&console.error(n)}return i}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Nt.delay)(0).then(()=>o()).catch(()=>null)))}};jc=Jp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ui{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ui{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var eo=window.FluidTopicsI18nService,fi=window.FluidTopicsCustomI18nService;var Kc=m(T()),Yn=class{highlightHtml(e,o,i){(0,Kc.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var hi=class extends it{async listMySearches(){let{session:e}=R.getState();return Dt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Zc=m(T());var Xn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return Zc.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:R.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Xn;var qc=m(T());var Ro=class{static get(e,o){var i,n,a,s;let c=R.getState(),{lang:p,region:u}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new qc.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,o??`${p}-${u}`)}};var Qn=class{urlToSearchRequest(e){return Ro.get().parse(e)}searchRequestToUrl(e){return Ro.get().serialize(e)}};window.FluidTopicsUrlService=new Qn;var nr=m(T());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ir.eventName="change";var Jn=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Yc=new Jn;var gi=class t extends nr.WithEventBus{static build(){return new t(window.history,Yc,()=>window.location,!1)}constructor(e,o,i,n){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,o=!1){let i=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ir(this.currentItem())),0)}installProxies(){let e=o=>(i,n,[a,s,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Ir.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ir.eventName,e)}currentItem(){return(0,nr.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var i;if(!this.hasState(e))return!1;let n=o??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Xc=R;function Qc(t,e){var o;return Xc.getState().authenticationRequired&&!(!((o=Xc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var Ae=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends vt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Tr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new vt.CacheRegistry,this.cleanSessionDebouncer=new vt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Jc.html`
1665
1665
  <slot></slot>
1666
- `}connectedCallback(){super.connectedCallback(),R.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&R.actions.noCustom(this.noCustom),e.has("editorMode")&&R.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&R.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>eo.addContext(u)),e.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),R.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&R.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Qc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Gc;Ae([(0,$e.property)()],oe.prototype,"baseUrl",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,$e.property)()],oe.prototype,"uiLocale",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,$e.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ae([(0,$e.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);Ae([(0,vt.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ae([(0,vt.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ae([(0,$e.state)()],oe.prototype,"localesConfiguration",void 0);Ae([(0,$e.state)()],oe.prototype,"availableContentLocales",void 0);var zu=m(Z());function eu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!yi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!yi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!yi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function yi(t,e){try{return eu(t,e)}catch{return!1}}function mi(t,e){return!yi(t,e)}var tu=m(Z(),1);var bi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var to=m(Z(),1);var ed=m(Z(),1);function td(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ed.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mi,...e??{}})}var xi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);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 od=m(B(),1);var vi=globalThis,ru=vi.ShadowRoot&&(vi.ShadyCSS===void 0||vi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TS=Symbol();var rd=(t,e)=>{if(ru)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=vi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Si=class extends od.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return rd(i,e.elementStyles),i}};function id(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var To=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ld,nd=Symbol("constructorPrototype"),ad=Symbol("constructorName"),cd=Symbol("exportpartsDebouncer"),sd=Symbol("dynamicDependenciesLoaded"),jt=class extends Si{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ld]=new xi(5),this[ad]=this.constructor.name,this[nd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ad]&&Object.setPrototypeOf(this,this[nd])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[sd]||(e[sd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=id(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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 e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[cd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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(e){var o,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>u.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};ld=cd;To([(0,to.property)()],jt.prototype,"exportpartsPrefix",void 0);To([td([])],jt.prototype,"exportpartsPrefixes",void 0);To([(0,to.property)()],jt.prototype,"customStylesheet",void 0);To([(0,to.property)()],jt.prototype,"elementToFocus",void 0);To([(0,to.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ci(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Io=Symbol("internalReduxEventsUnsubscribers"),ar=Symbol("internalStoresUnsubscribers"),_r=Symbol("internalStores");function ou(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[_r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_r].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_r].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[_r].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[_r].delete(c)}setupStores(){this.unsubscribeFromStores(),this[_r].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[ar].has(s.store):this[ar].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[ar].set(s,c.subscribe(()=>this.updateFromStores())),this[Io].set(s,[]),Ci(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let g=b=>this[h](b);c.addEventListener(u.eventName,g),this[Io].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ar].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[ar].has(s)&&this[ar].get(s)(),this[ar].delete(s),(c=this[Io].get(s))===null||c===void 0||c.forEach(p=>p()),this[Io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ar,o=_r,i=Io,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var dd=class extends ou(jt){};function pt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function St(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===pu}(t)||Array.isArray(t)||!!t[md]||!!(!((e=t.constructor)===null||e===void 0)&&e[md])||la(t)||ca(t))}function Nr(t,e,o){o===void 0&&(o=!1),io(t)===0?(o?Object.keys:oo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function io(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:ca(t)?3:0}function ro(t,e){return io(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function iu(t,e){return io(t)===2?t.get(e):t[e]}function bd(t,e,o){var i=io(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function xd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return cu&&t instanceof Map}function ca(t){return du&&t instanceof Set}function sr(t){return t.o||t.t}function da(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Cd(t);delete e[se];for(var o=oo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function pa(t,e){return e===void 0&&(e=!1),ua(t)||Kt(t)||!St(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=nu),Object.freeze(t),e&&Nr(t,function(o,i){return pa(i,!0)},!0)),t}function nu(){pt(2)}function ua(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=sa[t];return e||pt(18,t),e}function au(t,e){sa[t]||(sa[t]=e)}function ia(){return No}function ea(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){na(t),t.p.forEach(su),t.p=null}function na(t){t===No&&(No=t.l)}function pd(t){return No={p:[],l:No,h:t,m:!0,_:0}}function su(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(Oi(e),pt(4)),St(t)&&(t=wi(e,t),e.l||Ei(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=wi(e,o,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==Sd?t:void 0}function wi(t,e,o){if(ua(e))return e;var i=e[se];if(!i)return Nr(e,function(c,p){return ud(t,i,e,c,p,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ei(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=da(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Nr(a,function(c,p){return ud(t,i,n,c,p,o,s)}),Ei(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function ud(t,e,o,i,n,a,s){if(Kt(n)){var c=wi(t,n,a&&e&&e.i!==3&&!ro(e.R,i)?a.concat(i):void 0);if(bd(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(St(n)&&!ua(n)){if(!t.h.D&&t._<1)return;wi(t,n),e&&e.A.l||Ei(t,n)}}function Ei(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pa(e,o)}function ra(t,e){var o=t[se];return(o?sr(o):t)[e]}function fd(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function lr(t){t.P||(t.P=!0,t.l&&lr(t.l))}function oa(t){t.o||(t.o=da(t.t))}function aa(t,e,o){var i=la(e)?Lt("MapSet").F(e,o):ca(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Lo;s&&(p=[c],u=_o);var h=Proxy.revocable(p,u),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:ia()).p.push(i),i}function lu(t){return Kt(t)||pt(22,t),function e(o){if(!St(o))return o;var i,n=o[se],a=io(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=hd(o,a),n.I=!1}else i=hd(o,a);return Nr(i,function(s,c){n&&iu(n.t,s)===c||bd(i,s,e(c))}),a===3?new Set(i):i}(t)}function hd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return da(t)}function vd(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[se];return Lo.get(u,s)},set:function(u){var h=this[se];Lo.set(h,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][se];if(!p.P)switch(p.i){case 5:i(p)&&lr(p);break;case 4:o(p)&&lr(p)}}}function o(s){for(var c=s.t,p=s.k,u=oo(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==se){var b=c[g];if(b===void 0&&!ro(c,g))return!0;var x=p[g],S=x&&x[se];if(S?S.t!==b:!xd(x,b))return!0}}var O=!!c[se];return u.length!==oo(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(sr(s)))}var a={};au("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=Cd(b);delete O[se];for(var N=oo(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,s),h={i:p?5:4,A:c?c.A:ia(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:h,writable:!0}),u},S:function(s,c,p){p?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Nr(x,function(H){H!==se&&(b[H]!==void 0||ro(b,H)?S[H]||u(x[H]):(S[H]=!0,lr(g)))}),Nr(b,function(H){x[H]!==void 0||ro(x,H)||(S[H]=!1,lr(g))});else if(O===5){if(i(g)&&(lr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&u(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var gd,No,fa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cu=typeof Map<"u",du=typeof Set<"u",yd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sd=fa?Symbol.for("immer-nothing"):((gd={})["immer-nothing"]=!0,gd),md=fa?Symbol.for("immer-draftable"):"__$immer_draftable",se=fa?Symbol.for("immer-state"):"__$immer_state";var pu=""+Object.prototype.constructor,oo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Cd=Object.getOwnPropertyDescriptors||function(t){var e={};return oo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},sa={},Lo={get:function(t,e){if(e===se)return t;var o=sr(t);if(!ro(o,e))return function(n,a,s){var c,p=fd(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!St(i)?i:i===ra(t.t,e)?(oa(t),t.o[e]=aa(t.A.h,i,t)):i},has:function(t,e){return e in sr(t)},ownKeys:function(t){return Reflect.ownKeys(sr(t))},set:function(t,e,o){var i=fd(sr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=ra(sr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(xd(o,n)&&(o!==void 0||ro(t.t,e)))return!0;oa(t),lr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oa(t),lr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=sr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},_o={};Nr(Lo,function(t,e){_o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_o.deleteProperty=function(t,e){return _o.set.call(this,t,e,void 0)},_o.set=function(t,e,o){return Lo.set.call(this,t[0],e,o,t[0])};var uu=function(){function t(o){var i=this;this.O=yd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return p.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var u;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),St(n)){var h=pd(i),g=aa(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Oi(h):na(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ea(h,s),ta(O,h)},function(O){throw Oi(h),O}):(ea(h,s),ta(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===Sd&&(u=void 0),i.D&&pa(u,!0),s){var x=[],S=[];Lt("Patches").M(n,u,x,S),s(x,S)}return u}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,p=i.produce(n,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){St(o)||pt(8),Kt(o)&&(o=lu(o));var i=pd(this),n=aa(this,o,void 0);return n[se].C=!0,na(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return ea(a,i),ta(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!yd&&pt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new uu,fu=nt.produce,HS=nt.produceWithPatches.bind(nt),WS=nt.setAutoFreeze.bind(nt),VS=nt.setUseProxies.bind(nt),GS=nt.applyPatches.bind(nt),jS=nt.createDraft.bind(nt),KS=nt.finishDraft.bind(nt),Ai=fu;function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(t)}function Od(t,e){if(Lr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(Lr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wd(t){var e=Od(t,"string");return Lr(e)=="symbol"?e:e+""}function Ed(t,e,o){return(e=wd(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ad(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function ha(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ad(Object(o),!0).forEach(function(i){Ed(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ad(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Rd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ri={INIT:"@@redux/INIT"+ga(),REPLACE:"@@redux/REPLACE"+ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ga()}};function hu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ya(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(ya)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(p)throw new Error(He(5));var N=!0;return u(),c.push(O),function(){if(N){if(p)throw new Error(He(6));N=!1,u();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!hu(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(p)throw new Error(He(9));try{p=!0,a=n(a,O)}finally{p=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:Ri.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Rd]=function(){return this},O}return b({type:Ri.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Rd]=S,i}function gu(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ri.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Td(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{gu(o)}catch(p){c=p}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],I=u[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(u).length,b?x:u}}function no(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Id(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=no.apply(void 0,c)(n.dispatch),ha(ha({},n),{},{dispatch:a})}}}function _d(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Nd=_d();Nd.withExtraArgument=_d;var ma=Nd;var $d=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),yu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return p([u,h])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ao=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},mu=Object.defineProperty,bu=Object.defineProperties,xu=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,kd=function(t,e,o){return e in t?mu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},cr=function(t,e){for(var o in e||(e={}))vu.call(e,o)&&kd(t,o,e[o]);if(Ld)for(var i=0,n=Ld(e);i<n.length;i++){var o=n[i];Su.call(e,o)&&kd(t,o,e[o])}return t},ba=function(t,e){return bu(t,xu(e))},Cu=function(t,e,o){return new Promise(function(i,n){var a=function(p){try{c(o.next(p))}catch(u){n(u)}},s=function(p){try{c(o.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?no:no.apply(null,arguments)},pC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function wu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Eu=function(t){$d(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ao([void 0],o[0].concat(this)))):new(e.bind.apply(e,ao([void 0],o.concat(this))))},e}(Array),Au=function(t){$d(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ao([void 0],o[0].concat(this)))):new(e.bind.apply(e,ao([void 0],o.concat(this))))},e}(Array);function Sa(t){return St(t)?Ai(t,function(){}):t}function Ru(t){return typeof t=="boolean"}function Tu(){return function(e){return Iu(e)}}function Iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Eu;if(o&&(Ru(o)?c.push(ma):c.push(ma.withExtraArgument(o.extraArgument))),0){if(n)var p;if(s)var u}return c}var xa=!0;function Bd(t){var e=Tu(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(wu(n))x=Td(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!xa&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xa&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Id.apply(void 0,S),N=no;p&&(N=Ou(cr({trace:!xa},typeof p=="object"&&p)));var I=new Au(O),_=I;Array.isArray(b)?_=ao([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return ya(x,h,$)}function dr(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return cr(cr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Md(t){var e={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function _u(t){return typeof t=="function"}function Nu(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Md(e):[e,o,i],a=n[0],s=n[1],c=n[2],p;if(_u(t))p=function(){return Sa(t())};else{var u=Sa(t);p=function(){return u}}function h(g,b){g===void 0&&(g=p());var x=ao([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(St(S))return Ai(S,function(_){return O(_,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=p,h}function Lu(t,e){return t+"/"+e}function Fd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Sa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Lu(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?dr(b,S):dr(b)});function p(){var h=typeof t.extraReducers=="function"?Md(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=cr(cr({},b),s);return Nu(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];_.addMatcher(qe.matcher,qe.reducer)}N&&_.addDefaultCase(N)})}var u;return{name:e,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var ku="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=ku[Math.random()*64|0];return e},Du=["name","message","stack","code"],va=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Pd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),$u=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Du;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},gC=function(){function t(e,o,i){var n=dr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:ba(cr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=dr(e+"/pending",function(h,g,b){return{payload:void 0,meta:ba(cr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=dr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||$u)(h||"Rejected"),meta:ba(cr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Pu(),O=new p,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return Cu(this,null,function(){var H,W,qe,wt,Ge,Et,_e;return yu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),wt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),Mu(wt)?[4,wt]:[3,2];case 1:wt=y.sent(),y.label=2;case 2:if(wt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new va(v,P)},fulfillWithValue:function(v,P){return new Pd(v,P)}})).then(function(v){if(v instanceof va)throw v;return v instanceof Pd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Et=y.sent(),qe=Et instanceof va?s(null,S,h,Et.payload,Et.meta):s(Et,S,h),[3,5];case 5:return _e=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,_e||g(qe),[2,qe]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Bu)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Bu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Mu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ud="listener",zd="completed",Hd="cancelled",yC="task-"+Hd,mC="task-"+zd,bC=Ud+"-"+Hd,xC=Ud+"-"+zd;var Ca="listenerMiddleware";var vC=dr(Ca+"/add"),SC=dr(Ca+"/removeAll"),CC=dr(Ca+"/remove");var Dd,OC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Dd||(Dd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fu=function(t){return function(e){setTimeout(e,t)}},wC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fu(10);vd();function Uu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var Ti=class extends Uu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Wd=class t extends Ti{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ci(a))return a;if(n==null)return;let s=Fd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=Bd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...h)=>{let g=u(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[p]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var _i=m(T());var Ii=class extends it{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=R.getState().session;return!!e?.sessionAuthenticated}};var Hu="ft-user-assets",Wu={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(xr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},ut=_i.FtReduxStore.get({name:Hu,reducers:Wu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(xr).map(t=>[t,void 0])),bookmarkByMap:{}}}}),Oa=class{constructor(e=new Ii){this.assetCountsService=e,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new hi,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=R.getState();(0,_i.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){ut.actions.clearAssetCount(),ut.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ut.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ut.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ut.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ut.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ut.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ut.getState().assetCounts.bookmarkByMap).length!==0;e===xr.BOOKMARKS&&o&&ut.actions.clearBookmarkCountByMap(),ut.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ut.actions.bookmarks(o)}}},wa=new Oa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wa);(0,Vd.customElement)("ft-app-context")(oe);var qd=m(Z());var Vu=m(T());function Gd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Gu=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},jd=Symbol("i18nAttributes"),Kd=Symbol("i18nListAttributes"),Po=Symbol("i18nProperties"),Ni=Symbol("i18nContexts"),ko=Symbol("i18nUnsubs");function pr(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?fi:eo}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(Gd(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,...h})}:b;(s=this[jd])===null||s===void 0||s.forEach((h,g)=>p[g]=u(h,g,p[g])),(c=this[Kd])===null||c===void 0||c.forEach((h,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(x=>u(h,g,x))})}updateI18nProperties(a){var s;(s=this[Po])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ni].set(p,{isCustomContext:c}),this[ko].has(p)||this[ko].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Ni].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ni].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ko].forEach(a=>a()),this[ko].clear()}}return e=Ni,o=ko,Gu([(0,qd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var Zd=class extends pr(ki.FtLitElement){},Li=class extends pr(ki.FtLitElementRedux){};var Do=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ct=class extends Li{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Pi.nothing:Pi.html`
1666
+ `}connectedCallback(){super.connectedCallback(),R.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&R.actions.noCustom(this.noCustom),e.has("editorMode")&&R.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&R.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>eo.addContext(u)),e.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),R.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&R.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Qc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Vc;Ae([(0,$e.property)()],oe.prototype,"baseUrl",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,$e.property)()],oe.prototype,"uiLocale",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,$e.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ae([(0,$e.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);Ae([(0,vt.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ae([(0,vt.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ae([(0,$e.state)()],oe.prototype,"localesConfiguration",void 0);Ae([(0,$e.state)()],oe.prototype,"availableContentLocales",void 0);var zu=m(Z());function eu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!yi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!yi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!yi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function yi(t,e){try{return eu(t,e)}catch{return!1}}function mi(t,e){return!yi(t,e)}var tu=m(Z(),1);var bi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var to=m(Z(),1);var ed=m(Z(),1);function td(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ed.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mi,...e??{}})}var xi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);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 od=m(B(),1);var vi=globalThis,ru=vi.ShadowRoot&&(vi.ShadyCSS===void 0||vi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TS=Symbol();var rd=(t,e)=>{if(ru)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=vi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Si=class extends od.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return rd(i,e.elementStyles),i}};function id(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var To=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ld,nd=Symbol("constructorPrototype"),ad=Symbol("constructorName"),cd=Symbol("exportpartsDebouncer"),sd=Symbol("dynamicDependenciesLoaded"),jt=class extends Si{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ld]=new xi(5),this[ad]=this.constructor.name,this[nd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ad]&&Object.setPrototypeOf(this,this[nd])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[sd]||(e[sd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=id(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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 e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[cd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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(e){var o,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>u.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};ld=cd;To([(0,to.property)()],jt.prototype,"exportpartsPrefix",void 0);To([td([])],jt.prototype,"exportpartsPrefixes",void 0);To([(0,to.property)()],jt.prototype,"customStylesheet",void 0);To([(0,to.property)()],jt.prototype,"elementToFocus",void 0);To([(0,to.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ci(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Io=Symbol("internalReduxEventsUnsubscribers"),ar=Symbol("internalStoresUnsubscribers"),_r=Symbol("internalStores");function ou(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[_r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_r].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_r].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[_r].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[_r].delete(c)}setupStores(){this.unsubscribeFromStores(),this[_r].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[ar].has(s.store):this[ar].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[ar].set(s,c.subscribe(()=>this.updateFromStores())),this[Io].set(s,[]),Ci(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let g=b=>this[h](b);c.addEventListener(u.eventName,g),this[Io].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ar].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[ar].has(s)&&this[ar].get(s)(),this[ar].delete(s),(c=this[Io].get(s))===null||c===void 0||c.forEach(p=>p()),this[Io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ar,o=_r,i=Io,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var dd=class extends ou(jt){};function pt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function St(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===pu}(t)||Array.isArray(t)||!!t[md]||!!(!((e=t.constructor)===null||e===void 0)&&e[md])||la(t)||ca(t))}function Nr(t,e,o){o===void 0&&(o=!1),io(t)===0?(o?Object.keys:oo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function io(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:ca(t)?3:0}function ro(t,e){return io(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function iu(t,e){return io(t)===2?t.get(e):t[e]}function bd(t,e,o){var i=io(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function xd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return cu&&t instanceof Map}function ca(t){return du&&t instanceof Set}function sr(t){return t.o||t.t}function da(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Cd(t);delete e[se];for(var o=oo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function pa(t,e){return e===void 0&&(e=!1),ua(t)||Kt(t)||!St(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=nu),Object.freeze(t),e&&Nr(t,function(o,i){return pa(i,!0)},!0)),t}function nu(){pt(2)}function ua(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=sa[t];return e||pt(18,t),e}function au(t,e){sa[t]||(sa[t]=e)}function ia(){return No}function ea(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){na(t),t.p.forEach(su),t.p=null}function na(t){t===No&&(No=t.l)}function pd(t){return No={p:[],l:No,h:t,m:!0,_:0}}function su(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(Oi(e),pt(4)),St(t)&&(t=wi(e,t),e.l||Ei(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=wi(e,o,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==Sd?t:void 0}function wi(t,e,o){if(ua(e))return e;var i=e[se];if(!i)return Nr(e,function(c,p){return ud(t,i,e,c,p,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ei(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=da(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Nr(a,function(c,p){return ud(t,i,n,c,p,o,s)}),Ei(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function ud(t,e,o,i,n,a,s){if(Kt(n)){var c=wi(t,n,a&&e&&e.i!==3&&!ro(e.R,i)?a.concat(i):void 0);if(bd(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(St(n)&&!ua(n)){if(!t.h.D&&t._<1)return;wi(t,n),e&&e.A.l||Ei(t,n)}}function Ei(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pa(e,o)}function ra(t,e){var o=t[se];return(o?sr(o):t)[e]}function fd(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function lr(t){t.P||(t.P=!0,t.l&&lr(t.l))}function oa(t){t.o||(t.o=da(t.t))}function aa(t,e,o){var i=la(e)?Lt("MapSet").F(e,o):ca(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Lo;s&&(p=[c],u=_o);var h=Proxy.revocable(p,u),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:ia()).p.push(i),i}function lu(t){return Kt(t)||pt(22,t),function e(o){if(!St(o))return o;var i,n=o[se],a=io(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=hd(o,a),n.I=!1}else i=hd(o,a);return Nr(i,function(s,c){n&&iu(n.t,s)===c||bd(i,s,e(c))}),a===3?new Set(i):i}(t)}function hd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return da(t)}function vd(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[se];return Lo.get(u,s)},set:function(u){var h=this[se];Lo.set(h,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][se];if(!p.P)switch(p.i){case 5:i(p)&&lr(p);break;case 4:o(p)&&lr(p)}}}function o(s){for(var c=s.t,p=s.k,u=oo(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==se){var b=c[g];if(b===void 0&&!ro(c,g))return!0;var x=p[g],S=x&&x[se];if(S?S.t!==b:!xd(x,b))return!0}}var O=!!c[se];return u.length!==oo(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(sr(s)))}var a={};au("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=Cd(b);delete O[se];for(var N=oo(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,s),h={i:p?5:4,A:c?c.A:ia(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:h,writable:!0}),u},S:function(s,c,p){p?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Nr(x,function(H){H!==se&&(b[H]!==void 0||ro(b,H)?S[H]||u(x[H]):(S[H]=!0,lr(g)))}),Nr(b,function(H){x[H]!==void 0||ro(x,H)||(S[H]=!1,lr(g))});else if(O===5){if(i(g)&&(lr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&u(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var gd,No,fa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cu=typeof Map<"u",du=typeof Set<"u",yd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sd=fa?Symbol.for("immer-nothing"):((gd={})["immer-nothing"]=!0,gd),md=fa?Symbol.for("immer-draftable"):"__$immer_draftable",se=fa?Symbol.for("immer-state"):"__$immer_state";var pu=""+Object.prototype.constructor,oo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Cd=Object.getOwnPropertyDescriptors||function(t){var e={};return oo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},sa={},Lo={get:function(t,e){if(e===se)return t;var o=sr(t);if(!ro(o,e))return function(n,a,s){var c,p=fd(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!St(i)?i:i===ra(t.t,e)?(oa(t),t.o[e]=aa(t.A.h,i,t)):i},has:function(t,e){return e in sr(t)},ownKeys:function(t){return Reflect.ownKeys(sr(t))},set:function(t,e,o){var i=fd(sr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=ra(sr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(xd(o,n)&&(o!==void 0||ro(t.t,e)))return!0;oa(t),lr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oa(t),lr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=sr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},_o={};Nr(Lo,function(t,e){_o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_o.deleteProperty=function(t,e){return _o.set.call(this,t,e,void 0)},_o.set=function(t,e,o){return Lo.set.call(this,t[0],e,o,t[0])};var uu=function(){function t(o){var i=this;this.O=yd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return p.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var u;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),St(n)){var h=pd(i),g=aa(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Oi(h):na(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ea(h,s),ta(O,h)},function(O){throw Oi(h),O}):(ea(h,s),ta(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===Sd&&(u=void 0),i.D&&pa(u,!0),s){var x=[],S=[];Lt("Patches").M(n,u,x,S),s(x,S)}return u}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,p=i.produce(n,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){St(o)||pt(8),Kt(o)&&(o=lu(o));var i=pd(this),n=aa(this,o,void 0);return n[se].C=!0,na(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return ea(a,i),ta(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!yd&&pt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new uu,fu=nt.produce,HS=nt.produceWithPatches.bind(nt),WS=nt.setAutoFreeze.bind(nt),GS=nt.setUseProxies.bind(nt),VS=nt.applyPatches.bind(nt),jS=nt.createDraft.bind(nt),KS=nt.finishDraft.bind(nt),Ai=fu;function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(t)}function Od(t,e){if(Lr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(Lr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wd(t){var e=Od(t,"string");return Lr(e)=="symbol"?e:e+""}function Ed(t,e,o){return(e=wd(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ad(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function ha(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ad(Object(o),!0).forEach(function(i){Ed(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ad(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Rd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ri={INIT:"@@redux/INIT"+ga(),REPLACE:"@@redux/REPLACE"+ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ga()}};function hu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ya(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(ya)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(p)throw new Error(He(5));var N=!0;return u(),c.push(O),function(){if(N){if(p)throw new Error(He(6));N=!1,u();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!hu(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(p)throw new Error(He(9));try{p=!0,a=n(a,O)}finally{p=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:Ri.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Rd]=function(){return this},O}return b({type:Ri.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Rd]=S,i}function gu(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ri.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Td(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{gu(o)}catch(p){c=p}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],I=u[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(u).length,b?x:u}}function no(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Id(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=no.apply(void 0,c)(n.dispatch),ha(ha({},n),{},{dispatch:a})}}}function _d(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Nd=_d();Nd.withExtraArgument=_d;var ma=Nd;var $d=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),yu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return p([u,h])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ao=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},mu=Object.defineProperty,bu=Object.defineProperties,xu=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,kd=function(t,e,o){return e in t?mu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},cr=function(t,e){for(var o in e||(e={}))vu.call(e,o)&&kd(t,o,e[o]);if(Ld)for(var i=0,n=Ld(e);i<n.length;i++){var o=n[i];Su.call(e,o)&&kd(t,o,e[o])}return t},ba=function(t,e){return bu(t,xu(e))},Cu=function(t,e,o){return new Promise(function(i,n){var a=function(p){try{c(o.next(p))}catch(u){n(u)}},s=function(p){try{c(o.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?no:no.apply(null,arguments)},pC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function wu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Eu=function(t){$d(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ao([void 0],o[0].concat(this)))):new(e.bind.apply(e,ao([void 0],o.concat(this))))},e}(Array),Au=function(t){$d(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ao([void 0],o[0].concat(this)))):new(e.bind.apply(e,ao([void 0],o.concat(this))))},e}(Array);function Sa(t){return St(t)?Ai(t,function(){}):t}function Ru(t){return typeof t=="boolean"}function Tu(){return function(e){return Iu(e)}}function Iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Eu;if(o&&(Ru(o)?c.push(ma):c.push(ma.withExtraArgument(o.extraArgument))),0){if(n)var p;if(s)var u}return c}var xa=!0;function Bd(t){var e=Tu(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(wu(n))x=Td(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!xa&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xa&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Id.apply(void 0,S),N=no;p&&(N=Ou(cr({trace:!xa},typeof p=="object"&&p)));var I=new Au(O),_=I;Array.isArray(b)?_=ao([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return ya(x,h,$)}function dr(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return cr(cr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Md(t){var e={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function _u(t){return typeof t=="function"}function Nu(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Md(e):[e,o,i],a=n[0],s=n[1],c=n[2],p;if(_u(t))p=function(){return Sa(t())};else{var u=Sa(t);p=function(){return u}}function h(g,b){g===void 0&&(g=p());var x=ao([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(St(S))return Ai(S,function(_){return O(_,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=p,h}function Lu(t,e){return t+"/"+e}function Fd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Sa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Lu(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?dr(b,S):dr(b)});function p(){var h=typeof t.extraReducers=="function"?Md(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=cr(cr({},b),s);return Nu(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];_.addMatcher(qe.matcher,qe.reducer)}N&&_.addDefaultCase(N)})}var u;return{name:e,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var ku="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=ku[Math.random()*64|0];return e},Du=["name","message","stack","code"],va=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Pd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),$u=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Du;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},gC=function(){function t(e,o,i){var n=dr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:ba(cr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=dr(e+"/pending",function(h,g,b){return{payload:void 0,meta:ba(cr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=dr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||$u)(h||"Rejected"),meta:ba(cr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Pu(),O=new p,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return Cu(this,null,function(){var H,W,qe,wt,Ve,Et,_e;return yu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),wt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),Mu(wt)?[4,wt]:[3,2];case 1:wt=y.sent(),y.label=2;case 2:if(wt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ve,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new va(v,P)},fulfillWithValue:function(v,P){return new Pd(v,P)}})).then(function(v){if(v instanceof va)throw v;return v instanceof Pd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Et=y.sent(),qe=Et instanceof va?s(null,S,h,Et.payload,Et.meta):s(Et,S,h),[3,5];case 5:return _e=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,_e||g(qe),[2,qe]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Bu)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Bu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Mu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ud="listener",zd="completed",Hd="cancelled",yC="task-"+Hd,mC="task-"+zd,bC=Ud+"-"+Hd,xC=Ud+"-"+zd;var Ca="listenerMiddleware";var vC=dr(Ca+"/add"),SC=dr(Ca+"/removeAll"),CC=dr(Ca+"/remove");var Dd,OC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Dd||(Dd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fu=function(t){return function(e){setTimeout(e,t)}},wC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fu(10);vd();function Uu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var Ti=class extends Uu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Wd=class t extends Ti{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ci(a))return a;if(n==null)return;let s=Fd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=Bd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...h)=>{let g=u(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[p]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var _i=m(T());var Ii=class extends it{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=R.getState().session;return!!e?.sessionAuthenticated}};var Hu="ft-user-assets",Wu={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(xr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},ut=_i.FtReduxStore.get({name:Hu,reducers:Wu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(xr).map(t=>[t,void 0])),bookmarkByMap:{}}}}),Oa=class{constructor(e=new Ii){this.assetCountsService=e,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new hi,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=R.getState();(0,_i.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){ut.actions.clearAssetCount(),ut.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ut.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ut.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ut.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ut.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ut.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ut.getState().assetCounts.bookmarkByMap).length!==0;e===xr.BOOKMARKS&&o&&ut.actions.clearBookmarkCountByMap(),ut.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ut.actions.bookmarks(o)}}},wa=new Oa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wa);(0,Gd.customElement)("ft-app-context")(oe);var qd=m(Z());var Gu=m(T());function Vd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Vu=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},jd=Symbol("i18nAttributes"),Kd=Symbol("i18nListAttributes"),Po=Symbol("i18nProperties"),Ni=Symbol("i18nContexts"),ko=Symbol("i18nUnsubs");function pr(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?fi:eo}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(Vd(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,...h})}:b;(s=this[jd])===null||s===void 0||s.forEach((h,g)=>p[g]=u(h,g,p[g])),(c=this[Kd])===null||c===void 0||c.forEach((h,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(x=>u(h,g,x))})}updateI18nProperties(a){var s;(s=this[Po])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ni].set(p,{isCustomContext:c}),this[ko].has(p)||this[ko].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Ni].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ni].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ko].forEach(a=>a()),this[ko].clear()}}return e=Ni,o=ko,Vu([(0,qd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var Zd=class extends pr(ki.FtLitElement){},Li=class extends pr(ki.FtLitElementRedux){};var Do=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ct=class extends Li{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Pi.nothing:Pi.html`
1667
1667
  <span class="ft-i18n">
1668
1668
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1669
1669
  </span>
1670
- `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ct.elementDefinitions={};Ct.styles=Wc;Do([(0,$i.redux)()],Ct.prototype,"editorMode",void 0);Do([(0,Di.property)()],Ct.prototype,"context",void 0);Do([(0,Di.property)()],Ct.prototype,"key",void 0);Do([(0,$i.jsonProperty)([])],Ct.prototype,"args",void 0);Do([(0,Di.property)()],Ct.prototype,"defaultMessage",void 0);var ur=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?fi:eo}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;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:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}};var Bi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Po]=(a=o[Po])!==null&&a!==void 0?a:new Map,o[Po].set(i,s)};(0,Yd.customElement)("ft-i18n")(Ct);var G=ur.build("integratedFeedbackComponent"),Xd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Aa=m(T());var Re=m(B()),z=m(Z()),ip=m(Gn()),np=m($t());var Mi=t=>t??ve;var fr=m(T());var Qd=m(B()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Jd=Qd.css`
1670
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ct.elementDefinitions={};Ct.styles=Wc;Do([(0,$i.redux)()],Ct.prototype,"editorMode",void 0);Do([(0,Di.property)()],Ct.prototype,"context",void 0);Do([(0,Di.property)()],Ct.prototype,"key",void 0);Do([(0,$i.jsonProperty)([])],Ct.prototype,"args",void 0);Do([(0,Di.property)()],Ct.prototype,"defaultMessage",void 0);var ur=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?fi:eo}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;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:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}};var Bi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Po]=(a=o[Po])!==null&&a!==void 0?a:new Map,o[Po].set(i,s)};(0,Yd.customElement)("ft-i18n")(Ct);var V=ur.build("integratedFeedbackComponent"),Xd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Aa=m(T());var Re=m(B()),z=m(Z()),ip=m(Vn()),np=m($t());var Mi=t=>t??ve;var fr=m(T());var Qd=m(B()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Jd=Qd.css`
1671
1671
  *:focus {
1672
1672
  outline: none;
1673
1673
  }
@@ -1948,14 +1948,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1948
1948
  .value=${this.icon}
1949
1949
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1950
1950
  `:Re.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var o,i,n;!((o=this.input)===null||o===void 0)&&o.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,o=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),o&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var o;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var o;this.setValue(e.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,o;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,fr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--ft-text-field-internal-suggest-size",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};M.elementDefinitions={"ft-input-label":ot,"ft-ripple":K,"ft-typography":fe,"ft-icon":he,"ft-text-field-suggestion":ft};M.styles=[zr,fr.noTextInputDefaultClearButton,Jd];j([(0,z.property)()],M.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],M.prototype,"value",null);j([(0,z.state)()],M.prototype,"dispatchedValue",void 0);j([(0,z.property)()],M.prototype,"helper",void 0);j([(0,z.property)()],M.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],M.prototype,"prefix",void 0);j([(0,z.property)()],M.prototype,"icon",void 0);j([(0,z.property)()],M.prototype,"name",void 0);j([(0,z.property)()],M.prototype,"type",void 0);j([(0,z.property)()],M.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],M.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],M.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],M.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"password",void 0);j([(0,z.property)({type:String})],M.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],M.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],M.prototype,"focused",void 0);j([(0,z.state)()],M.prototype,"hidePassword",void 0);j([(0,z.state)()],M.prototype,"hideSuggestions",void 0);j([(0,z.state)()],M.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],M.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],M.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],M.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],M.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],M.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],M.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],M.prototype,"slottedSuggestions",void 0);(0,Aa.customElement)("ft-text-field")(M);(0,Aa.customElement)("ft-text-field-suggestion")(ft);var dp=m(T());var Bo=m(B()),hr=m(Z()),et=m(T());var Ot=m(T());var ap=m(T()),ju={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let o in e.payload)t.topicsRating[o]=e.payload[o]}},sp=t=>ap.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:ju});var Ra=class{constructor(e,o){this.mapId=e,this.paginatedToc=o,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,o,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]})}convertNodes(e,o,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:o,parentTocId:i,children:[]};this.register(u);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),g=this.convertNodes(n.children,o+1,u.tocId);return u.children=[...h,...g],[u]})}convertSectionNodes(e,o,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(e,o){var i,n,a,s,c,p;let u={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},h=(b,x)=>(x?u.topics:u.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return u.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((p=e.pageToc)!==null&&p!==void 0?p:[])),u}registerPage(e){for(let o of[...e.topics,...e.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=e);this.pages.push(e)}tocIds(e){return e.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(e){let o=[e.tocId];for(;e?.parentTocId;)o.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return o}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ui=class{convertPaginatedToc(e,o){return new Ra(e,o).build()}};var zi=class extends it{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,o,i){super(!1,o),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(o=>this.converter.convertPaginatedToc(e,o)))),this.cache.register("ratingSummary",()=>{var e,o;return Dt((o=(e=R.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(e,o){return e+(o?"-destinationLanguage-"+o?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(o=>this.converter.convertPaginatedToc(this.mapId,o)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,o){return(await this.getEnrichedToc(o)).nodeByTocId[e]}getTocNodeNow(e,o){var i;return(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,o){var i,n;let a=this.getMapNow(o);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(o))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,o){let i=await this.getEnrichedToc(o);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,o){let i=await this.getEnrichedToc(o);return i.pageByTocId[e]||i.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,o){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,o),()=>this.fetchTranslatedTopicHTMLContent(e,o))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,o){return this.cache.get("document-relatives-"+e+"-"+o.join("-"),()=>this.fetchRelativesForDocument(e,o))}getRelativesForTopicInMap(e,o,i){return this.cache.get("topic-relatives-"+[e,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,o,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,o,i){let n=this.getNavigationData(e,o,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,o,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),p=c?.pageByTocId[e],u=c?.nodeByTocId[e],h=u?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=u?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:u?.untranslatedTitle,page:o&&p&&p.number!==o?o:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,o,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,o,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,o){return this.makeRateMapRequest(e,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,o){return this.makeMapFeedbackRequest(e,o)}rateTopic(e,o,i){return this.makeRateTopicRequest(e,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=R.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,o,i){return this.makeTopicFeedbackRequest(e,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,o){let i=this.getTocNodeNow(e,o),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,o);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,o);return n}isFeatureAccessible(e,{session:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case at.FEEDBACK:return Dt(o??[],te.FEEDBACK_USER);case at.RATING:return Dt(o??[],te.RATING_USER);case at.PRINT:return Dt(o??[],te.PRINT_USER);case at.BOOKMARK:return!!o?.sessionAuthenticated;case at.COLLECTIONS:return Dt(o??[],te.COLLECTION_USER);case at.PERSONAL_BOOKS:return Dt(o??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}reloadConfiguration(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration())}};var Hi=class t extends zi{static async build(e){return new t(new Ui,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,o){let i=await this.api.getMap(e,o);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,o){return await this.getMap(o),this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,o){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,o)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,o){return this.api.sendMapFeedback(this.mapId,e,o)}makeRateMapRequest(e,o){return this.api.rateMap(this.mapId,e,o)}makeRateTopicRequest(e,o,i){return this.api.rateTopic(this.mapId,e,o,i)}makeTopicFeedbackRequest(e,o,i){return this.api.sendTopicFeedback(this.mapId,e,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Wi=class t{static build(e,o){return new t(sp(e.trim()||"context"),o??Hi.build)}loaded(){return(0,Ot.waitUntil)(()=>this._loaded)}constructor(e,o,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Ot.Debouncer(10),this.initService(o)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,Ot.waitFor)(()=>this.service)}async navigateToTopic(e,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:o}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,o){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var o,i,n,a,s,c;try{e&&this.setTranslationLoading(!0);let p=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([(o=this.service)===null||o===void 0?void 0:o.getConfiguration().then(u=>this.store.actions.configuration(u)),(i=this.service)===null||i===void 0?void 0:i.getMap(e).then(u=>this.store.actions.map(u)).catch(p),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(p),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(p),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(p),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(p){this.errorHandler&&!(p instanceof Ot.CanceledPromiseError)&&this.errorHandler(p)}}fetchRelatives(){var e,o;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(co.clusteringHelperCreated))}createClusteringHelper(){var e,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(o=(e=R.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[];return new Ot.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var o,i,n;await this.loaded();let a=await(0,Ot.waitFor)(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(o=p?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let u=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let o=this.store.getState();return o.translation.profileId&&o.translation.destinationLanguage?{profileId:o.translation.profileId,destinationLanguage:o.translation.destinationLanguage.code,sourceLanguage:(e=o.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var o;let i=await((o=this.service)===null||o===void 0?void 0:o.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,o,i){return this.service.getAccurateNavigationData(e,o?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var o;return(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var o,i;let n=this.getTranslationSettings();return n?(o=this.service)===null||o===void 0?void 0:o.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(co.mapAttachmentsUpdate))}};var lp=m(B());var cp=lp.css`
1951
- `;var Vi=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},Gi=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},ji=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ki=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Zi=class extends Event{constructor(){super("ft-reader-map-not-found")}},qi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Yi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Xi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Qi=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ku=t=>e=>+(e??"NaN")>0?+e:t,Te=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.awaitService().then(e=>{e.reloadConfiguration()})},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(R)}render(){return Bo.html`
1951
+ `;var Gi=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},Vi=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},ji=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ki=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Zi=class extends Event{constructor(){super("ft-reader-map-not-found")}},qi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Yi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Xi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Qi=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ku=t=>e=>+(e??"NaN")>0?+e:t,Te=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.awaitService().then(e=>{e.reloadConfiguration()})},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(R)}render(){return Bo.html`
1952
1952
  ${this.importStyleIfNeeded()}
1953
1953
  <slot @register-ft-reader-component="${this.registerComponent}"></slot>
1954
1954
  `}importStyleIfNeeded(){var e,o;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((o=this.baseUrl)!==null&&o!==void 0?o:"")?Bo.nothing:Bo.html`
1955
1955
  <style>
1956
1956
  @import "${i}"
1957
1957
  </style>
1958
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Wi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let o=e.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new Qi(this.stateManager)}),R.addEventListener(_t.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),R.addEventListener(_t.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(o=>e.has(o))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var o,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new ji(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Gi(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Xi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let o=e;o.status===401?this.dispatchEvent(new qi):o.status===403?this.dispatchEvent(new Yi):o.status===404?this.dispatchEvent(new Zi):this.dispatchEvent(new Ki(e))}reloadBookmarks(){wa.reloadBookmarks()}async reloadRating(){var e,o;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Vi(this.map,this.toc))})}};Te.styles=cp;tt([(0,et.redux)({store:R.name})],Te.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:R.name})],Te.prototype,"session",void 0);tt([(0,hr.property)()],Te.prototype,"mapId",void 0);tt([(0,hr.property)()],Te.prototype,"tocId",void 0);tt([(0,hr.property)()],Te.prototype,"section",void 0);tt([(0,hr.property)()],Te.prototype,"topicPivot",void 0);tt([(0,hr.property)()],Te.prototype,"searchInDocumentQuery",void 0);tt([(0,hr.property)({type:Number,converter:{fromAttribute:Ku()}})],Te.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"scrollTarget",void 0);tt([(0,hr.property)({attribute:!1})],Te.prototype,"readerServiceProvider",void 0);(0,dp.customElement)("ft-reader-context")(Te);var Ji=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},en=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},rn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},on=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ie=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends pr(Zt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(G,Xd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,o;return(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,o;let i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,nn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1958
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Wi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let o=e.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new Qi(this.stateManager)}),R.addEventListener(_t.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),R.addEventListener(_t.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(o=>e.has(o))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var o,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new ji(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Vi(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Xi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let o=e;o.status===401?this.dispatchEvent(new qi):o.status===403?this.dispatchEvent(new Yi):o.status===404?this.dispatchEvent(new Zi):this.dispatchEvent(new Ki(e))}reloadBookmarks(){wa.reloadBookmarks()}async reloadRating(){var e,o;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Gi(this.map,this.toc))})}};Te.styles=cp;tt([(0,et.redux)({store:R.name})],Te.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:R.name})],Te.prototype,"session",void 0);tt([(0,hr.property)()],Te.prototype,"mapId",void 0);tt([(0,hr.property)()],Te.prototype,"tocId",void 0);tt([(0,hr.property)()],Te.prototype,"section",void 0);tt([(0,hr.property)()],Te.prototype,"topicPivot",void 0);tt([(0,hr.property)()],Te.prototype,"searchInDocumentQuery",void 0);tt([(0,hr.property)({type:Number,converter:{fromAttribute:Ku()}})],Te.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"scrollTarget",void 0);tt([(0,hr.property)({attribute:!1})],Te.prototype,"readerServiceProvider",void 0);(0,dp.customElement)("ft-reader-context")(Te);var Ji=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},en=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},rn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},on=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ie=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends pr(Zt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(V,Xd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,o;return(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,o;let i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,nn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1959
1959
  <div class="ft-reader-feedback">
1960
1960
  ${this.hideTitle?ye.nothing:ye.html`
1961
1961
  <ft-typography variant="title" part="main-title">
@@ -1975,11 +1975,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1975
1975
  ${this.renderRatingDate()}
1976
1976
  </ft-typography>
1977
1977
  </div>
1978
- `:ye.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return G.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return G.messages.ratedNow();let o=new Date().toLocaleDateString(),i=e.toLocaleDateString();return o===i?G.messages.ratedToday():G.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case xe.STARS:return ye.html`
1978
+ `:ye.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return V.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return V.messages.ratedNow();let o=new Date().toLocaleDateString(),i=e.toLocaleDateString();return o===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case xe.STARS:return ye.html`
1979
1979
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1980
1980
  ${(0,pp.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,p=s+1;return ye.html`
1981
1981
  <ft-button round part="rating-stars-${p}"
1982
- label="${G.messages.starsRating(p)}"
1982
+ label="${V.messages.starsRating(p)}"
1983
1983
  tooltipPosition="top"
1984
1984
  .iconVariant=${this.iconVariant}
1985
1985
  icon="${c?this.filledStarIcon:this.emptyStarIcon}"
@@ -1998,14 +1998,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1998
1998
  .iconVariant=${this.iconVariant}
1999
1999
  icon="${o?this.filledLikeIcon:this.emptyLikeIcon}"
2000
2000
  role="radio">
2001
- ${G.messages.like()}
2001
+ ${V.messages.like()}
2002
2002
  </ft-switch-option>
2003
2003
  <ft-switch-option .value=${0}
2004
2004
  ?selected=${e}
2005
2005
  .iconVariant=${this.iconVariant}
2006
2006
  icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
2007
2007
  role="radio">
2008
- ${G.messages.dislike()}
2008
+ ${V.messages.dislike()}
2009
2009
  </ft-switch-option>
2010
2010
  </ft-switch>
2011
2011
  `;case xe.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===xe.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===xe.DICHOTOMOUS&&this.ratingValue===1;return ye.html`
@@ -2014,11 +2014,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
2014
2014
  part="rating rating-dichotomous">
2015
2015
  <ft-switch-option .value=${1}
2016
2016
  ?selected=${n}>
2017
- ${G.messages.dichotomousYes()}
2017
+ ${V.messages.dichotomousYes()}
2018
2018
  </ft-switch-option>
2019
2019
  <ft-switch-option .value=${0}
2020
2020
  ?selected=${i}>
2021
- ${G.messages.dichotomousNo()}
2021
+ ${V.messages.dichotomousNo()}
2022
2022
  </ft-switch-option>
2023
2023
  </ft-switch>
2024
2024
  `}return ye.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,o,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),c=ye.html`
@@ -2027,7 +2027,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
2027
2027
  class="ft-reader-feedback--send-feedback"
2028
2028
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
2029
2029
  part="send-feedback">
2030
- ${G.messages.okButton()}
2030
+ ${V.messages.okButton()}
2031
2031
  </ft-button>
2032
2032
  `;s&&(c=ye.html`
2033
2033
  <a class="ft-reader-feedback--feedback-link" href="${s}">
@@ -2039,7 +2039,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
2039
2039
  class="ft-reader-feedback--more-options"
2040
2040
  @click="${this.onOpenMoreDetails}"
2041
2041
  part="more-options">
2042
- ${G.messages.moreOptionsButton()}
2042
+ ${V.messages.moreOptionsButton()}
2043
2043
  </ft-button>
2044
2044
  `:ye.nothing;return ye.html`
2045
2045
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
@@ -2050,15 +2050,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
2050
2050
  ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
2051
2051
  <ft-text-field outlined name="email" type="email" autocomplete="email"
2052
2052
  class="ft-reader-feedback--from-input"
2053
- label=${G.messages.feedbackfromEmail()}
2053
+ label=${V.messages.feedbackfromEmail()}
2054
2054
  @change=${u=>this.from=u.detail.trim()}
2055
2055
  ?error=${this.from&&!this.validFromEmail()}
2056
- helper=${this.from&&!this.validFromEmail()?G.messages.feedbackfromEmailInvalid():""}
2056
+ helper=${this.from&&!this.validFromEmail()?V.messages.feedbackfromEmailInvalid():""}
2057
2057
  />
2058
2058
  `:ye.nothing}
2059
2059
  <ft-text-area outlined
2060
2060
  class="ft-reader-feedback--feedback-input" part="feedback-input"
2061
- label="${G.messages.feedbackInputLabel()}"
2061
+ label="${V.messages.feedbackInputLabel()}"
2062
2062
  @live-change=${u=>this.feedbackMessage=u.detail.trim()}
2063
2063
  ></ft-text-area>
2064
2064
  <div part="buttons-container">
@@ -2074,7 +2074,7 @@ _________________________________________________________________
2074
2074
  ${e??""}
2075
2075
 
2076
2076
  _________________________________________________________________
2077
- ${so.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var gr=ur.build("inDesignerFeedbackComponent"),an={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Be=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pe=class extends pr(Zt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new lo,this.i18nProperties={feedbackMainTitle:G.properties.mapFeedbackMainTitle(),ratingSectionTitle:G.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.mapFeedbackSectionTitle()},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(R)}render(){return up.html`
2077
+ ${so.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var gr=ur.build("inDesignerFeedbackComponent"),an={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Be=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pe=class extends pr(Zt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new lo,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(R)}render(){return up.html`
2078
2078
  <ft-reader-feedback
2079
2079
  ratingAllowed
2080
2080
  .i18nProperties=${this.i18nProperties}
@@ -2096,7 +2096,7 @@ ${so.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2096
2096
  @mailer-feedback=${this.onMailerFeedbackSent}
2097
2097
  @open-more-options=${this.openMoreOptions}
2098
2098
  ></ft-reader-feedback>
2099
- `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,an),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new on)}openMoreOptions(){var e,o,i;this.dispatchEvent(new tn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};pe.elementDefinitions={"ft-reader-feedback":Q};Be([(0,We.redux)({store:R.name})],pe.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],pe.prototype,"map",void 0);Be([(0,We.redux)({store:R.name})],pe.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],pe.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:t=>t.mapRating})],pe.prototype,"ratingSummary",void 0);Be([(0,ht.property)({type:Boolean})],pe.prototype,"hideTitle",void 0);Be([(0,ht.property)({type:Boolean})],pe.prototype,"withMoreOptionsButton",void 0);Be([(0,ht.property)()],pe.prototype,"iconVariant",void 0);Be([(0,ht.property)()],pe.prototype,"emptyStarIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledStarIcon",void 0);Be([(0,ht.property)()],pe.prototype,"emptyLikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledLikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"emptyDislikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledDislikeIcon",void 0);Be([(0,ht.query)("ft-reader-feedback")],pe.prototype,"readerFeedback",void 0);Be([Bi(so.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],pe.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],pe.prototype,"fetchRatingSummary",null);var fp=m(B()),gt=m(Z()),Ve=m(T());var sn=m(Z());var Ta=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},_a=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ia=Symbol("registerInterval");function Zu(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ia]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ia]):this.dispatchEvent(new _a)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ia,Ta([(0,sn.state)()],o.prototype,"tocNode",void 0),Ta([(0,sn.state)()],o.prototype,"disableContextInteractions",void 0),Ta([(0,sn.state)()],o.prototype,"headingLevelsShift",void 0),o}var ln=class extends Zu(Zt){};var Me=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ue=class extends pr(ln){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new lo,this.i18nProperties={feedbackMainTitle:G.properties.topicFeedbackMainTitle(),ratingSectionTitle:G.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.topicFeedbackSectionTitle()},this.sendRatingDebouncer=new Ve.Debouncer(500),this.addStore(R)}render(){var e;return fp.html`
2099
+ `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,an),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new on)}openMoreOptions(){var e,o,i;this.dispatchEvent(new tn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};pe.elementDefinitions={"ft-reader-feedback":Q};Be([(0,We.redux)({store:R.name})],pe.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],pe.prototype,"map",void 0);Be([(0,We.redux)({store:R.name})],pe.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],pe.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:t=>t.mapRating})],pe.prototype,"ratingSummary",void 0);Be([(0,ht.property)({type:Boolean})],pe.prototype,"hideTitle",void 0);Be([(0,ht.property)({type:Boolean})],pe.prototype,"withMoreOptionsButton",void 0);Be([(0,ht.property)()],pe.prototype,"iconVariant",void 0);Be([(0,ht.property)()],pe.prototype,"emptyStarIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledStarIcon",void 0);Be([(0,ht.property)()],pe.prototype,"emptyLikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledLikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"emptyDislikeIcon",void 0);Be([(0,ht.property)()],pe.prototype,"filledDislikeIcon",void 0);Be([(0,ht.query)("ft-reader-feedback")],pe.prototype,"readerFeedback",void 0);Be([Bi(so.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],pe.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],pe.prototype,"fetchRatingSummary",null);var fp=m(B()),gt=m(Z()),Ge=m(T());var sn=m(Z());var Ta=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},_a=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ia=Symbol("registerInterval");function Zu(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ia]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ia]):this.dispatchEvent(new _a)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ia,Ta([(0,sn.state)()],o.prototype,"tocNode",void 0),Ta([(0,sn.state)()],o.prototype,"disableContextInteractions",void 0),Ta([(0,sn.state)()],o.prototype,"headingLevelsShift",void 0),o}var ln=class extends Zu(Zt){};var Me=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ue=class extends pr(ln){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new lo,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.sendRatingDebouncer=new Ge.Debouncer(500),this.addStore(R)}render(){var e;return fp.html`
2100
2100
  <ft-reader-feedback
2101
2101
  .i18nProperties=${this.i18nProperties}
2102
2102
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -2118,7 +2118,7 @@ ${so.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2118
2118
  @mailer-feedback=${this.onMailerFeedbackSent}
2119
2119
  @open-more-options=${this.openMoreOptions}
2120
2120
  ></ft-reader-feedback>
2121
- `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,an),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Ve.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new Ve.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ve.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ve.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ve.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new rn(e))}openMoreOptions(){var e,o,i,n,a,s,c,p;this.dispatchEvent(new en({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};ue.elementDefinitions={"ft-reader-feedback":Q};Me([(0,Ve.redux)({store:R.name})],ue.prototype,"session",void 0);Me([(0,Ve.redux)({store:"reader"})],ue.prototype,"map",void 0);Me([(0,Ve.redux)({store:R.name})],ue.prototype,"editorMode",void 0);Me([(0,Ve.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Me([(0,Ve.redux)({store:"reader",selector:(t,e)=>{var o,i;return t.topicsRating[(i=(o=e.tocNode)===null||o===void 0?void 0:o.tocId)!==null&&i!==void 0?i:""]}})],ue.prototype,"ratingSummary",void 0);Me([(0,gt.property)({type:Boolean})],ue.prototype,"hideTitle",void 0);Me([(0,gt.property)({type:Boolean})],ue.prototype,"withMoreOptionsButton",void 0);Me([(0,gt.property)()],ue.prototype,"iconVariant",void 0);Me([(0,gt.property)()],ue.prototype,"emptyStarIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledStarIcon",void 0);Me([(0,gt.property)()],ue.prototype,"emptyLikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledLikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"emptyDislikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledDislikeIcon",void 0);Me([(0,gt.query)("ft-reader-feedback")],ue.prototype,"readerFeedback",void 0);Me([Bi(so.properties["mail.feedback.subject"](t=>{var e,o;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(o=t.map)===null||o===void 0?void 0:o.title]}))],ue.prototype,"mailSubject",void 0);Me([(0,Ve.reduxEventListener)({eventName:"rating-changed"})],ue.prototype,"fetchRatingSummary",null);(0,Na.customElement)("ft-reader-map-feedback")(pe);(0,Na.customElement)("ft-reader-topic-feedback")(ue);})();
2121
+ `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,an),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Ge.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ge.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new rn(e))}openMoreOptions(){var e,o,i,n,a,s,c,p;this.dispatchEvent(new en({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};ue.elementDefinitions={"ft-reader-feedback":Q};Me([(0,Ge.redux)({store:R.name})],ue.prototype,"session",void 0);Me([(0,Ge.redux)({store:"reader"})],ue.prototype,"map",void 0);Me([(0,Ge.redux)({store:R.name})],ue.prototype,"editorMode",void 0);Me([(0,Ge.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Me([(0,Ge.redux)({store:"reader",selector:(t,e)=>{var o,i;return t.topicsRating[(i=(o=e.tocNode)===null||o===void 0?void 0:o.tocId)!==null&&i!==void 0?i:""]}})],ue.prototype,"ratingSummary",void 0);Me([(0,gt.property)({type:Boolean})],ue.prototype,"hideTitle",void 0);Me([(0,gt.property)({type:Boolean})],ue.prototype,"withMoreOptionsButton",void 0);Me([(0,gt.property)()],ue.prototype,"iconVariant",void 0);Me([(0,gt.property)()],ue.prototype,"emptyStarIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledStarIcon",void 0);Me([(0,gt.property)()],ue.prototype,"emptyLikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledLikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"emptyDislikeIcon",void 0);Me([(0,gt.property)()],ue.prototype,"filledDislikeIcon",void 0);Me([(0,gt.query)("ft-reader-feedback")],ue.prototype,"readerFeedback",void 0);Me([Bi(so.properties["mail.feedback.subject"](t=>{var e,o;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(o=t.map)===null||o===void 0?void 0:o.title]}))],ue.prototype,"mailSubject",void 0);Me([(0,Ge.reduxEventListener)({eventName:"rating-changed"})],ue.prototype,"fetchRatingSummary",null);(0,Na.customElement)("ft-reader-map-feedback")(pe);(0,Na.customElement)("ft-reader-topic-feedback")(ue);})();
2122
2122
  /*! Bundled license information:
2123
2123
 
2124
2124
  lit-html/lit-html.js:
@@ -661,7 +661,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
661
661
  </div>
662
662
  </div>
663
663
  </div>
664
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",_a(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};fe.elementDefinitions={"ft-typography":xe};fe.styles=Fd;je([g()],fe.prototype,"text",void 0);je([g({type:Boolean})],fe.prototype,"manual",void 0);je([g({type:Boolean})],fe.prototype,"inline",void 0);je([g({type:Number})],fe.prototype,"delay",void 0);je([g()],fe.prototype,"position",void 0);je([bo()],fe.prototype,"slotNodes",void 0);je([q(".ft-tooltip--container")],fe.prototype,"container",void 0);je([q(".ft-tooltip")],fe.prototype,"tooltip",void 0);je([q(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);je([W()],fe.prototype,"visible",void 0);je([Ct({passive:!0})],fe.prototype,"onTouch",null);je([Ct({passive:!0})],fe.prototype,"onHover",null);je([Ct({passive:!0})],fe.prototype,"onOut",null);je([Ct({passive:!0})],fe.prototype,"onClick",null);Z("ft-tooltip")(fe);var Or;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;"})(Or||(Or={}));var L;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(L||(L={}));var MC=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var FC={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends V{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return I`
664
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",_a(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};fe.elementDefinitions={"ft-typography":xe};fe.styles=Fd;je([g()],fe.prototype,"text",void 0);je([g({type:Boolean})],fe.prototype,"manual",void 0);je([g({type:Boolean})],fe.prototype,"inline",void 0);je([g({type:Number})],fe.prototype,"delay",void 0);je([g()],fe.prototype,"position",void 0);je([bo()],fe.prototype,"slotNodes",void 0);je([q(".ft-tooltip--container")],fe.prototype,"container",void 0);je([q(".ft-tooltip")],fe.prototype,"tooltip",void 0);je([q(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);je([W()],fe.prototype,"visible",void 0);je([Ct({passive:!0})],fe.prototype,"onTouch",null);je([Ct({passive:!0})],fe.prototype,"onHover",null);je([Ct({passive:!0})],fe.prototype,"onOut",null);je([Ct({passive:!0})],fe.prototype,"onClick",null);Z("ft-tooltip")(fe);var Or;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;"})(Or||(Or={}));var L;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(L||(L={}));var MC=new Map([...["abw"].map(t=>[t,L.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var FC={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends V{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return I`
665
665
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
666
666
  ${Rn(this.resolvedIcon)}
667
667
  <slot ?hidden=${r}></slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.3.8",
23
- "@fluid-topics/ft-reader-context": "1.3.8",
24
- "@fluid-topics/ft-wc-utils": "1.3.8",
22
+ "@fluid-topics/ft-app-context": "1.3.10",
23
+ "@fluid-topics/ft-reader-context": "1.3.10",
24
+ "@fluid-topics/ft-wc-utils": "1.3.10",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluid-topics/public-api": "1.0.99"
29
29
  },
30
- "gitHead": "cafb3e5814e9a916392cb95050a9e0f36d30227f"
30
+ "gitHead": "c46b5f2b1d1764a41879e9ff520a4d3656d6b08f"
31
31
  }