@fluid-topics/ft-search-locale-selector 1.3.12 → 1.3.13
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,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var ed=Object.create;var Oa=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var rd=Object.getOwnPropertyNames;var od=Object.getPrototypeOf,nd=Object.prototype.hasOwnProperty;var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ad=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of rd(e))!nd.call(t,a)&&a!==o&&Oa(t,a,{get:()=>e[a],enumerable:!(n=td(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?ed(od(t)):{},ad(e||!t||!t.__esModule?Oa(o,"default",{value:t,enumerable:!0}):o,t));var N=Mt((Du,Ca)=>{Ca.exports=ftGlobals.wcUtils});var $=Mt((Bu,Ea)=>{Ea.exports=ftGlobals.lit});var Z=Mt((tm,pi)=>{pi.exports=ftGlobals.litDecorators});var xn=Mt((xm,Ii)=>{Ii.exports=ftGlobals.litRepeat});var hr=Mt((Lm,Ki)=>{Ki.exports=ftGlobals.litClassMap});var ws=Mt((hg,Es)=>{Es.exports=ftGlobals.litUnsafeHTML});var ml=Mt((It,yl)=>{var Ao=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ro=function(){function t(){this.fetch=!1,this.DOMException=Ao.DOMException}return t.prototype=Ao,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var 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 u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function h(y){this.map={},y instanceof h?y.forEach(function(x,P){this.append(P,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}h.prototype.append=function(y,x){y=u(y),x=p(x);var P=this.map[y];this.map[y]=P?P+", "+x:x},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,x){this.map[u(y)]=p(x)},h.prototype.forEach=function(y,x){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(x,this.map[P],P,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(x,P){y.push(P)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(x,P){y.push([P,x])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,P){y.onload=function(){x(y.result)},y.onerror=function(){P(y.error)}})}function v(y){var x=new FileReader,P=S(x);return x.readAsArrayBuffer(y),P}function C(y){var x=new FileReader,P=S(x),W=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ee=W?W[1]:"utf-8";return x.readAsText(y,ee),P}function
|
|
1
|
+
"use strict";(()=>{var ed=Object.create;var Oa=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var rd=Object.getOwnPropertyNames;var od=Object.getPrototypeOf,nd=Object.prototype.hasOwnProperty;var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ad=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of rd(e))!nd.call(t,a)&&a!==o&&Oa(t,a,{get:()=>e[a],enumerable:!(n=td(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?ed(od(t)):{},ad(e||!t||!t.__esModule?Oa(o,"default",{value:t,enumerable:!0}):o,t));var N=Mt((Du,Ca)=>{Ca.exports=ftGlobals.wcUtils});var $=Mt((Bu,Ea)=>{Ea.exports=ftGlobals.lit});var Z=Mt((tm,pi)=>{pi.exports=ftGlobals.litDecorators});var xn=Mt((xm,Ii)=>{Ii.exports=ftGlobals.litRepeat});var hr=Mt((Lm,Ki)=>{Ki.exports=ftGlobals.litClassMap});var ws=Mt((hg,Es)=>{Es.exports=ftGlobals.litUnsafeHTML});var ml=Mt((It,yl)=>{var Ao=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ro=function(){function t(){this.fetch=!1,this.DOMException=Ao.DOMException}return t.prototype=Ao,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var 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 u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function h(y){this.map={},y instanceof h?y.forEach(function(x,P){this.append(P,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}h.prototype.append=function(y,x){y=u(y),x=p(x);var P=this.map[y];this.map[y]=P?P+", "+x:x},h.prototype.delete=function(y){delete this.map[u(y)]},h.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},h.prototype.set=function(y,x){this.map[u(y)]=p(x)},h.prototype.forEach=function(y,x){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(x,this.map[P],P,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(x,P){y.push(P)}),m(y)},h.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(x,P){y.push([P,x])}),m(y)},a.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,P){y.onload=function(){x(y.result)},y.onerror=function(){P(y.error)}})}function v(y){var x=new FileReader,P=S(x);return x.readAsArrayBuffer(y),P}function C(y){var x=new FileReader,P=S(x),W=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ee=W?W[1]:"utf-8";return x.readAsText(y,ee),P}function _(y){for(var x=new Uint8Array(y),P=new Array(x.length),W=0;W<x.length;W++)P[W]=String.fromCharCode(x[W]);return P.join("")}function L(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=L(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=L(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var x=y.toUpperCase();return k.indexOf(x)>-1?x:y}function F(y,x){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var P=x.body;if(y instanceof F){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new h(x.headers)),this.method=B(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var W=/([?&])_=[^&]*/;if(W.test(this.url))this.url=this.url.replace(W,"$1_="+new Date().getTime());else{var ee=/\?/;this.url+=(ee.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Ae(y){var x=new FormData;return y.trim().split("&").forEach(function(P){if(P){var W=P.split("="),ee=W.shift().replace(/\+/g," "),M=W.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ee),decodeURIComponent(M))}}),x}function Qe(y){var x=new h,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(W){return W.indexOf(`
|
|
2
2
|
`)===0?W.substr(1,W.length):W}).forEach(function(W){var ee=W.split(":"),M=ee.shift().trim();if(M){var Jr=ee.join(":").trim();try{x.append(M,Jr)}catch(nn){console.warn("Response "+nn.message)}}}),x}T.call(F.prototype);function Oe(y,x){if(!(this instanceof Oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new h(x.headers),this.url=x.url||"",this._initBody(y)}T.call(Oe.prototype),Oe.prototype.clone=function(){return new Oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Oe.error=function(){var y=new Oe(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Je=[301,302,303,307,308];Oe.redirect=function(y,x){if(Je.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Oe(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,P){this.message=x,this.name=P;var W=Error(x);this.stack=W.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function pe(y,x){return new Promise(function(P,W){var ee=new F(y,x);if(ee.signal&&ee.signal.aborted)return W(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function Jr(){M.abort()}M.onload=function(){var fe={statusText:M.statusText,headers:Qe(M.getAllResponseHeaders()||"")};ee.url.indexOf("file://")===0&&(M.status<200||M.status>599)?fe.status=200:fe.status=M.status,fe.url="responseURL"in M?M.responseURL:fe.headers.get("X-Request-URL");var Ft="response"in M?M.response:M.responseText;setTimeout(function(){P(new Oe(Ft,fe))},0)},M.onerror=function(){setTimeout(function(){W(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){W(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){W(new o.DOMException("Aborted","AbortError"))},0)};function nn(fe){try{return fe===""&&n.location.href?n.location.href:fe}catch{return fe}}if(M.open(ee.method,nn(ee.url),!0),ee.credentials==="include"?M.withCredentials=!0:ee.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof h||n.Headers&&x.headers instanceof n.Headers)){var Sa=[];Object.getOwnPropertyNames(x.headers).forEach(function(fe){Sa.push(u(fe)),M.setRequestHeader(fe,p(x.headers[fe]))}),ee.headers.forEach(function(fe,Ft){Sa.indexOf(Ft)===-1&&M.setRequestHeader(Ft,fe)})}else ee.headers.forEach(function(fe,Ft){M.setRequestHeader(Ft,fe)});ee.signal&&(ee.signal.addEventListener("abort",Jr),M.onreadystatechange=function(){M.readyState===4&&ee.signal.removeEventListener("abort",Jr)}),M.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return pe.polyfill=!0,n.fetch||(n.fetch=pe,n.Headers=h,n.Request=F,n.Response=Oe),o.Headers=h,o.Request=F,o.Response=Oe,o.fetch=pe,o}({})})(Ro);Ro.fetch.ponyfill=!0;delete Ro.fetch.polyfill;var Or=Ao.fetch?Ao:Ro;It=Or.fetch;It.default=Or.fetch;It.fetch=Or.fetch;It.Headers=Or.Headers;It.Request=Or.Request;It.Response=Or.Response;yl.exports=It});var Jc=b(N());var rr=b($());var sl=b($()),Ze=b(N());var wa=b($()),ct=b(N()),vt={distance:ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ct.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ct.FtCssVariableFactory.external(ct.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Aa=wa.css`
|
|
3
3
|
.ft-tooltip--container {
|
|
4
4
|
display: block;
|
|
@@ -520,7 +520,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
520
520
|
<div class="ft-ripple--background"></div>
|
|
521
521
|
<div class="ft-ripple--effect"></div>
|
|
522
522
|
</div>
|
|
523
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=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",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=Fi;Re([(0,he.property)({type:Boolean})],H.prototype,"primary",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"secondary",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"unbounded",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"activated",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"selected",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"disabled",void 0);Re([(0,he.state)()],H.prototype,"hovered",void 0);Re([(0,he.state)()],H.prototype,"focused",void 0);Re([(0,he.state)()],H.prototype,"pressed",void 0);Re([(0,he.state)()],H.prototype,"rippling",void 0);Re([(0,he.state)()],H.prototype,"originX",void 0);Re([(0,he.state)()],H.prototype,"originY",void 0);Re([(0,he.query)(".ft-ripple")],H.prototype,"ripple",void 0);Re([(0,he.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,Yi.customElement)("ft-ripple")(H);var Cs=b(N());var Os=b($()),ne=b(Z()),Mr=b(N());var Qi=["top","right","bottom","left"],Xi=["start","end"],On=Qi.reduce((t,e)=>t.concat(e,e+"-"+Xi[0],e+"-"+Xi[1]),[]),Ji=Math.min,es=Math.max;var pd={left:"right",right:"left",bottom:"top",top:"bottom"},fd={start:"end",end:"start"};function Cn(t,e,o){return es(t,Ji(e,o))}function so(t,e){return typeof t=="function"?t(e):t}function yr(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function wn(t){return t==="y"?"height":"width"}function lo(t){return["top","bottom"].includes(yr(t))?"y":"x"}function An(t){return En(lo(t))}function ts(t,e,o){o===void 0&&(o=!1);let n=Et(t),a=An(t),i=wn(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Sn(s)),[s,Sn(s)]}function rs(t){return t.replace(/start|end/g,e=>fd[e])}function Sn(t){return t.replace(/left|right|bottom|top/g,e=>pd[e])}function hd(t){return{top:0,right:0,bottom:0,left:0,...t}}function os(t){return typeof t!="number"?hd(t):{top:t,right:t,bottom:t,left:t}}function zt(t){let{x:e,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:e,right:e+n,bottom:o+a,x:e,y:o}}function ns(t,e,o){let{reference:n,floating:a}=t,i=lo(e),s=An(e),c=wn(s),u=yr(e),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,S;switch(u){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(Et(e)){case"start":S[s]-=g*(o&&p?-1:1);break;case"end":S[s]+=g*(o&&p?-1:1);break}return S}var as=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:h}=ns(p,n,u),g=n,S={},v=0;for(let C=0;C<c.length;C++){let{name:I,fn:L}=c[C],{x:T,y:k,data:B,reset:F}=await L({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:p,platform:s,elements:{reference:t,floating:e}});m=T??m,h=k??h,S={...S,[I]:{...S[I],...B}},F&&v<=50&&(v++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(p=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:m,y:h}=ns(p,g,u)),C=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:S}};async function Rn(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:S=0}=so(e,t),v=os(S),I=c[g?h==="floating"?"reference":"floating":h],L=zt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(I)))==null||o?I:I.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),T=h==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},F=zt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:k,strategy:u}):T);return{top:(L.top-F.top+v.top)/B.y,bottom:(F.bottom-L.bottom+v.bottom)/B.y,left:(L.left-F.left+v.left)/B.x,right:(F.right-L.right+v.right)/B.x}}function yd(t,e,o){return(t?[...o.filter(a=>Et(a)===t),...o.filter(a=>Et(a)!==t)]:o.filter(a=>yr(a)===a)).filter(a=>t?Et(a)===t||(e?rs(a)!==a:!1):!0)}var Ln=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=On,autoAlignment:S=!0,...v}=so(t,e),C=h!==void 0||g===On?yd(h||null,S,g):g,I=await Rn(e,v),L=((o=s.autoPlacement)==null?void 0:o.index)||0,T=C[L];if(T==null)return{};let k=ts(T,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==T)return{reset:{placement:C[0]}};let B=[I[yr(T)],I[k[0]],I[k[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:B}],Ae=C[L+1];if(Ae)return{data:{index:L+1,overflows:F},reset:{placement:Ae}};let Qe=F.map(pe=>{let y=Et(pe.placement);return[pe.placement,y&&m?pe.overflows.slice(0,2).reduce((x,P)=>x+P,0):pe.overflows[0],pe.overflows]}).sort((pe,y)=>pe[1]-y[1]),Je=((a=Qe.filter(pe=>pe[2].slice(0,Et(pe[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Qe[0][0];return Je!==c?{data:{index:L+1,overflows:F},reset:{placement:Je}}:{}}}};var Nn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:I=>{let{x:L,y:T}=I;return{x:L,y:T}}},...u}=so(t,e),p={x:o,y:n},m=await Rn(e,u),h=lo(yr(a)),g=En(h),S=p[g],v=p[h];if(i){let I=g==="y"?"top":"left",L=g==="y"?"bottom":"right",T=S+m[I],k=S-m[L];S=Cn(T,S,k)}if(s){let I=h==="y"?"top":"left",L=h==="y"?"bottom":"right",T=v+m[I],k=v-m[L];v=Cn(T,v,k)}let C=c.fn({...e,[g]:S,[h]:v});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[g]:i,[h]:s}}}}}};var Tn=Math.min,mr=Math.max,Dr=Math.round;var pt=t=>({x:t,y:t});function ft(t){return ss(t)?(t.nodeName||"").toLowerCase():"#document"}function Le(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ht(t){var e;return(e=(ss(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ss(t){return t instanceof Node||t instanceof Le(t).Node}function rt(t){return t instanceof Element||t instanceof Le(t).Element}function je(t){return t instanceof HTMLElement||t instanceof Le(t).HTMLElement}function is(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Le(t).ShadowRoot}function gr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function ls(t){return["table","td","th"].includes(ft(t))}function uo(t){let e=po(),o=ke(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function cs(t){let e=Gt(t);for(;je(e)&&!Br(e);){if(uo(e))return e;e=Gt(e)}return null}function po(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Br(t){return["html","body","#document"].includes(ft(t))}function ke(t){return Le(t).getComputedStyle(t)}function $r(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gt(t){if(ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||is(t)&&t.host||ht(t);return is(e)?e.host:e}function ds(t){let e=Gt(t);return Br(e)?t.ownerDocument?t.ownerDocument.body:t.body:je(e)&&gr(e)?e:ds(e)}function co(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=ds(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Le(a);return i?e.concat(s,s.visualViewport||[],gr(a)?a:[],s.frameElement&&o?co(s.frameElement):[]):e.concat(a,co(a,[],o))}function fs(t){let e=ke(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=je(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,c=Dr(o)!==i||Dr(n)!==s;return c&&(o=i,n=s),{width:o,height:n,$:c}}function hs(t){return rt(t)?t:t.contextElement}function br(t){let e=hs(t);if(!je(e))return pt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=fs(e),s=(i?Dr(o.width):o.width)/n,c=(i?Dr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var bd=pt(0);function ys(t){let e=Le(t);return!po()||!e.visualViewport?bd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xd(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Le(t)?!1:e}function Fr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=hs(t),s=pt(1);e&&(n?rt(n)&&(s=br(n)):s=br(t));let c=xd(i,o,n)?ys(i):pt(0),u=(a.left+c.x)/s.x,p=(a.top+c.y)/s.y,m=a.width/s.x,h=a.height/s.y;if(i){let g=Le(i),S=n&&rt(n)?Le(n):n,v=g.frameElement;for(;v&&n&&S!==g;){let C=br(v),I=v.getBoundingClientRect(),L=ke(v),T=I.left+(v.clientLeft+parseFloat(L.paddingLeft))*C.x,k=I.top+(v.clientTop+parseFloat(L.paddingTop))*C.y;u*=C.x,p*=C.y,m*=C.x,h*=C.y,u+=T,p+=k,v=Le(v).frameElement}}return zt({width:m,height:h,x:u,y:p})}function vd(t){let{rect:e,offsetParent:o,strategy:n}=t,a=je(o),i=ht(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},c=pt(1),u=pt(0);if((a||!a&&n!=="fixed")&&((ft(o)!=="body"||gr(i))&&(s=$r(o)),je(o))){let p=Fr(o);c=br(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function Sd(t){return Array.from(t.getClientRects())}function ms(t){return Fr(ht(t)).left+$r(t).scrollLeft}function Od(t){let e=ht(t),o=$r(t),n=t.ownerDocument.body,a=mr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=mr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ms(t),c=-o.scrollTop;return ke(n).direction==="rtl"&&(s+=mr(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:c}}function Cd(t,e){let o=Le(t),n=ht(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,c=0,u=0;if(a){i=a.width,s=a.height;let p=po();(!p||p&&e==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:c,y:u}}function Ed(t,e){let o=Fr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=je(t)?br(t):pt(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:s,height:c,x:u,y:p}}function us(t,e,o){let n;if(e==="viewport")n=Cd(t,o);else if(e==="document")n=Od(ht(t));else if(rt(e))n=Ed(e,o);else{let a=ys(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return zt(n)}function gs(t,e){let o=Gt(t);return o===e||!rt(o)||Br(o)?!1:ke(o).position==="fixed"||gs(o,e)}function wd(t,e){let o=e.get(t);if(o)return o;let n=co(t,[],!1).filter(c=>rt(c)&&ft(c)!=="body"),a=null,i=ke(t).position==="fixed",s=i?Gt(t):t;for(;rt(s)&&!Br(s);){let c=ke(s),u=uo(s);!u&&c.position==="fixed"&&(a=null),(i?!u&&!a:!u&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||gr(s)&&!u&&gs(t,s))?n=n.filter(m=>m!==s):a=c,s=Gt(s)}return e.set(t,n),n}function Ad(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?wd(e,this._c):[].concat(o),n],c=s[0],u=s.reduce((p,m)=>{let h=us(e,m,a);return p.top=mr(h.top,p.top),p.right=Tn(h.right,p.right),p.bottom=Tn(h.bottom,p.bottom),p.left=mr(h.left,p.left),p},us(e,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Rd(t){return fs(t)}function Ld(t,e,o){let n=je(e),a=ht(e),i=o==="fixed",s=Fr(t,!0,i,e),c={scrollLeft:0,scrollTop:0},u=pt(0);if(n||!n&&!i)if((ft(e)!=="body"||gr(a))&&(c=$r(e)),n){let p=Fr(e,!0,i,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else a&&(u.x=ms(a));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function ps(t,e){return!je(t)||ke(t).position==="fixed"?null:e?e(t):t.offsetParent}function bs(t,e){let o=Le(t);if(!je(t))return o;let n=ps(t,e);for(;n&&ls(n)&&ke(n).position==="static";)n=ps(n,e);return n&&(ft(n)==="html"||ft(n)==="body"&&ke(n).position==="static"&&!uo(n))?o:n||cs(t)||o}var Nd=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||bs,i=this.getDimensions;return{reference:Ld(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Td(t){return ke(t).direction==="rtl"}var fo={convertOffsetParentRelativeRectToViewportRelativeRect:vd,getDocumentElement:ht,getClippingRect:Ad,getOffsetParent:bs,getElementRects:Nd,getClientRects:Sd,getDimensions:Rd,getScale:br,isElement:rt,isRTL:Td};var xs=(t,e,o)=>{let n=new Map,a={platform:fo,...o},i={...a.platform,_c:n};return as(t,e,{...a,platform:i})};function vs(t){return Id(t)}function In(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Id(t){for(let e=t;e;e=In(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=In(t);e;e=In(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 Ss(t,e,o){return xs(t,e,{platform:{...fo,getOffsetParent:n=>fo.getOffsetParent(n,vs)},middleware:[Nn({crossAxis:!0}),Ln({allowedPlacements:[o]})]})}var Ne=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends Mr.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 Mr.Debouncer,this.revealDebouncer=new Mr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Os.html`
|
|
523
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=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",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=Fi;Re([(0,he.property)({type:Boolean})],H.prototype,"primary",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"secondary",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"unbounded",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"activated",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"selected",void 0);Re([(0,he.property)({type:Boolean})],H.prototype,"disabled",void 0);Re([(0,he.state)()],H.prototype,"hovered",void 0);Re([(0,he.state)()],H.prototype,"focused",void 0);Re([(0,he.state)()],H.prototype,"pressed",void 0);Re([(0,he.state)()],H.prototype,"rippling",void 0);Re([(0,he.state)()],H.prototype,"originX",void 0);Re([(0,he.state)()],H.prototype,"originY",void 0);Re([(0,he.query)(".ft-ripple")],H.prototype,"ripple",void 0);Re([(0,he.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,Yi.customElement)("ft-ripple")(H);var Cs=b(N());var Os=b($()),ne=b(Z()),Mr=b(N());var Qi=["top","right","bottom","left"],Xi=["start","end"],On=Qi.reduce((t,e)=>t.concat(e,e+"-"+Xi[0],e+"-"+Xi[1]),[]),Ji=Math.min,es=Math.max;var pd={left:"right",right:"left",bottom:"top",top:"bottom"},fd={start:"end",end:"start"};function Cn(t,e,o){return es(t,Ji(e,o))}function so(t,e){return typeof t=="function"?t(e):t}function yr(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function wn(t){return t==="y"?"height":"width"}function lo(t){return["top","bottom"].includes(yr(t))?"y":"x"}function An(t){return En(lo(t))}function ts(t,e,o){o===void 0&&(o=!1);let n=Et(t),a=An(t),i=wn(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Sn(s)),[s,Sn(s)]}function rs(t){return t.replace(/start|end/g,e=>fd[e])}function Sn(t){return t.replace(/left|right|bottom|top/g,e=>pd[e])}function hd(t){return{top:0,right:0,bottom:0,left:0,...t}}function os(t){return typeof t!="number"?hd(t):{top:t,right:t,bottom:t,left:t}}function zt(t){let{x:e,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:e,right:e+n,bottom:o+a,x:e,y:o}}function ns(t,e,o){let{reference:n,floating:a}=t,i=lo(e),s=An(e),c=wn(s),u=yr(e),p=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,S;switch(u){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(Et(e)){case"start":S[s]-=g*(o&&p?-1:1);break;case"end":S[s]+=g*(o&&p?-1:1);break}return S}var as=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:h}=ns(p,n,u),g=n,S={},v=0;for(let C=0;C<c.length;C++){let{name:_,fn:L}=c[C],{x:T,y:k,data:B,reset:F}=await L({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:p,platform:s,elements:{reference:t,floating:e}});m=T??m,h=k??h,S={...S,[_]:{...S[_],...B}},F&&v<=50&&(v++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(p=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:m,y:h}=ns(p,g,u)),C=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:S}};async function Rn(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:S=0}=so(e,t),v=os(S),_=c[g?h==="floating"?"reference":"floating":h],L=zt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(_)))==null||o?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),T=h==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},F=zt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:k,strategy:u}):T);return{top:(L.top-F.top+v.top)/B.y,bottom:(F.bottom-L.bottom+v.bottom)/B.y,left:(L.left-F.left+v.left)/B.x,right:(F.right-L.right+v.right)/B.x}}function yd(t,e,o){return(t?[...o.filter(a=>Et(a)===t),...o.filter(a=>Et(a)!==t)]:o.filter(a=>yr(a)===a)).filter(a=>t?Et(a)===t||(e?rs(a)!==a:!1):!0)}var Ln=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=On,autoAlignment:S=!0,...v}=so(t,e),C=h!==void 0||g===On?yd(h||null,S,g):g,_=await Rn(e,v),L=((o=s.autoPlacement)==null?void 0:o.index)||0,T=C[L];if(T==null)return{};let k=ts(T,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==T)return{reset:{placement:C[0]}};let B=[_[yr(T)],_[k[0]],_[k[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:B}],Ae=C[L+1];if(Ae)return{data:{index:L+1,overflows:F},reset:{placement:Ae}};let Qe=F.map(pe=>{let y=Et(pe.placement);return[pe.placement,y&&m?pe.overflows.slice(0,2).reduce((x,P)=>x+P,0):pe.overflows[0],pe.overflows]}).sort((pe,y)=>pe[1]-y[1]),Je=((a=Qe.filter(pe=>pe[2].slice(0,Et(pe[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Qe[0][0];return Je!==c?{data:{index:L+1,overflows:F},reset:{placement:Je}}:{}}}};var Nn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:L,y:T}=_;return{x:L,y:T}}},...u}=so(t,e),p={x:o,y:n},m=await Rn(e,u),h=lo(yr(a)),g=En(h),S=p[g],v=p[h];if(i){let _=g==="y"?"top":"left",L=g==="y"?"bottom":"right",T=S+m[_],k=S-m[L];S=Cn(T,S,k)}if(s){let _=h==="y"?"top":"left",L=h==="y"?"bottom":"right",T=v+m[_],k=v-m[L];v=Cn(T,v,k)}let C=c.fn({...e,[g]:S,[h]:v});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[g]:i,[h]:s}}}}}};var Tn=Math.min,mr=Math.max,Dr=Math.round;var pt=t=>({x:t,y:t});function ft(t){return ss(t)?(t.nodeName||"").toLowerCase():"#document"}function Le(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ht(t){var e;return(e=(ss(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ss(t){return t instanceof Node||t instanceof Le(t).Node}function rt(t){return t instanceof Element||t instanceof Le(t).Element}function je(t){return t instanceof HTMLElement||t instanceof Le(t).HTMLElement}function is(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Le(t).ShadowRoot}function gr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function ls(t){return["table","td","th"].includes(ft(t))}function uo(t){let e=po(),o=ke(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function cs(t){let e=Gt(t);for(;je(e)&&!Br(e);){if(uo(e))return e;e=Gt(e)}return null}function po(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Br(t){return["html","body","#document"].includes(ft(t))}function ke(t){return Le(t).getComputedStyle(t)}function $r(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gt(t){if(ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||is(t)&&t.host||ht(t);return is(e)?e.host:e}function ds(t){let e=Gt(t);return Br(e)?t.ownerDocument?t.ownerDocument.body:t.body:je(e)&&gr(e)?e:ds(e)}function co(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=ds(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Le(a);return i?e.concat(s,s.visualViewport||[],gr(a)?a:[],s.frameElement&&o?co(s.frameElement):[]):e.concat(a,co(a,[],o))}function fs(t){let e=ke(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=je(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,c=Dr(o)!==i||Dr(n)!==s;return c&&(o=i,n=s),{width:o,height:n,$:c}}function hs(t){return rt(t)?t:t.contextElement}function br(t){let e=hs(t);if(!je(e))return pt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=fs(e),s=(i?Dr(o.width):o.width)/n,c=(i?Dr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var bd=pt(0);function ys(t){let e=Le(t);return!po()||!e.visualViewport?bd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xd(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Le(t)?!1:e}function Fr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=hs(t),s=pt(1);e&&(n?rt(n)&&(s=br(n)):s=br(t));let c=xd(i,o,n)?ys(i):pt(0),u=(a.left+c.x)/s.x,p=(a.top+c.y)/s.y,m=a.width/s.x,h=a.height/s.y;if(i){let g=Le(i),S=n&&rt(n)?Le(n):n,v=g.frameElement;for(;v&&n&&S!==g;){let C=br(v),_=v.getBoundingClientRect(),L=ke(v),T=_.left+(v.clientLeft+parseFloat(L.paddingLeft))*C.x,k=_.top+(v.clientTop+parseFloat(L.paddingTop))*C.y;u*=C.x,p*=C.y,m*=C.x,h*=C.y,u+=T,p+=k,v=Le(v).frameElement}}return zt({width:m,height:h,x:u,y:p})}function vd(t){let{rect:e,offsetParent:o,strategy:n}=t,a=je(o),i=ht(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},c=pt(1),u=pt(0);if((a||!a&&n!=="fixed")&&((ft(o)!=="body"||gr(i))&&(s=$r(o)),je(o))){let p=Fr(o);c=br(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function Sd(t){return Array.from(t.getClientRects())}function ms(t){return Fr(ht(t)).left+$r(t).scrollLeft}function Od(t){let e=ht(t),o=$r(t),n=t.ownerDocument.body,a=mr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=mr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ms(t),c=-o.scrollTop;return ke(n).direction==="rtl"&&(s+=mr(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:c}}function Cd(t,e){let o=Le(t),n=ht(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,c=0,u=0;if(a){i=a.width,s=a.height;let p=po();(!p||p&&e==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:c,y:u}}function Ed(t,e){let o=Fr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=je(t)?br(t):pt(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:s,height:c,x:u,y:p}}function us(t,e,o){let n;if(e==="viewport")n=Cd(t,o);else if(e==="document")n=Od(ht(t));else if(rt(e))n=Ed(e,o);else{let a=ys(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return zt(n)}function gs(t,e){let o=Gt(t);return o===e||!rt(o)||Br(o)?!1:ke(o).position==="fixed"||gs(o,e)}function wd(t,e){let o=e.get(t);if(o)return o;let n=co(t,[],!1).filter(c=>rt(c)&&ft(c)!=="body"),a=null,i=ke(t).position==="fixed",s=i?Gt(t):t;for(;rt(s)&&!Br(s);){let c=ke(s),u=uo(s);!u&&c.position==="fixed"&&(a=null),(i?!u&&!a:!u&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||gr(s)&&!u&&gs(t,s))?n=n.filter(m=>m!==s):a=c,s=Gt(s)}return e.set(t,n),n}function Ad(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?wd(e,this._c):[].concat(o),n],c=s[0],u=s.reduce((p,m)=>{let h=us(e,m,a);return p.top=mr(h.top,p.top),p.right=Tn(h.right,p.right),p.bottom=Tn(h.bottom,p.bottom),p.left=mr(h.left,p.left),p},us(e,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Rd(t){return fs(t)}function Ld(t,e,o){let n=je(e),a=ht(e),i=o==="fixed",s=Fr(t,!0,i,e),c={scrollLeft:0,scrollTop:0},u=pt(0);if(n||!n&&!i)if((ft(e)!=="body"||gr(a))&&(c=$r(e)),n){let p=Fr(e,!0,i,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else a&&(u.x=ms(a));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function ps(t,e){return!je(t)||ke(t).position==="fixed"?null:e?e(t):t.offsetParent}function bs(t,e){let o=Le(t);if(!je(t))return o;let n=ps(t,e);for(;n&&ls(n)&&ke(n).position==="static";)n=ps(n,e);return n&&(ft(n)==="html"||ft(n)==="body"&&ke(n).position==="static"&&!uo(n))?o:n||cs(t)||o}var Nd=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||bs,i=this.getDimensions;return{reference:Ld(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Td(t){return ke(t).direction==="rtl"}var fo={convertOffsetParentRelativeRectToViewportRelativeRect:vd,getDocumentElement:ht,getClippingRect:Ad,getOffsetParent:bs,getElementRects:Nd,getClientRects:Sd,getDimensions:Rd,getScale:br,isElement:rt,isRTL:Td};var xs=(t,e,o)=>{let n=new Map,a={platform:fo,...o},i={...a.platform,_c:n};return as(t,e,{...a,platform:i})};function vs(t){return Id(t)}function In(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Id(t){for(let e=t;e;e=In(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=In(t);e;e=In(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 Ss(t,e,o){return xs(t,e,{platform:{...fo,getOffsetParent:n=>fo.getOffsetParent(n,vs)},middleware:[Nn({crossAxis:!0}),Ln({allowedPlacements:[o]})]})}var Ne=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends Mr.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 Mr.Debouncer,this.revealDebouncer=new Mr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Os.html`
|
|
524
524
|
<div part="container"
|
|
525
525
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
526
526
|
@mouseenter=${this.onHover}
|
|
@@ -1843,9 +1843,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1843
1843
|
}
|
|
1844
1844
|
`;var Qc=b(xn()),on=b(Z());var Vc=b(N());var qo=b($()),Yo=b(Z()),Xo=b(N());var cl=b($());var dl=cl.css`
|
|
1845
1845
|
`;var Ko=b(N());var Mc=b(N());var Zl=b($()),be=b(Z()),qe=b(N());var ul=b($());var pl=ul.css`
|
|
1846
|
-
`;var So=b(N()),Pd="ft-app-info",qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};qt.eventName="authentication-change";var kd={session:(t,e)=>{(0,So.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new qt(e.payload)),0))}},_=So.FtReduxStore.get({name:Pd,reducers:kd,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 Mn=b(N());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=_.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Oo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var He=class extends Oo{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[u])=>c.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Mn.CacheRegistry,this.cache=e?a.commonCache:new Mn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Co=class extends He{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Un=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Un;var it=b(N());var fl,Dd=Symbol("clearAfterUnitTest"),Eo=class extends He{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[fl]=()=>{this.defaultMessages={},this.cache=new it.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,it.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new it.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof it.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){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,it.delay)(0).then(()=>o()).catch(()=>null)))}};fl=Dd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Sr=window.FluidTopicsI18nService,wo=window.FluidTopicsCustomI18nService;var hl=b(N()),Hn=class{highlightHtml(e,o,n){(0,hl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Hn;var $d=b(ml(),1);var gl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(gl||(gl={}));var bl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(bl||(bl={}));var xl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE"})(xl||(xl={}));var vl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE"})(vl||(vl={}));var Sl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Sl||(Sl={}));var Ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ol||(Ol={}));var Cl;(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.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__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"})(Cl||(Cl={}));var El;(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"})(El||(El={}));var wl;(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"})(wl||(wl={}));var Al;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Al||(Al={}));var Rl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Rl||(Rl={}));var Ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ll||(Ll={}));var Nl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Nl||(Nl={}));var Tl;(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"})(Tl||(Tl={}));var Il;(function(t){t.ASC="ASC",t.DESC="DESC"})(Il||(Il={}));var _l;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_l||(_l={}));var Wn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wn||(Wn={}));var Pl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Pl||(Pl={}));var kl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(kl||(kl={}));var Dl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Dl||(Dl={}));var Bl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Bl||(Bl={}));var $l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})($l||($l={}));var zn;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(zn||(zn={}));var se;(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"})(se||(se={}));var Xt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Xt||(Xt={}));var Fl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Fl||(Fl={}));var Ml;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ml||(Ml={}));var Ul;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ul||(Ul={}));var Bd={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function Hl(t,e){return t===e||(Bd[t]??[]).some(o=>Hl(o,e))}function Wl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Hl(n,e))}var Lo=class extends He{async listMySearches(){let{session:e}=_.getState();return Wl(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var zl=b(N());var Gn=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return zl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Gn;var Gl=b(N());var jr=class{static get(e,o){var n,a,i,s;let c=_.getState(),{lang:u,region:p}=(a=(n=c.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Gl.SearchPlaceConverter(c.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var jn=class{urlToSearchRequest(e){return jr.get().parse(e)}searchRequestToUrl(e){return jr.get().serialize(e)}};window.FluidTopicsUrlService=new jn;var _t=b(N());var Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qt.eventName="change";var Vn=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))}},jl=new Vn;var No=class t extends _t.WithEventBus{static build(){return new t(window.history,jl,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_t.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qt.eventName,e)}currentItem(){return(0,_t.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,_t.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,_t.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=No.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 Vl=_;function Kl(t,e){var o;return Vl.getState().authenticationRequired&&!(!((o=Vl.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var le=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends qe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new qe.CacheRegistry,this.cleanSessionDebouncer=new qe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Zl.html`
|
|
1846
|
+
`;var So=b(N()),Pd="ft-app-info",qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};qt.eventName="authentication-change";var kd={session:(t,e)=>{(0,So.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new qt(e.payload)),0))}},I=So.FtReduxStore.get({name:Pd,reducers:kd,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 Mn=b(N());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=I.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Oo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var He=class extends Oo{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[u])=>c.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Mn.CacheRegistry,this.cache=e?a.commonCache:new Mn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Co=class extends He{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Un=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Un;var it=b(N());var fl,Dd=Symbol("clearAfterUnitTest"),Eo=class extends He{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[fl]=()=>{this.defaultMessages={},this.cache=new it.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,it.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new it.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof it.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){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,it.delay)(0).then(()=>o()).catch(()=>null)))}};fl=Dd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Sr=window.FluidTopicsI18nService,wo=window.FluidTopicsCustomI18nService;var hl=b(N()),Hn=class{highlightHtml(e,o,n){(0,hl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Hn;var $d=b(ml(),1);var gl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(gl||(gl={}));var bl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(bl||(bl={}));var xl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE"})(xl||(xl={}));var vl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE"})(vl||(vl={}));var Sl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Sl||(Sl={}));var Ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ol||(Ol={}));var Cl;(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.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__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"})(Cl||(Cl={}));var El;(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"})(El||(El={}));var wl;(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"})(wl||(wl={}));var Al;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Al||(Al={}));var Rl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Rl||(Rl={}));var Ll;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ll||(Ll={}));var Nl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Nl||(Nl={}));var Tl;(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"})(Tl||(Tl={}));var Il;(function(t){t.ASC="ASC",t.DESC="DESC"})(Il||(Il={}));var _l;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_l||(_l={}));var Wn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wn||(Wn={}));var Pl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Pl||(Pl={}));var kl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(kl||(kl={}));var Dl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Dl||(Dl={}));var Bl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Bl||(Bl={}));var $l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})($l||($l={}));var zn;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(zn||(zn={}));var se;(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"})(se||(se={}));var Xt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Xt||(Xt={}));var Fl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Fl||(Fl={}));var Ml;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ml||(Ml={}));var Ul;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ul||(Ul={}));var Bd={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function Hl(t,e){return t===e||(Bd[t]??[]).some(o=>Hl(o,e))}function Wl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Hl(n,e))}var Lo=class extends He{async listMySearches(){let{session:e}=I.getState();return Wl(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var zl=b(N());var Gn=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return zl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Gn;var Gl=b(N());var jr=class{static get(e,o){var n,a,i,s;let c=I.getState(),{lang:u,region:p}=(a=(n=c.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Gl.SearchPlaceConverter(c.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var jn=class{urlToSearchRequest(e){return jr.get().parse(e)}searchRequestToUrl(e){return jr.get().serialize(e)}};window.FluidTopicsUrlService=new jn;var _t=b(N());var Qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qt.eventName="change";var Vn=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))}},jl=new Vn;var No=class t extends _t.WithEventBus{static build(){return new t(window.history,jl,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_t.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qt.eventName,e)}currentItem(){return(0,_t.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,_t.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,_t.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=No.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 Vl=I;function Kl(t,e){var o;return Vl.getState().authenticationRequired&&!(!((o=Vl.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var le=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends qe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new qe.CacheRegistry,this.cleanSessionDebouncer=new qe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Zl.html`
|
|
1847
1847
|
<slot></slot>
|
|
1848
|
-
`}connectedCallback(){super.connectedCallback(),_.addEventListener(qt.eventName,this.reloadConfiguration)}disconnectedCallback(){_.addEventListener(qt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,c,u;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&_.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Sr.addContext(p)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&_.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&_.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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",()=>Kl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=pl;le([(0,be.property)()],K.prototype,"baseUrl",void 0);le([(0,be.property)()],K.prototype,"apiIntegrationIdentifier",void 0);le([(0,be.property)()],K.prototype,"apiIntegrationAppVersion",void 0);le([(0,be.property)()],K.prototype,"uiLocale",void 0);le([(0,qe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);le([(0,qe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"editorMode",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"noCustom",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);le([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"withManualResources",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);le([(0,be.property)({type:Object})],K.prototype,"apiProvider",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);le([(0,qe.jsonProperty)([])],K.prototype,"messageContexts",void 0);le([(0,qe.jsonProperty)(void 0)],K.prototype,"session",void 0);le([(0,be.state)()],K.prototype,"localesConfiguration",void 0);le([(0,be.state)()],K.prototype,"availableContentLocales",void 0);var wu=b(Z());function Fd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!To(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!To(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!To(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function To(t,e){try{return Fd(t,e)}catch{return!1}}function Io(t,e){return!To(t,e)}var Md=b(Z(),1);var _o=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Cr=b(Z(),1);var ql=b(Z(),1);function Yl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ql.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Io,...e??{}})}var Po=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ql=b($(),1);var ko=globalThis,Ud=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r0=Symbol();var Xl=(t,e)=>{if(Ud)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Do=class extends Ql.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Xl(n,e.elementStyles),n}};function Jl(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Vr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},oc,ec=Symbol("constructorPrototype"),tc=Symbol("constructorName"),nc=Symbol("exportpartsDebouncer"),rc=Symbol("dynamicDependenciesLoaded"),bt=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oc]=new Po(5),this[tc]=this.constructor.name,this[ec]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[tc]&&Object.setPrototypeOf(this,this[ec])}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[rc]||(e[rc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Jl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[nc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,s,c;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(u).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};oc=nc;Vr([(0,Cr.property)()],bt.prototype,"exportpartsPrefix",void 0);Vr([Yl([])],bt.prototype,"exportpartsPrefixes",void 0);Vr([(0,Cr.property)()],bt.prototype,"customStylesheet",void 0);Vr([(0,Cr.property)()],bt.prototype,"elementToFocus",void 0);Vr([(0,Cr.state)()],bt.prototype,"useAdoptedStyleSheets",void 0);function Bo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kr=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores");function Hd(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Jt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Jt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[Pt].has(s.store):this[Pt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[Pt].set(s,c.subscribe(()=>this.updateFromStores())),this[Kr].set(s,[]),Bo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||c.name===p.store)){let h=g=>this[m](g);c.addEventListener(p.eventName,h),this[Kr].get(s).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Pt].has(s)&&this[Pt].get(s)(),this[Pt].delete(s),(c=this[Kr].get(s))===null||c===void 0||c.forEach(u=>u()),this[Kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pt,o=Jt,n=Kr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}var ac=class extends Hd(bt){};function We(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[J]}function Ye(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===qd}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||ta(t)||ra(t))}function er(t,e,o){o===void 0&&(o=!1),Ar(t)===0?(o?Object.keys:wr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ar(t){var e=t[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ta(t)?2:ra(t)?3:0}function Er(t,e){return Ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Wd(t,e){return Ar(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=Ar(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ta(t){return Kd&&t instanceof Map}function ra(t){return Zd&&t instanceof Set}function kt(t){return t.o||t.t}function oa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[J];for(var o=wr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function na(t,e){return e===void 0&&(e=!1),aa(t)||xt(t)||!Ye(t)||(Ar(t)>1&&(t.set=t.add=t.clear=t.delete=zd),Object.freeze(t),e&&er(t,function(o,n){return na(n,!0)},!0)),t}function zd(){We(2)}function aa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function st(t){var e=ea[t];return e||We(18,t),e}function Gd(t,e){ea[t]||(ea[t]=e)}function Xn(){return qr}function Kn(t,e){e&&(st("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Qn(t),t.p.forEach(jd),t.p=null}function Qn(t){t===qr&&(qr=t.l)}function ic(t){return qr={p:[],l:qr,h:t,m:!0,_:0}}function jd(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function Zn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||st("ES5").S(e,t,n),n?(o[J].P&&($o(e),We(4)),Ye(t)&&(t=Fo(e,t),e.l||Mo(e,t)),e.u&&st("Patches").M(o[J].t,t,e.u,e.s)):t=Fo(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Fo(t,e,o){if(aa(e))return e;var n=e[J];if(!n)return er(e,function(c,u){return sc(t,n,e,c,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Mo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=oa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(c,u){return sc(t,n,a,c,u,o,s)}),Mo(t,a,!1),o&&t.u&&st("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(xt(a)){var c=Fo(t,a,i&&e&&e.i!==3&&!Er(e.R,n)?i.concat(n):void 0);if(fc(o,n,c),!xt(c))return;t.m=!1}else s&&o.add(a);if(Ye(a)&&!aa(a)){if(!t.h.D&&t._<1)return;Fo(t,a),e&&e.A.l||Mo(t,a)}}function Mo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&na(e,o)}function qn(t,e){var o=t[J];return(o?kt(o):t)[e]}function lc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Dt(t){t.P||(t.P=!0,t.l&&Dt(t.l))}function Yn(t){t.o||(t.o=oa(t.t))}function Jn(t,e,o){var n=ta(e)?st("MapSet").F(e,o):ra(e)?st("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Xn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=Yr;s&&(u=[c],p=Zr);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return c.k=g,c.j=h,g}(e,o):st("ES5").J(e,o);return(o?o.A:Xn()).p.push(n),n}function Vd(t){return xt(t)||We(22,t),function e(o){if(!Ye(o))return o;var n,a=o[J],i=Ar(o);if(a){if(!a.P&&(a.i<4||!st("ES5").K(a)))return a.t;a.I=!0,n=cc(o,i),a.I=!1}else n=cc(o,i);return er(n,function(s,c){a&&Wd(a.t,s)===c||fc(n,s,e(c))}),i===3?new Set(n):n}(t)}function cc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oa(t)}function yc(){function t(s,c){var u=i[s];return u?u.enumerable=c:i[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[J];return Yr.get(p,s)},set:function(p){var m=this[J];Yr.set(m,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][J];if(!u.P)switch(u.i){case 5:n(u)&&Dt(u);break;case 4:o(u)&&Dt(u)}}}function o(s){for(var c=s.t,u=s.k,p=wr(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==J){var g=c[h];if(g===void 0&&!Er(c,h))return!0;var S=u[h],v=S&&S[J];if(v?v.t!==g:!hc(S,g))return!0}}var C=!!c[J];return p.length!==wr(c).length+(C?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&We(3,JSON.stringify(kt(s)))}var i={};Gd("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(h,g){if(h){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var C=gc(g);delete C[J];for(var I=wr(C),L=0;L<I.length;L++){var T=I[L];C[T]=t(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(u,s),m={i:u?5:4,A:c?c.A:Xn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,J,{value:m,writable:!0}),p},S:function(s,c,u){u?xt(c)&&c[J].A===s&&e(s.p):(s.u&&function p(m){if(m&&typeof m=="object"){var h=m[J];if(h){var g=h.t,S=h.k,v=h.R,C=h.i;if(C===4)er(S,function(B){B!==J&&(g[B]!==void 0||Er(g,B)?v[B]||p(S[B]):(v[B]=!0,Dt(h)))}),er(g,function(B){S[B]!==void 0||Er(S,B)||(v[B]=!1,Dt(h))});else if(C===5){if(n(h)&&(Dt(h),v.length=!0),S.length<g.length)for(var I=S.length;I<g.length;I++)v[I]=!1;else for(var L=g.length;L<S.length;L++)v[L]=!0;for(var T=Math.min(S.length,g.length),k=0;k<T;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,qr,ia=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Kd=typeof Map<"u",Zd=typeof Set<"u",uc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=ia?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),pc=ia?Symbol.for("immer-draftable"):"__$immer_draftable",J=ia?Symbol.for("immer-state"):"__$immer_state";var qd=""+Object.prototype.constructor,wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return wr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ea={},Yr={get:function(t,e){if(e===J)return t;var o=kt(t);if(!Er(o,e))return function(a,i,s){var c,u=lc(i,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ye(n)?n:n===qn(t.t,e)?(Yn(t),t.o[e]=Jn(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,o){var n=lc(kt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=qn(kt(t),e),i=a?.[J];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||Er(t.t,e)))return!0;Yn(t),Dt(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 qn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Yn(t),Dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=kt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){We(12)}},Zr={};er(Yr,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,o){return Yr.set.call(this,t[0],e,o,t[0])};var Yd=function(){function t(o){var n=this;this.O=uc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(C){var I=this;C===void 0&&(C=c);for(var L=arguments.length,T=Array(L>1?L-1:0),k=1;k<L;k++)T[k-1]=arguments[k];return u.produce(C,function(B){var F;return(F=i).call.apply(F,[I,B].concat(T))})}}var p;if(typeof i!="function"&&We(6),s!==void 0&&typeof s!="function"&&We(7),Ye(a)){var m=ic(n),h=Jn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?$o(m):Qn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return Kn(m,s),Zn(C,m)},function(C){throw $o(m),C}):(Kn(m,s),Zn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&na(p,!0),s){var S=[],v=[];st("Patches").M(a,p,S,v),s(S,v)}return p}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var s,c,u=n.produce(a,i,function(p,m){s=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,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){Ye(o)||We(8),xt(o)&&(o=Vd(o));var n=ic(this),a=Jn(this,o,void 0);return a[J].C=!0,Qn(n),a},e.finishDraft=function(o,n){var a=o&&o[J],i=a.A;return Kn(i,n),Zn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!uc&&We(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=st("Patches").$;return xt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Me=new Yd,Xd=Me.produce,m0=Me.produceWithPatches.bind(Me),g0=Me.setAutoFreeze.bind(Me),b0=Me.setUseProxies.bind(Me),x0=Me.applyPatches.bind(Me),v0=Me.createDraft.bind(Me),S0=Me.finishDraft.bind(Me),Uo=Xd;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function bc(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xc(t){var e=bc(t,"string");return tr(e)=="symbol"?e:e+""}function vc(t,e,o){return(e=xc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Sc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function sa(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(o),!0).forEach(function(n){vc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Se(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 Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),la=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+la(),REPLACE:"@@redux/REPLACE"+la(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+la()}};function Qd(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 ca(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Se(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Se(1));return o(ca)(t,e)}if(typeof t!="function")throw new Error(Se(2));var a=t,i=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function m(){if(u)throw new Error(Se(3));return i}function h(C){if(typeof C!="function")throw new Error(Se(4));if(u)throw new Error(Se(5));var I=!0;return p(),c.push(C),function(){if(I){if(u)throw new Error(Se(6));I=!1,p();var T=c.indexOf(C);c.splice(T,1),s=null}}}function g(C){if(!Qd(C))throw new Error(Se(7));if(typeof C.type>"u")throw new Error(Se(8));if(u)throw new Error(Se(9));try{u=!0,i=a(i,C)}finally{u=!1}for(var I=s=c,L=0;L<I.length;L++){var T=I[L];T()}return C}function S(C){if(typeof C!="function")throw new Error(Se(10));a=C,g({type:Ho.REPLACE})}function v(){var C,I=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Se(11));function k(){T.next&&T.next(m())}k();var B=I(k);return{unsubscribe:B}}},C[Oc]=function(){return this},C}return g({type:Ho.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Oc]=v,n}function Jd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(Se(12));if(typeof o(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(13))})}function Cc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{Jd(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var g=!1,S={},v=0;v<i.length;v++){var C=i[v],I=o[C],L=p[C],T=I(L,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(Se(14))}S[C]=T,g=g||T!==L}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Rr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ec(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return i=Rr.apply(void 0,c)(a.dispatch),sa(sa({},a),{},{dispatch:i})}}}function wc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var Ac=wc();Ac.withExtraArgument=wc;var da=Ac;var Ic=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),eu=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},tu=Object.defineProperty,ru=Object.defineProperties,ou=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,nu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,Lc=function(t,e,o){return e in t?tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Bt=function(t,e){for(var o in e||(e={}))nu.call(e,o)&&Lc(t,o,e[o]);if(Rc)for(var n=0,a=Rc(e);n<a.length;n++){var o=a[n];au.call(e,o)&&Lc(t,o,e[o])}return t},ua=function(t,e){return ru(t,ou(e))},iu=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},s=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,s)};c((o=o.apply(t,e)).next())})};var su=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},M0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function lu(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 cu=function(t){Ic(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Lr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],o.concat(this))))},e}(Array),du=function(t){Ic(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Lr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],o.concat(this))))},e}(Array);function ha(t){return Ye(t)?Uo(t,function(){}):t}function uu(t){return typeof t=="boolean"}function pu(){return function(e){return fu(e)}}function fu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new cu;if(o&&(uu(o)?c.push(da):c.push(da.withExtraArgument(o.extraArgument))),0){if(a)var u;if(s)var p}return c}var pa=!0;function _c(t){var e=pu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(lu(a))S=Cc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!pa&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pa&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Ec.apply(void 0,v),I=Rr;u&&(I=su(Bt({trace:!pa},typeof u=="object"&&u)));var L=new du(C),T=L;Array.isArray(g)?T=Lr([C],g):typeof g=="function"&&(T=g(L));var k=I.apply(void 0,T);return ca(S,m,k)}function $t(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Bt(Bt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Pc(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function hu(t){return typeof t=="function"}function yu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Pc(e):[e,o,n],i=a[0],s=a[1],c=a[2],u;if(hu(t))u=function(){return ha(t())};else{var p=ha(t);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=Lr([i[g.type]],s.filter(function(v){var C=v.matcher;return C(g)}).map(function(v){var C=v.reducer;return C}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,C){if(C)if(xt(v)){var I=v,L=C(I,g);return L===void 0?v:L}else{if(Ye(v))return Uo(v,function(T){return C(T,g)});var L=C(v,g);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},h)}return m.getInitialState=u,m}function mu(t,e){return t+"/"+e}function kc(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:ha(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(m){var h=n[m],g=mu(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[m]=S,s[g]=S,c[m]=v?$t(g,v):$t(g)});function u(){var m=typeof t.extraReducers=="function"?Pc(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,C=m[2],I=C===void 0?void 0:C,L=Bt(Bt({},g),s);return yu(o,function(T){for(var k in L)T.addCase(k,L[k]);for(var B=0,F=v;B<F.length;B++){var Ae=F[B];T.addMatcher(Ae.matcher,Ae.reducer)}I&&T.addDefaultCase(I)})}var p;return{name:e,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=gu[Math.random()*64|0];return e},xu=["name","message","stack","code"],fa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Nc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=xu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},z0=function(){function t(e,o,n){var a=$t(e+"/fulfilled",function(m,h,g,S){return{payload:m,meta:ua(Bt({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=$t(e+"/pending",function(m,h,g){return{payload:void 0,meta:ua(Bt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(m,h,g,S,v){return{payload:S,error:(n&&n.serializeError||vu)(m||"Rejected"),meta:ua(Bt({},v||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var v=n?.idGenerator?n.idGenerator(m):bu(),C=new u,I,L=!1;function T(B){I=B,C.abort()}var k=function(){return iu(this,null,function(){var B,F,Ae,Qe,Oe,Je,pe;return eu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Qe=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:S}),Ou(Qe)?[4,Qe]:[3,2];case 1:Qe=y.sent(),y.label=2;case 2:if(Qe===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Oe=new Promise(function(x,P){return C.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([Oe,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:v,signal:C.signal,abort:T,rejectWithValue:function(x,P){return new fa(x,P)},fulfillWithValue:function(x,P){return new Nc(x,P)}})).then(function(x){if(x instanceof fa)throw x;return x instanceof Nc?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Ae=y.sent(),[3,5];case 4:return Je=y.sent(),Ae=Je instanceof fa?s(null,v,m,Je.payload,Je.meta):s(Je,v,m),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&s.match(Ae)&&Ae.meta.condition,pe||h(Ae),[2,Ae]}})})}();return Object.assign(k,{abort:T,requestId:v,arg:m,unwrap:function(){return k.then(Su)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Su(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ou(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc="listener",Bc="completed",$c="cancelled",G0="task-"+$c,j0="task-"+Bc,V0=Dc+"-"+$c,K0=Dc+"-"+Bc;var ya="listenerMiddleware";var Z0=$t(ya+"/add"),q0=$t(ya+"/removeAll"),Y0=$t(ya+"/remove");var Tc,X0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Tc||(Tc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Cu=function(t){return function(e){setTimeout(e,t)}},Q0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Cu(10);yc();function Eu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Wo=class extends Eu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fc=class t extends Wo{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Bo(i))return i;if(a==null)return;let s=kc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=_c({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new _o;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let u=s,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=b(N());var zo=class extends He{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=_.getState().session;return!!e?.sessionAuthenticated}};var Au="ft-user-assets",Ru={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Xt).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={}}},ze=Go.FtReduxStore.get({name:Au,reducers:Ru,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Xt).map(t=>[t,void 0])),bookmarkByMap:{}}}}),ma=class{constructor(e=new zo){this.assetCountsService=e,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Co,this.savedSearchesService=new Lo,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,Go.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ze.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ze.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Xt.BOOKMARKS&&o&&ze.actions.clearBookmarkCountByMap(),ze.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;ze.actions.bookmarks(o)}}},Lu=new ma;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lu);(0,Mc.customElement)("ft-app-context")(K);var Gc=b(Z());var Nu=b(N());function Uc(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Tu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Hc=Symbol("i18nAttributes"),Wc=Symbol("i18nListAttributes"),jc=Symbol("i18nProperties"),jo=Symbol("i18nContexts"),Xr=Symbol("i18nUnsubs");function Zo(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?wo:Sr}i18n(i){var s;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let c=(s=i.args)!==null&&s!==void 0?s:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...c)}customI18n(i,s){if(Uc(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,u)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,c;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(s=this[Hc])===null||s===void 0||s.forEach((m,h)=>u[h]=p(m,h,u[h])),(c=this[Wc])===null||c===void 0||c.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(S=>p(m,h,S))})}updateI18nProperties(i){var s;(s=this[jc])===null||s===void 0||s.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,c)}addI18nContext(i,s,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[jo].set(u,{isCustomContext:c}),this[Xr].has(u)||this[Xr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(i){return this[jo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jo].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xr].forEach(i=>i()),this[Xr].clear()}}return e=jo,o=Xr,Tu([(0,Gc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var zc=class extends Zo(Ko.FtLitElement){},Vo=class extends Zo(Ko.FtLitElementRedux){};var Qr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Xe=class extends Vo{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":qo.nothing:qo.html`
|
|
1848
|
+
`}connectedCallback(){super.connectedCallback(),I.addEventListener(qt.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(qt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,c,u;super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Sr.addContext(p)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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",()=>Kl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=pl;le([(0,be.property)()],K.prototype,"baseUrl",void 0);le([(0,be.property)()],K.prototype,"apiIntegrationIdentifier",void 0);le([(0,be.property)()],K.prototype,"apiIntegrationAppVersion",void 0);le([(0,be.property)()],K.prototype,"uiLocale",void 0);le([(0,qe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);le([(0,qe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"editorMode",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"noCustom",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);le([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"withManualResources",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);le([(0,be.property)({type:Object})],K.prototype,"apiProvider",void 0);le([(0,be.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);le([(0,qe.jsonProperty)([])],K.prototype,"messageContexts",void 0);le([(0,qe.jsonProperty)(void 0)],K.prototype,"session",void 0);le([(0,be.state)()],K.prototype,"localesConfiguration",void 0);le([(0,be.state)()],K.prototype,"availableContentLocales",void 0);var wu=b(Z());function Fd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!To(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!To(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!To(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function To(t,e){try{return Fd(t,e)}catch{return!1}}function Io(t,e){return!To(t,e)}var Md=b(Z(),1);var _o=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Cr=b(Z(),1);var ql=b(Z(),1);function Yl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ql.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Io,...e??{}})}var Po=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ql=b($(),1);var ko=globalThis,Ud=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a0=Symbol();var Xl=(t,e)=>{if(Ud)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Do=class extends Ql.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Xl(n,e.elementStyles),n}};function Jl(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Vr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},oc,ec=Symbol("constructorPrototype"),tc=Symbol("constructorName"),nc=Symbol("exportpartsDebouncer"),rc=Symbol("dynamicDependenciesLoaded"),bt=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oc]=new Po(5),this[tc]=this.constructor.name,this[ec]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[tc]&&Object.setPrototypeOf(this,this[ec])}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[rc]||(e[rc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Jl(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[nc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,s,c;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(u).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let h=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};oc=nc;Vr([(0,Cr.property)()],bt.prototype,"exportpartsPrefix",void 0);Vr([Yl([])],bt.prototype,"exportpartsPrefixes",void 0);Vr([(0,Cr.property)()],bt.prototype,"customStylesheet",void 0);Vr([(0,Cr.property)()],bt.prototype,"elementToFocus",void 0);Vr([(0,Cr.state)()],bt.prototype,"useAdoptedStyleSheets",void 0);function Bo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kr=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores");function Hd(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Jt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Jt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[Pt].has(s.store):this[Pt].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[Pt].set(s,c.subscribe(()=>this.updateFromStores())),this[Kr].set(s,[]),Bo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||c.name===p.store)){let h=g=>this[m](g);c.addEventListener(p.eventName,h),this[Kr].get(s).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Pt].has(s)&&this[Pt].get(s)(),this[Pt].delete(s),(c=this[Kr].get(s))===null||c===void 0||c.forEach(u=>u()),this[Kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pt,o=Jt,n=Kr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}var ac=class extends Hd(bt){};function We(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[J]}function Ye(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===qd}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||ta(t)||ra(t))}function er(t,e,o){o===void 0&&(o=!1),Ar(t)===0?(o?Object.keys:wr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ar(t){var e=t[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ta(t)?2:ra(t)?3:0}function Er(t,e){return Ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Wd(t,e){return Ar(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=Ar(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ta(t){return Kd&&t instanceof Map}function ra(t){return Zd&&t instanceof Set}function kt(t){return t.o||t.t}function oa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[J];for(var o=wr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function na(t,e){return e===void 0&&(e=!1),aa(t)||xt(t)||!Ye(t)||(Ar(t)>1&&(t.set=t.add=t.clear=t.delete=zd),Object.freeze(t),e&&er(t,function(o,n){return na(n,!0)},!0)),t}function zd(){We(2)}function aa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function st(t){var e=ea[t];return e||We(18,t),e}function Gd(t,e){ea[t]||(ea[t]=e)}function Xn(){return qr}function Kn(t,e){e&&(st("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Qn(t),t.p.forEach(jd),t.p=null}function Qn(t){t===qr&&(qr=t.l)}function ic(t){return qr={p:[],l:qr,h:t,m:!0,_:0}}function jd(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function Zn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||st("ES5").S(e,t,n),n?(o[J].P&&($o(e),We(4)),Ye(t)&&(t=Fo(e,t),e.l||Mo(e,t)),e.u&&st("Patches").M(o[J].t,t,e.u,e.s)):t=Fo(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Fo(t,e,o){if(aa(e))return e;var n=e[J];if(!n)return er(e,function(c,u){return sc(t,n,e,c,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Mo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=oa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(c,u){return sc(t,n,a,c,u,o,s)}),Mo(t,a,!1),o&&t.u&&st("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(xt(a)){var c=Fo(t,a,i&&e&&e.i!==3&&!Er(e.R,n)?i.concat(n):void 0);if(fc(o,n,c),!xt(c))return;t.m=!1}else s&&o.add(a);if(Ye(a)&&!aa(a)){if(!t.h.D&&t._<1)return;Fo(t,a),e&&e.A.l||Mo(t,a)}}function Mo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&na(e,o)}function qn(t,e){var o=t[J];return(o?kt(o):t)[e]}function lc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Dt(t){t.P||(t.P=!0,t.l&&Dt(t.l))}function Yn(t){t.o||(t.o=oa(t.t))}function Jn(t,e,o){var n=ta(e)?st("MapSet").F(e,o):ra(e)?st("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Xn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=Yr;s&&(u=[c],p=Zr);var m=Proxy.revocable(u,p),h=m.revoke,g=m.proxy;return c.k=g,c.j=h,g}(e,o):st("ES5").J(e,o);return(o?o.A:Xn()).p.push(n),n}function Vd(t){return xt(t)||We(22,t),function e(o){if(!Ye(o))return o;var n,a=o[J],i=Ar(o);if(a){if(!a.P&&(a.i<4||!st("ES5").K(a)))return a.t;a.I=!0,n=cc(o,i),a.I=!1}else n=cc(o,i);return er(n,function(s,c){a&&Wd(a.t,s)===c||fc(n,s,e(c))}),i===3?new Set(n):n}(t)}function cc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oa(t)}function yc(){function t(s,c){var u=i[s];return u?u.enumerable=c:i[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[J];return Yr.get(p,s)},set:function(p){var m=this[J];Yr.set(m,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][J];if(!u.P)switch(u.i){case 5:n(u)&&Dt(u);break;case 4:o(u)&&Dt(u)}}}function o(s){for(var c=s.t,u=s.k,p=wr(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==J){var g=c[h];if(g===void 0&&!Er(c,h))return!0;var S=u[h],v=S&&S[J];if(v?v.t!==g:!hc(S,g))return!0}}var C=!!c[J];return p.length!==wr(c).length+(C?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&We(3,JSON.stringify(kt(s)))}var i={};Gd("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(h,g){if(h){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var C=gc(g);delete C[J];for(var _=wr(C),L=0;L<_.length;L++){var T=_[L];C[T]=t(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(u,s),m={i:u?5:4,A:c?c.A:Xn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,J,{value:m,writable:!0}),p},S:function(s,c,u){u?xt(c)&&c[J].A===s&&e(s.p):(s.u&&function p(m){if(m&&typeof m=="object"){var h=m[J];if(h){var g=h.t,S=h.k,v=h.R,C=h.i;if(C===4)er(S,function(B){B!==J&&(g[B]!==void 0||Er(g,B)?v[B]||p(S[B]):(v[B]=!0,Dt(h)))}),er(g,function(B){S[B]!==void 0||Er(S,B)||(v[B]=!1,Dt(h))});else if(C===5){if(n(h)&&(Dt(h),v.length=!0),S.length<g.length)for(var _=S.length;_<g.length;_++)v[_]=!1;else for(var L=g.length;L<S.length;L++)v[L]=!0;for(var T=Math.min(S.length,g.length),k=0;k<T;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,qr,ia=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Kd=typeof Map<"u",Zd=typeof Set<"u",uc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=ia?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),pc=ia?Symbol.for("immer-draftable"):"__$immer_draftable",J=ia?Symbol.for("immer-state"):"__$immer_state";var qd=""+Object.prototype.constructor,wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return wr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ea={},Yr={get:function(t,e){if(e===J)return t;var o=kt(t);if(!Er(o,e))return function(a,i,s){var c,u=lc(i,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ye(n)?n:n===qn(t.t,e)?(Yn(t),t.o[e]=Jn(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,o){var n=lc(kt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=qn(kt(t),e),i=a?.[J];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||Er(t.t,e)))return!0;Yn(t),Dt(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 qn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Yn(t),Dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=kt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){We(12)}},Zr={};er(Yr,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,o){return Yr.set.call(this,t[0],e,o,t[0])};var Yd=function(){function t(o){var n=this;this.O=uc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(C){var _=this;C===void 0&&(C=c);for(var L=arguments.length,T=Array(L>1?L-1:0),k=1;k<L;k++)T[k-1]=arguments[k];return u.produce(C,function(B){var F;return(F=i).call.apply(F,[_,B].concat(T))})}}var p;if(typeof i!="function"&&We(6),s!==void 0&&typeof s!="function"&&We(7),Ye(a)){var m=ic(n),h=Jn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?$o(m):Qn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return Kn(m,s),Zn(C,m)},function(C){throw $o(m),C}):(Kn(m,s),Zn(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&na(p,!0),s){var S=[],v=[];st("Patches").M(a,p,S,v),s(S,v)}return p}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var s,c,u=n.produce(a,i,function(p,m){s=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,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){Ye(o)||We(8),xt(o)&&(o=Vd(o));var n=ic(this),a=Jn(this,o,void 0);return a[J].C=!0,Qn(n),a},e.finishDraft=function(o,n){var a=o&&o[J],i=a.A;return Kn(i,n),Zn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!uc&&We(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=st("Patches").$;return xt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Me=new Yd,Xd=Me.produce,x0=Me.produceWithPatches.bind(Me),v0=Me.setAutoFreeze.bind(Me),S0=Me.setUseProxies.bind(Me),O0=Me.applyPatches.bind(Me),C0=Me.createDraft.bind(Me),E0=Me.finishDraft.bind(Me),Uo=Xd;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function bc(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xc(t){var e=bc(t,"string");return tr(e)=="symbol"?e:e+""}function vc(t,e,o){return(e=xc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Sc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function sa(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(o),!0).forEach(function(n){vc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Se(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 Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),la=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+la(),REPLACE:"@@redux/REPLACE"+la(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+la()}};function Qd(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 ca(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Se(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Se(1));return o(ca)(t,e)}if(typeof t!="function")throw new Error(Se(2));var a=t,i=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function m(){if(u)throw new Error(Se(3));return i}function h(C){if(typeof C!="function")throw new Error(Se(4));if(u)throw new Error(Se(5));var _=!0;return p(),c.push(C),function(){if(_){if(u)throw new Error(Se(6));_=!1,p();var T=c.indexOf(C);c.splice(T,1),s=null}}}function g(C){if(!Qd(C))throw new Error(Se(7));if(typeof C.type>"u")throw new Error(Se(8));if(u)throw new Error(Se(9));try{u=!0,i=a(i,C)}finally{u=!1}for(var _=s=c,L=0;L<_.length;L++){var T=_[L];T()}return C}function S(C){if(typeof C!="function")throw new Error(Se(10));a=C,g({type:Ho.REPLACE})}function v(){var C,_=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Se(11));function k(){T.next&&T.next(m())}k();var B=_(k);return{unsubscribe:B}}},C[Oc]=function(){return this},C}return g({type:Ho.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:S},n[Oc]=v,n}function Jd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(Se(12));if(typeof o(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(13))})}function Cc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{Jd(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var g=!1,S={},v=0;v<i.length;v++){var C=i[v],_=o[C],L=p[C],T=_(L,m);if(typeof T>"u"){var k=m&&m.type;throw new Error(Se(14))}S[C]=T,g=g||T!==L}return g=g||i.length!==Object.keys(p).length,g?S:p}}function Rr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ec(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return i=Rr.apply(void 0,c)(a.dispatch),sa(sa({},a),{},{dispatch:i})}}}function wc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var Ac=wc();Ac.withExtraArgument=wc;var da=Ac;var Ic=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),eu=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},tu=Object.defineProperty,ru=Object.defineProperties,ou=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,nu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,Lc=function(t,e,o){return e in t?tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Bt=function(t,e){for(var o in e||(e={}))nu.call(e,o)&&Lc(t,o,e[o]);if(Rc)for(var n=0,a=Rc(e);n<a.length;n++){var o=a[n];au.call(e,o)&&Lc(t,o,e[o])}return t},ua=function(t,e){return ru(t,ou(e))},iu=function(t,e,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},s=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,s)};c((o=o.apply(t,e)).next())})};var su=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},W0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function lu(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 cu=function(t){Ic(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Lr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],o.concat(this))))},e}(Array),du=function(t){Ic(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Lr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],o.concat(this))))},e}(Array);function ha(t){return Ye(t)?Uo(t,function(){}):t}function uu(t){return typeof t=="boolean"}function pu(){return function(e){return fu(e)}}function fu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new cu;if(o&&(uu(o)?c.push(da):c.push(da.withExtraArgument(o.extraArgument))),0){if(a)var u;if(s)var p}return c}var pa=!0;function _c(t){var e=pu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(lu(a))S=Cc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!pa&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pa&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Ec.apply(void 0,v),_=Rr;u&&(_=su(Bt({trace:!pa},typeof u=="object"&&u)));var L=new du(C),T=L;Array.isArray(g)?T=Lr([C],g):typeof g=="function"&&(T=g(L));var k=_.apply(void 0,T);return ca(S,m,k)}function $t(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Bt(Bt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Pc(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function hu(t){return typeof t=="function"}function yu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Pc(e):[e,o,n],i=a[0],s=a[1],c=a[2],u;if(hu(t))u=function(){return ha(t())};else{var p=ha(t);u=function(){return p}}function m(h,g){h===void 0&&(h=u());var S=Lr([i[g.type]],s.filter(function(v){var C=v.matcher;return C(g)}).map(function(v){var C=v.reducer;return C}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,C){if(C)if(xt(v)){var _=v,L=C(_,g);return L===void 0?v:L}else{if(Ye(v))return Uo(v,function(T){return C(T,g)});var L=C(v,g);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},h)}return m.getInitialState=u,m}function mu(t,e){return t+"/"+e}function kc(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:ha(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(m){var h=n[m],g=mu(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[m]=S,s[g]=S,c[m]=v?$t(g,v):$t(g)});function u(){var m=typeof t.extraReducers=="function"?Pc(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,C=m[2],_=C===void 0?void 0:C,L=Bt(Bt({},g),s);return yu(o,function(T){for(var k in L)T.addCase(k,L[k]);for(var B=0,F=v;B<F.length;B++){var Ae=F[B];T.addMatcher(Ae.matcher,Ae.reducer)}_&&T.addDefaultCase(_)})}var p;return{name:e,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=gu[Math.random()*64|0];return e},xu=["name","message","stack","code"],fa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Nc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=xu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},V0=function(){function t(e,o,n){var a=$t(e+"/fulfilled",function(m,h,g,S){return{payload:m,meta:ua(Bt({},S||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=$t(e+"/pending",function(m,h,g){return{payload:void 0,meta:ua(Bt({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(m,h,g,S,v){return{payload:S,error:(n&&n.serializeError||vu)(m||"Rejected"),meta:ua(Bt({},v||{}),{arg:g,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(h,g,S){var v=n?.idGenerator?n.idGenerator(m):bu(),C=new u,_,L=!1;function T(B){_=B,C.abort()}var k=function(){return iu(this,null,function(){var B,F,Ae,Qe,Oe,Je,pe;return eu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Qe=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:S}),Ou(Qe)?[4,Qe]:[3,2];case 1:Qe=y.sent(),y.label=2;case 2:if(Qe===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Oe=new Promise(function(x,P){return C.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),h(i(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([Oe,Promise.resolve(o(m,{dispatch:h,getState:g,extra:S,requestId:v,signal:C.signal,abort:T,rejectWithValue:function(x,P){return new fa(x,P)},fulfillWithValue:function(x,P){return new Nc(x,P)}})).then(function(x){if(x instanceof fa)throw x;return x instanceof Nc?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Ae=y.sent(),[3,5];case 4:return Je=y.sent(),Ae=Je instanceof fa?s(null,v,m,Je.payload,Je.meta):s(Je,v,m),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&s.match(Ae)&&Ae.meta.condition,pe||h(Ae),[2,Ae]}})})}();return Object.assign(k,{abort:T,requestId:v,arg:m,unwrap:function(){return k.then(Su)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Su(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ou(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc="listener",Bc="completed",$c="cancelled",K0="task-"+$c,Z0="task-"+Bc,q0=Dc+"-"+$c,Y0=Dc+"-"+Bc;var ya="listenerMiddleware";var X0=$t(ya+"/add"),Q0=$t(ya+"/removeAll"),J0=$t(ya+"/remove");var Tc,eS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Tc||(Tc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Cu=function(t){return function(e){setTimeout(e,t)}},tS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Cu(10);yc();function Eu(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Wo=class extends Eu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fc=class t extends Wo{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Bo(i))return i;if(a==null)return;let s=kc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=_c({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new _o;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let u=s,p=i[u];return p?(...m)=>{let h=p(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=b(N());var zo=class extends He{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=I.getState().session;return!!e?.sessionAuthenticated}};var Au="ft-user-assets",Ru={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Xt).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={}}},ze=Go.FtReduxStore.get({name:Au,reducers:Ru,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Xt).map(t=>[t,void 0])),bookmarkByMap:{}}}}),ma=class{constructor(e=new zo){this.assetCountsService=e,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Co,this.savedSearchesService=new Lo,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,Go.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ze.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ze.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Xt.BOOKMARKS&&o&&ze.actions.clearBookmarkCountByMap(),ze.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;ze.actions.bookmarks(o)}}},Lu=new ma;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lu);(0,Mc.customElement)("ft-app-context")(K);var Gc=b(Z());var Nu=b(N());function Uc(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Tu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Hc=Symbol("i18nAttributes"),Wc=Symbol("i18nListAttributes"),jc=Symbol("i18nProperties"),jo=Symbol("i18nContexts"),Xr=Symbol("i18nUnsubs");function Zo(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?wo:Sr}i18n(i){var s;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let c=(s=i.args)!==null&&s!==void 0?s:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...c)}customI18n(i,s){if(Uc(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,u)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,c;let u=this,p=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(s=this[Hc])===null||s===void 0||s.forEach((m,h)=>u[h]=p(m,h,u[h])),(c=this[Wc])===null||c===void 0||c.forEach((m,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(S=>p(m,h,S))})}updateI18nProperties(i){var s;(s=this[jc])===null||s===void 0||s.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,c)}addI18nContext(i,s,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[jo].set(u,{isCustomContext:c}),this[Xr].has(u)||this[Xr].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(i){return this[jo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jo].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Xr].forEach(i=>i()),this[Xr].clear()}}return e=jo,o=Xr,Tu([(0,Gc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var zc=class extends Zo(Ko.FtLitElement){},Vo=class extends Zo(Ko.FtLitElementRedux){};var Qr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Xe=class extends Vo{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":qo.nothing:qo.html`
|
|
1849
1849
|
<span class="ft-i18n">
|
|
1850
1850
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1851
1851
|
</span>
|