@fluid-topics/ft-search-load-more-button 1.2.20 → 1.2.22

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,6 +1,6 @@
1
- "use strict";(()=>{var sc=Object.create;var Sn=Object.defineProperty;var cc=Object.getOwnPropertyDescriptor;var lc=Object.getOwnPropertyNames;var dc=Object.getPrototypeOf,uc=Object.prototype.hasOwnProperty;var gt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var fc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of lc(r))!uc.call(e,a)&&a!==o&&Sn(e,a,{get:()=>r[a],enumerable:!(n=cc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?sc(dc(e)):{},fc(r||!e||!e.__esModule?Sn(o,"default",{value:e,enumerable:!0}):o,e));var k=gt((Bl,On)=>{On.exports=ftGlobals.wcUtils});var G=gt((Ul,Cn)=>{Cn.exports=ftGlobals.lit});var ne=gt((Wl,An)=>{An.exports=ftGlobals.litDecorators});var so=gt((eh,Na)=>{Na.exports=ftGlobals.litClassMap});var wi=gt((ry,Ei)=>{Ei.exports=ftGlobals.litUnsafeHTML});var Ui=gt((qe,Bi)=>{var Rr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Lr=function(){function e(){this.fetch=!1,this.DOMException=Rr.DOMException}return e.prototype=Rr,new e}();(function(e){var r=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function f(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var b={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function m(y){this.map={},y instanceof m?y.forEach(function(b,P){this.append(P,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}m.prototype.append=function(y,b){y=f(y),b=u(b);var P=this.map[y];this.map[y]=P?P+", "+b:b},m.prototype.delete=function(y){delete this.map[f(y)]},m.prototype.get=function(y){return y=f(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(f(y))},m.prototype.set=function(y,b){this.map[f(y)]=u(b)},m.prototype.forEach=function(y,b){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(b,this.map[P],P,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(b,P){y.push(P)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(b,P){y.push([P,b])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(b,P){y.onload=function(){b(y.result)},y.onerror=function(){P(y.error)}})}function x(y){var b=new FileReader,P=v(b);return b.readAsArrayBuffer(y),P}function S(y){var b=new FileReader,P=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(y.type),z=$?$[1]:"utf-8";return b.readAsText(y,z),P}function L(y){for(var b=new Uint8Array(y),P=new Array(b.length),$=0;$<b.length;$++)P[$]=String.fromCharCode(b[$]);return P.join("")}function N(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function R(){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)||d(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=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(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(le)}),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 b=y.toUpperCase();return T.indexOf(b)>-1?b:y}function U(y,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var P=b.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new m(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(y){var b=new FormData;return y.trim().split("&").forEach(function(P){if(P){var $=P.split("="),z=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(z),decodeURIComponent(M))}}),b}function we(y){var b=new m,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function($){return $.indexOf(`
2
- `)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var dr=z.join(":").trim();try{b.append(M,dr)}catch(ao){console.warn("Response "+ao.message)}}}),b}R.call(U.prototype);function se(y,b){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new m(b.headers),this.url=b.url||"",this._initBody(y)}R.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},se.error=function(){var y=new se(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ae=[301,302,303,307,308];se.redirect=function(y,b){if(Ae.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,P){this.message=b,this.name=P;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ee(y,b){return new Promise(function(P,$){var z=new U(y,b);if(z.signal&&z.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function dr(){M.abort()}M.onload=function(){var te={statusText:M.statusText,headers:we(M.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(M.status<200||M.status>599)?te.status=200:te.status=M.status,te.url="responseURL"in M?M.responseURL:te.headers.get("X-Request-URL");var at="response"in M?M.response:M.responseText;setTimeout(function(){P(new se(at,te))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function ao(te){try{return te===""&&n.location.href?n.location.href:te}catch{return te}}if(M.open(z.method,ao(z.url),!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof m||n.Headers&&b.headers instanceof n.Headers)){var vn=[];Object.getOwnPropertyNames(b.headers).forEach(function(te){vn.push(f(te)),M.setRequestHeader(te,u(b.headers[te]))}),z.headers.forEach(function(te,at){vn.indexOf(at)===-1&&M.setRequestHeader(at,te)})}else z.headers.forEach(function(te,at){M.setRequestHeader(at,te)});z.signal&&(z.signal.addEventListener("abort",dr),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",dr)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return ee.polyfill=!0,n.fetch||(n.fetch=ee,n.Headers=m,n.Request=U,n.Response=se),o.Headers=m,o.Request=U,o.Response=se,o.fetch=ee,o}({})})(Lr);Lr.fetch.ponyfill=!0;delete Lr.fetch.polyfill;var kt=Rr.fetch?Rr:Lr;qe=kt.fetch;qe.default=kt.fetch;qe.fetch=kt.fetch;qe.Headers=kt.Headers;qe.Request=kt.Request;qe.Response=kt.Response;Bi.exports=qe});var ic=C(k());var no=C(G()),xn=C(k());var En=C(G()),Ml={},wn=En.css`
3
- `;var Io=C(k());var Jt=C(ne()),Ti=C(k());var wa=C(G()),D=C(k());var Tn=C(G()),Z=C(k()),Nn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:Nn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nn),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Rn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),Ln={color:Rn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rn)},In=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),Pn={color:In,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",In)},_n=Tn.css`
1
+ "use strict";(()=>{var sc=Object.create;var Sn=Object.defineProperty;var cc=Object.getOwnPropertyDescriptor;var lc=Object.getOwnPropertyNames;var dc=Object.getPrototypeOf,uc=Object.prototype.hasOwnProperty;var gt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var fc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of lc(r))!uc.call(e,a)&&a!==o&&Sn(e,a,{get:()=>r[a],enumerable:!(n=cc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?sc(dc(e)):{},fc(r||!e||!e.__esModule?Sn(o,"default",{value:e,enumerable:!0}):o,e));var k=gt((Bl,On)=>{On.exports=ftGlobals.wcUtils});var G=gt((Ul,Cn)=>{Cn.exports=ftGlobals.lit});var ne=gt((Wl,An)=>{An.exports=ftGlobals.litDecorators});var lo=gt((eh,Na)=>{Na.exports=ftGlobals.litClassMap});var wi=gt((ry,Ei)=>{Ei.exports=ftGlobals.litUnsafeHTML});var Ui=gt((qe,Bi)=>{var Rr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Lr=function(){function e(){this.fetch=!1,this.DOMException=Rr.DOMException}return e.prototype=Rr,new e}();(function(e){var r=function(o){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function f(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var b={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function m(y){this.map={},y instanceof m?y.forEach(function(b,P){this.append(P,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}m.prototype.append=function(y,b){y=f(y),b=u(b);var P=this.map[y];this.map[y]=P?P+", "+b:b},m.prototype.delete=function(y){delete this.map[f(y)]},m.prototype.get=function(y){return y=f(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(f(y))},m.prototype.set=function(y,b){this.map[f(y)]=u(b)},m.prototype.forEach=function(y,b){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(b,this.map[P],P,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(b,P){y.push(P)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(b,P){y.push([P,b])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(b,P){y.onload=function(){b(y.result)},y.onerror=function(){P(y.error)}})}function x(y){var b=new FileReader,P=v(b);return b.readAsArrayBuffer(y),P}function S(y){var b=new FileReader,P=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(y.type),z=$?$[1]:"utf-8";return b.readAsText(y,z),P}function L(y){for(var b=new Uint8Array(y),P=new Array(b.length),$=0;$<b.length;$++)P[$]=String.fromCharCode(b[$]);return P.join("")}function N(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function R(){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)||d(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=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(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(le)}),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 b=y.toUpperCase();return T.indexOf(b)>-1?b:y}function U(y,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var P=b.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new m(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(y){var b=new FormData;return y.trim().split("&").forEach(function(P){if(P){var $=P.split("="),z=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(z),decodeURIComponent(M))}}),b}function we(y){var b=new m,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function($){return $.indexOf(`
2
+ `)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var dr=z.join(":").trim();try{b.append(M,dr)}catch(so){console.warn("Response "+so.message)}}}),b}R.call(U.prototype);function se(y,b){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new m(b.headers),this.url=b.url||"",this._initBody(y)}R.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},se.error=function(){var y=new se(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ae=[301,302,303,307,308];se.redirect=function(y,b){if(Ae.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,P){this.message=b,this.name=P;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ee(y,b){return new Promise(function(P,$){var z=new U(y,b);if(z.signal&&z.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function dr(){M.abort()}M.onload=function(){var te={statusText:M.statusText,headers:we(M.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(M.status<200||M.status>599)?te.status=200:te.status=M.status,te.url="responseURL"in M?M.responseURL:te.headers.get("X-Request-URL");var at="response"in M?M.response:M.responseText;setTimeout(function(){P(new se(at,te))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function so(te){try{return te===""&&n.location.href?n.location.href:te}catch{return te}}if(M.open(z.method,so(z.url),!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof m||n.Headers&&b.headers instanceof n.Headers)){var vn=[];Object.getOwnPropertyNames(b.headers).forEach(function(te){vn.push(f(te)),M.setRequestHeader(te,u(b.headers[te]))}),z.headers.forEach(function(te,at){vn.indexOf(at)===-1&&M.setRequestHeader(at,te)})}else z.headers.forEach(function(te,at){M.setRequestHeader(at,te)});z.signal&&(z.signal.addEventListener("abort",dr),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",dr)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return ee.polyfill=!0,n.fetch||(n.fetch=ee,n.Headers=m,n.Request=U,n.Response=se),o.Headers=m,o.Request=U,o.Response=se,o.fetch=ee,o}({})})(Lr);Lr.fetch.ponyfill=!0;delete Lr.fetch.polyfill;var kt=Rr.fetch?Rr:Lr;qe=kt.fetch;qe.default=kt.fetch;qe.fetch=kt.fetch;qe.Headers=kt.Headers;qe.Request=kt.Request;qe.Response=kt.Response;Bi.exports=qe});var ic=C(k());var io=C(G()),xn=C(k());var En=C(G()),Ml={},wn=En.css`
3
+ `;var To=C(k());var Jt=C(ne()),Ti=C(k());var wa=C(G()),D=C(k());var Tn=C(G()),Z=C(k()),Nn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:Nn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nn),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Rn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),Ln={color:Rn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rn)},In=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),Pn={color:In,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",In)},_n=Tn.css`
4
4
  :host {
5
5
  display: contents;
6
6
  }
@@ -334,7 +334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
334
334
  .ft-icon--material {
335
335
  font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
336
336
  }
337
- `;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),X={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Ca,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ca),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ea=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),io={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ea,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ea)},Re={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Aa=[wa.css`
337
+ `;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),Q={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Ca,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ca),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ea=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),co={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ea,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ea)},Re={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Aa=[wa.css`
338
338
  :host {
339
339
  display: inline-block;
340
340
  max-width: 100%;
@@ -345,7 +345,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
345
345
  box-shadow: 0px 0px 0px transparent;
346
346
  border: 0px solid transparent;
347
347
  text-shadow: 0px 0px 0px transparent;
348
- font-size: ${X.fontSize};
348
+ font-size: ${Q.fontSize};
349
349
  text-decoration: none;
350
350
  }
351
351
 
@@ -375,21 +375,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
375
375
  border: none;
376
376
  pointer-events: auto;
377
377
 
378
- --ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
379
- --ft-button-internal-color: ${X.color};
380
- ${(0,D.setVariable)(ce.size,X.iconSize)};
381
- ${(0,D.setVariable)(E.color,X.rippleColor)};
378
+ --ft-button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
379
+ --ft-button-internal-color: ${Q.color};
380
+ ${(0,D.setVariable)(ce.size,Q.iconSize)};
381
+ ${(0,D.setVariable)(E.color,Q.rippleColor)};
382
382
 
383
- border-radius: ${X.borderRadius};
384
- padding: ${X.verticalPadding} ${X.horizontalPadding};
385
- background-color: ${X.backgroundColor};
383
+ border-radius: ${Q.borderRadius};
384
+ padding: ${Q.verticalPadding} ${Q.horizontalPadding};
385
+ background-color: ${Q.backgroundColor};
386
386
  color: var(--ft-button-internal-color);
387
387
  -webkit-mask-image: radial-gradient(white, black);
388
388
  }
389
389
 
390
390
  .ft-button.ft-button--outlined {
391
391
  border: 1px solid var(--ft-button-internal-color);
392
- padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
392
+ padding: calc(${Q.verticalPadding} - 1px) calc(${Q.horizontalPadding} - 1px);
393
393
  }
394
394
 
395
395
  .ft-button.ft-button--dense {
@@ -407,7 +407,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
407
407
  }
408
408
 
409
409
  .ft-button--round {
410
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${X.verticalPadding});
410
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Q.verticalPadding});
411
411
  }
412
412
 
413
413
  .ft-button--round.ft-button--dense {
@@ -416,13 +416,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
416
416
 
417
417
  .ft-button[disabled] {
418
418
  filter: grayscale(1);
419
- opacity: ${X.opacityDisabled};
419
+ opacity: ${Q.opacityDisabled};
420
420
  }
421
421
 
422
422
  .ft-button.ft-button--primary {
423
- background-color: ${io.backgroundColor};
424
- --ft-button-internal-color: ${io.color};
425
- ${(0,D.setVariable)(E.color,io.rippleColor)};
423
+ background-color: ${co.backgroundColor};
424
+ --ft-button-internal-color: ${co.color};
425
+ ${(0,D.setVariable)(E.color,co.rippleColor)};
426
426
  }
427
427
 
428
428
  .ft-button:focus {
@@ -435,7 +435,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
435
435
  white-space: nowrap;
436
436
  text-overflow: ellipsis;
437
437
  display: block;
438
- margin: 0 ${X.iconPadding};
438
+ margin: 0 ${Q.iconPadding};
439
439
  ${(0,D.setVariable)(Ne.fontSize,"1em")};
440
440
  ${(0,D.setVariable)(Ne.lineHeight,"var(--ft-button-internal-line-height)")};
441
441
  }
@@ -454,8 +454,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
454
454
  }
455
455
 
456
456
  .ft-button--label[hidden] + [part="icon"] {
457
- margin: 0 calc(${X.horizontalPadding} * -1);
458
- padding: 0 ${X.verticalPadding};
457
+ margin: 0 calc(${Q.horizontalPadding} * -1);
458
+ padding: 0 ${Q.verticalPadding};
459
459
  }
460
460
 
461
461
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -468,10 +468,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
468
468
  }
469
469
 
470
470
  ft-loader {
471
- ${(0,D.setVariable)(W.size,X.iconSize)};
471
+ ${(0,D.setVariable)(W.size,Q.iconSize)};
472
472
  ${(0,D.setVariable)(W.color,"var(--ft-button-internal-color)")};
473
473
  }
474
- `,D.noTextSelect];var Ze=C(k());var Ia=C(k());var Ra=C(G()),re=C(ne()),La=C(so()),Ft=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},j=class extends Ft.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ft.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ft.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ra.html`
474
+ `,D.noTextSelect];var Ze=C(k());var Ia=C(k());var Ra=C(G()),re=C(ne()),La=C(lo()),Ft=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},j=class extends Ft.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ft.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ft.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ra.html`
475
475
  <style>
476
476
  .ft-ripple .ft-ripple--effect {
477
477
  left: ${this.originX}px;
@@ -482,17 +482,17 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
482
482
  <div class="ft-ripple--background"></div>
483
483
  <div class="ft-ripple--effect"></div>
484
484
  </div>
485
- `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>f=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),q=C(ne()),Xt=C(k());var Ya=C(k());var yo=globalThis,hr=yo.trustedTypes,Pa=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ua="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+ze,hc=`<${Ma}>`,ct=document,yr=()=>ct.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",$a=Array.isArray,yc=e=>$a(e)||typeof e?.[Symbol.iterator]=="function",co=`[
486
- \f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ta=/-->/g,_a=/>/g,it=RegExp(`>|${co}(?:([^\\s"'>=/]+)(${co}*=${co}*(?:[^
487
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Ba=new WeakMap,st=ct.createTreeWalker(ct,129);function Ga(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(r):r}var mc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Ht;for(let d=0;d<o;d++){let f=e[d],u,h,m=-1,g=0;for(;g<f.length&&(c.lastIndex=g,h=c.exec(f),h!==null);)g=c.lastIndex,c===Ht?h[1]==="!--"?c=Ta:h[1]!==void 0?c=_a:h[2]!==void 0?(Wa.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=it):h[3]!==void 0&&(c=it):c===it?h[0]===">"?(c=a??Ht,m=-1):h[1]===void 0?m=-2:(m=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?it:h[3]==='"'?Da:ka):c===Da||c===ka?c=it:c===Ta||c===_a?c=Ht:(c=it,a=void 0);let v=c===it&&e[d+1].startsWith("/>")?" ":"";i+=c===Ht?f+hc:m>=0?(n.push(u),f.slice(0,m)+Ua+f.slice(m)+ze+v):f+ze+(m===-2?d:v)}return[Ga(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,f=this.parts,[u,h]=mc(r,o);if(this.el=e.createElement(u,n),st.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=st.nextNode())!==null&&f.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ua)){let g=h[c++],v=a.getAttribute(m).split(ze),x=/([.?@])?(.*)/.exec(g);f.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?uo:x[1]==="?"?fo:x[1]==="@"?po:Lt}),a.removeAttribute(m)}else m.startsWith(ze)&&(f.push({type:6,index:i}),a.removeAttribute(m));if(Wa.test(a.tagName)){let m=a.textContent.split(ze),g=m.length-1;if(g>0){a.textContent=hr?hr.emptyScript:"";for(let v=0;v<g;v++)a.append(m[v],yr()),st.nextNode(),f.push({type:2,index:++i});a.append(m[g],yr())}}}else if(a.nodeType===8)if(a.data===Ma)f.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(ze,m+1))!==-1;)f.push({type:7,index:i}),m+=ze.length-1}i++}}static createElement(r,o){let n=ct.createElement("template");return n.innerHTML=r,n}};function Rt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=Rt(e,a._$AS(e,r.values),a,n)),r}var lo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??ct).importNode(o,!0);st.currentNode=a;let i=st.nextNode(),c=0,d=0,f=n[0];for(;f!==void 0;){if(c===f.index){let u;f.type===2?u=new mr(i,i.nextSibling,this,r):f.type===1?u=new f.ctor(i,f.name,f.strings,this,r):f.type===6&&(u=new ho(i,this,r)),this._$AV.push(u),f=n[++d]}c!==f?.index&&(i=st.nextNode(),c++)}return st.currentNode=ct,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},mr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Rt(this,r,o),zt(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):yc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==Q&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(ct.createTextNode(r)),this._$AH=r}g(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new lo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ba.get(r.strings);return o===void 0&&Ba.set(r.strings,o=new jt(r)),o}T(r){$a(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.k(yr()),this.k(yr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,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=Q}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Rt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let d=r,f,u;for(r=i[0],f=0;f<i.length-1;f++)u=Rt(this,d[n+f],o,f),u===Gt&&(u=this._$AH[f]),c||=!zt(u)||u!==this._$AH[f],u===Q?r=Q:r!==Q&&(r+=(u??"")+i[f+1]),this._$AH[f]=u}c&&!a&&this.O(r)}O(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},uo=class extends Lt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===Q?void 0:r}},fo=class extends Lt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==Q)}},po=class extends Lt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Rt(this,r,o,0)??Q)===Gt)return;let n=this._$AH,a=r===Q&&n!==Q||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==Q&&(n===Q||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},ho=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Rt(this,r)}};var gc=yo.litHtmlPolyfillSupport;gc?.(jt,mr),(yo.litHtmlVersions??=[]).push("3.1.0");var Va=Symbol.for(""),bc=e=>{if(e?.r===Va)return e?._$litStatic$},mo=e=>({_$litStatic$:e,r:Va});var ja=new Map,Ka=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],f,u=0,h=!1;for(;u<n;){for(f=r[u];u<n&&(i=o[u],(a=bc(i))!==void 0);)f+=a+r[++u],h=!0;u!==n&&d.push(i),c.push(f),u++}if(u===n&&c.push(r[n]),h){let m=c.join("$$lit$$");(r=ja.get(m))===void 0&&(c.raw=c,ja.set(m,r=c)),o=d}return e(r,...o)},go=Ka(Ha),dh=Ka(za);var bo=C(ne()),qa=C(k());var Ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ge||(Ge={}));var Za=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends qa.FtLitElement{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?go`
488
- <${mo(this.element)}
485
+ `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>f=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),Y=C(ne()),Xt=C(k());var Ya=C(k());var go=globalThis,hr=go.trustedTypes,Pa=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ua="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+ze,hc=`<${Ma}>`,ct=document,yr=()=>ct.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",$a=Array.isArray,yc=e=>$a(e)||typeof e?.[Symbol.iterator]=="function",uo=`[
486
+ \f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ta=/-->/g,_a=/>/g,it=RegExp(`>|${uo}(?:([^\\s"'>=/]+)(${uo}*=${uo}*(?:[^
487
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ba=new WeakMap,st=ct.createTreeWalker(ct,129);function Ga(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(r):r}var mc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Ht;for(let d=0;d<o;d++){let f=e[d],u,h,m=-1,g=0;for(;g<f.length&&(c.lastIndex=g,h=c.exec(f),h!==null);)g=c.lastIndex,c===Ht?h[1]==="!--"?c=Ta:h[1]!==void 0?c=_a:h[2]!==void 0?(Wa.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=it):h[3]!==void 0&&(c=it):c===it?h[0]===">"?(c=a??Ht,m=-1):h[1]===void 0?m=-2:(m=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?it:h[3]==='"'?Da:ka):c===Da||c===ka?c=it:c===Ta||c===_a?c=Ht:(c=it,a=void 0);let v=c===it&&e[d+1].startsWith("/>")?" ":"";i+=c===Ht?f+hc:m>=0?(n.push(u),f.slice(0,m)+Ua+f.slice(m)+ze+v):f+ze+(m===-2?d:v)}return[Ga(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,f=this.parts,[u,h]=mc(r,o);if(this.el=e.createElement(u,n),st.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=st.nextNode())!==null&&f.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ua)){let g=h[c++],v=a.getAttribute(m).split(ze),x=/([.?@])?(.*)/.exec(g);f.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?po:x[1]==="?"?ho:x[1]==="@"?yo:Lt}),a.removeAttribute(m)}else m.startsWith(ze)&&(f.push({type:6,index:i}),a.removeAttribute(m));if(Wa.test(a.tagName)){let m=a.textContent.split(ze),g=m.length-1;if(g>0){a.textContent=hr?hr.emptyScript:"";for(let v=0;v<g;v++)a.append(m[v],yr()),st.nextNode(),f.push({type:2,index:++i});a.append(m[g],yr())}}}else if(a.nodeType===8)if(a.data===Ma)f.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(ze,m+1))!==-1;)f.push({type:7,index:i}),m+=ze.length-1}i++}}static createElement(r,o){let n=ct.createElement("template");return n.innerHTML=r,n}};function Rt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=Rt(e,a._$AS(e,r.values),a,n)),r}var fo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??ct).importNode(o,!0);st.currentNode=a;let i=st.nextNode(),c=0,d=0,f=n[0];for(;f!==void 0;){if(c===f.index){let u;f.type===2?u=new mr(i,i.nextSibling,this,r):f.type===1?u=new f.ctor(i,f.name,f.strings,this,r):f.type===6&&(u=new mo(i,this,r)),this._$AV.push(u),f=n[++d]}c!==f?.index&&(i=st.nextNode(),c++)}return st.currentNode=ct,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},mr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Rt(this,r,o),zt(r)?r===J||r==null||r===""?(this._$AH!==J&&this._$AR(),this._$AH=J):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):yc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==J&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(ct.createTextNode(r)),this._$AH=r}g(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new fo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ba.get(r.strings);return o===void 0&&Ba.set(r.strings,o=new jt(r)),o}T(r){$a(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.k(yr()),this.k(yr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=r,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=J}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Rt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let d=r,f,u;for(r=i[0],f=0;f<i.length-1;f++)u=Rt(this,d[n+f],o,f),u===Gt&&(u=this._$AH[f]),c||=!zt(u)||u!==this._$AH[f],u===J?r=J:r!==J&&(r+=(u??"")+i[f+1]),this._$AH[f]=u}c&&!a&&this.O(r)}O(r){r===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},po=class extends Lt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===J?void 0:r}},ho=class extends Lt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==J)}},yo=class extends Lt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Rt(this,r,o,0)??J)===Gt)return;let n=this._$AH,a=r===J&&n!==J||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==J&&(n===J||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},mo=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Rt(this,r)}};var gc=go.litHtmlPolyfillSupport;gc?.(jt,mr),(go.litHtmlVersions??=[]).push("3.1.0");var Va=Symbol.for(""),bc=e=>{if(e?.r===Va)return e?._$litStatic$},bo=e=>({_$litStatic$:e,r:Va});var ja=new Map,Ka=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],f,u=0,h=!1;for(;u<n;){for(f=r[u];u<n&&(i=o[u],(a=bc(i))!==void 0);)f+=a+r[++u],h=!0;u!==n&&d.push(i),c.push(f),u++}if(u===n&&c.push(r[n]),h){let m=c.join("$$lit$$");(r=ja.get(m))===void 0&&(c.raw=c,ja.set(m,r=c)),o=d}return e(r,...o)},xo=Ka(Ha),dh=Ka(za);var vo=C(ne()),qa=C(k());var Ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ge||(Ge={}));var Za=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends qa.FtLitElement{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?xo`
488
+ <${bo(this.element)}
489
489
  part="text"
490
490
  class="ft-typography ft-typography--${this.variant}">
491
491
  <slot></slot>
492
- </${mo(this.element)}>
493
- `:go`
492
+ </${bo(this.element)}>
493
+ `:xo`
494
494
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
495
- `}};xe.styles=[sa,ca,la,da,ua,fa,pa,ha,ya,ma,ga,...ba];Za([(0,bo.property)()],xe.prototype,"element",void 0);Za([(0,bo.property)()],xe.prototype,"variant",void 0);(0,Ya.customElement)("ft-typography")(xe);var Xa=C(G()),De=C(k()),It={distance:De.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:De.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:De.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:De.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:De.FtCssVariableFactory.external(De.designSystemVariables.borderRadiusS,"Design system"),maxWidth:De.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Qa=Xa.css`
495
+ `}};xe.styles=[sa,ca,la,da,ua,fa,pa,ha,ya,ma,ga,...ba];Za([(0,vo.property)()],xe.prototype,"element",void 0);Za([(0,vo.property)()],xe.prototype,"variant",void 0);(0,Ya.customElement)("ft-typography")(xe);var Xa=C(G()),De=C(k()),It={distance:De.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:De.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:De.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:De.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:De.FtCssVariableFactory.external(De.designSystemVariables.borderRadiusS,"Design system"),maxWidth:De.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Qa=Xa.css`
496
496
  .ft-tooltip--container {
497
497
  display: block;
498
498
  }
@@ -521,7 +521,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
521
521
  position: relative;
522
522
  word-break: break-word;
523
523
  }
524
- `;var ei=["top","right","bottom","left"],Ja=["start","end"],vo=ei.reduce((e,r)=>e.concat(r,r+"-"+Ja[0],r+"-"+Ja[1]),[]),Vt=Math.min,je=Math.max,Kt=Math.round;var Be=e=>({x:e,y:e}),xc={left:"right",right:"left",bottom:"top",top:"bottom"},vc={start:"end",end:"start"};function So(e,r,o){return je(e,Vt(r,o))}function gr(e,r){return typeof e=="function"?e(r):e}function Pt(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function Oo(e){return e==="x"?"y":"x"}function Co(e){return e==="y"?"height":"width"}function br(e){return["top","bottom"].includes(Pt(e))?"y":"x"}function Eo(e){return Oo(br(e))}function ti(e,r,o){o===void 0&&(o=!1);let n=Ve(e),a=Eo(e),i=Co(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=xo(c)),[c,xo(c)]}function ri(e){return e.replace(/start|end/g,r=>vc[r])}function xo(e){return e.replace(/left|right|bottom|top/g,r=>xc[r])}function Sc(e){return{top:0,right:0,bottom:0,left:0,...e}}function oi(e){return typeof e!="number"?Sc(e):{top:e,right:e,bottom:e,left:e}}function lt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ni(e,r,o){let{reference:n,floating:a}=e,i=br(r),c=Eo(r),d=Co(c),f=Pt(r),u=i==="y",h=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,g=n[d]/2-a[d]/2,v;switch(f){case"top":v={x:h,y:n.y-a.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:m};break;case"left":v={x:n.x-a.width,y:m};break;default:v={x:n.x,y:n.y}}switch(Ve(r)){case"start":v[c]-=g*(o&&u?-1:1);break;case"end":v[c]+=g*(o&&u?-1:1);break}return v}var ai=async(e,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,d=i.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(r)),u=await c.getElementRects({reference:e,floating:r,strategy:a}),{x:h,y:m}=ni(u,n,f),g=n,v={},x=0;for(let S=0;S<d.length;S++){let{name:L,fn:N}=d[S],{x:R,y:T,data:B,reset:U}=await N({x:h,y:m,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:u,platform:c,elements:{reference:e,floating:r}});if(h=R??h,m=T??m,v={...v,[L]:{...v[L],...B}},U&&x<=50){x++,typeof U=="object"&&(U.placement&&(g=U.placement),U.rects&&(u=U.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:a}):U.rects),{x:h,y:m}=ni(u,g,f)),S=-1;continue}}return{x:h,y:m,placement:g,strategy:a,middlewareData:v}};async function wo(e,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:d,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:v=0}=gr(r,e),x=oi(v),L=d[g?m==="floating"?"reference":"floating":m],N=lt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:u,rootBoundary:h,strategy:f})),R=m==="floating"?{...c.floating,x:n,y:a}:c.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},U=lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:T,strategy:f}):R);return{top:(N.top-U.top+x.top)/B.y,bottom:(U.bottom-N.bottom+x.bottom)/B.y,left:(N.left-U.left+x.left)/B.x,right:(U.right-N.right+x.right)/B.x}}function Oc(e,r,o){return(e?[...o.filter(a=>Ve(a)===e),...o.filter(a=>Ve(a)!==e)]:o.filter(a=>Pt(a)===a)).filter(a=>e?Ve(a)===e||(r?ri(a)!==a:!1):!0)}var Ao=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:d,platform:f,elements:u}=r,{crossAxis:h=!1,alignment:m,allowedPlacements:g=vo,autoAlignment:v=!0,...x}=gr(e,r),S=m!==void 0||g===vo?Oc(m||null,v,g):g,L=await wo(r,x),N=((o=c.autoPlacement)==null?void 0:o.index)||0,R=S[N];if(R==null)return{};let T=ti(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(d!==R)return{reset:{placement:S[0]}};let B=[L[Pt(R)],L[T[0]],L[T[1]]],U=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:B}],le=S[N+1];if(le)return{data:{index:N+1,overflows:U},reset:{placement:le}};let we=U.map(ee=>{let y=Ve(ee.placement);return[ee.placement,y&&h?ee.overflows.slice(0,2).reduce((b,P)=>b+P,0):ee.overflows[0],ee.overflows]}).sort((ee,y)=>ee[1]-y[1]),Ae=((a=we.filter(ee=>ee[2].slice(0,Ve(ee[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||we[0][0];return Ae!==d?{data:{index:N+1,overflows:U},reset:{placement:Ae}}:{}}}};var No=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:L=>{let{x:N,y:R}=L;return{x:N,y:R}}},...f}=gr(e,r),u={x:o,y:n},h=await wo(r,f),m=br(Pt(a)),g=Oo(m),v=u[g],x=u[m];if(i){let L=g==="y"?"top":"left",N=g==="y"?"bottom":"right",R=v+h[L],T=v-h[N];v=So(R,v,T)}if(c){let L=m==="y"?"top":"left",N=m==="y"?"bottom":"right",R=x+h[L],T=x-h[N];x=So(R,x,T)}let S=d.fn({...r,[g]:v,[m]:x});return{...S,data:{x:S.x-o,y:S.y-n}}}}};function Ue(e){return si(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Me(e){var r;return(r=(si(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function si(e){return e instanceof Node||e instanceof ue(e).Node}function Le(e){return e instanceof Element||e instanceof ue(e).Element}function ve(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Tt(e){let{overflow:r,overflowX:o,overflowY:n,display:a}=he(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function ci(e){return["table","td","th"].includes(Ue(e))}function vr(e){let r=Sr(),o=he(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function li(e){let r=dt(e);for(;ve(r)&&!Zt(r);){if(vr(r))return r;r=dt(r)}return null}function Sr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zt(e){return["html","body","#document"].includes(Ue(e))}function he(e){return ue(e).getComputedStyle(e)}function qt(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(e){if(Ue(e)==="html")return e;let r=e.assignedSlot||e.parentNode||ii(e)&&e.host||Me(e);return ii(r)?r.host:r}function di(e){let r=dt(e);return Zt(r)?e.ownerDocument?e.ownerDocument.body:e.body:ve(r)&&Tt(r)?r:di(r)}function xr(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=di(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=ue(a);return i?r.concat(c,c.visualViewport||[],Tt(a)?a:[],c.frameElement&&o?xr(c.frameElement):[]):r.concat(a,xr(a,[],o))}function pi(e){let r=he(e),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=ve(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=Kt(o)!==i||Kt(n)!==c;return d&&(o=i,n=c),{width:o,height:n,$:d}}function hi(e){return Le(e)?e:e.contextElement}function _t(e){let r=hi(e);if(!ve(r))return Be(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=pi(r),c=(i?Kt(o.width):o.width)/n,d=(i?Kt(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var wc=Be(0);function yi(e){let r=ue(e);return!Sr()||!r.visualViewport?wc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Ac(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==ue(e)?!1:r}function Yt(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=hi(e),c=Be(1);r&&(n?Le(n)&&(c=_t(n)):c=_t(e));let d=Ac(i,o,n)?yi(i):Be(0),f=(a.left+d.x)/c.x,u=(a.top+d.y)/c.y,h=a.width/c.x,m=a.height/c.y;if(i){let g=ue(i),v=n&&Le(n)?ue(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let S=_t(x),L=x.getBoundingClientRect(),N=he(x),R=L.left+(x.clientLeft+parseFloat(N.paddingLeft))*S.x,T=L.top+(x.clientTop+parseFloat(N.paddingTop))*S.y;f*=S.x,u*=S.y,h*=S.x,m*=S.y,f+=R,u+=T,x=ue(x).frameElement}}return lt({width:h,height:m,x:f,y:u})}function Nc(e){let{rect:r,offsetParent:o,strategy:n}=e,a=ve(o),i=Me(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},d=Be(1),f=Be(0);if((a||!a&&n!=="fixed")&&((Ue(o)!=="body"||Tt(i))&&(c=qt(o)),ve(o))){let u=Yt(o);d=_t(o),f.x=u.x+o.clientLeft,f.y=u.y+o.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x,y:r.y*d.y-c.scrollTop*d.y+f.y}}function Rc(e){return Array.from(e.getClientRects())}function mi(e){return Yt(Me(e)).left+qt(e).scrollLeft}function Lc(e){let r=Me(e),o=qt(e),n=e.ownerDocument.body,a=je(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=je(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+mi(e),d=-o.scrollTop;return he(n).direction==="rtl"&&(c+=je(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:d}}function Ic(e,r){let o=ue(e),n=Me(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,d=0,f=0;if(a){i=a.width,c=a.height;let u=Sr();(!u||u&&r==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:i,height:c,x:d,y:f}}function Pc(e,r){let o=Yt(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=ve(e)?_t(e):Be(1),c=e.clientWidth*i.x,d=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:c,height:d,x:f,y:u}}function ui(e,r,o){let n;if(r==="viewport")n=Ic(e,o);else if(r==="document")n=Lc(Me(e));else if(Le(r))n=Pc(r,o);else{let a=yi(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return lt(n)}function gi(e,r){let o=dt(e);return o===r||!Le(o)||Zt(o)?!1:he(o).position==="fixed"||gi(o,r)}function Tc(e,r){let o=r.get(e);if(o)return o;let n=xr(e,[],!1).filter(d=>Le(d)&&Ue(d)!=="body"),a=null,i=he(e).position==="fixed",c=i?dt(e):e;for(;Le(c)&&!Zt(c);){let d=he(c),f=vr(c);!f&&d.position==="fixed"&&(a=null),(i?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Tt(c)&&!f&&gi(e,c))?n=n.filter(h=>h!==c):a=d,c=dt(c)}return r.set(e,n),n}function _c(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Tc(r,this._c):[].concat(o),n],d=c[0],f=c.reduce((u,h)=>{let m=ui(r,h,a);return u.top=je(m.top,u.top),u.right=Vt(m.right,u.right),u.bottom=Vt(m.bottom,u.bottom),u.left=je(m.left,u.left),u},ui(r,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function kc(e){return pi(e)}function Dc(e,r,o){let n=ve(r),a=Me(r),i=o==="fixed",c=Yt(e,!0,i,r),d={scrollLeft:0,scrollTop:0},f=Be(0);if(n||!n&&!i)if((Ue(r)!=="body"||Tt(a))&&(d=qt(r)),n){let u=Yt(r,!0,i,r);f.x=u.x+r.clientLeft,f.y=u.y+r.clientTop}else a&&(f.x=mi(a));return{x:c.left+d.scrollLeft-f.x,y:c.top+d.scrollTop-f.y,width:c.width,height:c.height}}function fi(e,r){return!ve(e)||he(e).position==="fixed"?null:r?r(e):e.offsetParent}function bi(e,r){let o=ue(e);if(!ve(e))return o;let n=fi(e,r);for(;n&&ci(n)&&he(n).position==="static";)n=fi(n,r);return n&&(Ue(n)==="html"||Ue(n)==="body"&&he(n).position==="static"&&!vr(n))?o:n||li(e)||o}var Bc=async function(e){let{reference:r,floating:o,strategy:n}=e,a=this.getOffsetParent||bi,i=this.getDimensions;return{reference:Dc(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Uc(e){return he(e).direction==="rtl"}var Or={convertOffsetParentRelativeRectToViewportRelativeRect:Nc,getDocumentElement:Me,getClippingRect:_c,getOffsetParent:bi,getElementRects:Bc,getClientRects:Rc,getDimensions:kc,getScale:_t,isElement:Le,isRTL:Uc};var xi=(e,r,o)=>{let n=new Map,a={platform:Or,...o},i={...a.platform,_c:n};return ai(e,r,{...a,platform:i})};function vi(e){return Mc(e)}function Ro(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Mc(e){for(let r=e;r;r=Ro(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=Ro(e);r;r=Ro(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Si(e,r,o){return xi(e,r,{platform:{...Or,getOffsetParent:n=>Or.getOffsetParent(n,vi)},middleware:[No({crossAxis:!0}),Ao({allowedPlacements:[o]})]})}var fe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},V=class extends Xt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Xt.Debouncer,this.revealDebouncer=new Xt.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Oi.html`
524
+ `;var ei=["top","right","bottom","left"],Ja=["start","end"],Oo=ei.reduce((e,r)=>e.concat(r,r+"-"+Ja[0],r+"-"+Ja[1]),[]),Vt=Math.min,je=Math.max,Kt=Math.round;var Be=e=>({x:e,y:e}),xc={left:"right",right:"left",bottom:"top",top:"bottom"},vc={start:"end",end:"start"};function Co(e,r,o){return je(e,Vt(r,o))}function gr(e,r){return typeof e=="function"?e(r):e}function Pt(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function Eo(e){return e==="x"?"y":"x"}function wo(e){return e==="y"?"height":"width"}function br(e){return["top","bottom"].includes(Pt(e))?"y":"x"}function Ao(e){return Eo(br(e))}function ti(e,r,o){o===void 0&&(o=!1);let n=Ve(e),a=Ao(e),i=wo(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=So(c)),[c,So(c)]}function ri(e){return e.replace(/start|end/g,r=>vc[r])}function So(e){return e.replace(/left|right|bottom|top/g,r=>xc[r])}function Sc(e){return{top:0,right:0,bottom:0,left:0,...e}}function oi(e){return typeof e!="number"?Sc(e):{top:e,right:e,bottom:e,left:e}}function lt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ni(e,r,o){let{reference:n,floating:a}=e,i=br(r),c=Ao(r),d=wo(c),f=Pt(r),u=i==="y",h=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,g=n[d]/2-a[d]/2,v;switch(f){case"top":v={x:h,y:n.y-a.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:m};break;case"left":v={x:n.x-a.width,y:m};break;default:v={x:n.x,y:n.y}}switch(Ve(r)){case"start":v[c]-=g*(o&&u?-1:1);break;case"end":v[c]+=g*(o&&u?-1:1);break}return v}var ai=async(e,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,d=i.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(r)),u=await c.getElementRects({reference:e,floating:r,strategy:a}),{x:h,y:m}=ni(u,n,f),g=n,v={},x=0;for(let S=0;S<d.length;S++){let{name:L,fn:N}=d[S],{x:R,y:T,data:B,reset:U}=await N({x:h,y:m,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:u,platform:c,elements:{reference:e,floating:r}});if(h=R??h,m=T??m,v={...v,[L]:{...v[L],...B}},U&&x<=50){x++,typeof U=="object"&&(U.placement&&(g=U.placement),U.rects&&(u=U.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:a}):U.rects),{x:h,y:m}=ni(u,g,f)),S=-1;continue}}return{x:h,y:m,placement:g,strategy:a,middlewareData:v}};async function No(e,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:d,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:v=0}=gr(r,e),x=oi(v),L=d[g?m==="floating"?"reference":"floating":m],N=lt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:u,rootBoundary:h,strategy:f})),R=m==="floating"?{...c.floating,x:n,y:a}:c.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},U=lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:T,strategy:f}):R);return{top:(N.top-U.top+x.top)/B.y,bottom:(U.bottom-N.bottom+x.bottom)/B.y,left:(N.left-U.left+x.left)/B.x,right:(U.right-N.right+x.right)/B.x}}function Oc(e,r,o){return(e?[...o.filter(a=>Ve(a)===e),...o.filter(a=>Ve(a)!==e)]:o.filter(a=>Pt(a)===a)).filter(a=>e?Ve(a)===e||(r?ri(a)!==a:!1):!0)}var Ro=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:d,platform:f,elements:u}=r,{crossAxis:h=!1,alignment:m,allowedPlacements:g=Oo,autoAlignment:v=!0,...x}=gr(e,r),S=m!==void 0||g===Oo?Oc(m||null,v,g):g,L=await No(r,x),N=((o=c.autoPlacement)==null?void 0:o.index)||0,R=S[N];if(R==null)return{};let T=ti(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(d!==R)return{reset:{placement:S[0]}};let B=[L[Pt(R)],L[T[0]],L[T[1]]],U=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:B}],le=S[N+1];if(le)return{data:{index:N+1,overflows:U},reset:{placement:le}};let we=U.map(ee=>{let y=Ve(ee.placement);return[ee.placement,y&&h?ee.overflows.slice(0,2).reduce((b,P)=>b+P,0):ee.overflows[0],ee.overflows]}).sort((ee,y)=>ee[1]-y[1]),Ae=((a=we.filter(ee=>ee[2].slice(0,Ve(ee[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||we[0][0];return Ae!==d?{data:{index:N+1,overflows:U},reset:{placement:Ae}}:{}}}};var Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:L=>{let{x:N,y:R}=L;return{x:N,y:R}}},...f}=gr(e,r),u={x:o,y:n},h=await No(r,f),m=br(Pt(a)),g=Eo(m),v=u[g],x=u[m];if(i){let L=g==="y"?"top":"left",N=g==="y"?"bottom":"right",R=v+h[L],T=v-h[N];v=Co(R,v,T)}if(c){let L=m==="y"?"top":"left",N=m==="y"?"bottom":"right",R=x+h[L],T=x-h[N];x=Co(R,x,T)}let S=d.fn({...r,[g]:v,[m]:x});return{...S,data:{x:S.x-o,y:S.y-n}}}}};function Ue(e){return si(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Me(e){var r;return(r=(si(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function si(e){return e instanceof Node||e instanceof ue(e).Node}function Le(e){return e instanceof Element||e instanceof ue(e).Element}function ve(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Tt(e){let{overflow:r,overflowX:o,overflowY:n,display:a}=he(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function ci(e){return["table","td","th"].includes(Ue(e))}function vr(e){let r=Sr(),o=he(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function li(e){let r=dt(e);for(;ve(r)&&!Zt(r);){if(vr(r))return r;r=dt(r)}return null}function Sr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zt(e){return["html","body","#document"].includes(Ue(e))}function he(e){return ue(e).getComputedStyle(e)}function qt(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(e){if(Ue(e)==="html")return e;let r=e.assignedSlot||e.parentNode||ii(e)&&e.host||Me(e);return ii(r)?r.host:r}function di(e){let r=dt(e);return Zt(r)?e.ownerDocument?e.ownerDocument.body:e.body:ve(r)&&Tt(r)?r:di(r)}function xr(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=di(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=ue(a);return i?r.concat(c,c.visualViewport||[],Tt(a)?a:[],c.frameElement&&o?xr(c.frameElement):[]):r.concat(a,xr(a,[],o))}function pi(e){let r=he(e),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=ve(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=Kt(o)!==i||Kt(n)!==c;return d&&(o=i,n=c),{width:o,height:n,$:d}}function hi(e){return Le(e)?e:e.contextElement}function _t(e){let r=hi(e);if(!ve(r))return Be(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=pi(r),c=(i?Kt(o.width):o.width)/n,d=(i?Kt(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var wc=Be(0);function yi(e){let r=ue(e);return!Sr()||!r.visualViewport?wc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Ac(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==ue(e)?!1:r}function Yt(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=hi(e),c=Be(1);r&&(n?Le(n)&&(c=_t(n)):c=_t(e));let d=Ac(i,o,n)?yi(i):Be(0),f=(a.left+d.x)/c.x,u=(a.top+d.y)/c.y,h=a.width/c.x,m=a.height/c.y;if(i){let g=ue(i),v=n&&Le(n)?ue(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let S=_t(x),L=x.getBoundingClientRect(),N=he(x),R=L.left+(x.clientLeft+parseFloat(N.paddingLeft))*S.x,T=L.top+(x.clientTop+parseFloat(N.paddingTop))*S.y;f*=S.x,u*=S.y,h*=S.x,m*=S.y,f+=R,u+=T,x=ue(x).frameElement}}return lt({width:h,height:m,x:f,y:u})}function Nc(e){let{rect:r,offsetParent:o,strategy:n}=e,a=ve(o),i=Me(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},d=Be(1),f=Be(0);if((a||!a&&n!=="fixed")&&((Ue(o)!=="body"||Tt(i))&&(c=qt(o)),ve(o))){let u=Yt(o);d=_t(o),f.x=u.x+o.clientLeft,f.y=u.y+o.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x,y:r.y*d.y-c.scrollTop*d.y+f.y}}function Rc(e){return Array.from(e.getClientRects())}function mi(e){return Yt(Me(e)).left+qt(e).scrollLeft}function Lc(e){let r=Me(e),o=qt(e),n=e.ownerDocument.body,a=je(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=je(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+mi(e),d=-o.scrollTop;return he(n).direction==="rtl"&&(c+=je(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:d}}function Ic(e,r){let o=ue(e),n=Me(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,d=0,f=0;if(a){i=a.width,c=a.height;let u=Sr();(!u||u&&r==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:i,height:c,x:d,y:f}}function Pc(e,r){let o=Yt(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=ve(e)?_t(e):Be(1),c=e.clientWidth*i.x,d=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:c,height:d,x:f,y:u}}function ui(e,r,o){let n;if(r==="viewport")n=Ic(e,o);else if(r==="document")n=Lc(Me(e));else if(Le(r))n=Pc(r,o);else{let a=yi(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return lt(n)}function gi(e,r){let o=dt(e);return o===r||!Le(o)||Zt(o)?!1:he(o).position==="fixed"||gi(o,r)}function Tc(e,r){let o=r.get(e);if(o)return o;let n=xr(e,[],!1).filter(d=>Le(d)&&Ue(d)!=="body"),a=null,i=he(e).position==="fixed",c=i?dt(e):e;for(;Le(c)&&!Zt(c);){let d=he(c),f=vr(c);!f&&d.position==="fixed"&&(a=null),(i?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Tt(c)&&!f&&gi(e,c))?n=n.filter(h=>h!==c):a=d,c=dt(c)}return r.set(e,n),n}function _c(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Tc(r,this._c):[].concat(o),n],d=c[0],f=c.reduce((u,h)=>{let m=ui(r,h,a);return u.top=je(m.top,u.top),u.right=Vt(m.right,u.right),u.bottom=Vt(m.bottom,u.bottom),u.left=je(m.left,u.left),u},ui(r,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function kc(e){return pi(e)}function Dc(e,r,o){let n=ve(r),a=Me(r),i=o==="fixed",c=Yt(e,!0,i,r),d={scrollLeft:0,scrollTop:0},f=Be(0);if(n||!n&&!i)if((Ue(r)!=="body"||Tt(a))&&(d=qt(r)),n){let u=Yt(r,!0,i,r);f.x=u.x+r.clientLeft,f.y=u.y+r.clientTop}else a&&(f.x=mi(a));return{x:c.left+d.scrollLeft-f.x,y:c.top+d.scrollTop-f.y,width:c.width,height:c.height}}function fi(e,r){return!ve(e)||he(e).position==="fixed"?null:r?r(e):e.offsetParent}function bi(e,r){let o=ue(e);if(!ve(e))return o;let n=fi(e,r);for(;n&&ci(n)&&he(n).position==="static";)n=fi(n,r);return n&&(Ue(n)==="html"||Ue(n)==="body"&&he(n).position==="static"&&!vr(n))?o:n||li(e)||o}var Bc=async function(e){let{reference:r,floating:o,strategy:n}=e,a=this.getOffsetParent||bi,i=this.getDimensions;return{reference:Dc(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Uc(e){return he(e).direction==="rtl"}var Or={convertOffsetParentRelativeRectToViewportRelativeRect:Nc,getDocumentElement:Me,getClippingRect:_c,getOffsetParent:bi,getElementRects:Bc,getClientRects:Rc,getDimensions:kc,getScale:_t,isElement:Le,isRTL:Uc};var xi=(e,r,o)=>{let n=new Map,a={platform:Or,...o},i={...a.platform,_c:n};return ai(e,r,{...a,platform:i})};function vi(e){return Mc(e)}function Io(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Mc(e){for(let r=e;r;r=Io(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=Io(e);r;r=Io(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Si(e,r,o){return xi(e,r,{platform:{...Or,getOffsetParent:n=>Or.getOffsetParent(n,vi)},middleware:[Lo({crossAxis:!0}),Ro({allowedPlacements:[o]})]})}var fe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},V=class extends Xt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Xt.Debouncer,this.revealDebouncer=new Xt.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Oi.html`
525
525
  <div part="container"
526
526
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
527
527
  @mouseenter=${this.onHover}
@@ -539,7 +539,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
539
539
  </div>
540
540
  </div>
541
541
  </div>
542
- `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}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",r=>{r.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(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,q.property)()],V.prototype,"text",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,q.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,q.property)()],V.prototype,"position",void 0);fe([(0,q.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,q.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,q.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,q.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,q.state)()],V.prototype,"visible",void 0);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(ne()),Ai=C(k()),Ni=C(wi());var Cr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.EXPAND="&#xe9a3",e.COMPRESS="&#xe9a2;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(Cr||(Cr={}));var w;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(w||(w={}));var oy=new Map([...["abw"].map(e=>[e,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(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var ny={[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 Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Er=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
542
+ `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}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",r=>{r.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(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,Y.property)()],V.prototype,"text",void 0);fe([(0,Y.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,Y.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,Y.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,Y.property)()],V.prototype,"position",void 0);fe([(0,Y.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,Y.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,Y.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,Y.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,Y.state)()],V.prototype,"visible",void 0);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(ne()),Ai=C(k()),Ni=C(wi());var Cr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.EXPAND="&#xe9a3",e.COMPRESS="&#xe9a2;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(Cr||(Cr={}));var w;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(w||(w={}));var oy=new Map([...["abw"].map(e=>[e,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(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var ny={[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 Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Er=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
543
543
  <i class="ft-icon ft-icon--${r}" part="icon icon-${r}">
544
544
  ${(0,Ni.unsafeHTML)(this.resolvedIcon)}
545
545
  <slot ?hidden=${o}></slot>
@@ -551,7 +551,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
551
551
  <div></div>
552
552
  <div></div>
553
553
  </div>
554
- `}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Lo=C(so()),Y=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Ze.toFtFormComponent)(Ze.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",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ke.html`
554
+ `}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Po=C(lo()),X=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Ze.toFtFormComponent)(Ze.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",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ke.html`
555
555
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
556
556
  <ft-typography part="label"
557
557
  variant=${this.typographyVariant}
@@ -565,14 +565,14 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
565
565
  <a href="${i}"
566
566
  target="${(r=this.target)!==null&&r!==void 0?r:"_self"}"
567
567
  part="button"
568
- class="${(0,Lo.classMap)(this.buttonClasses)}"
568
+ class="${(0,Po.classMap)(this.buttonClasses)}"
569
569
  aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
570
570
  ?disabled=${this.isDisabled()}>
571
571
  ${a}
572
572
  </a>
573
573
  `:Ke.html`
574
574
  <button part="button"
575
- class="${(0,Lo.classMap)(this.buttonClasses)}"
575
+ class="${(0,Po.classMap)(this.buttonClasses)}"
576
576
  aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
577
577
  ?disabled=${this.isDisabled()}>
578
578
  ${a}
@@ -588,7 +588,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
588
588
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
589
589
  `:Ke.html`
590
590
  <slot part="icon" name="icon"></slot>
591
- `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":V,"ft-typography":xe,"ft-icon":ge,"ft-loader":ft};oe([(0,Y.property)()],F.prototype,"href",void 0);oe([(0,Y.property)()],F.prototype,"target",void 0);oe([(0,Y.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,Y.property)()],F.prototype,"type",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,Y.property)()],F.prototype,"label",void 0);oe([(0,Y.property)()],F.prototype,"icon",void 0);oe([(0,Y.property)()],F.prototype,"iconVariant",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,Y.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,Y.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,Y.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,Y.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,Y.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends F{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"}};Se.styles=[Ti.safariEllipsisFix,Aa];wr([(0,Jt.property)({type:Boolean})],Se.prototype,"primary",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"outlined",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"dense",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"round",void 0);var er=C(ne());var Nr=C(k());var _i=C(G()),O=C(k());var ki=[_i.css`
591
+ `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":V,"ft-typography":xe,"ft-icon":ge,"ft-loader":ft};oe([(0,X.property)()],F.prototype,"href",void 0);oe([(0,X.property)()],F.prototype,"target",void 0);oe([(0,X.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,X.property)()],F.prototype,"type",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,X.property)()],F.prototype,"label",void 0);oe([(0,X.property)()],F.prototype,"icon",void 0);oe([(0,X.property)()],F.prototype,"iconVariant",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,X.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,X.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,X.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,X.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,X.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends F{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"}};Se.styles=[Ti.safariEllipsisFix,Aa];wr([(0,Jt.property)({type:Boolean})],Se.prototype,"primary",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"outlined",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"dense",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"round",void 0);var er=C(ne());var Nr=C(k());var _i=C(G()),O=C(k());var ki=[_i.css`
592
592
  :host {
593
593
  display: inline-block;
594
594
  max-width: 100%;
@@ -1054,15 +1054,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1054
1054
  .ftds--size-small.ft-button--icon-only {
1055
1055
  width: ${p.smallIconOnlyWidth};
1056
1056
  }
1057
- `,O.noTextSelect];var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Nr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Ie.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 bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Nr.safariEllipsisFix,ki];Ar([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,Io.customElement)("ft-button")(Se);(0,Io.customElement)("ftds-button")($e);var Qs=C(k()),Js=C(ne());var pn=C(k());var Di=C(k());var $c=C(Ui(),1);var Mi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Mi||(Mi={}));var $i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($i||($i={}));var Wi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wi||(Wi={}));var Fi;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Fi||(Fi={}));var Hi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hi||(Hi={}));var zi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(zi||(zi={}));var Gi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gi||(Gi={}));var ji;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ji||(ji={}));var Vi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Vi||(Vi={}));var Ki;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ki||(Ki={}));var Zi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Zi||(Zi={}));var Po;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Po||(Po={}));var qi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(qi||(qi={}));var Yi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yi||(Yi={}));var Xi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xi||(Xi={}));var Qi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qi||(Qi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ji||(Ji={}));var To;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(To||(To={}));var J;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(J||(J={}));var es;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(es||(es={}));var ts;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ts||(ts={}));var am={[J.PERSONAL_BOOK_SHARE_USER]:[J.PERSONAL_BOOK_USER],[J.HTML_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.PDF_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.KHUB_ADMIN]:[J.CONTENT_PUBLISHER],[J.ADMIN]:[J.KHUB_ADMIN,J.USERS_ADMIN,J.PORTAL_ADMIN],[J.DEVELOPER]:[J.BETA_USER,J.DEBUG_USER]};var Xs=C(k());var is=C(G()),pe=C(ne()),Oe=C(k());var rs=C(G());var os=rs.css`
1058
- `;var Ir=C(k()),Wc="ft-app-info",_o=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Fc={session:(e,r)=>{(0,Ir.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new _o(r.payload)),0))}},_=Ir.FtReduxStore.get({name:Wc,reducers:Fc,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 Ye=C(k());var ko=C(k());var pt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var We=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ko.CacheRegistry,this.cache=r?a.commonCache:new ko.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}clearCache(){this.cache.clearAll()}};var ns,Hc=Symbol("clearAfterUnitTest"),Pr=class extends We{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ns]=()=>{this.defaultMessages={},this.cache=new Ye.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ye.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ye.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ye.delay)(0).then(()=>o()).catch(()=>null)))}};ns=Hc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var ht=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Oe.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=()=>pt.get(),this.messageContexts=[],this.cache=new Oe.CacheRegistry,this.cleanSessionDebouncer=new Oe.Debouncer}render(){return is.html`
1057
+ `,O.noTextSelect];var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Nr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Ie.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 bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Nr.safariEllipsisFix,ki];Ar([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,To.customElement)("ft-button")(Se);(0,To.customElement)("ftds-button")($e);var Qs=C(k()),Js=C(ne());var Yr=C(k());var Di=C(k());var $c=C(Ui(),1);var Mi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Mi||(Mi={}));var $i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($i||($i={}));var Wi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wi||(Wi={}));var Fi;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Fi||(Fi={}));var Hi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hi||(Hi={}));var zi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(zi||(zi={}));var Gi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gi||(Gi={}));var ji;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ji||(ji={}));var Vi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Vi||(Vi={}));var Ki;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ki||(Ki={}));var Zi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Zi||(Zi={}));var _o;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_o||(_o={}));var qi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(qi||(qi={}));var Yi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yi||(Yi={}));var Xi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xi||(Xi={}));var Qi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qi||(Qi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ji||(Ji={}));var ko;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ko||(ko={}));var q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(q||(q={}));var es;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(es||(es={}));var ts;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ts||(ts={}));var am={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN],[q.DEVELOPER]:[q.BETA_USER,q.DEBUG_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};var Xs=C(k());var is=C(G()),pe=C(ne()),Oe=C(k());var rs=C(G());var os=rs.css`
1058
+ `;var Ir=C(k()),Wc="ft-app-info",Do=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Fc={session:(e,r)=>{(0,Ir.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new Do(r.payload)),0))}},_=Ir.FtReduxStore.get({name:Wc,reducers:Fc,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 Ye=C(k());var Bo=C(k());var pt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var We=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Bo.CacheRegistry,this.cache=r?a.commonCache:new Bo.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}clearCache(){this.cache.clearAll()}};var ns,Hc=Symbol("clearAfterUnitTest"),Pr=class extends We{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ns]=()=>{this.defaultMessages={},this.cache=new Ye.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ye.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ye.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ye.delay)(0).then(()=>o()).catch(()=>null)))}};ns=Hc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var ht=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Oe.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=()=>pt.get(),this.messageContexts=[],this.cache=new Oe.CacheRegistry,this.cleanSessionDebouncer=new Oe.Debouncer}render(){return is.html`
1059
1059
  <slot></slot>
1060
- `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ht.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=os;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Ll=C(ne());function zc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Tr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Tr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Tr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Tr(e,r){try{return zc(e,r)}catch{return!1}}function Do(e,r){return!Tr(e,r)}var Gc=C(ne(),1);var _r=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var ss=C(ne(),1);function cs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,ss.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:Do,...r??{}})}var kr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 ds=C(G(),1);var Dr=window,jc=Dr.ShadowRoot&&(Dr.ShadyCSS===void 0||Dr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mm=Symbol();var ls=(e,r)=>{jc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Dr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Br=class extends ds.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ls(n,r.elementStyles),n}};var Ur=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},hs,us=Symbol("constructorPrototype"),fs=Symbol("constructorName"),ys=Symbol("exportpartsDebouncer"),ps=Symbol("dynamicDependenciesLoaded"),Xe=class extends Br{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hs]=new kr(5),this[fs]=this.constructor.name,this[us]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fs]&&Object.setPrototypeOf(this,this[us])}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 r=this.constructor;r[ps]||(r[ps]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){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(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ys].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(r){var o,n,a,i,c,d;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};hs=ys;Ur([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Ur([cs([])],Xe.prototype,"exportpartsPrefixes",void 0);Ur([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Ur([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var ms,gs,bs,or=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),nr=class extends Xe{constructor(){super(...arguments),this[ms]=new Map,this[gs]=new Map,this[bs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[yt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[or].set(r,[]),rr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[or].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[or].get(r))===null||o===void 0||o.forEach(n=>n()),this[or].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ms=Qe,gs=yt,bs=or;nr.reduxProperties=new Map;nr.reduxReactiveProperties=new Set;nr.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(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)===Jc}(e)||Array.isArray(e)||!!e[ws]||!!(!((r=e.constructor)===null||r===void 0)&&r[ws])||Go(e)||jo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Go(e)?2:jo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Vc(e,r){return Ut(e)===2?e.get(r):e[r]}function As(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ns(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Go(e){return Xc&&e instanceof Map}function jo(e){return Qc&&e instanceof Set}function Je(e){return e.o||e.t}function Vo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Is(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Ko(e,r){return r===void 0&&(r=!1),Zo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Kc),Object.freeze(e),r&&mt(e,function(o,n){return Ko(n,!0)},!0)),e}function Kc(){be(2)}function Zo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=zo[e];return r||be(18,e),r}function Zc(e,r){zo[e]||(zo[e]=r)}function Wo(){return ir}function Bo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function Mr(e){Fo(e),e.p.forEach(qc),e.p=null}function Fo(e){e===ir&&(ir=e.l)}function xs(e){return ir={p:[],l:ir,h:e,m:!0,_:0}}function qc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Uo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&(Mr(r),be(4)),Ce(e)&&(e=$r(r,e),r.l||Wr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=$r(r,o,[]),Mr(r),r.u&&r.v(r.u,r.s),e!==Ls?e:void 0}function $r(e,r,o){if(Zo(r))return r;var n=r[H];if(!n)return mt(r,function(d,f){return vs(e,n,r,d,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Wr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Vo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(d,f){return vs(e,n,a,d,f,o,c)}),Wr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function vs(e,r,o,n,a,i,c){if(Fe(a)){var d=$r(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(As(o,n,d),!Fe(d))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!Zo(a)){if(!e.h.D&&e._<1)return;$r(e,a),r&&r.A.l||Wr(e,a)}}function Wr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ko(r,o)}function Mo(e,r){var o=e[H];return(o?Je(o):e)[r]}function Ss(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function $o(e){e.o||(e.o=Vo(e.t))}function Ho(e,r,o){var n=Go(r)?Pe("MapSet").F(r,o):jo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:Wo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=d,u=sr;c&&(f=[d],u=ar);var h=Proxy.revocable(f,u),m=h.revoke,g=h.proxy;return d.k=g,d.j=m,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Wo()).p.push(n),n}function Yc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Os(o,i),a.I=!1}else n=Os(o,i);return mt(n,function(c,d){a&&Vc(a.t,c)===d||As(n,c,r(d))}),i===3?new Set(n):n}(e)}function Os(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Vo(e)}function Rs(){function e(c,d){var f=i[c];return f?f.enumerable=d:i[c]=f={configurable:!0,enumerable:d,get:function(){var u=this[H];return sr.get(u,c)},set:function(u){var h=this[H];sr.set(h,c,u)}},f}function r(c){for(var d=c.length-1;d>=0;d--){var f=c[d][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var d=c.t,f=c.k,u=Bt(f),h=u.length-1;h>=0;h--){var m=u[h];if(m!==H){var g=d[m];if(g===void 0&&!Dt(d,m))return!0;var v=f[m],x=v&&v[H];if(x?x.t!==g:!Ns(v,g))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(d,d.length-1);if(f&&!f.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};Zc("ES5",{J:function(c,d){var f=Array.isArray(c),u=function(m,g){if(m){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Is(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),h={i:f?5:4,A:d?d.A:Wo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(c,d,f){f?Fe(d)&&d[H].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var m=h[H];if(m){var g=m.t,v=m.k,x=m.R,S=m.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(m)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(m))});else if(S===5){if(n(m)&&(et(m),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Cs,ir,qo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xc=typeof Map<"u",Qc=typeof Set<"u",Es=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ls=qo?Symbol.for("immer-nothing"):((Cs={})["immer-nothing"]=!0,Cs),ws=qo?Symbol.for("immer-draftable"):"__$immer_draftable",H=qo?Symbol.for("immer-state"):"__$immer_state";var Jc=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Is=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},zo={},sr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,f=Ss(i,c);return f?"value"in f?f.value:(d=f.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===Mo(e.t,r)?($o(e),e.o[r]=Ho(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Ss(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Mo(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ns(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;$o(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Mo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,$o(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ar={};mt(sr,function(e,r){ar[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ar.deleteProperty=function(e,r){return ar.set.call(this,e,r,void 0)},ar.set=function(e,r,o){return sr.set.call(this,e[0],r,o,e[0])};var el=function(){function e(o){var n=this;this.O=Es,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=d);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var h=xs(n),m=Ho(n,a,void 0),g=!0;try{u=i(m),g=!1}finally{g?Mr(h):Fo(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Bo(h,c),Uo(S,h)},function(S){throw Mr(h),S}):(Bo(h,c),Uo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ls&&(u=void 0),n.D&&Ko(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(m))})};var c,d,f=n.produce(a,i,function(u,h){c=u,d=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,d]}):[f,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=Yc(o));var n=xs(this),a=Ho(this,o,void 0);return a[H].C=!0,Fo(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Bo(i,n),Uo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Es&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ye=new el,tl=ye.produce,Ym=ye.produceWithPatches.bind(ye),Xm=ye.setAutoFreeze.bind(ye),Qm=ye.setUseProxies.bind(ye),Jm=ye.applyPatches.bind(ye),eg=ye.createDraft.bind(ye),tg=ye.finishDraft.bind(ye),Fr=tl;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Yo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Xo(e){var r=Yo(e,"string");return tt(r)==="symbol"?r:String(r)}function Qo(e,r,o){return r=Xo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ps(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Hr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ps(Object(o),!0).forEach(function(n){Qo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ps(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},zr={INIT:"@@redux/INIT"+Jo(),REPLACE:"@@redux/REPLACE"+Jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jo()}};function rl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function en(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(en)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,f=!1;function u(){d===c&&(d=c.slice())}function h(){if(f)throw new Error(ie(3));return i}function m(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=d.indexOf(S);d.splice(R,1),c=null}}}function g(S){if(!rl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=d,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:zr.REPLACE})}function x(){var S,L=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(h())}T();var B=L(T);return{unsubscribe:B}}},S[Ts]=function(){return this},S}return g({type:zr.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:v},n[Ts]=x,n}function ol(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function _s(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{ol(o)}catch(f){d=f}return function(u,h){if(u===void 0&&(u={}),d)throw d;if(0)var m;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,h);if(typeof R>"u"){var T=h&&h.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ks(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(f){return f(c)});return i=Mt.apply(void 0,d)(a.dispatch),Hr(Hr({},a),{},{dispatch:i})}}}function Ds(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Bs=Ds();Bs.withExtraArgument=Ds;var tn=Bs;var Fs=function(){var e=function(r,o){return e=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])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),nl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},al=Object.defineProperty,il=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,Ms=function(e,r,o){return r in e?al(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))cl.call(r,o)&&Ms(e,o,r[o]);if(Us)for(var n=0,a=Us(r);n<a.length;n++){var o=a[n];ll.call(r,o)&&Ms(e,o,r[o])}return e},rn=function(e,r){return il(e,sl(r))},dl=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{d(o.next(f))}catch(u){a(u)}},c=function(f){try{d(o.throw(f))}catch(u){a(u)}},d=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};d((o=o.apply(e,r)).next())})};var ul=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function fl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var pl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),hl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function an(e){return Ce(e)?Fr(e,function(){}):e}function yl(e){return typeof e=="boolean"}function ml(){return function(r){return gl(r)}}function gl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new pl;if(o&&(yl(o)?d.push(tn):d.push(tn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return d}var on=!0;function Hs(e){var r=ml(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,f=d===void 0?!0:d,u=o.preloadedState,h=u===void 0?void 0:u,m=o.enhancers,g=m===void 0?void 0:m,v;if(typeof a=="function")v=a;else if(fl(a))v=_s(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 x=c;if(typeof x=="function"&&(x=x(r),!on&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!on&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=ks.apply(void 0,x),L=Mt;f&&(L=ul(rt({trace:!on},typeof f=="object"&&f)));var N=new hl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return en(v,h,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function zs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function bl(e){return typeof e=="function"}function xl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?zs(r):[r,o,n],i=a[0],c=a[1],d=a[2],f;if(bl(e))f=function(){return an(e())};else{var u=an(e);f=function(){return u}}function h(m,g){m===void 0&&(m=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Fr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},m)}return h.getInitialState=f,h}function vl(e,r){return e+"/"+r}function Gs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:an(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(h){var m=n[h],g=vl(r,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,i[h]=v,c[g]=v,d[h]=x?ot(g,x):ot(g)});function f(){var h=typeof e.extraReducers=="function"?zs(e.extraReducers):[e.extraReducers],m=h[0],g=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return xl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,m){return u||(u=f()),u(h,m)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var Sl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ol=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Sl[Math.random()*64|0];return r},Cl=["name","message","stack","code"],nn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),$s=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),El=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Cl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Cg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(h,m,g,v){return{payload:h,meta:rn(rt({},v||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(h,m,g){return{payload:void 0,meta:rn(rt({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(h,m,g,v,x){return{payload:v,error:(n&&n.serializeError||El)(h||"Rejected"),meta:rn(rt({},x||{}),{arg:g,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(m,g,v){var x=n?.idGenerator?n.idGenerator(h):Ol(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return dl(this,null,function(){var B,U,le,we,se,Ae,ee;return nl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,h,{getState:g,extra:v}),Al(we)?[4,we]:[3,2];case 1:we=y.sent(),y.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(h,{dispatch:m,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new nn(b,P)},fulfillWithValue:function(b,P){return new $s(b,P)}})).then(function(b){if(b instanceof nn)throw b;return b instanceof $s?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return le=y.sent(),[3,5];case 4:return Ae=y.sent(),le=Ae instanceof nn?c(null,x,h,Ae.payload,Ae.meta):c(Ae,x,h),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||m(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:h,unwrap:function(){return T.then(wl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function wl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Al(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var js="listener",Vs="completed",Ks="cancelled",Eg="task-"+Ks,wg="task-"+Vs,Ag=js+"-"+Ks,Ng=js+"-"+Vs;var sn="listenerMiddleware";var Rg=ot(sn+"/add"),Lg=ot(sn+"/removeAll"),Ig=ot(sn+"/remove");var Ws,Pg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ws||(Ws=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Nl=function(e){return function(r){setTimeout(r,e)}},Tg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nl(10);Rs();function Rl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??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 Gr=class extends Rl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Zs=class e extends Gr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=Gs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Hs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,d)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new _r,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,d=n[c];return d?(...f)=>{let u=d(...f);return this.reduxStore.dispatch(u),u}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zr=C(k());var jr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Il="ft-user-assets",Kr=Zr.FtReduxStore.get({name:Il,initialState:{savedSearches:void 0,bookmarks:void 0}}),cn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new jr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,Zr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Kr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Kr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Kr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Kr.actions.bookmarks(o)}}},db=new cn;var ln=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new ln;var qs=C(k()),dn=class{highlightHtml(r,o,n){(0,qs.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new dn;var Ys=C(k());var un=class{isDate(r){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(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Ys.DateFormatter.format(r,(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 un;var Pl=C(k());(0,Xs.customElement)("ft-app-context")(K);var fn=class e extends Event{constructor(){super(e.eventName)}};fn.eventName="search-context-clear-all-filters";var Tl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function _l(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,Tl([(0,Js.state)()],o.prototype,"stateManager",void 0),o}var qr=class extends _l(Qs.FtLitElementRedux){};var nc=C(k());var eo=C(G()),to=C(ne()),ro=C(k());var ec=C(G());var tc=ec.css`
1061
- `;var Qr=C(k());var oc=C(ne()),kl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=Symbol("i18nAttributes"),gn=Symbol("i18nListAttributes"),Yr=Symbol("i18nProperties"),cr=Symbol("i18nUnsubs");function Jr(e){var r;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?as:ht}i18n(a,i,...c){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,d;(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h&&(this[u]=this.getI18nAttributeMessage(h,f,a))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);this[u]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(d=this[Yr])===null||d===void 0||d.forEach((f,u)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var d;let f=!c||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,d;super.update(a),(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h?.context&&h.key&&(a.has(u)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,u),this[u]=this.getI18nAttributeMessage(h,f))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);(a.has(u)||f.argsProvider!=null)&&(this[u]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,u),this.getI18nAttributeMessage(m,f))))}),(d=this[Yr])===null||d===void 0||d.forEach((f,u)=>{f.argsProvider!=null&&(this[u]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,d,f,u;super.connectedCallback(),new Set([...(i=(a=this[Yr])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(d=(c=this[mn])===null||c===void 0?void 0:c.keys())!==null&&d!==void 0?d:[]].map(h=>this.getI18nAttributeValue(h)),...[...(u=(f=this[gn])===null||f===void 0?void 0:f.keys())!==null&&u!==void 0?u:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[cr].has(a)||this[cr].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[cr].forEach(a=>a()),this[cr].clear()}}return r=cr,kl([(0,oc.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var rc=class extends Jr(Qr.FtLitElement){},Xr=class extends Jr(Qr.FtLitElementRedux){};var lr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ee=class extends Xr{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":eo.nothing:eo.html`
1060
+ `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ht.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=os;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Ll=C(ne());function zc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Tr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Tr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Tr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Tr(e,r){try{return zc(e,r)}catch{return!1}}function _r(e,r){return!Tr(e,r)}var Gc=C(ne(),1);var kr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var ss=C(ne(),1);function cs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,ss.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:_r,...r??{}})}var Dr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 ds=C(G(),1);var Br=window,jc=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mm=Symbol();var ls=(e,r)=>{jc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Br.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Ur=class extends ds.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ls(n,r.elementStyles),n}};var Mr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},hs,us=Symbol("constructorPrototype"),fs=Symbol("constructorName"),ys=Symbol("exportpartsDebouncer"),ps=Symbol("dynamicDependenciesLoaded"),Xe=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hs]=new Dr(5),this[fs]=this.constructor.name,this[us]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fs]&&Object.setPrototypeOf(this,this[us])}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 r=this.constructor;r[ps]||(r[ps]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){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(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ys].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(r){var o,n,a,i,c,d;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};hs=ys;Mr([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Mr([cs([])],Xe.prototype,"exportpartsPrefixes",void 0);Mr([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Mr([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var ms,gs,bs,or=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),nr=class extends Xe{constructor(){super(...arguments),this[ms]=new Map,this[gs]=new Map,this[bs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[yt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[or].set(r,[]),rr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[or].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[or].get(r))===null||o===void 0||o.forEach(n=>n()),this[or].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ms=Qe,gs=yt,bs=or;nr.reduxProperties=new Map;nr.reduxReactiveProperties=new Set;nr.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(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)===Jc}(e)||Array.isArray(e)||!!e[ws]||!!(!((r=e.constructor)===null||r===void 0)&&r[ws])||jo(e)||Vo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:jo(e)?2:Vo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Vc(e,r){return Ut(e)===2?e.get(r):e[r]}function As(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ns(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function jo(e){return Xc&&e instanceof Map}function Vo(e){return Qc&&e instanceof Set}function Je(e){return e.o||e.t}function Ko(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Is(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Zo(e,r){return r===void 0&&(r=!1),qo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Kc),Object.freeze(e),r&&mt(e,function(o,n){return Zo(n,!0)},!0)),e}function Kc(){be(2)}function qo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=Go[e];return r||be(18,e),r}function Zc(e,r){Go[e]||(Go[e]=r)}function Fo(){return ir}function Uo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function $r(e){Ho(e),e.p.forEach(qc),e.p=null}function Ho(e){e===ir&&(ir=e.l)}function xs(e){return ir={p:[],l:ir,h:e,m:!0,_:0}}function qc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Mo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&($r(r),be(4)),Ce(e)&&(e=Wr(r,e),r.l||Fr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=Wr(r,o,[]),$r(r),r.u&&r.v(r.u,r.s),e!==Ls?e:void 0}function Wr(e,r,o){if(qo(r))return r;var n=r[H];if(!n)return mt(r,function(d,f){return vs(e,n,r,d,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Fr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ko(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(d,f){return vs(e,n,a,d,f,o,c)}),Fr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function vs(e,r,o,n,a,i,c){if(Fe(a)){var d=Wr(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(As(o,n,d),!Fe(d))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!qo(a)){if(!e.h.D&&e._<1)return;Wr(e,a),r&&r.A.l||Fr(e,a)}}function Fr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Zo(r,o)}function $o(e,r){var o=e[H];return(o?Je(o):e)[r]}function Ss(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function Wo(e){e.o||(e.o=Ko(e.t))}function zo(e,r,o){var n=jo(r)?Pe("MapSet").F(r,o):Vo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:Fo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=d,u=sr;c&&(f=[d],u=ar);var h=Proxy.revocable(f,u),m=h.revoke,g=h.proxy;return d.k=g,d.j=m,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Fo()).p.push(n),n}function Yc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Os(o,i),a.I=!1}else n=Os(o,i);return mt(n,function(c,d){a&&Vc(a.t,c)===d||As(n,c,r(d))}),i===3?new Set(n):n}(e)}function Os(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Ko(e)}function Rs(){function e(c,d){var f=i[c];return f?f.enumerable=d:i[c]=f={configurable:!0,enumerable:d,get:function(){var u=this[H];return sr.get(u,c)},set:function(u){var h=this[H];sr.set(h,c,u)}},f}function r(c){for(var d=c.length-1;d>=0;d--){var f=c[d][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var d=c.t,f=c.k,u=Bt(f),h=u.length-1;h>=0;h--){var m=u[h];if(m!==H){var g=d[m];if(g===void 0&&!Dt(d,m))return!0;var v=f[m],x=v&&v[H];if(x?x.t!==g:!Ns(v,g))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(d,d.length-1);if(f&&!f.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};Zc("ES5",{J:function(c,d){var f=Array.isArray(c),u=function(m,g){if(m){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Is(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),h={i:f?5:4,A:d?d.A:Fo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(c,d,f){f?Fe(d)&&d[H].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var m=h[H];if(m){var g=m.t,v=m.k,x=m.R,S=m.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(m)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(m))});else if(S===5){if(n(m)&&(et(m),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Cs,ir,Yo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xc=typeof Map<"u",Qc=typeof Set<"u",Es=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ls=Yo?Symbol.for("immer-nothing"):((Cs={})["immer-nothing"]=!0,Cs),ws=Yo?Symbol.for("immer-draftable"):"__$immer_draftable",H=Yo?Symbol.for("immer-state"):"__$immer_state";var Jc=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Is=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Go={},sr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,f=Ss(i,c);return f?"value"in f?f.value:(d=f.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===$o(e.t,r)?(Wo(e),e.o[r]=zo(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Ss(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=$o(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ns(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;Wo(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return $o(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Wo(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ar={};mt(sr,function(e,r){ar[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ar.deleteProperty=function(e,r){return ar.set.call(this,e,r,void 0)},ar.set=function(e,r,o){return sr.set.call(this,e[0],r,o,e[0])};var el=function(){function e(o){var n=this;this.O=Es,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=d);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var h=xs(n),m=zo(n,a,void 0),g=!0;try{u=i(m),g=!1}finally{g?$r(h):Ho(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Uo(h,c),Mo(S,h)},function(S){throw $r(h),S}):(Uo(h,c),Mo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ls&&(u=void 0),n.D&&Zo(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(m))})};var c,d,f=n.produce(a,i,function(u,h){c=u,d=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,d]}):[f,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=Yc(o));var n=xs(this),a=zo(this,o,void 0);return a[H].C=!0,Ho(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Uo(i,n),Mo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Es&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ye=new el,tl=ye.produce,Ym=ye.produceWithPatches.bind(ye),Xm=ye.setAutoFreeze.bind(ye),Qm=ye.setUseProxies.bind(ye),Jm=ye.applyPatches.bind(ye),eg=ye.createDraft.bind(ye),tg=ye.finishDraft.bind(ye),Hr=tl;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Xo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Qo(e){var r=Xo(e,"string");return tt(r)==="symbol"?r:String(r)}function Jo(e,r,o){return r=Qo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ps(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function zr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ps(Object(o),!0).forEach(function(n){Jo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ps(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),en=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+en(),REPLACE:"@@redux/REPLACE"+en(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+en()}};function rl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function tn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(tn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,f=!1;function u(){d===c&&(d=c.slice())}function h(){if(f)throw new Error(ie(3));return i}function m(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=d.indexOf(S);d.splice(R,1),c=null}}}function g(S){if(!rl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=d,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:Gr.REPLACE})}function x(){var S,L=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(h())}T();var B=L(T);return{unsubscribe:B}}},S[Ts]=function(){return this},S}return g({type:Gr.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:v},n[Ts]=x,n}function ol(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function _s(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{ol(o)}catch(f){d=f}return function(u,h){if(u===void 0&&(u={}),d)throw d;if(0)var m;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,h);if(typeof R>"u"){var T=h&&h.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ks(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(f){return f(c)});return i=Mt.apply(void 0,d)(a.dispatch),zr(zr({},a),{},{dispatch:i})}}}function Ds(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Bs=Ds();Bs.withExtraArgument=Ds;var rn=Bs;var Fs=function(){var e=function(r,o){return e=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])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),nl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},al=Object.defineProperty,il=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,Ms=function(e,r,o){return r in e?al(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))cl.call(r,o)&&Ms(e,o,r[o]);if(Us)for(var n=0,a=Us(r);n<a.length;n++){var o=a[n];ll.call(r,o)&&Ms(e,o,r[o])}return e},on=function(e,r){return il(e,sl(r))},dl=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{d(o.next(f))}catch(u){a(u)}},c=function(f){try{d(o.throw(f))}catch(u){a(u)}},d=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};d((o=o.apply(e,r)).next())})};var ul=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function fl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var pl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),hl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function sn(e){return Ce(e)?Hr(e,function(){}):e}function yl(e){return typeof e=="boolean"}function ml(){return function(r){return gl(r)}}function gl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new pl;if(o&&(yl(o)?d.push(rn):d.push(rn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return d}var nn=!0;function Hs(e){var r=ml(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,f=d===void 0?!0:d,u=o.preloadedState,h=u===void 0?void 0:u,m=o.enhancers,g=m===void 0?void 0:m,v;if(typeof a=="function")v=a;else if(fl(a))v=_s(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 x=c;if(typeof x=="function"&&(x=x(r),!nn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!nn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=ks.apply(void 0,x),L=Mt;f&&(L=ul(rt({trace:!nn},typeof f=="object"&&f)));var N=new hl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return tn(v,h,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function zs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function bl(e){return typeof e=="function"}function xl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?zs(r):[r,o,n],i=a[0],c=a[1],d=a[2],f;if(bl(e))f=function(){return sn(e())};else{var u=sn(e);f=function(){return u}}function h(m,g){m===void 0&&(m=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Hr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},m)}return h.getInitialState=f,h}function vl(e,r){return e+"/"+r}function Gs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:sn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(h){var m=n[h],g=vl(r,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,i[h]=v,c[g]=v,d[h]=x?ot(g,x):ot(g)});function f(){var h=typeof e.extraReducers=="function"?zs(e.extraReducers):[e.extraReducers],m=h[0],g=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return xl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,m){return u||(u=f()),u(h,m)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var Sl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ol=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Sl[Math.random()*64|0];return r},Cl=["name","message","stack","code"],an=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),$s=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),El=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Cl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Cg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(h,m,g,v){return{payload:h,meta:on(rt({},v||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(h,m,g){return{payload:void 0,meta:on(rt({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(h,m,g,v,x){return{payload:v,error:(n&&n.serializeError||El)(h||"Rejected"),meta:on(rt({},x||{}),{arg:g,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(m,g,v){var x=n?.idGenerator?n.idGenerator(h):Ol(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return dl(this,null,function(){var B,U,le,we,se,Ae,ee;return nl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,h,{getState:g,extra:v}),Al(we)?[4,we]:[3,2];case 1:we=y.sent(),y.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(h,{dispatch:m,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new an(b,P)},fulfillWithValue:function(b,P){return new $s(b,P)}})).then(function(b){if(b instanceof an)throw b;return b instanceof $s?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return le=y.sent(),[3,5];case 4:return Ae=y.sent(),le=Ae instanceof an?c(null,x,h,Ae.payload,Ae.meta):c(Ae,x,h),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||m(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:h,unwrap:function(){return T.then(wl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function wl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Al(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var js="listener",Vs="completed",Ks="cancelled",Eg="task-"+Ks,wg="task-"+Vs,Ag=js+"-"+Ks,Ng=js+"-"+Vs;var cn="listenerMiddleware";var Rg=ot(cn+"/add"),Lg=ot(cn+"/removeAll"),Ig=ot(cn+"/remove");var Ws,Pg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ws||(Ws=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Nl=function(e){return function(r){setTimeout(r,e)}},Tg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nl(10);Rs();function Rl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??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 jr=class extends Rl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Zs=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=Gs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Hs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,d)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,d=n[c];return d?(...f)=>{let u=d(...f);return this.reduxStore.dispatch(u),u}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=C(k());var Vr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Kr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Il="ft-user-assets",Zr=qr.FtReduxStore.get({name:Il,initialState:{savedSearches:void 0,bookmarks:void 0}}),ln=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kr,this.savedSearchesService=new Vr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,qr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Zr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zr.actions.bookmarks(o)}}},pb=new ln;var dn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new dn;var qs=C(k()),un=class{highlightHtml(r,o,n){(0,qs.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new un;var Ys=C(k());var fn=class{isDate(r){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(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Ys.DateFormatter.format(r,(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 fn;var Pl=C(k());(0,Xs.customElement)("ft-app-context")(K);var pn=class e extends Event{constructor(){super(e.eventName)}};pn.eventName="search-context-clear-all-filters";var Tl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function _l(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,Tl([(0,Js.state)()],o.prototype,"stateManager",void 0),o}var Xr=class extends _l(Qs.FtLitElementRedux){};var nc=C(k());var ro=C(G()),oo=C(ne()),no=C(k());var ec=C(G());var tc=ec.css`
1061
+ `;var eo=C(k());var oc=C(ne()),kl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=Symbol("i18nAttributes"),gn=Symbol("i18nListAttributes"),Qr=Symbol("i18nProperties"),cr=Symbol("i18nUnsubs");function to(e){var r;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?as:ht}i18n(a,i,...c){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,d;(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h&&(this[u]=this.getI18nAttributeMessage(h,f,a))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);this[u]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(d=this[Qr])===null||d===void 0||d.forEach((f,u)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var d;let f=!c||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,d;super.update(a),(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h?.context&&h.key&&(a.has(u)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,u),this[u]=this.getI18nAttributeMessage(h,f))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);(a.has(u)||f.argsProvider!=null)&&(this[u]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,u),this.getI18nAttributeMessage(m,f))))}),(d=this[Qr])===null||d===void 0||d.forEach((f,u)=>{f.argsProvider!=null&&(this[u]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,d,f,u;super.connectedCallback(),new Set([...(i=(a=this[Qr])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(d=(c=this[mn])===null||c===void 0?void 0:c.keys())!==null&&d!==void 0?d:[]].map(h=>this.getI18nAttributeValue(h)),...[...(u=(f=this[gn])===null||f===void 0?void 0:f.keys())!==null&&u!==void 0?u:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[cr].has(a)||this[cr].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[cr].forEach(a=>a()),this[cr].clear()}}return r=cr,kl([(0,oc.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var rc=class extends to(eo.FtLitElement){},Jr=class extends to(eo.FtLitElementRedux){};var lr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ee=class extends Jr{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ro.nothing:ro.html`
1062
1062
  <span class="ft-i18n">
1063
1063
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1064
1064
  </span>
1065
- `}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ee.elementDefinitions={};Ee.styles=tc;lr([(0,ro.redux)()],Ee.prototype,"editorMode",void 0);lr([(0,to.property)()],Ee.prototype,"context",void 0);lr([(0,to.property)()],Ee.prototype,"key",void 0);lr([(0,ro.jsonProperty)([])],Ee.prototype,"args",void 0);lr([(0,to.property)()],Ee.prototype,"defaultMessage",void 0);var oo=class e{static build(r){return new e(r)}static fromGwt(r){return new e(r)}constructor(r){this.name=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>ht.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>ht.resolveRawMessage(this.name,n)})}};(0,nc.customElement)("ft-i18n")(Ee);var bn=oo.fromGwt("designedActionBlockAriaLabels");var ac=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},nt=class extends Jr(qr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(bn)}render(){return this.isLastPage?no.nothing:no.html`
1065
+ `}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ee.elementDefinitions={};Ee.styles=tc;lr([(0,no.redux)()],Ee.prototype,"editorMode",void 0);lr([(0,oo.property)()],Ee.prototype,"context",void 0);lr([(0,oo.property)()],Ee.prototype,"key",void 0);lr([(0,no.jsonProperty)([])],Ee.prototype,"args",void 0);lr([(0,oo.property)()],Ee.prototype,"defaultMessage",void 0);var ao=class e{static build(r){return new e(r)}static fromGwt(r){return new e(r)}constructor(r){this.name=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>ht.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>ht.resolveRawMessage(this.name,n)})}};(0,nc.customElement)("ft-i18n")(Ee);var bn=ao.fromGwt("designedActionBlockAriaLabels");var ac=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},nt=class extends to(Xr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(bn)}render(){return this.isLastPage?io.nothing:io.html`
1066
1066
  <ft-button @click="${this.loadMore}">
1067
1067
  ${bn.messages.searchPageLoadMore()}
1068
1068
  </ft-button>