@fluid-topics/ft-search-locale-selector 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{var Rc=Object.create;var ya=Object.defineProperty;var Nc=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,Pc=Object.prototype.hasOwnProperty;var Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kc=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Lc(e))!Pc.call(t,a)&&a!==o&&ya(t,a,{get:()=>e[a],enumerable:!(n=Nc(e,a))||n.enumerable});return t};var g=(t,e,o)=>(o=t!=null?Rc(Ic(t)):{},kc(e||!t||!t.__esModule?ya(o,"default",{value:t,enumerable:!0}):o,t));var I=Bt((rp,ma)=>{ma.exports=ftGlobals.wcUtils});var $=Bt((op,ga)=>{ga.exports=ftGlobals.lit});var j=Bt((ny,ni)=>{ni.exports=ftGlobals.litDecorators});var ln=Bt((Sy,wi)=>{wi.exports=ftGlobals.litRepeat});var pr=Bt((Iy,Wi)=>{Wi.exports=ftGlobals.litClassMap});var gs=Bt((ym,ms)=>{ms.exports=ftGlobals.litUnsafeHTML});var nc=Bt((_t,oc)=>{var Vo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Go=function(){function t(){this.fetch=!1,this.DOMException=Vo.DOMException}return t.prototype=Vo,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 l=["[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&&l.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function f(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var k=y.shift();return{done:k===void 0,value:k}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function m(y){this.map={},y instanceof m?y.forEach(function(x,k){this.append(k,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)}m.prototype.append=function(y,x){y=p(y),x=f(x);var k=this.map[y];this.map[y]=k?k+", "+x:x},m.prototype.delete=function(y){delete this.map[p(y)]},m.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},m.prototype.set=function(y,x){this.map[p(y)]=f(x)},m.prototype.forEach=function(y,x){for(var k in this.map)this.map.hasOwnProperty(k)&&y.call(x,this.map[k],k,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(x,k){y.push(k)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(x,k){y.push([k,x])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(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,k){y.onload=function(){x(y.result)},y.onerror=function(){k(y.error)}})}function v(y){var x=new FileReader,k=S(x);return x.readAsArrayBuffer(y),k}function O(y){var x=new FileReader,k=S(x),z=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=z?z[1]:"utf-8";return x.readAsText(y,Q),k}function P(y){for(var x=new Uint8Array(y),k=new Array(x.length),z=0;z<x.length;z++)k[z]=String.fromCharCode(x[z]);return k.join("")}function N(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function L(){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=N(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=N(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=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var x=y.toUpperCase();return T.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 k=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 m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!k&&y._bodyInit!=null&&(k=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 m(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")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Ce(y){var x=new FormData;return y.trim().split("&").forEach(function(k){if(k){var z=k.split("="),Q=z.shift().replace(/\+/g," "),M=z.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Q),decodeURIComponent(M))}}),x}function Ze(y){var x=new m,k=y.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(z){return z.indexOf(`
2
- `)===0?z.substr(1,z.length):z}).forEach(function(z){var Q=z.split(":"),M=Q.shift().trim();if(M){var jr=Q.join(":").trim();try{x.append(M,jr)}catch(Yo){console.warn("Response "+Yo.message)}}}),x}L.call(F.prototype);function be(y,x){if(!(this instanceof be))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 m(x.headers),this.url=x.url||"",this._initBody(y)}L.call(be.prototype),be.prototype.clone=function(){return new be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},be.error=function(){var y=new be(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var qe=[301,302,303,307,308];be.redirect=function(y,x){if(qe.indexOf(x)===-1)throw new RangeError("Invalid status code");return new be(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,k){this.message=x,this.name=k;var z=Error(x);this.stack=z.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function pe(y,x){return new Promise(function(k,z){var Q=new F(y,x);if(Q.signal&&Q.signal.aborted)return z(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function jr(){M.abort()}M.onload=function(){var fe={statusText:M.statusText,headers:Ze(M.getAllResponseHeaders()||"")};Q.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 Dt="response"in M?M.response:M.responseText;setTimeout(function(){k(new be(Dt,fe))},0)},M.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){z(new o.DOMException("Aborted","AbortError"))},0)};function Yo(fe){try{return fe===""&&n.location.href?n.location.href:fe}catch{return fe}}if(M.open(Q.method,Yo(Q.url),!0),Q.credentials==="include"?M.withCredentials=!0:Q.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 m||n.Headers&&x.headers instanceof n.Headers)){var ha=[];Object.getOwnPropertyNames(x.headers).forEach(function(fe){ha.push(p(fe)),M.setRequestHeader(fe,f(x.headers[fe]))}),Q.headers.forEach(function(fe,Dt){ha.indexOf(Dt)===-1&&M.setRequestHeader(Dt,fe)})}else Q.headers.forEach(function(fe,Dt){M.setRequestHeader(Dt,fe)});Q.signal&&(Q.signal.addEventListener("abort",jr),M.onreadystatechange=function(){M.readyState===4&&Q.signal.removeEventListener("abort",jr)}),M.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return pe.polyfill=!0,n.fetch||(n.fetch=pe,n.Headers=m,n.Request=F,n.Response=be),o.Headers=m,o.Request=F,o.Response=be,o.fetch=pe,o}({})})(Go);Go.fetch.ponyfill=!0;delete Go.fetch.polyfill;var Or=Vo.fetch?Vo:Go;_t=Or.fetch;_t.default=Or.fetch;_t.fetch=Or.fetch;_t.Headers=Or.Headers;_t.Request=Or.Request;_t.Response=Or.Response;oc.exports=_t});var Ac=g(I());var Jt=g($());var Js=g($()),Ve=g(I());var ba=g($()),ot=g(I()),gt={distance:ot.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ot.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ot.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ot.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ot.FtCssVariableFactory.external(ot.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ot.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},xa=ba.css`
1
+ "use strict";(()=>{var Rc=Object.create;var ya=Object.defineProperty;var Nc=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,Pc=Object.prototype.hasOwnProperty;var Bt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kc=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Lc(e))!Pc.call(t,a)&&a!==o&&ya(t,a,{get:()=>e[a],enumerable:!(n=Nc(e,a))||n.enumerable});return t};var g=(t,e,o)=>(o=t!=null?Rc(Ic(t)):{},kc(e||!t||!t.__esModule?ya(o,"default",{value:t,enumerable:!0}):o,t));var I=Bt((rp,ma)=>{ma.exports=ftGlobals.wcUtils});var $=Bt((op,ga)=>{ga.exports=ftGlobals.lit});var j=Bt((ny,ni)=>{ni.exports=ftGlobals.litDecorators});var ln=Bt((Sy,wi)=>{wi.exports=ftGlobals.litRepeat});var pr=Bt((Iy,Wi)=>{Wi.exports=ftGlobals.litClassMap});var gs=Bt((ym,ms)=>{ms.exports=ftGlobals.litUnsafeHTML});var nc=Bt((_t,oc)=>{var Vo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Go=function(){function t(){this.fetch=!1,this.DOMException=Vo.DOMException}return t.prototype=Vo,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 l=["[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&&l.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function f(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var k=y.shift();return{done:k===void 0,value:k}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function m(y){this.map={},y instanceof m?y.forEach(function(x,k){this.append(k,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)}m.prototype.append=function(y,x){y=p(y),x=f(x);var k=this.map[y];this.map[y]=k?k+", "+x:x},m.prototype.delete=function(y){delete this.map[p(y)]},m.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},m.prototype.set=function(y,x){this.map[p(y)]=f(x)},m.prototype.forEach=function(y,x){for(var k in this.map)this.map.hasOwnProperty(k)&&y.call(x,this.map[k],k,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(x,k){y.push(k)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(x,k){y.push([k,x])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(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,k){y.onload=function(){x(y.result)},y.onerror=function(){k(y.error)}})}function v(y){var x=new FileReader,k=S(x);return x.readAsArrayBuffer(y),k}function O(y){var x=new FileReader,k=S(x),z=/charset=([A-Za-z0-9_-]+)/.exec(y.type),J=z?z[1]:"utf-8";return x.readAsText(y,J),k}function P(y){for(var x=new Uint8Array(y),k=new Array(x.length),z=0;z<x.length;z++)k[z]=String.fromCharCode(x[z]);return k.join("")}function N(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function L(){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=N(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=N(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=b(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var x=y.toUpperCase();return T.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 k=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 m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!k&&y._bodyInit!=null&&(k=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 m(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")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Ce(y){var x=new FormData;return y.trim().split("&").forEach(function(k){if(k){var z=k.split("="),J=z.shift().replace(/\+/g," "),M=z.join("=").replace(/\+/g," ");x.append(decodeURIComponent(J),decodeURIComponent(M))}}),x}function Ze(y){var x=new m,k=y.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(z){return z.indexOf(`
2
+ `)===0?z.substr(1,z.length):z}).forEach(function(z){var J=z.split(":"),M=J.shift().trim();if(M){var jr=J.join(":").trim();try{x.append(M,jr)}catch(Yo){console.warn("Response "+Yo.message)}}}),x}L.call(F.prototype);function be(y,x){if(!(this instanceof be))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 m(x.headers),this.url=x.url||"",this._initBody(y)}L.call(be.prototype),be.prototype.clone=function(){return new be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},be.error=function(){var y=new be(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var qe=[301,302,303,307,308];be.redirect=function(y,x){if(qe.indexOf(x)===-1)throw new RangeError("Invalid status code");return new be(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,k){this.message=x,this.name=k;var z=Error(x);this.stack=z.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function pe(y,x){return new Promise(function(k,z){var J=new F(y,x);if(J.signal&&J.signal.aborted)return z(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function jr(){M.abort()}M.onload=function(){var fe={statusText:M.statusText,headers:Ze(M.getAllResponseHeaders()||"")};J.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 Dt="response"in M?M.response:M.responseText;setTimeout(function(){k(new be(Dt,fe))},0)},M.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){z(new o.DOMException("Aborted","AbortError"))},0)};function Yo(fe){try{return fe===""&&n.location.href?n.location.href:fe}catch{return fe}}if(M.open(J.method,Yo(J.url),!0),J.credentials==="include"?M.withCredentials=!0:J.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 m||n.Headers&&x.headers instanceof n.Headers)){var ha=[];Object.getOwnPropertyNames(x.headers).forEach(function(fe){ha.push(p(fe)),M.setRequestHeader(fe,f(x.headers[fe]))}),J.headers.forEach(function(fe,Dt){ha.indexOf(Dt)===-1&&M.setRequestHeader(Dt,fe)})}else J.headers.forEach(function(fe,Dt){M.setRequestHeader(Dt,fe)});J.signal&&(J.signal.addEventListener("abort",jr),M.onreadystatechange=function(){M.readyState===4&&J.signal.removeEventListener("abort",jr)}),M.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}return pe.polyfill=!0,n.fetch||(n.fetch=pe,n.Headers=m,n.Request=F,n.Response=be),o.Headers=m,o.Request=F,o.Response=be,o.fetch=pe,o}({})})(Go);Go.fetch.ponyfill=!0;delete Go.fetch.polyfill;var Or=Vo.fetch?Vo:Go;_t=Or.fetch;_t.default=Or.fetch;_t.fetch=Or.fetch;_t.Headers=Or.Headers;_t.Request=Or.Request;_t.Response=Or.Response;oc.exports=_t});var Ac=g(I());var Jt=g($());var Js=g($()),Ve=g(I());var ba=g($()),ot=g(I()),gt={distance:ot.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ot.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ot.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ot.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ot.FtCssVariableFactory.external(ot.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ot.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},xa=ba.css`
3
3
  .ft-tooltip--container {
4
4
  display: block;
5
5
  }
@@ -135,7 +135,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
135
135
  }
136
136
  `,oi=[Object.keys(Kr).map(t=>Ga(t))];var wn=g(I());var Kt=g($()),H=g(j()),Me=g(I());var Ei=g(I());var on=globalThis,Xr=on.trustedTypes,ai=Xr?Xr.createPolicy("lit-html",{createHTML:t=>t}):void 0,pi="$lit$",xt=`lit$${(Math.random()+"").slice(9)}$`,fi="?"+xt,_c=`<${fi}>`,Mt=document,Qr=()=>Mt.createComment(""),Er=t=>t===null||typeof t!="object"&&typeof t!="function",ui=Array.isArray,Dc=t=>ui(t)||typeof t?.[Symbol.iterator]=="function",Xo=`[
137
137
  \f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ii=/-->/g,si=/>/g,$t=RegExp(`>|${Xo}(?:([^\\s"'>=/]+)(${Xo}*=${Xo}*(?:[^
138
- \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,ci=/"/g,hi=/^(?:script|style|textarea|title)$/i,yi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),mi=yi(1),gi=yi(2),wr=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),di=new WeakMap,Ft=Mt.createTreeWalker(Mt,129);function bi(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(e):e}var Bc=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",l=Cr;for(let c=0;c<o;c++){let p=t[c],f,h,m=-1,b=0;for(;b<p.length&&(l.lastIndex=b,h=l.exec(p),h!==null);)b=l.lastIndex,l===Cr?h[1]==="!--"?l=ii:h[1]!==void 0?l=si:h[2]!==void 0?(hi.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=$t):h[3]!==void 0&&(l=$t):l===$t?h[0]===">"?(l=a??Cr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?$t:h[3]==='"'?ci:li):l===ci||l===li?l=$t:l===ii||l===si?l=Cr:(l=$t,a=void 0);let S=l===$t&&t[c+1].startsWith("/>")?" ":"";i+=l===Cr?p+_c:m>=0?(n.push(f),p.slice(0,m)+pi+p.slice(m)+xt+S):p+xt+(m===-2?c:S)}return[bi(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Ar=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,p=this.parts,[f,h]=Bc(e,o);if(this.el=t.createElement(f,n),Ft.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=Ft.nextNode())!==null&&p.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(pi)){let b=h[l++],S=a.getAttribute(m).split(xt),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?Jo:v[1]==="?"?en:v[1]==="@"?tn:dr}),a.removeAttribute(m)}else m.startsWith(xt)&&(p.push({type:6,index:i}),a.removeAttribute(m));if(hi.test(a.tagName)){let m=a.textContent.split(xt),b=m.length-1;if(b>0){a.textContent=Xr?Xr.emptyScript:"";for(let S=0;S<b;S++)a.append(m[S],Qr()),Ft.nextNode(),p.push({type:2,index:++i});a.append(m[b],Qr())}}}else if(a.nodeType===8)if(a.data===fi)p.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(xt,m+1))!==-1;)p.push({type:7,index:i}),m+=xt.length-1}i++}}static createElement(e,o){let n=Mt.createElement("template");return n.innerHTML=e,n}};function cr(t,e,o=t,n){if(e===wr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Er(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=cr(t,a._$AS(t,e.values),a,n)),e}var Qo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Mt).importNode(o,!0);Ft.currentNode=a;let i=Ft.nextNode(),l=0,c=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new Jr(i,i.nextSibling,this,e):p.type===1?f=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(f=new rn(i,this,e)),this._$AV.push(f),p=n[++c]}l!==p?.index&&(i=Ft.nextNode(),l++)}return Ft.currentNode=Mt,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Jr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=cr(this,e,o),Er(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ie&&Er(this._$AH)?this._$AA.nextSibling.data=e:this.$(Mt.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ar.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Qo(a,this),l=i.u(this.options);i.p(o),this.$(l),this._$AH=i}}_$AC(e){let o=di.get(e.strings);return o===void 0&&di.set(e.strings,o=new Ar(e)),o}T(e){ui(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(Qr()),this.k(Qr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ie}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=cr(this,e,o,0),l=!Er(e)||e!==this._$AH&&e!==wr,l&&(this._$AH=e);else{let c=e,p,f;for(e=i[0],p=0;p<i.length-1;p++)f=cr(this,c[n+p],o,p),f===wr&&(f=this._$AH[p]),l||=!Er(f)||f!==this._$AH[p],f===ie?e=ie:e!==ie&&(e+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(e)}O(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Jo=class extends dr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ie?void 0:e}},en=class extends dr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}},tn=class extends dr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=cr(this,e,o,0)??ie)===wr)return;let n=this._$AH,a=e===ie&&n!==ie||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==ie&&(n===ie||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},rn=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){cr(this,e)}};var $c=on.litHtmlPolyfillSupport;$c?.(Ar,Jr),(on.litHtmlVersions??=[]).push("3.1.0");var vi=Symbol.for(""),Fc=t=>{if(t?.r===vi)return t?._$litStatic$},nn=t=>({_$litStatic$:t,r:vi});var xi=new Map,Si=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&(i=o[f],(a=Fc(i))!==void 0);)p+=a+e[++f],h=!0;f!==n&&c.push(i),l.push(p),f++}if(f===n&&l.push(e[n]),h){let m=l.join("$$lit$$");(e=xi.get(m))===void 0&&(l.raw=l,xi.set(m,e=l)),o=c}return t(e,...o)},an=Si(mi),sy=Si(gi);var sn=g(j()),Ci=g(I());var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var Oi=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends Ci.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?an`
138
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,ci=/"/g,hi=/^(?:script|style|textarea|title)$/i,yi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),mi=yi(1),gi=yi(2),wr=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),di=new WeakMap,Ft=Mt.createTreeWalker(Mt,129);function bi(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(e):e}var Bc=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",l=Cr;for(let c=0;c<o;c++){let p=t[c],f,h,m=-1,b=0;for(;b<p.length&&(l.lastIndex=b,h=l.exec(p),h!==null);)b=l.lastIndex,l===Cr?h[1]==="!--"?l=ii:h[1]!==void 0?l=si:h[2]!==void 0?(hi.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=$t):h[3]!==void 0&&(l=$t):l===$t?h[0]===">"?(l=a??Cr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?$t:h[3]==='"'?ci:li):l===ci||l===li?l=$t:l===ii||l===si?l=Cr:(l=$t,a=void 0);let S=l===$t&&t[c+1].startsWith("/>")?" ":"";i+=l===Cr?p+_c:m>=0?(n.push(f),p.slice(0,m)+pi+p.slice(m)+xt+S):p+xt+(m===-2?c:S)}return[bi(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Ar=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,p=this.parts,[f,h]=Bc(e,o);if(this.el=t.createElement(f,n),Ft.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=Ft.nextNode())!==null&&p.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(pi)){let b=h[l++],S=a.getAttribute(m).split(xt),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?Jo:v[1]==="?"?en:v[1]==="@"?tn:dr}),a.removeAttribute(m)}else m.startsWith(xt)&&(p.push({type:6,index:i}),a.removeAttribute(m));if(hi.test(a.tagName)){let m=a.textContent.split(xt),b=m.length-1;if(b>0){a.textContent=Xr?Xr.emptyScript:"";for(let S=0;S<b;S++)a.append(m[S],Qr()),Ft.nextNode(),p.push({type:2,index:++i});a.append(m[b],Qr())}}}else if(a.nodeType===8)if(a.data===fi)p.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(xt,m+1))!==-1;)p.push({type:7,index:i}),m+=xt.length-1}i++}}static createElement(e,o){let n=Mt.createElement("template");return n.innerHTML=e,n}};function cr(t,e,o=t,n){if(e===wr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Er(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=cr(t,a._$AS(t,e.values),a,n)),e}var Qo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Mt).importNode(o,!0);Ft.currentNode=a;let i=Ft.nextNode(),l=0,c=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new Jr(i,i.nextSibling,this,e):p.type===1?f=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(f=new rn(i,this,e)),this._$AV.push(f),p=n[++c]}l!==p?.index&&(i=Ft.nextNode(),l++)}return Ft.currentNode=Mt,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Jr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=cr(this,e,o),Er(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==se&&Er(this._$AH)?this._$AA.nextSibling.data=e:this.$(Mt.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ar.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Qo(a,this),l=i.u(this.options);i.p(o),this.$(l),this._$AH=i}}_$AC(e){let o=di.get(e.strings);return o===void 0&&di.set(e.strings,o=new Ar(e)),o}T(e){ui(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(Qr()),this.k(Qr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=se}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=cr(this,e,o,0),l=!Er(e)||e!==this._$AH&&e!==wr,l&&(this._$AH=e);else{let c=e,p,f;for(e=i[0],p=0;p<i.length-1;p++)f=cr(this,c[n+p],o,p),f===wr&&(f=this._$AH[p]),l||=!Er(f)||f!==this._$AH[p],f===se?e=se:e!==se&&(e+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(e)}O(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Jo=class extends dr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===se?void 0:e}},en=class extends dr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}},tn=class extends dr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=cr(this,e,o,0)??se)===wr)return;let n=this._$AH,a=e===se&&n!==se||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==se&&(n===se||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},rn=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){cr(this,e)}};var $c=on.litHtmlPolyfillSupport;$c?.(Ar,Jr),(on.litHtmlVersions??=[]).push("3.1.0");var vi=Symbol.for(""),Fc=t=>{if(t?.r===vi)return t?._$litStatic$},nn=t=>({_$litStatic$:t,r:vi});var xi=new Map,Si=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&(i=o[f],(a=Fc(i))!==void 0);)p+=a+e[++f],h=!0;f!==n&&c.push(i),l.push(p),f++}if(f===n&&l.push(e[n]),h){let m=l.join("$$lit$$");(e=xi.get(m))===void 0&&(l.raw=l,xi.set(m,e=l)),o=c}return t(e,...o)},an=Si(mi),sy=Si(gi);var sn=g(j()),Ci=g(I());var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var Oi=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends Ci.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?an`
139
139
  <${nn(this.element)}
140
140
  part="text"
141
141
  class="ft-typography ft-typography--${this.variant}">
@@ -538,19 +538,19 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
538
538
  </div>
539
539
  </div>
540
540
  </div>
541
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};Z.elementDefinitions={"ft-typography":te};Z.styles=xa;Ae([(0,ne.property)()],Z.prototype,"text",void 0);Ae([(0,ne.property)({type:Boolean})],Z.prototype,"manual",void 0);Ae([(0,ne.property)({type:Boolean})],Z.prototype,"inline",void 0);Ae([(0,ne.property)({type:Number})],Z.prototype,"delay",void 0);Ae([(0,ne.property)()],Z.prototype,"position",void 0);Ae([(0,ne.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);Ae([(0,ne.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);Ae([(0,ne.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);Ae([(0,ne.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);Ae([(0,ne.state)()],Z.prototype,"visible",void 0);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onHover",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onOut",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(Z);var vs=g(I());var Dr=g($()),zt=g(j()),bs=g(I()),xs=g(gs());var io;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;"})(io||(io={}));var w;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(w||(w={}));var mm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var gm={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}));var so=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},he=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Dr.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,o=e!==Je.material||!!this.value;return Dr.html`
541
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};Z.elementDefinitions={"ft-typography":te};Z.styles=xa;Ae([(0,ne.property)()],Z.prototype,"text",void 0);Ae([(0,ne.property)({type:Boolean})],Z.prototype,"manual",void 0);Ae([(0,ne.property)({type:Boolean})],Z.prototype,"inline",void 0);Ae([(0,ne.property)({type:Number})],Z.prototype,"delay",void 0);Ae([(0,ne.property)()],Z.prototype,"position",void 0);Ae([(0,ne.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);Ae([(0,ne.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);Ae([(0,ne.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);Ae([(0,ne.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);Ae([(0,ne.state)()],Z.prototype,"visible",void 0);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onHover",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onOut",null);Ae([(0,ne.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(Z);var vs=g(I());var Dr=g($()),zt=g(j()),bs=g(I()),xs=g(gs());var io;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;"})(io||(io={}));var w;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(w||(w={}));var mm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var gm={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}));var so=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ye=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Dr.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,o=e!==Je.material||!!this.value;return Dr.html`
542
542
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
543
543
  ${(0,xs.unsafeHTML)(this.resolvedIcon)}
544
544
  <slot ?hidden=${o}></slot>
545
545
  </i>
546
- `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case Je.file_format:this.resolvedIcon=(e=w[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Je.material:this.resolvedIcon=this.value||Dr.nothing;break;default:this.resolvedIcon=(o=io[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Bi;so([(0,zt.property)()],he.prototype,"variant",void 0);so([(0,zt.property)()],he.prototype,"value",void 0);so([(0,zt.state)()],he.prototype,"resolvedIcon",void 0);so([(0,zt.query)("slot")],he.prototype,"slottedContent",void 0);(0,vs.customElement)("ft-icon")(he);var Cs=g(I());var Ss=g($()),Os=g(I());var Ht=class extends Os.FtLitElement{render(){return Ss.html`
546
+ `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case Je.file_format:this.resolvedIcon=(e=w[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Je.material:this.resolvedIcon=this.value||Dr.nothing;break;default:this.resolvedIcon=(o=io[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=Bi;so([(0,zt.property)()],ye.prototype,"variant",void 0);so([(0,zt.property)()],ye.prototype,"value",void 0);so([(0,zt.state)()],ye.prototype,"resolvedIcon",void 0);so([(0,zt.query)("slot")],ye.prototype,"slottedContent",void 0);(0,vs.customElement)("ft-icon")(ye);var Cs=g(I());var Ss=g($()),Os=g(I());var Ht=class extends Os.FtLitElement{render(){return Ss.html`
547
547
  <div class="ft-loader">
548
548
  <div></div>
549
549
  <div></div>
550
550
  <div></div>
551
551
  <div></div>
552
552
  </div>
553
- `}};Ht.styles=_i;(0,Cs.customElement)("ft-loader")(Ht);var Ct=g($()),vn=g(pr()),se=g(j()),ye=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},J=class extends(0,Et.toFtFormComponent)(Et.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Ct.html`
553
+ `}};Ht.styles=_i;(0,Cs.customElement)("ft-loader")(Ht);var Ct=g($()),vn=g(pr()),ae=g(j()),he=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends(0,Et.toFtFormComponent)(Et.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Ct.html`
554
554
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
555
555
  <ft-typography part="label"
556
556
  variant=${this.typographyVariant}
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
587
587
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
588
588
  `:Ct.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};J.elementDefinitions={"ft-ripple":W,"ft-tooltip":Z,"ft-typography":te,"ft-icon":he,"ft-loader":Ht};ye([(0,se.property)()],J.prototype,"href",void 0);ye([(0,se.property)()],J.prototype,"target",void 0);ye([(0,se.property)({type:String,reflect:!0})],J.prototype,"role",void 0);ye([(0,se.property)()],J.prototype,"type",void 0);ye([(0,se.property)({type:Boolean})],J.prototype,"disabled",void 0);ye([(0,se.property)()],J.prototype,"label",void 0);ye([(0,se.property)()],J.prototype,"icon",void 0);ye([(0,se.property)()],J.prototype,"iconVariant",void 0);ye([(0,se.property)({type:Boolean})],J.prototype,"trailingIcon",void 0);ye([(0,se.property)({type:Boolean})],J.prototype,"loading",void 0);ye([(0,se.property)({attribute:"aria-label"})],J.prototype,"ariaLabel",void 0);ye([(0,se.property)()],J.prototype,"tooltipPosition",void 0);ye([(0,se.property)({type:Boolean})],J.prototype,"hideTooltip",void 0);ye([(0,se.property)({type:Boolean})],J.prototype,"forceTooltip",void 0);ye([(0,se.query)(".ft-button")],J.prototype,"button",void 0);ye([(0,se.query)(".ft-button--label slot")],J.prototype,"slottedContent",void 0);var lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ve=class extends J{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ve.styles=[Es.safariEllipsisFix,Ui];lo([(0,Br.property)({type:Boolean})],ve.prototype,"primary",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"outlined",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"dense",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"round",void 0);var $r=g(j());var po=g(I());var ws=g($()),C=g(I());var As=[ws.css`
590
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};q.elementDefinitions={"ft-ripple":W,"ft-tooltip":Z,"ft-typography":te,"ft-icon":ye,"ft-loader":Ht};he([(0,ae.property)()],q.prototype,"href",void 0);he([(0,ae.property)()],q.prototype,"target",void 0);he([(0,ae.property)({type:String,reflect:!0})],q.prototype,"role",void 0);he([(0,ae.property)()],q.prototype,"type",void 0);he([(0,ae.property)({type:Boolean})],q.prototype,"disabled",void 0);he([(0,ae.property)()],q.prototype,"label",void 0);he([(0,ae.property)()],q.prototype,"icon",void 0);he([(0,ae.property)()],q.prototype,"iconVariant",void 0);he([(0,ae.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);he([(0,ae.property)({type:Boolean})],q.prototype,"loading",void 0);he([(0,ae.property)({attribute:"aria-label"})],q.prototype,"ariaLabel",void 0);he([(0,ae.property)()],q.prototype,"tooltipPosition",void 0);he([(0,ae.property)({type:Boolean})],q.prototype,"hideTooltip",void 0);he([(0,ae.property)({type:Boolean})],q.prototype,"forceTooltip",void 0);he([(0,ae.query)(".ft-button")],q.prototype,"button",void 0);he([(0,ae.query)(".ft-button--label slot")],q.prototype,"slottedContent",void 0);he([(0,ae.query)("[part=tooltip]")],q.prototype,"tooltip",void 0);var lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ve=class extends q{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ve.styles=[Es.safariEllipsisFix,Ui];lo([(0,Br.property)({type:Boolean})],ve.prototype,"primary",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"outlined",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"dense",void 0);lo([(0,Br.property)({type:Boolean})],ve.prototype,"round",void 0);var $r=g(j());var po=g(I());var ws=g($()),C=g(I());var As=[ws.css`
591
591
  :host {
592
592
  display: inline-block;
593
593
  max-width: 100%;
@@ -1053,7 +1053,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1053
1053
  .ftds--size-small.ft-button--icon-only {
1054
1054
  width: ${u.smallIconOnlyWidth};
1055
1055
  }
1056
- `,C.noTextSelect];var co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends(0,po.toFtdsBase)(J){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Zr.brand,this.iconVariant=Je.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case er.large:return vt.body2medium;case er.medium:return vt.caption1medium;case er.small:return vt.caption2medium}}};dt.styles=[po.safariEllipsisFix,As];co([(0,$r.property)({type:Boolean})],dt.prototype,"primary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"secondary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"tertiary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"round",void 0);(0,Sn.customElement)("ft-button")(ve);(0,Sn.customElement)("ftds-button")(dt);var ks=g(I());var Ls=g($()),ft=g(j()),Is=g(I()),Ps=g(pr());var ke=g(I()),Rs=g($());var pt={textColor:ke.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ke.designSystemVariables.colorOnSurfaceHigh),fontSize:ke.FtCssVariableFactory.extend("--ft-checkbox-font-size","",R.fontSize),colorPrimary:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ke.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ke.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Ns=Rs.css`
1056
+ `,C.noTextSelect];var co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends(0,po.toFtdsBase)(q){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Zr.brand,this.iconVariant=Je.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case er.large:return vt.body2medium;case er.medium:return vt.caption1medium;case er.small:return vt.caption2medium}}};dt.styles=[po.safariEllipsisFix,As];co([(0,$r.property)({type:Boolean})],dt.prototype,"primary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"secondary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"tertiary",void 0);co([(0,$r.property)({type:Boolean})],dt.prototype,"round",void 0);(0,Sn.customElement)("ft-button")(ve);(0,Sn.customElement)("ftds-button")(dt);var ks=g(I());var Ls=g($()),ft=g(j()),Is=g(I()),Ps=g(pr());var ke=g(I()),Rs=g($());var pt={textColor:ke.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ke.designSystemVariables.colorOnSurfaceHigh),fontSize:ke.FtCssVariableFactory.extend("--ft-checkbox-font-size","",R.fontSize),colorPrimary:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ke.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ke.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Ns=Rs.css`
1057
1057
  * {
1058
1058
  box-sizing: border-box;
1059
1059
  }
@@ -1246,7 +1246,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1246
1246
  .ft-radio ft-typography {
1247
1247
  padding-right: 2px;
1248
1248
  }
1249
- `;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fo=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ae=class extends Bs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ds.html`
1249
+ `;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fo=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ie=class extends Bs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ds.html`
1250
1250
  <div class="${(0,$s.classMap)(e)}">
1251
1251
  <div class="ft-radio--box-container">
1252
1252
  <ft-ripple
@@ -1271,7 +1271,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1271
1271
  </ft-typography>
1272
1272
  </label>
1273
1273
  </div>
1274
- `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new fo(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new fo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ae.elementDefinitions={"ft-ripple":W,"ft-typography":te};ae.styles=_s;ut([(0,ze.property)()],ae.prototype,"value",void 0);ut([(0,ze.property)()],ae.prototype,"name",void 0);ut([(0,ze.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);ut([(0,ze.property)({attribute:"aria-checked",reflect:!0})],ae.prototype,"ariaChecked",void 0);ut([(0,ze.property)({type:Boolean})],ae.prototype,"disabled",void 0);ut([(0,ze.property)({reflect:!0,attribute:"role"})],ae.prototype,"role",void 0);ut([(0,ze.query)(".ft-radio")],ae.prototype,"container",void 0);ut([(0,ze.query)("ft-ripple")],ae.prototype,"ripple",void 0);ut([(0,ze.query)("input")],ae.prototype,"input",void 0);var Us=g(I()),ht=g(j()),Ws=g($());var Fs=g($());var Ms=Fs.css`
1274
+ `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new fo(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new fo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ie.elementDefinitions={"ft-ripple":W,"ft-typography":te};ie.styles=_s;ut([(0,ze.property)()],ie.prototype,"value",void 0);ut([(0,ze.property)()],ie.prototype,"name",void 0);ut([(0,ze.property)({type:Boolean,reflect:!0})],ie.prototype,"checked",void 0);ut([(0,ze.property)({attribute:"aria-checked",reflect:!0})],ie.prototype,"ariaChecked",void 0);ut([(0,ze.property)({type:Boolean})],ie.prototype,"disabled",void 0);ut([(0,ze.property)({reflect:!0,attribute:"role"})],ie.prototype,"role",void 0);ut([(0,ze.query)(".ft-radio")],ie.prototype,"container",void 0);ut([(0,ze.query)("ft-ripple")],ie.prototype,"ripple",void 0);ut([(0,ze.query)("input")],ie.prototype,"input",void 0);var Us=g(I()),ht=g(j()),Ws=g($());var Fs=g($());var Ms=Fs.css`
1275
1275
  :host {
1276
1276
  display: block;
1277
1277
  }
@@ -1284,7 +1284,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1284
1284
  @change=${this.onChange}
1285
1285
  @keydown=${this.onKeyDown}
1286
1286
  ></slot>
1287
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Re.elementDefinitions={};Re.styles=Ms;yr([(0,ht.property)()],Re.prototype,"name",void 0);yr([(0,ht.property)({reflect:!0,attribute:"role"})],Re.prototype,"role",void 0);yr([(0,ht.property)({reflect:!0})],Re.prototype,"tabIndex",void 0);yr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Re.prototype,"ariaLabelledBy",void 0);yr([(0,ht.queryAssignedElements)()],Re.prototype,"assignedElements",void 0);yr([(0,ht.state)()],Re.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(ae);(0,On.customElement)("ft-radio-group")(Re);var zs=g($()),q=g(I());var uo={borderRadiusM:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:q.FtCssVariableFactory.external(q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:q.FtCssVariableFactory.external(Ie.fontFamily,"Body2 typography"),fontSize:q.FtCssVariableFactory.external(Ie.fontSize,"Body2 typography"),fontWeight:q.FtCssVariableFactory.external(Ie.fontWeight,"Body2 typography"),letterSpacing:q.FtCssVariableFactory.external(Ie.letterSpacing,"Body2 typography"),lineHeight:q.FtCssVariableFactory.external(Ie.lineHeight,"Body2 typography"),textTransform:q.FtCssVariableFactory.external(Ie.textTransform,"Body2 typography")},Hs=zs.css`
1287
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Re.elementDefinitions={};Re.styles=Ms;yr([(0,ht.property)()],Re.prototype,"name",void 0);yr([(0,ht.property)({reflect:!0,attribute:"role"})],Re.prototype,"role",void 0);yr([(0,ht.property)({reflect:!0})],Re.prototype,"tabIndex",void 0);yr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Re.prototype,"ariaLabelledBy",void 0);yr([(0,ht.queryAssignedElements)()],Re.prototype,"assignedElements",void 0);yr([(0,ht.state)()],Re.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(ie);(0,On.customElement)("ft-radio-group")(Re);var zs=g($()),Y=g(I());var uo={borderRadiusM:Y.FtCssVariableFactory.external(Y.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Y.FtCssVariableFactory.external(Ie.fontFamily,"Body2 typography"),fontSize:Y.FtCssVariableFactory.external(Ie.fontSize,"Body2 typography"),fontWeight:Y.FtCssVariableFactory.external(Ie.fontWeight,"Body2 typography"),letterSpacing:Y.FtCssVariableFactory.external(Ie.letterSpacing,"Body2 typography"),lineHeight:Y.FtCssVariableFactory.external(Ie.lineHeight,"Body2 typography"),textTransform:Y.FtCssVariableFactory.external(Ie.textTransform,"Body2 typography")},Hs=zs.css`
1288
1288
  .ft-filter-level--container {
1289
1289
  display: flex;
1290
1290
  flex-direction: column;
@@ -1334,7 +1334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1334
1334
  }
1335
1335
 
1336
1336
  ft-button {
1337
- ${(0,q.setVariable)(V.color,uo.colorOnSurface)};
1337
+ ${(0,Y.setVariable)(V.color,uo.colorOnSurface)};
1338
1338
  }
1339
1339
 
1340
1340
  ft-radio, ft-checkbox {
@@ -1416,7 +1416,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1416
1416
  @change=${o=>this.optionsChanged(o,e)}>
1417
1417
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1418
1418
  </ft-radio>
1419
- `}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":ve,"ft-ripple":W,"ft-typography":te,"ft-checkbox":Se,"ft-icon":he,"ft-radio":ae};re.styles=Hs;Oe([(0,le.property)({type:String})],re.prototype,"filterId",void 0);Oe([(0,le.property)({type:Object})],re.prototype,"parent",void 0);Oe([(0,le.property)({type:Array})],re.prototype,"options",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"multivalued",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"disabled",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"displayCount",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Oe([(0,le.property)({type:String})],re.prototype,"filter",void 0);Oe([(0,le.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Oe([(0,le.property)({type:String})],re.prototype,"noValuesLabel",void 0);Oe([(0,le.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Oe([(0,le.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Oe([(0,le.state)()],re.prototype,"radios",void 0);Oe([(0,le.state)()],re.prototype,"displayedPages",void 0);var qs=g(I());var Ks=g($()),De=g(j()),jt=g(I());var Zs=g(pr());var Gs=g($()),He=g(I());var wt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},js=Gs.css`
1419
+ `}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":ve,"ft-ripple":W,"ft-typography":te,"ft-checkbox":Se,"ft-icon":ye,"ft-radio":ie};re.styles=Hs;Oe([(0,le.property)({type:String})],re.prototype,"filterId",void 0);Oe([(0,le.property)({type:Object})],re.prototype,"parent",void 0);Oe([(0,le.property)({type:Array})],re.prototype,"options",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"multivalued",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"disabled",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"displayCount",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Oe([(0,le.property)({type:String})],re.prototype,"filter",void 0);Oe([(0,le.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Oe([(0,le.property)({type:String})],re.prototype,"noValuesLabel",void 0);Oe([(0,le.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Oe([(0,le.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Oe([(0,le.state)()],re.prototype,"radios",void 0);Oe([(0,le.state)()],re.prototype,"displayedPages",void 0);var qs=g(I());var Ks=g($()),De=g(j()),jt=g(I());var Zs=g(pr());var Gs=g($()),He=g(I());var wt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},js=Gs.css`
1420
1420
  .ft-snap-scroll {
1421
1421
  box-sizing: border-box;
1422
1422
  position: relative;
@@ -1682,7 +1682,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1682
1682
  slot:not([name]) {
1683
1683
  display: none;
1684
1684
  }
1685
- `];var Y=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},En=class extends CustomEvent{constructor(e){super("change",{detail:e})}},U=class extends Me.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Me.Debouncer(300),this.changeDebouncer=new Me.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]})}get childrenFilteredFlatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return e.selected?[]:(o=e.subOptions)!==null&&o!==void 0?o:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(a=>a.selected),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Kt.html`
1685
+ `];var X=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},En=class extends CustomEvent{constructor(e){super("change",{detail:e})}},U=class extends Me.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Me.Debouncer(300),this.changeDebouncer=new Me.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]})}get childrenFilteredFlatOptions(){return(0,Me.flatDeep)(this.options,e=>{var o;return e.selected?[]:(o=e.subOptions)!==null&&o!==void 0?o:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(a=>a.selected),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Kt.html`
1686
1686
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1687
1687
  part="container">
1688
1688
  ${!this.label&&!e?null:Kt.html`
@@ -1759,7 +1759,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1759
1759
  .exportpartsPrefixes=${["values","available-values"]}
1760
1760
  noValuesLabel="${this.noValuesLabel}"
1761
1761
  ></ft-filter-level>
1762
- `}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":ve,"ft-filter-level":re,"ft-snap-scroll":ce,"ft-typography":te};U.styles=Xs;Y([(0,H.property)({type:String})],U.prototype,"id",void 0);Y([(0,H.property)({type:String})],U.prototype,"label",void 0);Y([(0,H.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);Y([(0,H.property)({type:String})],U.prototype,"clearButtonLabel",void 0);Y([(0,H.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);Y([(0,H.property)({type:String})],U.prototype,"noValuesLabel",void 0);Y([(0,Me.jsonProperty)([])],U.prototype,"options",void 0);Y([(0,H.property)({type:Boolean})],U.prototype,"multivalued",void 0);Y([(0,H.property)({type:Boolean})],U.prototype,"disabled",void 0);Y([(0,H.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);Y([(0,H.property)({type:Boolean})],U.prototype,"displayCount",void 0);Y([(0,H.property)({type:Number})],U.prototype,"displayedValuesLimit",void 0);Y([(0,H.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);Y([(0,H.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);Y([(0,H.query)(".ft-filter--container")],U.prototype,"container",void 0);Y([(0,H.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);Y([(0,H.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);Y([(0,H.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);Y([(0,H.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);Y([(0,H.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);Y([(0,H.state)()],U.prototype,"withScroll",void 0);Y([(0,H.state)()],U.prototype,"filter",void 0);Y([(0,H.state)()],U.prototype,"slideIn",void 0);Y([(0,H.state)()],U.prototype,"slideOut",void 0);var yo=g(I()),Zt=g(j()),Qs=g($()),mr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Be=class extends yo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Qs.html`
1762
+ `}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":ve,"ft-filter-level":re,"ft-snap-scroll":ce,"ft-typography":te};U.styles=Xs;X([(0,H.property)({type:String})],U.prototype,"id",void 0);X([(0,H.property)({type:String})],U.prototype,"label",void 0);X([(0,H.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);X([(0,H.property)({type:String})],U.prototype,"clearButtonLabel",void 0);X([(0,H.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);X([(0,H.property)({type:String})],U.prototype,"noValuesLabel",void 0);X([(0,Me.jsonProperty)([])],U.prototype,"options",void 0);X([(0,H.property)({type:Boolean})],U.prototype,"multivalued",void 0);X([(0,H.property)({type:Boolean})],U.prototype,"disabled",void 0);X([(0,H.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);X([(0,H.property)({type:Boolean})],U.prototype,"displayCount",void 0);X([(0,H.property)({type:Number})],U.prototype,"displayedValuesLimit",void 0);X([(0,H.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);X([(0,H.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);X([(0,H.query)(".ft-filter--container")],U.prototype,"container",void 0);X([(0,H.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);X([(0,H.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);X([(0,H.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,H.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);X([(0,H.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);X([(0,H.state)()],U.prototype,"withScroll",void 0);X([(0,H.state)()],U.prototype,"filter",void 0);X([(0,H.state)()],U.prototype,"slideIn",void 0);X([(0,H.state)()],U.prototype,"slideOut",void 0);var yo=g(I()),Zt=g(j()),Qs=g($()),mr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Be=class extends yo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Qs.html`
1763
1763
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1764
1764
  `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(o=>o)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Be.elementDefinitions={};mr([(0,Zt.property)({type:String})],Be.prototype,"label",void 0);mr([(0,Zt.property)({type:Object,converter:t=>t})],Be.prototype,"value",void 0);mr([(0,Zt.property)({type:Boolean,reflect:!0})],Be.prototype,"selected",void 0);mr([(0,Zt.property)({type:Object})],Be.prototype,"subOptions",void 0);mr([(0,yo.jsonProperty)({})],Be.prototype,"renderOption",void 0);mr([(0,Zt.query)(".ft-filter-option--slot")],Be.prototype,"slotElement",void 0);(0,wn.customElement)("ft-filter")(U);(0,wn.customElement)("ft-filter-option")(Be);var An={warningIconColor:Ve.FtCssVariableFactory.extend("--ft-search-locale-selector-warning-icon-color","",Ve.designSystemVariables.colorError),warningTooltipMaxWidth:Ve.FtCssVariableFactory.create("--ft-search-locale-selector-warning-tooltip-max-width","","SIZE","270px"),headerColor:Ve.FtCssVariableFactory.extend("--ft-search-locale-selector-header-color","",Ve.designSystemVariables.colorOnSurface)},el=Js.css`
1765
1765
  [part="container"] {
@@ -1813,7 +1813,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1813
1813
  `;var Fo=g(I());var Ql=g(I());var sl=g($()),Le=g(j()),Ge=g(I());var ol=g($());var nl=ol.css`
1814
1814
  `;var mo=g(I()),ad="ft-app-info",Rn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},id={session:(t,e)=>{(0,mo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Rn(e.payload)),0))}},_=mo.FtReduxStore.get({name:ad,reducers:id,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var At=g(I());var Nn=g(I());var qt=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 yt=class{constructor(e=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Nn.CacheRegistry,this.cache=e?a.commonCache:new Nn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}clearCache(){this.cache.clearAll()}};var al,sd=Symbol("clearAfterUnitTest"),go=class extends yt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[al]=()=>{this.defaultMessages={},this.cache=new At.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(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,At.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await 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(),l=this.resolveContext(i);return new At.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}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,At.delay)(0).then(()=>o()).catch(()=>null)))}};al=sd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends go{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends go{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Yt=window.FluidTopicsI18nService,il=window.FluidTopicsCustomI18nService;var me=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ee=class extends Ge.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>qt.get(),this.messageContexts=[],this.cache=new Ge.CacheRegistry,this.cleanSessionDebouncer=new Ge.Debouncer}render(){return sl.html`
1815
1815
  <slot></slot>
1816
- `}update(e){var o,n,a,i,l;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Yt.addContext(c)),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((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ee.elementDefinitions={};ee.styles=nl;me([(0,Le.property)()],ee.prototype,"baseUrl",void 0);me([(0,Le.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);me([(0,Le.property)()],ee.prototype,"uiLocale",void 0);me([(0,Ge.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);me([(0,Ge.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"editorMode",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"noCustom",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);me([(0,Le.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ee.prototype,"noCustomComponent",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);me([(0,Le.property)({type:Object})],ee.prototype,"apiProvider",void 0);me([(0,Ge.jsonProperty)([])],ee.prototype,"messageContexts",void 0);me([(0,Ge.jsonProperty)(void 0)],ee.prototype,"session",void 0);me([(0,Le.state)()],ee.prototype,"localesConfiguration",void 0);var Zd=g(j());function ld(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(!bo(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(!bo(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();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!bo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function bo(t,e){try{return ld(t,e)}catch{return!1}}function Ln(t,e){return!bo(t,e)}var cd=g(j(),1);var xo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==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}};var Fr=g(j(),1);var ll=g(j(),1);function cl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ll.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:Ln,...e??{}})}var vo=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 l of n)try{await l()}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 pl=g($(),1);var So=window,dd=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tx=Symbol();var dl=(t,e)=>{dd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=So.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Oo=class extends pl.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 dl(n,e.elementStyles),n}};var Co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},yl,fl=Symbol("constructorPrototype"),ul=Symbol("constructorName"),ml=Symbol("exportpartsDebouncer"),hl=Symbol("dynamicDependenciesLoaded"),Rt=class extends Oo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yl]=new vo(5),this[ul]=this.constructor.name,this[fl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ul]&&Object.setPrototypeOf(this,this[fl])}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[hl]||(e[hl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}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[ml].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,l,c;let p=b=>b!=null&&b.trim().length>0,f=e.filter(p).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(l=b.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(b=>f.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};yl=ml;Co([(0,Fr.property)()],Rt.prototype,"exportpartsPrefix",void 0);Co([cl([])],Rt.prototype,"exportpartsPrefixes",void 0);Co([(0,Fr.property)()],Rt.prototype,"customStylesheet",void 0);Co([(0,Fr.state)()],Rt.prototype,"useAdoptedStyleSheets",void 0);function Mr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var gl,bl,xl,Eo=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Xt=Symbol("internalStores"),Ur=class extends Rt{constructor(){super(...arguments),this[gl]=new Map,this[bl]=new Map,this[xl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xt].get(e)}addStore(e,o){var n;o=(n=o??(Mr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Xt].delete(o)}setupStore(e,o){this[Xt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Nt].has(e.store):this[Nt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Nt].set(e,o.subscribe(()=>this.updateFromStores())),Mr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let l=c=>this[i](c);o.addEventListener(a.eventName,l),this[Eo].push(()=>o.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Nt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Eo].forEach(e=>e()),this[Eo]=[]}unsubscribeFromStore(e){this[Nt].has(e)&&this[Nt].get(e)(),this[Nt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};gl=Nt,bl=Xt,xl=Eo;Ur.reduxProperties=new Map;Ur.reduxReactiveProperties=new Set;Ur.reduxEventListeners=new Map;function Ue(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(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mt(t){return!!t&&!!t[X]}function je(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)===bd}(t)||Array.isArray(t)||!!t[Al]||!!(!((e=t.constructor)===null||e===void 0)&&e[Al])||Fn(t)||Mn(t))}function Qt(t,e,o){o===void 0&&(o=!1),xr(t)===0?(o?Object.keys:br)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function xr(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Fn(t)?2:Mn(t)?3:0}function gr(t,e){return xr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pd(t,e){return xr(t)===2?t.get(e):t[e]}function Rl(t,e,o){var n=xr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Nl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Fn(t){return md&&t instanceof Map}function Mn(t){return gd&&t instanceof Set}function Lt(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pl(t);delete e[X];for(var o=br(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 Wn(t,e){return e===void 0&&(e=!1),zn(t)||mt(t)||!je(t)||(xr(t)>1&&(t.set=t.add=t.clear=t.delete=fd),Object.freeze(t),e&&Qt(t,function(o,n){return Wn(n,!0)},!0)),t}function fd(){Ue(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=$n[t];return e||Ue(18,t),e}function ud(t,e){$n[t]||($n[t]=e)}function _n(){return zr}function In(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function wo(t){Dn(t),t.p.forEach(hd),t.p=null}function Dn(t){t===zr&&(zr=t.l)}function vl(t){return zr={p:[],l:zr,h:t,m:!0,_:0}}function hd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[X].P&&(wo(e),Ue(4)),je(t)&&(t=Ao(e,t),e.l||Ro(e,t)),e.u&&tt("Patches").M(o[X].t,t,e.u,e.s)):t=Ao(e,o,[]),wo(e),e.u&&e.v(e.u,e.s),t!==Il?t:void 0}function Ao(t,e,o){if(zn(e))return e;var n=e[X];if(!n)return Qt(e,function(c,p){return Sl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ro(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Un(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Qt(i,function(c,p){return Sl(t,n,a,c,p,o,l)}),Ro(t,a,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function Sl(t,e,o,n,a,i,l){if(mt(a)){var c=Ao(t,a,i&&e&&e.i!==3&&!gr(e.R,n)?i.concat(n):void 0);if(Rl(o,n,c),!mt(c))return;t.m=!1}else l&&o.add(a);if(je(a)&&!zn(a)){if(!t.h.D&&t._<1)return;Ao(t,a),e&&e.A.l||Ro(t,a)}}function Ro(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Wn(e,o)}function kn(t,e){var o=t[X];return(o?Lt(o):t)[e]}function Ol(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function It(t){t.P||(t.P=!0,t.l&&It(t.l))}function Tn(t){t.o||(t.o=Un(t.t))}function Bn(t,e,o){var n=Fn(e)?tt("MapSet").F(e,o):Mn(e)?tt("MapSet").T(e,o):t.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:_n(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=c,f=Hr;l&&(p=[c],f=Wr);var h=Proxy.revocable(p,f),m=h.revoke,b=h.proxy;return c.k=b,c.j=m,b}(e,o):tt("ES5").J(e,o);return(o?o.A:_n()).p.push(n),n}function yd(t){return mt(t)||Ue(22,t),function e(o){if(!je(o))return o;var n,a=o[X],i=xr(o);if(a){if(!a.P&&(a.i<4||!tt("ES5").K(a)))return a.t;a.I=!0,n=Cl(o,i),a.I=!1}else n=Cl(o,i);return Qt(n,function(l,c){a&&pd(a.t,l)===c||Rl(n,l,e(c))}),i===3?new Set(n):n}(t)}function Cl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}function Ll(){function t(l,c){var p=i[l];return p?p.enumerable=c:i[l]=p={configurable:!0,enumerable:c,get:function(){var f=this[X];return Hr.get(f,l)},set:function(f){var h=this[X];Hr.set(h,l,f)}},p}function e(l){for(var c=l.length-1;c>=0;c--){var p=l[c][X];if(!p.P)switch(p.i){case 5:n(p)&&It(p);break;case 4:o(p)&&It(p)}}}function o(l){for(var c=l.t,p=l.k,f=br(p),h=f.length-1;h>=0;h--){var m=f[h];if(m!==X){var b=c[m];if(b===void 0&&!gr(c,m))return!0;var S=p[m],v=S&&S[X];if(v?v.t!==b:!Nl(S,b))return!0}}var O=!!c[X];return f.length!==br(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&Ue(3,JSON.stringify(Lt(l)))}var i={};ud("ES5",{J:function(l,c){var p=Array.isArray(l),f=function(m,b){if(m){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Pl(b);delete O[X];for(var P=br(O),N=0;N<P.length;N++){var L=P[N];O[L]=t(L,m||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,l),h={i:p?5:4,A:c?c.A:_n(),P:!1,I:!1,R:{},l:c,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,X,{value:h,writable:!0}),f},S:function(l,c,p){p?mt(c)&&c[X].A===l&&e(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var m=h[X];if(m){var b=m.t,S=m.k,v=m.R,O=m.i;if(O===4)Qt(S,function(B){B!==X&&(b[B]!==void 0||gr(b,B)?v[B]||f(S[B]):(v[B]=!0,It(m)))}),Qt(b,function(B){S[B]!==void 0||gr(S,B)||(v[B]=!1,It(m))});else if(O===5){if(n(m)&&(It(m),v.length=!0),S.length<b.length)for(var P=S.length;P<b.length;P++)v[P]=!1;else for(var N=b.length;N<S.length;N++)v[N]=!0;for(var L=Math.min(S.length,b.length),T=0;T<L;T++)S.hasOwnProperty(T)||(v[T]=!0),v[T]===void 0&&f(S[T])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var El,zr,Hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",md=typeof Map<"u",gd=typeof Set<"u",wl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Il=Hn?Symbol.for("immer-nothing"):((El={})["immer-nothing"]=!0,El),Al=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Hn?Symbol.for("immer-state"):"__$immer_state";var bd=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pl=Object.getOwnPropertyDescriptors||function(t){var e={};return br(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},$n={},Hr={get:function(t,e){if(e===X)return t;var o=Lt(t);if(!gr(o,e))return function(a,i,l){var c,p=Ol(i,l);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!je(n)?n:n===kn(t.t,e)?(Tn(t),t.o[e]=Bn(t.A.h,n,t)):n},has:function(t,e){return e in Lt(t)},ownKeys:function(t){return Reflect.ownKeys(Lt(t))},set:function(t,e,o){var n=Ol(Lt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=kn(Lt(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Nl(o,a)&&(o!==void 0||gr(t.t,e)))return!0;Tn(t),It(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return kn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Tn(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Lt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ue(12)}},Wr={};Qt(Hr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Hr.set.call(this,t[0],e,o,t[0])};var xd=function(){function t(o){var n=this;this.O=wl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var p=n;return function(O){var P=this;O===void 0&&(O=c);for(var N=arguments.length,L=Array(N>1?N-1:0),T=1;T<N;T++)L[T-1]=arguments[T];return p.produce(O,function(B){var F;return(F=i).call.apply(F,[P,B].concat(L))})}}var f;if(typeof i!="function"&&Ue(6),l!==void 0&&typeof l!="function"&&Ue(7),je(a)){var h=vl(n),m=Bn(n,a,void 0),b=!0;try{f=i(m),b=!1}finally{b?wo(h):Dn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(O){return In(h,l),Pn(O,h)},function(O){throw wo(h),O}):(In(h,l),Pn(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===Il&&(f=void 0),n.D&&Wn(f,!0),l){var S=[],v=[];tt("Patches").M(a,f,S,v),l(S,v)}return f}Ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),b=1;b<h;b++)m[b-1]=arguments[b];return n.produceWithPatches(f,function(S){return a.apply(void 0,[S].concat(m))})};var l,c,p=n.produce(a,i,function(f,h){l=f,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,c]}):[p,l,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){je(o)||Ue(8),mt(o)&&(o=yd(o));var n=vl(this),a=Bn(this,o,void 0);return a[X].C=!0,Dn(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return In(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!wl&&Ue(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 l=tt("Patches").$;return mt(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},t}(),$e=new xd,vd=$e.produce,ux=$e.produceWithPatches.bind($e),hx=$e.setAutoFreeze.bind($e),yx=$e.setUseProxies.bind($e),mx=$e.applyPatches.bind($e),gx=$e.createDraft.bind($e),bx=$e.finishDraft.bind($e),No=vd;function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function Vn(t,e){if(Pt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Pt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gn(t){var e=Vn(t,"string");return Pt(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Gn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function kl(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 Lo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?kl(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):kl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Tl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Kn(),REPLACE:"@@redux/REPLACE"+Kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kn()}};function Sd(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 Zn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(Zn)(t,e)}if(typeof t!="function")throw new Error(ge(2));var a=t,i=e,l=[],c=l,p=!1;function f(){c===l&&(c=l.slice())}function h(){if(p)throw new Error(ge(3));return i}function m(O){if(typeof O!="function")throw new Error(ge(4));if(p)throw new Error(ge(5));var P=!0;return f(),c.push(O),function(){if(P){if(p)throw new Error(ge(6));P=!1,f();var L=c.indexOf(O);c.splice(L,1),l=null}}}function b(O){if(!Sd(O))throw new Error(ge(7));if(typeof O.type>"u")throw new Error(ge(8));if(p)throw new Error(ge(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var P=l=c,N=0;N<P.length;N++){var L=P[N];L()}return O}function S(O){if(typeof O!="function")throw new Error(ge(10));a=O,b({type:Io.REPLACE})}function v(){var O,P=m;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ge(11));function T(){L.next&&L.next(h())}T();var B=P(T);return{unsubscribe:B}}},O[Tl]=function(){return this},O}return b({type:Io.INIT}),n={dispatch:b,subscribe:m,getState:h,replaceReducer:S},n[Tl]=v,n}function Od(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function _l(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),l,c;try{Od(o)}catch(p){c=p}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var m;for(var b=!1,S={},v=0;v<i.length;v++){var O=i[v],P=o[O],N=f[O],L=P(N,h);if(typeof L>"u"){var T=h&&h.type;throw new Error(ge(14))}S[O]=L,b=b||L!==N}return b=b||i.length!==Object.keys(f).length,b?S:f}}function vr(){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 Dl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ge(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(p){return p(l)});return i=vr.apply(void 0,c)(a.dispatch),Lo(Lo({},a),{},{dispatch:i})}}}function Bl(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,t):l(c)}}};return e}var $l=Bl();$l.withExtraArgument=Bl;var qn=$l;var zl=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)}}(),Cd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,a=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(f[0]===6&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Sr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Ed=Object.defineProperty,wd=Object.defineProperties,Ad=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Ml=function(t,e,o){return e in t?Ed(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},kt=function(t,e){for(var o in e||(e={}))Rd.call(e,o)&&Ml(t,o,e[o]);if(Fl)for(var n=0,a=Fl(e);n<a.length;n++){var o=a[n];Nd.call(e,o)&&Ml(t,o,e[o])}return t},Yn=function(t,e){return wd(t,Ad(e))},Ld=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{c(o.next(p))}catch(f){a(f)}},l=function(p){try{c(o.throw(p))}catch(f){a(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};c((o=o.apply(t,e)).next())})};var Id=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Bx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pd(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 kd=function(t){zl(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,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array),Td=function(t){zl(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,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array);function Jn(t){return je(t)?No(t,function(){}):t}function _d(t){return typeof t=="boolean"}function Dd(){return function(e){return Bd(e)}}function Bd(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,l=i===void 0?!0:i,c=new kd;if(o&&(_d(o)?c.push(qn):c.push(qn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(l)var f}return c}var Xn=!0;function Hl(t){var e=Dd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?e():i,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,h=f===void 0?void 0:f,m=o.enhancers,b=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Pd(a))S=_l(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=l;if(typeof v=="function"&&(v=v(e),!Xn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Dl.apply(void 0,v),P=vr;p&&(P=Id(kt({trace:!Xn},typeof p=="object"&&p)));var N=new Td(O),L=N;Array.isArray(b)?L=Sr([O],b):typeof b=="function"&&(L=b(N));var T=P.apply(void 0,L);return Zn(S,h,T)}function Tt(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 kt(kt({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 Vl(t){var e={},o=[],n,a={addCase:function(i,l){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]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function $d(t){return typeof t=="function"}function Fd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Vl(e):[e,o,n],i=a[0],l=a[1],c=a[2],p;if($d(t))p=function(){return Jn(t())};else{var f=Jn(t);p=function(){return f}}function h(m,b){m===void 0&&(m=p());var S=Sr([i[b.type]],l.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(mt(v)){var P=v,N=O(P,b);return N===void 0?v:N}else{if(je(v))return No(v,function(L){return O(L,b)});var N=O(v,b);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},m)}return h.getInitialState=p,h}function Md(t,e){return t+"/"+e}function Gl(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:Jn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(h){var m=n[h],b=Md(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,l[b]=S,c[h]=v?Tt(b,v):Tt(b)});function p(){var h=typeof t.extraReducers=="function"?Vl(t.extraReducers):[t.extraReducers],m=h[0],b=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],P=O===void 0?void 0:O,N=kt(kt({},b),l);return Fd(o,function(L){for(var T in N)L.addCase(T,N[T]);for(var B=0,F=v;B<F.length;B++){var Ce=F[B];L.addMatcher(Ce.matcher,Ce.reducer)}P&&L.addDefaultCase(P)})}var f;return{name:e,reducer:function(h,m){return f||(f=p()),f(h,m)},actions:c,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ud="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Ud[Math.random()*64|0];return e},zd=["name","message","stack","code"],Qn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ul=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Hd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=zd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Ux=function(){function t(e,o,n){var a=Tt(e+"/fulfilled",function(h,m,b,S){return{payload:h,meta:Yn(kt({},S||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),i=Tt(e+"/pending",function(h,m,b){return{payload:void 0,meta:Yn(kt({},b||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),l=Tt(e+"/rejected",function(h,m,b,S,v){return{payload:S,error:(n&&n.serializeError||Hd)(h||"Rejected"),meta:Yn(kt({},v||{}),{arg:b,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(m,b,S){var v=n?.idGenerator?n.idGenerator(h):Wd(),O=new p,P,N=!1;function L(B){P=B,O.abort()}var T=function(){return Ld(this,null,function(){var B,F,Ce,Ze,be,qe,pe;return Cd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ze=(B=n?.condition)==null?void 0:B.call(n,h,{getState:b,extra:S}),Gd(Ze)?[4,Ze]:[3,2];case 1:Ze=y.sent(),y.label=2;case 2:if(Ze===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,be=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:P||"Aborted"})})}),m(i(v,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:h},{getState:b,extra:S}))),[4,Promise.race([be,Promise.resolve(o(h,{dispatch:m,getState:b,extra:S,requestId:v,signal:O.signal,abort:L,rejectWithValue:function(x,k){return new Qn(x,k)},fulfillWithValue:function(x,k){return new Ul(x,k)}})).then(function(x){if(x instanceof Qn)throw x;return x instanceof Ul?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return Ce=y.sent(),[3,5];case 4:return qe=y.sent(),Ce=qe instanceof Qn?l(null,v,h,qe.payload,qe.meta):l(qe,v,h),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&l.match(Ce)&&Ce.meta.condition,pe||m(Ce),[2,Ce]}})})}();return Object.assign(T,{abort:L,requestId:v,arg:h,unwrap:function(){return T.then(Vd)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var jl="listener",Kl="completed",Zl="cancelled",Wx="task-"+Zl,zx="task-"+Kl,Hx=jl+"-"+Zl,Vx=jl+"-"+Kl;var ea="listenerMiddleware";var Gx=Tt(ea+"/add"),jx=Tt(ea+"/removeAll"),Kx=Tt(ea+"/remove");var Wl,Zx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Wl||(Wl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},jd=function(t){return function(e){setTimeout(e,t)}},qx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jd(10);Ll();function Kd(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 Po=class extends Kd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ql=class t extends Po{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(Mr(i))return i;if(a==null)return;let l=Gl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Hl({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new t(l,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,c=n[l];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[l]:p})}}})}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 Do=g(I());var ko=class extends yt{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var To=class extends yt{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",_o=Do.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),ta=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new To,this.savedSearchesService=new ko,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,Do.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_o.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_o.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_o.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_o.actions.bookmarks(o)}}},Rv=new ta;var ra=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ra;var Yl=g(I()),oa=class{highlightHtml(e,o,n){(0,Yl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new oa;var Xl=g(I());var na=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 Xl.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 na;var Yd=g(I());(0,Ql.customElement)("ft-app-context")(ee);var ec=g(j()),Xd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},aa=Symbol("i18nAttributes"),ia=Symbol("i18nListAttributes"),Bo=Symbol("i18nProperties"),Vr=Symbol("i18nUnsubs");function Mo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?il:Yt}i18n(a,i,...l){var c;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let p=(c=a.args)!==null&&c!==void 0?c:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,l,c;(i=this[aa])===null||i===void 0||i.forEach((p,f)=>{let h=this.getI18nAttributeValue(f);h&&(this[f]=this.getI18nAttributeMessage(h,p,a))}),(l=this[ia])===null||l===void 0||l.forEach((p,f)=>{let h=this.getI18nListAttributeValues(f);this[f]=h?.map(m=>this.getI18nAttributeMessage(m,p,a))}),(c=this[Bo])===null||c===void 0||c.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var c;let p=!l||((c=a.context)===null||c===void 0?void 0:c.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,c;super.update(a),(i=this[aa])===null||i===void 0||i.forEach((p,f)=>{let h=this.getI18nAttributeValue(f);h?.context&&h.key&&(a.has(f)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,f),this[f]=this.getI18nAttributeMessage(h,p))}),(l=this[ia])===null||l===void 0||l.forEach((p,f)=>{let h=this.getI18nListAttributeValues(f);(a.has(f)||p.argsProvider!=null)&&(this[f]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,f),this.getI18nAttributeMessage(m,p))))}),(c=this[Bo])===null||c===void 0||c.forEach((p,f)=>{p.argsProvider!=null&&(this[f]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,c,p,f;super.connectedCallback(),new Set([...(i=(a=this[Bo])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(c=(l=this[aa])===null||l===void 0?void 0:l.keys())!==null&&c!==void 0?c:[]].map(h=>this.getI18nAttributeValue(h)),...[...(f=(p=this[ia])===null||p===void 0?void 0:p.keys())!==null&&f!==void 0?f:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Vr].has(a)||this[Vr].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Vr].forEach(a=>a()),this[Vr].clear()}}return e=Vr,Xd([(0,ec.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Jl=class extends Mo(Fo.FtLitElement){},$o=class extends Mo(Fo.FtLitElementRedux){};var Gr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ke=class extends $o{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Uo.nothing:Uo.html`
1816
+ `}update(e){var o,n,a,i,l;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Yt.addContext(c)),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((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ee.elementDefinitions={};ee.styles=nl;me([(0,Le.property)()],ee.prototype,"baseUrl",void 0);me([(0,Le.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);me([(0,Le.property)()],ee.prototype,"uiLocale",void 0);me([(0,Ge.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);me([(0,Ge.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"editorMode",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"noCustom",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);me([(0,Le.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ee.prototype,"noCustomComponent",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);me([(0,Le.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);me([(0,Le.property)({type:Object})],ee.prototype,"apiProvider",void 0);me([(0,Ge.jsonProperty)([])],ee.prototype,"messageContexts",void 0);me([(0,Ge.jsonProperty)(void 0)],ee.prototype,"session",void 0);me([(0,Le.state)()],ee.prototype,"localesConfiguration",void 0);var Zd=g(j());function ld(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(!bo(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(!bo(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();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!bo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function bo(t,e){try{return ld(t,e)}catch{return!1}}function Ln(t,e){return!bo(t,e)}var cd=g(j(),1);var xo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==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}};var Fr=g(j(),1);var ll=g(j(),1);function cl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ll.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:Ln,...e??{}})}var vo=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 l of n)try{await l()}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 pl=g($(),1);var So=window,dd=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tx=Symbol();var dl=(t,e)=>{dd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=So.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Oo=class extends pl.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 dl(n,e.elementStyles),n}};var Co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},yl,fl=Symbol("constructorPrototype"),ul=Symbol("constructorName"),ml=Symbol("exportpartsDebouncer"),hl=Symbol("dynamicDependenciesLoaded"),Rt=class extends Oo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yl]=new vo(5),this[ul]=this.constructor.name,this[fl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ul]&&Object.setPrototypeOf(this,this[fl])}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[hl]||(e[hl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}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[ml].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,l,c;let p=b=>b!=null&&b.trim().length>0,f=e.filter(p).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(l=b.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(b=>f.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};yl=ml;Co([(0,Fr.property)()],Rt.prototype,"exportpartsPrefix",void 0);Co([cl([])],Rt.prototype,"exportpartsPrefixes",void 0);Co([(0,Fr.property)()],Rt.prototype,"customStylesheet",void 0);Co([(0,Fr.state)()],Rt.prototype,"useAdoptedStyleSheets",void 0);function Mr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var gl,bl,xl,Eo=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Xt=Symbol("internalStores"),Ur=class extends Rt{constructor(){super(...arguments),this[gl]=new Map,this[bl]=new Map,this[xl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xt].get(e)}addStore(e,o){var n;o=(n=o??(Mr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Xt].delete(o)}setupStore(e,o){this[Xt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Nt].has(e.store):this[Nt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Nt].set(e,o.subscribe(()=>this.updateFromStores())),Mr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let l=c=>this[i](c);o.addEventListener(a.eventName,l),this[Eo].push(()=>o.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Nt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Eo].forEach(e=>e()),this[Eo]=[]}unsubscribeFromStore(e){this[Nt].has(e)&&this[Nt].get(e)(),this[Nt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};gl=Nt,bl=Xt,xl=Eo;Ur.reduxProperties=new Map;Ur.reduxReactiveProperties=new Set;Ur.reduxEventListeners=new Map;function Ue(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(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mt(t){return!!t&&!!t[Q]}function je(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)===bd}(t)||Array.isArray(t)||!!t[Al]||!!(!((e=t.constructor)===null||e===void 0)&&e[Al])||Fn(t)||Mn(t))}function Qt(t,e,o){o===void 0&&(o=!1),xr(t)===0?(o?Object.keys:br)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function xr(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Fn(t)?2:Mn(t)?3:0}function gr(t,e){return xr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pd(t,e){return xr(t)===2?t.get(e):t[e]}function Rl(t,e,o){var n=xr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Nl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Fn(t){return md&&t instanceof Map}function Mn(t){return gd&&t instanceof Set}function Lt(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pl(t);delete e[Q];for(var o=br(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 Wn(t,e){return e===void 0&&(e=!1),zn(t)||mt(t)||!je(t)||(xr(t)>1&&(t.set=t.add=t.clear=t.delete=fd),Object.freeze(t),e&&Qt(t,function(o,n){return Wn(n,!0)},!0)),t}function fd(){Ue(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=$n[t];return e||Ue(18,t),e}function ud(t,e){$n[t]||($n[t]=e)}function _n(){return zr}function In(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function wo(t){Dn(t),t.p.forEach(hd),t.p=null}function Dn(t){t===zr&&(zr=t.l)}function vl(t){return zr={p:[],l:zr,h:t,m:!0,_:0}}function hd(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[Q].P&&(wo(e),Ue(4)),je(t)&&(t=Ao(e,t),e.l||Ro(e,t)),e.u&&tt("Patches").M(o[Q].t,t,e.u,e.s)):t=Ao(e,o,[]),wo(e),e.u&&e.v(e.u,e.s),t!==Il?t:void 0}function Ao(t,e,o){if(zn(e))return e;var n=e[Q];if(!n)return Qt(e,function(c,p){return Sl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ro(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Un(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Qt(i,function(c,p){return Sl(t,n,a,c,p,o,l)}),Ro(t,a,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function Sl(t,e,o,n,a,i,l){if(mt(a)){var c=Ao(t,a,i&&e&&e.i!==3&&!gr(e.R,n)?i.concat(n):void 0);if(Rl(o,n,c),!mt(c))return;t.m=!1}else l&&o.add(a);if(je(a)&&!zn(a)){if(!t.h.D&&t._<1)return;Ao(t,a),e&&e.A.l||Ro(t,a)}}function Ro(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Wn(e,o)}function kn(t,e){var o=t[Q];return(o?Lt(o):t)[e]}function Ol(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function It(t){t.P||(t.P=!0,t.l&&It(t.l))}function Tn(t){t.o||(t.o=Un(t.t))}function Bn(t,e,o){var n=Fn(e)?tt("MapSet").F(e,o):Mn(e)?tt("MapSet").T(e,o):t.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:_n(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=c,f=Hr;l&&(p=[c],f=Wr);var h=Proxy.revocable(p,f),m=h.revoke,b=h.proxy;return c.k=b,c.j=m,b}(e,o):tt("ES5").J(e,o);return(o?o.A:_n()).p.push(n),n}function yd(t){return mt(t)||Ue(22,t),function e(o){if(!je(o))return o;var n,a=o[Q],i=xr(o);if(a){if(!a.P&&(a.i<4||!tt("ES5").K(a)))return a.t;a.I=!0,n=Cl(o,i),a.I=!1}else n=Cl(o,i);return Qt(n,function(l,c){a&&pd(a.t,l)===c||Rl(n,l,e(c))}),i===3?new Set(n):n}(t)}function Cl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}function Ll(){function t(l,c){var p=i[l];return p?p.enumerable=c:i[l]=p={configurable:!0,enumerable:c,get:function(){var f=this[Q];return Hr.get(f,l)},set:function(f){var h=this[Q];Hr.set(h,l,f)}},p}function e(l){for(var c=l.length-1;c>=0;c--){var p=l[c][Q];if(!p.P)switch(p.i){case 5:n(p)&&It(p);break;case 4:o(p)&&It(p)}}}function o(l){for(var c=l.t,p=l.k,f=br(p),h=f.length-1;h>=0;h--){var m=f[h];if(m!==Q){var b=c[m];if(b===void 0&&!gr(c,m))return!0;var S=p[m],v=S&&S[Q];if(v?v.t!==b:!Nl(S,b))return!0}}var O=!!c[Q];return f.length!==br(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&Ue(3,JSON.stringify(Lt(l)))}var i={};ud("ES5",{J:function(l,c){var p=Array.isArray(l),f=function(m,b){if(m){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Pl(b);delete O[Q];for(var P=br(O),N=0;N<P.length;N++){var L=P[N];O[L]=t(L,m||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,l),h={i:p?5:4,A:c?c.A:_n(),P:!1,I:!1,R:{},l:c,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Q,{value:h,writable:!0}),f},S:function(l,c,p){p?mt(c)&&c[Q].A===l&&e(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var m=h[Q];if(m){var b=m.t,S=m.k,v=m.R,O=m.i;if(O===4)Qt(S,function(B){B!==Q&&(b[B]!==void 0||gr(b,B)?v[B]||f(S[B]):(v[B]=!0,It(m)))}),Qt(b,function(B){S[B]!==void 0||gr(S,B)||(v[B]=!1,It(m))});else if(O===5){if(n(m)&&(It(m),v.length=!0),S.length<b.length)for(var P=S.length;P<b.length;P++)v[P]=!1;else for(var N=b.length;N<S.length;N++)v[N]=!0;for(var L=Math.min(S.length,b.length),T=0;T<L;T++)S.hasOwnProperty(T)||(v[T]=!0),v[T]===void 0&&f(S[T])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var El,zr,Hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",md=typeof Map<"u",gd=typeof Set<"u",wl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Il=Hn?Symbol.for("immer-nothing"):((El={})["immer-nothing"]=!0,El),Al=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Hn?Symbol.for("immer-state"):"__$immer_state";var bd=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pl=Object.getOwnPropertyDescriptors||function(t){var e={};return br(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},$n={},Hr={get:function(t,e){if(e===Q)return t;var o=Lt(t);if(!gr(o,e))return function(a,i,l){var c,p=Ol(i,l);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!je(n)?n:n===kn(t.t,e)?(Tn(t),t.o[e]=Bn(t.A.h,n,t)):n},has:function(t,e){return e in Lt(t)},ownKeys:function(t){return Reflect.ownKeys(Lt(t))},set:function(t,e,o){var n=Ol(Lt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=kn(Lt(t),e),i=a?.[Q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Nl(o,a)&&(o!==void 0||gr(t.t,e)))return!0;Tn(t),It(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return kn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Tn(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Lt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ue(12)}},Wr={};Qt(Hr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Hr.set.call(this,t[0],e,o,t[0])};var xd=function(){function t(o){var n=this;this.O=wl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var p=n;return function(O){var P=this;O===void 0&&(O=c);for(var N=arguments.length,L=Array(N>1?N-1:0),T=1;T<N;T++)L[T-1]=arguments[T];return p.produce(O,function(B){var F;return(F=i).call.apply(F,[P,B].concat(L))})}}var f;if(typeof i!="function"&&Ue(6),l!==void 0&&typeof l!="function"&&Ue(7),je(a)){var h=vl(n),m=Bn(n,a,void 0),b=!0;try{f=i(m),b=!1}finally{b?wo(h):Dn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(O){return In(h,l),Pn(O,h)},function(O){throw wo(h),O}):(In(h,l),Pn(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===Il&&(f=void 0),n.D&&Wn(f,!0),l){var S=[],v=[];tt("Patches").M(a,f,S,v),l(S,v)}return f}Ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),b=1;b<h;b++)m[b-1]=arguments[b];return n.produceWithPatches(f,function(S){return a.apply(void 0,[S].concat(m))})};var l,c,p=n.produce(a,i,function(f,h){l=f,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,c]}):[p,l,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){je(o)||Ue(8),mt(o)&&(o=yd(o));var n=vl(this),a=Bn(this,o,void 0);return a[Q].C=!0,Dn(n),a},e.finishDraft=function(o,n){var a=o&&o[Q],i=a.A;return In(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!wl&&Ue(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 l=tt("Patches").$;return mt(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},t}(),$e=new xd,vd=$e.produce,ux=$e.produceWithPatches.bind($e),hx=$e.setAutoFreeze.bind($e),yx=$e.setUseProxies.bind($e),mx=$e.applyPatches.bind($e),gx=$e.createDraft.bind($e),bx=$e.finishDraft.bind($e),No=vd;function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function Vn(t,e){if(Pt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Pt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gn(t){var e=Vn(t,"string");return Pt(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Gn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function kl(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 Lo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?kl(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):kl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Tl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Kn(),REPLACE:"@@redux/REPLACE"+Kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kn()}};function Sd(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 Zn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(Zn)(t,e)}if(typeof t!="function")throw new Error(ge(2));var a=t,i=e,l=[],c=l,p=!1;function f(){c===l&&(c=l.slice())}function h(){if(p)throw new Error(ge(3));return i}function m(O){if(typeof O!="function")throw new Error(ge(4));if(p)throw new Error(ge(5));var P=!0;return f(),c.push(O),function(){if(P){if(p)throw new Error(ge(6));P=!1,f();var L=c.indexOf(O);c.splice(L,1),l=null}}}function b(O){if(!Sd(O))throw new Error(ge(7));if(typeof O.type>"u")throw new Error(ge(8));if(p)throw new Error(ge(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var P=l=c,N=0;N<P.length;N++){var L=P[N];L()}return O}function S(O){if(typeof O!="function")throw new Error(ge(10));a=O,b({type:Io.REPLACE})}function v(){var O,P=m;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ge(11));function T(){L.next&&L.next(h())}T();var B=P(T);return{unsubscribe:B}}},O[Tl]=function(){return this},O}return b({type:Io.INIT}),n={dispatch:b,subscribe:m,getState:h,replaceReducer:S},n[Tl]=v,n}function Od(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function _l(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),l,c;try{Od(o)}catch(p){c=p}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var m;for(var b=!1,S={},v=0;v<i.length;v++){var O=i[v],P=o[O],N=f[O],L=P(N,h);if(typeof L>"u"){var T=h&&h.type;throw new Error(ge(14))}S[O]=L,b=b||L!==N}return b=b||i.length!==Object.keys(f).length,b?S:f}}function vr(){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 Dl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ge(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(p){return p(l)});return i=vr.apply(void 0,c)(a.dispatch),Lo(Lo({},a),{},{dispatch:i})}}}function Bl(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,t):l(c)}}};return e}var $l=Bl();$l.withExtraArgument=Bl;var qn=$l;var zl=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)}}(),Cd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,a=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(f[0]===6&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Sr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Ed=Object.defineProperty,wd=Object.defineProperties,Ad=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Ml=function(t,e,o){return e in t?Ed(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},kt=function(t,e){for(var o in e||(e={}))Rd.call(e,o)&&Ml(t,o,e[o]);if(Fl)for(var n=0,a=Fl(e);n<a.length;n++){var o=a[n];Nd.call(e,o)&&Ml(t,o,e[o])}return t},Yn=function(t,e){return wd(t,Ad(e))},Ld=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{c(o.next(p))}catch(f){a(f)}},l=function(p){try{c(o.throw(p))}catch(f){a(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};c((o=o.apply(t,e)).next())})};var Id=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Bx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pd(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 kd=function(t){zl(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,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array),Td=function(t){zl(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,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array);function Jn(t){return je(t)?No(t,function(){}):t}function _d(t){return typeof t=="boolean"}function Dd(){return function(e){return Bd(e)}}function Bd(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,l=i===void 0?!0:i,c=new kd;if(o&&(_d(o)?c.push(qn):c.push(qn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(l)var f}return c}var Xn=!0;function Hl(t){var e=Dd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?e():i,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,h=f===void 0?void 0:f,m=o.enhancers,b=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Pd(a))S=_l(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=l;if(typeof v=="function"&&(v=v(e),!Xn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&v.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Dl.apply(void 0,v),P=vr;p&&(P=Id(kt({trace:!Xn},typeof p=="object"&&p)));var N=new Td(O),L=N;Array.isArray(b)?L=Sr([O],b):typeof b=="function"&&(L=b(N));var T=P.apply(void 0,L);return Zn(S,h,T)}function Tt(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 kt(kt({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 Vl(t){var e={},o=[],n,a={addCase:function(i,l){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]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function $d(t){return typeof t=="function"}function Fd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Vl(e):[e,o,n],i=a[0],l=a[1],c=a[2],p;if($d(t))p=function(){return Jn(t())};else{var f=Jn(t);p=function(){return f}}function h(m,b){m===void 0&&(m=p());var S=Sr([i[b.type]],l.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(mt(v)){var P=v,N=O(P,b);return N===void 0?v:N}else{if(je(v))return No(v,function(L){return O(L,b)});var N=O(v,b);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},m)}return h.getInitialState=p,h}function Md(t,e){return t+"/"+e}function Gl(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:Jn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(h){var m=n[h],b=Md(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,l[b]=S,c[h]=v?Tt(b,v):Tt(b)});function p(){var h=typeof t.extraReducers=="function"?Vl(t.extraReducers):[t.extraReducers],m=h[0],b=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],P=O===void 0?void 0:O,N=kt(kt({},b),l);return Fd(o,function(L){for(var T in N)L.addCase(T,N[T]);for(var B=0,F=v;B<F.length;B++){var Ce=F[B];L.addMatcher(Ce.matcher,Ce.reducer)}P&&L.addDefaultCase(P)})}var f;return{name:e,reducer:function(h,m){return f||(f=p()),f(h,m)},actions:c,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ud="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Ud[Math.random()*64|0];return e},zd=["name","message","stack","code"],Qn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ul=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Hd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=zd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Ux=function(){function t(e,o,n){var a=Tt(e+"/fulfilled",function(h,m,b,S){return{payload:h,meta:Yn(kt({},S||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),i=Tt(e+"/pending",function(h,m,b){return{payload:void 0,meta:Yn(kt({},b||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),l=Tt(e+"/rejected",function(h,m,b,S,v){return{payload:S,error:(n&&n.serializeError||Hd)(h||"Rejected"),meta:Yn(kt({},v||{}),{arg:b,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(m,b,S){var v=n?.idGenerator?n.idGenerator(h):Wd(),O=new p,P,N=!1;function L(B){P=B,O.abort()}var T=function(){return Ld(this,null,function(){var B,F,Ce,Ze,be,qe,pe;return Cd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ze=(B=n?.condition)==null?void 0:B.call(n,h,{getState:b,extra:S}),Gd(Ze)?[4,Ze]:[3,2];case 1:Ze=y.sent(),y.label=2;case 2:if(Ze===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,be=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:P||"Aborted"})})}),m(i(v,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:h},{getState:b,extra:S}))),[4,Promise.race([be,Promise.resolve(o(h,{dispatch:m,getState:b,extra:S,requestId:v,signal:O.signal,abort:L,rejectWithValue:function(x,k){return new Qn(x,k)},fulfillWithValue:function(x,k){return new Ul(x,k)}})).then(function(x){if(x instanceof Qn)throw x;return x instanceof Ul?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return Ce=y.sent(),[3,5];case 4:return qe=y.sent(),Ce=qe instanceof Qn?l(null,v,h,qe.payload,qe.meta):l(qe,v,h),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&l.match(Ce)&&Ce.meta.condition,pe||m(Ce),[2,Ce]}})})}();return Object.assign(T,{abort:L,requestId:v,arg:h,unwrap:function(){return T.then(Vd)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var jl="listener",Kl="completed",Zl="cancelled",Wx="task-"+Zl,zx="task-"+Kl,Hx=jl+"-"+Zl,Vx=jl+"-"+Kl;var ea="listenerMiddleware";var Gx=Tt(ea+"/add"),jx=Tt(ea+"/removeAll"),Kx=Tt(ea+"/remove");var Wl,Zx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Wl||(Wl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},jd=function(t){return function(e){setTimeout(e,t)}},qx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jd(10);Ll();function Kd(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 Po=class extends Kd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ql=class t extends Po{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(Mr(i))return i;if(a==null)return;let l=Gl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=Hl({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new t(l,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,c=n[l];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[l]:p})}}})}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 Do=g(I());var ko=class extends yt{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var To=class extends yt{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",_o=Do.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),ta=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new To,this.savedSearchesService=new ko,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,Do.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_o.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_o.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_o.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_o.actions.bookmarks(o)}}},Rv=new ta;var ra=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ra;var Yl=g(I()),oa=class{highlightHtml(e,o,n){(0,Yl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new oa;var Xl=g(I());var na=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 Xl.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 na;var Yd=g(I());(0,Ql.customElement)("ft-app-context")(ee);var ec=g(j()),Xd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},aa=Symbol("i18nAttributes"),ia=Symbol("i18nListAttributes"),Bo=Symbol("i18nProperties"),Vr=Symbol("i18nUnsubs");function Mo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?il:Yt}i18n(a,i,...l){var c;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let p=(c=a.args)!==null&&c!==void 0?c:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,l,c;(i=this[aa])===null||i===void 0||i.forEach((p,f)=>{let h=this.getI18nAttributeValue(f);h&&(this[f]=this.getI18nAttributeMessage(h,p,a))}),(l=this[ia])===null||l===void 0||l.forEach((p,f)=>{let h=this.getI18nListAttributeValues(f);this[f]=h?.map(m=>this.getI18nAttributeMessage(m,p,a))}),(c=this[Bo])===null||c===void 0||c.forEach((p,f)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[f]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var c;let p=!l||((c=a.context)===null||c===void 0?void 0:c.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,c;super.update(a),(i=this[aa])===null||i===void 0||i.forEach((p,f)=>{let h=this.getI18nAttributeValue(f);h?.context&&h.key&&(a.has(f)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,f),this[f]=this.getI18nAttributeMessage(h,p))}),(l=this[ia])===null||l===void 0||l.forEach((p,f)=>{let h=this.getI18nListAttributeValues(f);(a.has(f)||p.argsProvider!=null)&&(this[f]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,f),this.getI18nAttributeMessage(m,p))))}),(c=this[Bo])===null||c===void 0||c.forEach((p,f)=>{p.argsProvider!=null&&(this[f]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,c,p,f;super.connectedCallback(),new Set([...(i=(a=this[Bo])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(c=(l=this[aa])===null||l===void 0?void 0:l.keys())!==null&&c!==void 0?c:[]].map(h=>this.getI18nAttributeValue(h)),...[...(f=(p=this[ia])===null||p===void 0?void 0:p.keys())!==null&&f!==void 0?f:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Vr].has(a)||this[Vr].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Vr].forEach(a=>a()),this[Vr].clear()}}return e=Vr,Xd([(0,ec.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Jl=class extends Mo(Fo.FtLitElement){},$o=class extends Mo(Fo.FtLitElementRedux){};var Gr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ke=class extends $o{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Uo.nothing:Uo.html`
1817
1817
  <span class="ft-i18n">
1818
1818
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1819
1819
  </span>
@@ -1840,7 +1840,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1840
1840
  `})}
1841
1841
  </ft-radio-group>
1842
1842
  </div>
1843
- `}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};rt.elementDefinitions={"ft-icon":he,"ft-tooltip":Z,"ft-filter":U,"ft-filter-option":Be,"ft-radio-group":Re,"ft-radio":ae,"ft-typography":te};rt.styles=el;Zo([(0,qo.property)()],rt.prototype,"warningTooltipPosition",void 0);Zo([(0,ua.redux)({store:"search"})],rt.prototype,"locales",void 0);Zo([(0,ua.redux)({store:"search",selector:t=>t.request.contentLocale})],rt.prototype,"currentSearchLocale",void 0);Zo([(0,qo.state)()],rt.prototype,"selectedSearchLocale",void 0);(0,Ac.customElement)("ft-search-locale-selector")(rt);})();
1843
+ `}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};rt.elementDefinitions={"ft-icon":ye,"ft-tooltip":Z,"ft-filter":U,"ft-filter-option":Be,"ft-radio-group":Re,"ft-radio":ie,"ft-typography":te};rt.styles=el;Zo([(0,qo.property)()],rt.prototype,"warningTooltipPosition",void 0);Zo([(0,ua.redux)({store:"search"})],rt.prototype,"locales",void 0);Zo([(0,ua.redux)({store:"search",selector:t=>t.request.contentLocale})],rt.prototype,"currentSearchLocale",void 0);Zo([(0,qo.state)()],rt.prototype,"selectedSearchLocale",void 0);(0,Ac.customElement)("ft-search-locale-selector")(rt);})();
1844
1844
  /*! Bundled license information:
1845
1845
 
1846
1846
  lit-html/lit-html.js: