@fluid-topics/ft-search-input 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{var wc=Object.create;var _n=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Nc=Object.getOwnPropertyNames;var Rc=Object.getPrototypeOf,Lc=Object.prototype.hasOwnProperty;var ft=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Ic=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Nc(r))!Lc.call(e,a)&&a!==o&&_n(e,a,{get:()=>r[a],enumerable:!(n=Ac(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?wc(Rc(e)):{},Ic(r||!e||!e.__esModule?_n(o,"default",{value:e,enumerable:!0}):o,e));var _=ft((ed,Dn)=>{Dn.exports=ftGlobals.wcUtils});var W=ft((td,Bn)=>{Bn.exports=ftGlobals.lit});var J=ft((rd,$n)=>{$n.exports=ftGlobals.litDecorators});var Ar=ft((dh,$a)=>{$a.exports=ftGlobals.litClassMap});var Di=ft((py,_i)=>{_i.exports=ftGlobals.litUnsafeHTML});var Yi=ft((ot,qi)=>{var Fr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Wr=function(){function e(){this.fetch=!1,this.DOMException=Fr.DOMException}return e.prototype=Fr,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]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var 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 g(y){this.map={},y instanceof g?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)}g.prototype.append=function(y,b){y=p(y),b=u(b);var P=this.map[y];this.map[y]=P?P+", "+b:b},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,b){this.map[p(y)]=u(b)},g.prototype.forEach=function(y,b){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(b,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(b,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(b,P){y.push([P,b])}),h(y)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function m(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),F=/charset=([A-Za-z0-9_-]+)/.exec(y.type),j=F?F[1]:"utf-8";return b.readAsText(y,j),P}function L(y){for(var b=new Uint8Array(y),P=new Array(b.length),F=0;F<b.length;F++)P[F]=String.fromCharCode(b[F]);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)||l(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=m(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=m(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=m(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(pe)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function $(y,b){if(!(this instanceof $))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 $){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new g(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 U=new AbortController;return U.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 F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var j=/\?/;this.url+=(j.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function pe(y){var b=new FormData;return y.trim().split("&").forEach(function(P){if(P){var F=P.split("="),j=F.shift().replace(/\+/g," "),U=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(j),decodeURIComponent(U))}}),b}function Le(y){var b=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(F){return F.indexOf(`
2
- `)===0?F.substr(1,F.length):F}).forEach(function(F){var j=F.split(":"),U=j.shift().trim();if(U){var Sr=j.join(":").trim();try{b.append(U,Sr)}catch(xo){console.warn("Response "+xo.message)}}}),b}R.call($.prototype);function le(y,b){if(!(this instanceof le))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 g(b.headers),this.url=b.url||"",this._initBody(y)}R.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},le.error=function(){var y=new le(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ie=[301,302,303,307,308];le.redirect=function(y,b){if(Ie.indexOf(b)===-1)throw new RangeError("Invalid status code");return new le(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 F=Error(b);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function oe(y,b){return new Promise(function(P,F){var j=new $(y,b);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Sr(){U.abort()}U.onload=function(){var ne={statusText:U.statusText,headers:Le(U.getAllResponseHeaders()||"")};j.url.indexOf("file://")===0&&(U.status<200||U.status>599)?ne.status=200:ne.status=U.status,ne.url="responseURL"in U?U.responseURL:ne.headers.get("X-Request-URL");var pt="response"in U?U.response:U.responseText;setTimeout(function(){P(new le(pt,ne))},0)},U.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){F(new o.DOMException("Aborted","AbortError"))},0)};function xo(ne){try{return ne===""&&n.location.href?n.location.href:ne}catch{return ne}}if(U.open(j.method,xo(j.url),!0),j.credentials==="include"?U.withCredentials=!0:j.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof g||n.Headers&&b.headers instanceof n.Headers)){var kn=[];Object.getOwnPropertyNames(b.headers).forEach(function(ne){kn.push(p(ne)),U.setRequestHeader(ne,u(b.headers[ne]))}),j.headers.forEach(function(ne,pt){kn.indexOf(pt)===-1&&U.setRequestHeader(pt,ne)})}else j.headers.forEach(function(ne,pt){U.setRequestHeader(pt,ne)});j.signal&&(j.signal.addEventListener("abort",Sr),U.onreadystatechange=function(){U.readyState===4&&j.signal.removeEventListener("abort",Sr)}),U.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return oe.polyfill=!0,n.fetch||(n.fetch=oe,n.Headers=g,n.Request=$,n.Response=le),o.Headers=g,o.Request=$,o.Response=le,o.fetch=oe,o}({})})(Wr);Wr.fetch.ponyfill=!0;delete Wr.fetch.polyfill;var Ft=Fr.fetch?Fr:Wr;ot=Ft.fetch;ot.default=Ft.fetch;ot.fetch=Ft.fetch;ot.Headers=Ft.Headers;ot.Request=Ft.Request;ot.Response=Ft.Response;qi.exports=ot});var Sc=ft((Px,vc)=>{vc.exports=ftGlobals.litRepeat});var Ec=C(_());var Tn=C(W()),qt=C(_());var Ki=C(W()),M=C(_());var zo=C(_());var lr=C(J()),zi=C(_());var Da=C(W()),D=C(_());var zn=C(W()),Y=C(_()),Un=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorContent),E={color:Un,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Un),opacityContentOnSurfacePressed:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Y.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Mn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorPrimary),Fn={color:Mn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mn)},Wn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorSecondary),Hn={color:Wn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wn)},Gn=zn.css`
1
+ "use strict";(()=>{var wc=Object.create;var _n=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Nc=Object.getOwnPropertyNames;var Rc=Object.getPrototypeOf,Lc=Object.prototype.hasOwnProperty;var ft=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Ic=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Nc(r))!Lc.call(e,a)&&a!==o&&_n(e,a,{get:()=>r[a],enumerable:!(n=Ac(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?wc(Rc(e)):{},Ic(r||!e||!e.__esModule?_n(o,"default",{value:e,enumerable:!0}):o,e));var _=ft((ed,Dn)=>{Dn.exports=ftGlobals.wcUtils});var W=ft((td,Bn)=>{Bn.exports=ftGlobals.lit});var ee=ft((rd,$n)=>{$n.exports=ftGlobals.litDecorators});var Ar=ft((dh,$a)=>{$a.exports=ftGlobals.litClassMap});var Di=ft((py,_i)=>{_i.exports=ftGlobals.litUnsafeHTML});var Yi=ft((ot,qi)=>{var Fr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Wr=function(){function e(){this.fetch=!1,this.DOMException=Fr.DOMException}return e.prototype=Fr,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]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var 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 g(y){this.map={},y instanceof g?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)}g.prototype.append=function(y,b){y=p(y),b=u(b);var P=this.map[y];this.map[y]=P?P+", "+b:b},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,b){this.map[p(y)]=u(b)},g.prototype.forEach=function(y,b){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(b,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(b,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(b,P){y.push([P,b])}),h(y)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function m(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),F=/charset=([A-Za-z0-9_-]+)/.exec(y.type),K=F?F[1]:"utf-8";return b.readAsText(y,K),P}function L(y){for(var b=new Uint8Array(y),P=new Array(b.length),F=0;F<b.length;F++)P[F]=String.fromCharCode(b[F]);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)||l(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=m(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=m(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=m(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(pe)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var b=y.toUpperCase();return k.indexOf(b)>-1?b:y}function $(y,b){if(!(this instanceof $))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 $){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new g(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 U=new AbortController;return U.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 F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var K=/\?/;this.url+=(K.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function pe(y){var b=new FormData;return y.trim().split("&").forEach(function(P){if(P){var F=P.split("="),K=F.shift().replace(/\+/g," "),U=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(K),decodeURIComponent(U))}}),b}function Le(y){var b=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(F){return F.indexOf(`
2
+ `)===0?F.substr(1,F.length):F}).forEach(function(F){var K=F.split(":"),U=K.shift().trim();if(U){var Sr=K.join(":").trim();try{b.append(U,Sr)}catch(xo){console.warn("Response "+xo.message)}}}),b}R.call($.prototype);function le(y,b){if(!(this instanceof le))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 g(b.headers),this.url=b.url||"",this._initBody(y)}R.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},le.error=function(){var y=new le(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ie=[301,302,303,307,308];le.redirect=function(y,b){if(Ie.indexOf(b)===-1)throw new RangeError("Invalid status code");return new le(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 F=Error(b);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function oe(y,b){return new Promise(function(P,F){var K=new $(y,b);if(K.signal&&K.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Sr(){U.abort()}U.onload=function(){var ne={statusText:U.statusText,headers:Le(U.getAllResponseHeaders()||"")};K.url.indexOf("file://")===0&&(U.status<200||U.status>599)?ne.status=200:ne.status=U.status,ne.url="responseURL"in U?U.responseURL:ne.headers.get("X-Request-URL");var pt="response"in U?U.response:U.responseText;setTimeout(function(){P(new le(pt,ne))},0)},U.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){F(new o.DOMException("Aborted","AbortError"))},0)};function xo(ne){try{return ne===""&&n.location.href?n.location.href:ne}catch{return ne}}if(U.open(K.method,xo(K.url),!0),K.credentials==="include"?U.withCredentials=!0:K.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof g||n.Headers&&b.headers instanceof n.Headers)){var kn=[];Object.getOwnPropertyNames(b.headers).forEach(function(ne){kn.push(p(ne)),U.setRequestHeader(ne,u(b.headers[ne]))}),K.headers.forEach(function(ne,pt){kn.indexOf(pt)===-1&&U.setRequestHeader(pt,ne)})}else K.headers.forEach(function(ne,pt){U.setRequestHeader(pt,ne)});K.signal&&(K.signal.addEventListener("abort",Sr),U.onreadystatechange=function(){U.readyState===4&&K.signal.removeEventListener("abort",Sr)}),U.send(typeof K._bodyInit>"u"?null:K._bodyInit)})}return oe.polyfill=!0,n.fetch||(n.fetch=oe,n.Headers=g,n.Request=$,n.Response=le),o.Headers=g,o.Request=$,o.Response=le,o.fetch=oe,o}({})})(Wr);Wr.fetch.ponyfill=!0;delete Wr.fetch.polyfill;var Ft=Fr.fetch?Fr:Wr;ot=Ft.fetch;ot.default=Ft.fetch;ot.fetch=Ft.fetch;ot.Headers=Ft.Headers;ot.Request=Ft.Request;ot.Response=Ft.Response;qi.exports=ot});var Sc=ft((Px,vc)=>{vc.exports=ftGlobals.litRepeat});var Ec=C(_());var Tn=C(W()),qt=C(_());var Ki=C(W()),M=C(_());var zo=C(_());var lr=C(ee()),zi=C(_());var Da=C(W()),D=C(_());var zn=C(W()),Y=C(_()),Un=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorContent),E={color:Un,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Un),opacityContentOnSurfacePressed:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Y.FtCssVariableFactory.external(Y.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Y.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Mn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorPrimary),Fn={color:Mn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mn)},Wn=Y.FtCssVariableFactory.extend("--ft-ripple-color","",Y.designSystemVariables.colorSecondary),Hn={color:Wn,backgroundColor:Y.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wn)},Gn=zn.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -470,7 +470,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
470
470
  ${(0,D.setVariable)(H.size,V.iconSize)};
471
471
  ${(0,D.setVariable)(H.color,"var(--ft-button-internal-color)")};
472
472
  }
473
- `,D.noTextSelect];var rt=C(_());var Fa=C(_());var Ua=C(W()),ae=C(J()),Ma=C(Ar()),Xt=C(_());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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},z=class extends Xt.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 Xt.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 Xt.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 Ua.html`
473
+ `,D.noTextSelect];var rt=C(_());var Fa=C(_());var Ua=C(W()),ae=C(ee()),Ma=C(Ar()),Xt=C(_());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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},z=class extends Xt.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 Xt.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 Xt.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 Ua.html`
474
474
  <style>
475
475
  .ft-ripple .ft-ripple--effect {
476
476
  left: ${this.originX}px;
@@ -481,9 +481,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
481
481
  <div class="ft-ripple--background"></div>
482
482
  <div class="ft-ripple--effect"></div>
483
483
  </div>
484
- `}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=(...l)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},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()}};z.elementDefinitions={};z.styles=Gn;fe([(0,ae.property)({type:Boolean})],z.prototype,"primary",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"secondary",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"unbounded",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"activated",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"selected",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"disabled",void 0);fe([(0,ae.state)()],z.prototype,"hovered",void 0);fe([(0,ae.state)()],z.prototype,"focused",void 0);fe([(0,ae.state)()],z.prototype,"pressed",void 0);fe([(0,ae.state)()],z.prototype,"rippling",void 0);fe([(0,ae.state)()],z.prototype,"originX",void 0);fe([(0,ae.state)()],z.prototype,"originY",void 0);fe([(0,ae.query)(".ft-ripple")],z.prototype,"ripple",void 0);fe([(0,ae.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,Fa.customElement)("ft-ripple")(z);var ki=C(_());var Ti=C(W()),Q=C(J()),sr=C(_());var ii=C(_());var No=globalThis,Nr=No.trustedTypes,Wa=Nr?Nr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Va="$lit$",qe=`lit$${(Math.random()+"").slice(9)}$`,Za="?"+qe,Tc=`<${Za}>`,gt=document,Rr=()=>gt.createComment(""),Jt=e=>e===null||typeof e!="object"&&typeof e!="function",qa=Array.isArray,kc=e=>qa(e)||typeof e?.[Symbol.iterator]=="function",So=`[
484
+ `}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=(...l)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},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()}};z.elementDefinitions={};z.styles=Gn;fe([(0,ae.property)({type:Boolean})],z.prototype,"primary",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"secondary",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"unbounded",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"activated",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"selected",void 0);fe([(0,ae.property)({type:Boolean})],z.prototype,"disabled",void 0);fe([(0,ae.state)()],z.prototype,"hovered",void 0);fe([(0,ae.state)()],z.prototype,"focused",void 0);fe([(0,ae.state)()],z.prototype,"pressed",void 0);fe([(0,ae.state)()],z.prototype,"rippling",void 0);fe([(0,ae.state)()],z.prototype,"originX",void 0);fe([(0,ae.state)()],z.prototype,"originY",void 0);fe([(0,ae.query)(".ft-ripple")],z.prototype,"ripple",void 0);fe([(0,ae.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,Fa.customElement)("ft-ripple")(z);var ki=C(_());var Ti=C(W()),Q=C(ee()),sr=C(_());var ii=C(_());var No=globalThis,Nr=No.trustedTypes,Wa=Nr?Nr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Va="$lit$",qe=`lit$${(Math.random()+"").slice(9)}$`,Za="?"+qe,Tc=`<${Za}>`,gt=document,Rr=()=>gt.createComment(""),Jt=e=>e===null||typeof e!="object"&&typeof e!="function",qa=Array.isArray,kc=e=>qa(e)||typeof e?.[Symbol.iterator]=="function",So=`[
485
485
  \f\r]`,Qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ha=/-->/g,za=/>/g,ht=RegExp(`>|${So}(?:([^\\s"'>=/]+)(${So}*=${So}*(?:[^
486
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ga=/'/g,ja=/"/g,Ya=/^(?:script|style|textarea|title)$/i,Xa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Qa=Xa(1),Ja=Xa(2),er=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),Ka=new WeakMap,yt=gt.createTreeWalker(gt,129);function ei(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wa!==void 0?Wa.createHTML(r):r}var _c=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Qt;for(let l=0;l<o;l++){let p=e[l],u,h,g=-1,m=0;for(;m<p.length&&(c.lastIndex=m,h=c.exec(p),h!==null);)m=c.lastIndex,c===Qt?h[1]==="!--"?c=Ha:h[1]!==void 0?c=za:h[2]!==void 0?(Ya.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=ht):h[3]!==void 0&&(c=ht):c===ht?h[0]===">"?(c=a??Qt,g=-1):h[1]===void 0?g=-2:(g=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?ht:h[3]==='"'?ja:Ga):c===ja||c===Ga?c=ht:c===Ha||c===za?c=Qt:(c=ht,a=void 0);let v=c===ht&&e[l+1].startsWith("/>")?" ":"";i+=c===Qt?p+Tc:g>=0?(n.push(u),p.slice(0,g)+Va+p.slice(g)+qe+v):p+qe+(g===-2?l:v)}return[ei(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},tr=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=r.length-1,p=this.parts,[u,h]=_c(r,o);if(this.el=e.createElement(u,n),yt.currentNode=this.el.content,o===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=yt.nextNode())!==null&&p.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(Va)){let m=h[c++],v=a.getAttribute(g).split(qe),x=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?Co:x[1]==="?"?Eo:x[1]==="@"?wo:Bt}),a.removeAttribute(g)}else g.startsWith(qe)&&(p.push({type:6,index:i}),a.removeAttribute(g));if(Ya.test(a.tagName)){let g=a.textContent.split(qe),m=g.length-1;if(m>0){a.textContent=Nr?Nr.emptyScript:"";for(let v=0;v<m;v++)a.append(g[v],Rr()),yt.nextNode(),p.push({type:2,index:++i});a.append(g[m],Rr())}}}else if(a.nodeType===8)if(a.data===Za)p.push({type:2,index:i});else{let g=-1;for(;(g=a.data.indexOf(qe,g+1))!==-1;)p.push({type:7,index:i}),g+=qe.length-1}i++}}static createElement(r,o){let n=gt.createElement("template");return n.innerHTML=r,n}};function Dt(e,r,o=e,n){if(r===er)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Jt(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=Dt(e,a._$AS(e,r.values),a,n)),r}var Oo=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??gt).importNode(o,!0);yt.currentNode=a;let i=yt.nextNode(),c=0,l=0,p=n[0];for(;p!==void 0;){if(c===p.index){let u;p.type===2?u=new Lr(i,i.nextSibling,this,r):p.type===1?u=new p.ctor(i,p.name,p.strings,this,r):p.type===6&&(u=new Ao(i,this,r)),this._$AV.push(u),p=n[++l]}c!==p?.index&&(i=yt.nextNode(),c++)}return yt.currentNode=gt,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++}},Lr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=ee,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=Dt(this,r,o),Jt(r)?r===ee||r==null||r===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):r!==this._$AH&&r!==er&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):kc(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!==ee&&Jt(this._$AH)?this._$AA.nextSibling.data=r:this.$(gt.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=tr.createElement(ei(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Oo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ka.get(r.strings);return o===void 0&&Ka.set(r.strings,o=new tr(r)),o}T(r){qa(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(Rr()),this.k(Rr()),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))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=ee,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=ee}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Dt(this,r,o,0),c=!Jt(r)||r!==this._$AH&&r!==er,c&&(this._$AH=r);else{let l=r,p,u;for(r=i[0],p=0;p<i.length-1;p++)u=Dt(this,l[n+p],o,p),u===er&&(u=this._$AH[p]),c||=!Jt(u)||u!==this._$AH[p],u===ee?r=ee:r!==ee&&(r+=(u??"")+i[p+1]),this._$AH[p]=u}c&&!a&&this.O(r)}O(r){r===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Co=class extends Bt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===ee?void 0:r}},Eo=class extends Bt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==ee)}},wo=class extends Bt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Dt(this,r,o,0)??ee)===er)return;let n=this._$AH,a=r===ee&&n!==ee||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==ee&&(n===ee||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)}},Ao=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){Dt(this,r)}};var Dc=No.litHtmlPolyfillSupport;Dc?.(tr,Lr),(No.litHtmlVersions??=[]).push("3.1.0");var ri=Symbol.for(""),Bc=e=>{if(e?.r===ri)return e?._$litStatic$},Ro=e=>({_$litStatic$:e,r:ri});var ti=new Map,oi=e=>(r,...o)=>{let n=o.length,a,i,c=[],l=[],p,u=0,h=!1;for(;u<n;){for(p=r[u];u<n&&(i=o[u],(a=Bc(i))!==void 0);)p+=a+r[++u],h=!0;u!==n&&l.push(i),c.push(p),u++}if(u===n&&c.push(r[n]),h){let g=c.join("$$lit$$");(r=ti.get(g))===void 0&&(c.raw=c,ti.set(g,r=c)),o=l}return e(r,...o)},Lo=oi(Qa),vh=oi(Ja);var Io=C(J()),ai=C(_());var Ye;(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"})(Ye||(Ye={}));var ni=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},be=class extends ai.FtLitElement{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Lo`
486
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ga=/'/g,ja=/"/g,Ya=/^(?:script|style|textarea|title)$/i,Xa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Qa=Xa(1),Ja=Xa(2),er=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Ka=new WeakMap,yt=gt.createTreeWalker(gt,129);function ei(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wa!==void 0?Wa.createHTML(r):r}var _c=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Qt;for(let l=0;l<o;l++){let p=e[l],u,h,g=-1,m=0;for(;m<p.length&&(c.lastIndex=m,h=c.exec(p),h!==null);)m=c.lastIndex,c===Qt?h[1]==="!--"?c=Ha:h[1]!==void 0?c=za:h[2]!==void 0?(Ya.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=ht):h[3]!==void 0&&(c=ht):c===ht?h[0]===">"?(c=a??Qt,g=-1):h[1]===void 0?g=-2:(g=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?ht:h[3]==='"'?ja:Ga):c===ja||c===Ga?c=ht:c===Ha||c===za?c=Qt:(c=ht,a=void 0);let v=c===ht&&e[l+1].startsWith("/>")?" ":"";i+=c===Qt?p+Tc:g>=0?(n.push(u),p.slice(0,g)+Va+p.slice(g)+qe+v):p+qe+(g===-2?l:v)}return[ei(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},tr=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=r.length-1,p=this.parts,[u,h]=_c(r,o);if(this.el=e.createElement(u,n),yt.currentNode=this.el.content,o===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=yt.nextNode())!==null&&p.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(Va)){let m=h[c++],v=a.getAttribute(g).split(qe),x=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?Co:x[1]==="?"?Eo:x[1]==="@"?wo:Bt}),a.removeAttribute(g)}else g.startsWith(qe)&&(p.push({type:6,index:i}),a.removeAttribute(g));if(Ya.test(a.tagName)){let g=a.textContent.split(qe),m=g.length-1;if(m>0){a.textContent=Nr?Nr.emptyScript:"";for(let v=0;v<m;v++)a.append(g[v],Rr()),yt.nextNode(),p.push({type:2,index:++i});a.append(g[m],Rr())}}}else if(a.nodeType===8)if(a.data===Za)p.push({type:2,index:i});else{let g=-1;for(;(g=a.data.indexOf(qe,g+1))!==-1;)p.push({type:7,index:i}),g+=qe.length-1}i++}}static createElement(r,o){let n=gt.createElement("template");return n.innerHTML=r,n}};function Dt(e,r,o=e,n){if(r===er)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Jt(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=Dt(e,a._$AS(e,r.values),a,n)),r}var Oo=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??gt).importNode(o,!0);yt.currentNode=a;let i=yt.nextNode(),c=0,l=0,p=n[0];for(;p!==void 0;){if(c===p.index){let u;p.type===2?u=new Lr(i,i.nextSibling,this,r):p.type===1?u=new p.ctor(i,p.name,p.strings,this,r):p.type===6&&(u=new Ao(i,this,r)),this._$AV.push(u),p=n[++l]}c!==p?.index&&(i=yt.nextNode(),c++)}return yt.currentNode=gt,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++}},Lr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=te,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=Dt(this,r,o),Jt(r)?r===te||r==null||r===""?(this._$AH!==te&&this._$AR(),this._$AH=te):r!==this._$AH&&r!==er&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):kc(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!==te&&Jt(this._$AH)?this._$AA.nextSibling.data=r:this.$(gt.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=tr.createElement(ei(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Oo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ka.get(r.strings);return o===void 0&&Ka.set(r.strings,o=new tr(r)),o}T(r){qa(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(Rr()),this.k(Rr()),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))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=te,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=te}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Dt(this,r,o,0),c=!Jt(r)||r!==this._$AH&&r!==er,c&&(this._$AH=r);else{let l=r,p,u;for(r=i[0],p=0;p<i.length-1;p++)u=Dt(this,l[n+p],o,p),u===er&&(u=this._$AH[p]),c||=!Jt(u)||u!==this._$AH[p],u===te?r=te:r!==te&&(r+=(u??"")+i[p+1]),this._$AH[p]=u}c&&!a&&this.O(r)}O(r){r===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Co=class extends Bt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===te?void 0:r}},Eo=class extends Bt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==te)}},wo=class extends Bt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Dt(this,r,o,0)??te)===er)return;let n=this._$AH,a=r===te&&n!==te||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==te&&(n===te||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)}},Ao=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){Dt(this,r)}};var Dc=No.litHtmlPolyfillSupport;Dc?.(tr,Lr),(No.litHtmlVersions??=[]).push("3.1.0");var ri=Symbol.for(""),Bc=e=>{if(e?.r===ri)return e?._$litStatic$},Ro=e=>({_$litStatic$:e,r:ri});var ti=new Map,oi=e=>(r,...o)=>{let n=o.length,a,i,c=[],l=[],p,u=0,h=!1;for(;u<n;){for(p=r[u];u<n&&(i=o[u],(a=Bc(i))!==void 0);)p+=a+r[++u],h=!0;u!==n&&l.push(i),c.push(p),u++}if(u===n&&c.push(r[n]),h){let g=c.join("$$lit$$");(r=ti.get(g))===void 0&&(c.raw=c,ti.set(g,r=c)),o=l}return e(r,...o)},Lo=oi(Qa),vh=oi(Ja);var Io=C(ee()),ai=C(_());var Ye;(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"})(Ye||(Ye={}));var ni=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},be=class extends ai.FtLitElement{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Lo`
487
487
  <${Ro(this.element)}
488
488
  part="text"
489
489
  class="ft-typography ft-typography--${this.variant}">
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
538
538
  </div>
539
539
  </div>
540
540
  </div>
541
- `}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="",Pi(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))}};Z.elementDefinitions={"ft-typography":be};Z.styles=ci;ye([(0,Q.property)()],Z.prototype,"text",void 0);ye([(0,Q.property)({type:Boolean})],Z.prototype,"manual",void 0);ye([(0,Q.property)({type:Boolean})],Z.prototype,"inline",void 0);ye([(0,Q.property)({type:Number})],Z.prototype,"delay",void 0);ye([(0,Q.property)()],Z.prototype,"position",void 0);ye([(0,Q.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);ye([(0,Q.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);ye([(0,Q.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);ye([(0,Q.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);ye([(0,Q.state)()],Z.prototype,"visible",void 0);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onHover",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onOut",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,ki.customElement)("ft-tooltip")(Z);var Mi=C(_());var cr=C(W()),xt=C(J()),$i=C(_()),Ui=C(Di());var et;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(et||(et={}));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 Wo=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])]),ol=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Bi(e,r){var o,n,a,i;e=(e??"").toLowerCase(),r=(r??"").toLowerCase();let[c,l]=(((o=ol.get(e))!==null&&o!==void 0?o:e)+"/").split("/");return(i=(a=(n=Wo.get(l))!==null&&n!==void 0?n:Wo.get(r))!==null&&a!==void 0?a:Wo.get(c))!==null&&i!==void 0?i:w.UNKNOWN}var fy={[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 ve;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ve||(ve={}));var Br=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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 $i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=cr.nothing}render(){let r=this.variant&&Object.values(ve).includes(this.variant)?this.variant:ve.fluid_topics,o=r!==ve.material||!!this.value;return cr.html`
541
+ `}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="",Pi(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))}};Z.elementDefinitions={"ft-typography":be};Z.styles=ci;ye([(0,Q.property)()],Z.prototype,"text",void 0);ye([(0,Q.property)({type:Boolean})],Z.prototype,"manual",void 0);ye([(0,Q.property)({type:Boolean})],Z.prototype,"inline",void 0);ye([(0,Q.property)({type:Number})],Z.prototype,"delay",void 0);ye([(0,Q.property)()],Z.prototype,"position",void 0);ye([(0,Q.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);ye([(0,Q.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);ye([(0,Q.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);ye([(0,Q.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);ye([(0,Q.state)()],Z.prototype,"visible",void 0);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onHover",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onOut",null);ye([(0,Q.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,ki.customElement)("ft-tooltip")(Z);var Mi=C(_());var cr=C(W()),xt=C(ee()),$i=C(_()),Ui=C(Di());var et;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(et||(et={}));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 Wo=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])]),ol=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Bi(e,r){var o,n,a,i;e=(e??"").toLowerCase(),r=(r??"").toLowerCase();let[c,l]=(((o=ol.get(e))!==null&&o!==void 0?o:e)+"/").split("/");return(i=(a=(n=Wo.get(l))!==null&&n!==void 0?n:Wo.get(r))!==null&&a!==void 0?a:Wo.get(c))!==null&&i!==void 0?i:w.UNKNOWN}var fy={[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 ve;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ve||(ve={}));var Br=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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 $i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=cr.nothing}render(){let r=this.variant&&Object.values(ve).includes(this.variant)?this.variant:ve.fluid_topics,o=r!==ve.material||!!this.value;return cr.html`
542
542
  <i class="ft-icon ft-icon--${r}" part="icon icon-${r}">
543
543
  ${(0,Ui.unsafeHTML)(this.resolvedIcon)}
544
544
  <slot ?hidden=${o}></slot>
@@ -550,7 +550,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
550
550
  <div></div>
551
551
  <div></div>
552
552
  </div>
553
- `}};vt.styles=Ia;(0,Hi.customElement)("ft-loader")(vt);var tt=C(W()),Ho=C(Ar()),te=C(J()),ie=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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(0,rt.toFtFormComponent)(rt.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=tt.html`
553
+ `}};vt.styles=Ia;(0,Hi.customElement)("ft-loader")(vt);var tt=C(W()),Ho=C(Ar()),J=C(ee()),ie=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},G=class extends(0,rt.toFtFormComponent)(rt.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=tt.html`
554
554
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
555
555
  <ft-typography part="label"
556
556
  variant=${this.typographyVariant}
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
587
587
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
588
588
  `:tt.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,rt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};K.elementDefinitions={"ft-ripple":z,"ft-tooltip":Z,"ft-typography":be,"ft-icon":ge,"ft-loader":vt};ie([(0,te.property)()],K.prototype,"href",void 0);ie([(0,te.property)()],K.prototype,"target",void 0);ie([(0,te.property)({type:String,reflect:!0})],K.prototype,"role",void 0);ie([(0,te.property)()],K.prototype,"type",void 0);ie([(0,te.property)({type:Boolean})],K.prototype,"disabled",void 0);ie([(0,te.property)()],K.prototype,"label",void 0);ie([(0,te.property)()],K.prototype,"icon",void 0);ie([(0,te.property)()],K.prototype,"iconVariant",void 0);ie([(0,te.property)({type:Boolean})],K.prototype,"trailingIcon",void 0);ie([(0,te.property)({type:Boolean})],K.prototype,"loading",void 0);ie([(0,te.property)({attribute:"aria-label"})],K.prototype,"ariaLabel",void 0);ie([(0,te.property)()],K.prototype,"tooltipPosition",void 0);ie([(0,te.property)({type:Boolean})],K.prototype,"hideTooltip",void 0);ie([(0,te.property)({type:Boolean})],K.prototype,"forceTooltip",void 0);ie([(0,te.query)(".ft-button")],K.prototype,"button",void 0);ie([(0,te.query)(".ft-button--label slot")],K.prototype,"slottedContent",void 0);var $r=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},we=class extends K{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"}};we.styles=[zi.safariEllipsisFix,Ba];$r([(0,lr.property)({type:Boolean})],we.prototype,"primary",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"outlined",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"dense",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"round",void 0);var dr=C(J());var Mr=C(_());var Gi=C(W()),O=C(_());var ji=[Gi.css`
590
+ `}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,rt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};G.elementDefinitions={"ft-ripple":z,"ft-tooltip":Z,"ft-typography":be,"ft-icon":ge,"ft-loader":vt};ie([(0,J.property)()],G.prototype,"href",void 0);ie([(0,J.property)()],G.prototype,"target",void 0);ie([(0,J.property)({type:String,reflect:!0})],G.prototype,"role",void 0);ie([(0,J.property)()],G.prototype,"type",void 0);ie([(0,J.property)({type:Boolean})],G.prototype,"disabled",void 0);ie([(0,J.property)()],G.prototype,"label",void 0);ie([(0,J.property)()],G.prototype,"icon",void 0);ie([(0,J.property)()],G.prototype,"iconVariant",void 0);ie([(0,J.property)({type:Boolean})],G.prototype,"trailingIcon",void 0);ie([(0,J.property)({type:Boolean})],G.prototype,"loading",void 0);ie([(0,J.property)({attribute:"aria-label"})],G.prototype,"ariaLabel",void 0);ie([(0,J.property)()],G.prototype,"tooltipPosition",void 0);ie([(0,J.property)({type:Boolean})],G.prototype,"hideTooltip",void 0);ie([(0,J.property)({type:Boolean})],G.prototype,"forceTooltip",void 0);ie([(0,J.query)(".ft-button")],G.prototype,"button",void 0);ie([(0,J.query)(".ft-button--label slot")],G.prototype,"slottedContent",void 0);ie([(0,J.query)("[part=tooltip]")],G.prototype,"tooltip",void 0);var $r=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},we=class extends G{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"}};we.styles=[zi.safariEllipsisFix,Ba];$r([(0,lr.property)({type:Boolean})],we.prototype,"primary",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"outlined",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"dense",void 0);$r([(0,lr.property)({type:Boolean})],we.prototype,"round",void 0);var dr=C(ee());var Mr=C(_());var Gi=C(W()),O=C(_());var ji=[Gi.css`
591
591
  :host {
592
592
  display: inline-block;
593
593
  max-width: 100%;
@@ -1053,7 +1053,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1053
1053
  .ftds--size-small.ft-button--icon-only {
1054
1054
  width: ${f.smallIconOnlyWidth};
1055
1055
  }
1056
- `,O.noTextSelect];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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},He=class extends(0,Mr.toFtdsBase)(K){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Cr.brand,this.iconVariant=ve.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 wt.large:return Ye.body2medium;case wt.medium:return Ye.caption1medium;case wt.small:return Ye.caption2medium}}};He.styles=[Mr.safariEllipsisFix,ji];Ur([(0,dr.property)({type:Boolean})],He.prototype,"primary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"secondary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"tertiary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"round",void 0);(0,zo.customElement)("ft-button")(we);(0,zo.customElement)("ftds-button")(He);var X={height:M.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:M.FtCssVariableFactory.extend("--ft-search-input-border-radius","",M.designSystemVariables.borderRadiusS),desktopFiltersHeight:M.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:M.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:M.FtCssVariableFactory.extend("--ft-search-input-background-color","",M.designSystemVariables.colorSurface),colorOnSurface:M.FtCssVariableFactory.extend("--ft-search-input-color","",M.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:M.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",M.designSystemVariables.colorOnSurfaceMedium),colorOutline:M.FtCssVariableFactory.extend("--ft-search-input-outline-color","",M.designSystemVariables.colorOutline),elevation02:M.FtCssVariableFactory.extend("--ft-search-input-elevation","",M.designSystemVariables.elevation02),focusOutlineColor:M.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",M.designSystemVariables.colorPrimary),buttonColor:M.FtCssVariableFactory.extend("--ft-search-input-button-color","",M.designSystemVariables.colorPrimary),buttonRippleColor:M.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",M.designSystemVariables.colorPrimary)},Vi=Ki.css`
1056
+ `,O.noTextSelect];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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},He=class extends(0,Mr.toFtdsBase)(G){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Cr.brand,this.iconVariant=ve.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 wt.large:return Ye.body2medium;case wt.medium:return Ye.caption1medium;case wt.small:return Ye.caption2medium}}};He.styles=[Mr.safariEllipsisFix,ji];Ur([(0,dr.property)({type:Boolean})],He.prototype,"primary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"secondary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"tertiary",void 0);Ur([(0,dr.property)({type:Boolean})],He.prototype,"round",void 0);(0,zo.customElement)("ft-button")(we);(0,zo.customElement)("ftds-button")(He);var X={height:M.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:M.FtCssVariableFactory.extend("--ft-search-input-border-radius","",M.designSystemVariables.borderRadiusS),desktopFiltersHeight:M.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:M.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:M.FtCssVariableFactory.extend("--ft-search-input-background-color","",M.designSystemVariables.colorSurface),colorOnSurface:M.FtCssVariableFactory.extend("--ft-search-input-color","",M.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:M.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",M.designSystemVariables.colorOnSurfaceMedium),colorOutline:M.FtCssVariableFactory.extend("--ft-search-input-outline-color","",M.designSystemVariables.colorOutline),elevation02:M.FtCssVariableFactory.extend("--ft-search-input-elevation","",M.designSystemVariables.elevation02),focusOutlineColor:M.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",M.designSystemVariables.colorPrimary),buttonColor:M.FtCssVariableFactory.extend("--ft-search-input-button-color","",M.designSystemVariables.colorPrimary),buttonRippleColor:M.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",M.designSystemVariables.colorPrimary)},Vi=Ki.css`
1057
1057
  * {
1058
1058
  box-sizing: border-box;
1059
1059
  ${(0,M.setVariable)(V.color,X.buttonColor)};
@@ -1137,15 +1137,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1137
1137
  height: 20px;
1138
1138
  border-right: 1px solid ${X.colorOutline};
1139
1139
  }
1140
- `;var uc=C(_()),pc=C(J());var An=C(_());var Zi=C(_());var nl=C(Yi(),1);var Xi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Xi||(Xi={}));var Qi;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Qi||(Qi={}));var Ji;(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"})(Ji||(Ji={}));var es;(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"})(es||(es={}));var ts;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ts||(ts={}));var rs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(rs||(rs={}));var os;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(os||(os={}));var ns;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ns||(ns={}));var as;(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"})(as||(as={}));var is;(function(e){e.ASC="ASC",e.DESC="DESC"})(is||(is={}));var ss;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ss||(ss={}));var Go;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Go||(Go={}));var cs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(cs||(cs={}));var ls;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ls||(ls={}));var ds;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ds||(ds={}));var us;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(us||(us={}));var ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(ps||(ps={}));var jo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(jo||(jo={}));var re;(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"})(re||(re={}));var fs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(fs||(fs={}));var mg={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.DEVELOPER]:[re.BETA_USER,re.DEBUG_USER]};var dc=C(_());var bs=C(W()),me=C(J()),Ae=C(_());var hs=C(W());var ys=hs.css`
1140
+ `;var uc=C(_()),pc=C(ee());var An=C(_());var Zi=C(_());var nl=C(Yi(),1);var Xi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Xi||(Xi={}));var Qi;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Qi||(Qi={}));var Ji;(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"})(Ji||(Ji={}));var es;(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"})(es||(es={}));var ts;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ts||(ts={}));var rs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(rs||(rs={}));var os;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(os||(os={}));var ns;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ns||(ns={}));var as;(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"})(as||(as={}));var is;(function(e){e.ASC="ASC",e.DESC="DESC"})(is||(is={}));var ss;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ss||(ss={}));var Go;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Go||(Go={}));var cs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(cs||(cs={}));var ls;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ls||(ls={}));var ds;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ds||(ds={}));var us;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(us||(us={}));var ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(ps||(ps={}));var jo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(jo||(jo={}));var re;(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"})(re||(re={}));var fs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(fs||(fs={}));var mg={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.DEVELOPER]:[re.BETA_USER,re.DEBUG_USER]};var dc=C(_());var bs=C(W()),me=C(ee()),Ae=C(_());var hs=C(W());var ys=hs.css`
1141
1141
  `;var Hr=C(_()),al="ft-app-info",Ko=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},il={session:(e,r)=>{(0,Hr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>T.dispatchEvent(new Ko(r.payload)),0))}},T=Hr.FtReduxStore.get({name:al,reducers:il,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 nt=C(_());var Vo=C(_());var St=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=T.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=T.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var ze=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 Vo.CacheRegistry,this.cache=r?a.commonCache:new Vo.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}clearCache(){this.cache.clearAll()}};var gs,sl=Symbol("clearAfterUnitTest"),zr=class extends ze{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gs]=()=>{this.defaultMessages={},this.cache=new nt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=T.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,nt.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 nt.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,nt.delay)(0).then(()=>o()).catch(()=>null)))}};gs=sl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var Ot=window.FluidTopicsI18nService,ms=window.FluidTopicsCustomI18nService;var se=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},q=class extends Ae.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=()=>St.get(),this.messageContexts=[],this.cache=new Ae.CacheRegistry,this.cleanSessionDebouncer=new Ae.Debouncer}render(){return bs.html`
1142
1142
  <slot></slot>
1143
- `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&T.actions.noCustom(this.noCustom),r.has("editorMode")&&T.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&T.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ot.addContext(l)),r.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.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())}};q.elementDefinitions={};q.styles=ys;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Ae.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Ae.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var Zl=C(J());function cl(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(!Gr(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(!Gr(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(!Gr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Gr(e,r){try{return cl(e,r)}catch{return!1}}function Zo(e,r){return!Gr(e,r)}var ll=C(J(),1);var jr=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 ur=C(J(),1);var xs=C(J(),1);function vs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,xs.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:Zo,...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(l){a(l);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 Os=C(W(),1);var Vr=window,dl=Vr.ShadowRoot&&(Vr.ShadyCSS===void 0||Vr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yg=Symbol();var Ss=(e,r)=>{dl?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Vr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Zr=class extends Os.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 Ss(n,r.elementStyles),n}};var qr=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},As,Cs=Symbol("constructorPrototype"),Es=Symbol("constructorName"),Ns=Symbol("exportpartsDebouncer"),ws=Symbol("dynamicDependenciesLoaded"),at=class extends Zr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[As]=new Kr(5),this[Es]=this.constructor.name,this[Cs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Es]&&Object.setPrototypeOf(this,this[Cs])}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[ws]||(r[ws]=!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[Ns].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,l;let p=m=>m!=null&&m.trim().length>0,u=r.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};As=Ns;qr([(0,ur.property)()],at.prototype,"exportpartsPrefix",void 0);qr([vs([])],at.prototype,"exportpartsPrefixes",void 0);qr([(0,ur.property)()],at.prototype,"customStylesheet",void 0);qr([(0,ur.state)()],at.prototype,"useAdoptedStyleSheets",void 0);function pr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Rs,Ls,Is,Yr=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),fr=class extends at{constructor(){super(...arguments),this[Rs]=new Map,this[Ls]=new Map,this[Is]=[]}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Ct].get(r)}addStore(r,o){var n;o=(n=o??(pr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,r)}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Ct].delete(o)}setupStore(r,o){this[Ct].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ct].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[it].has(r.store):this[it].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[it].set(r,o.subscribe(()=>this.updateFromStores())),pr(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=l=>this[i](l);o.addEventListener(a.eventName,c),this[Yr].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[it].forEach((r,o)=>this.unsubscribeFromStore(o)),this[Yr].forEach(r=>r()),this[Yr]=[]}unsubscribeFromStore(r){this[it].has(r)&&this[it].get(r)(),this[it].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rs=it,Ls=Ct,Is=Yr;fr.reduxProperties=new Map;fr.reduxReactiveProperties=new Set;fr.reduxEventListeners=new Map;function Ce(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 Ge(e){return!!e&&!!e[G]}function Ne(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)===bl}(e)||Array.isArray(e)||!!e[$s]||!!(!((r=e.constructor)===null||r===void 0)&&r[$s])||on(e)||nn(e))}function Et(e,r,o){o===void 0&&(o=!1),zt(e)===0?(o?Object.keys:Ht)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function zt(e){var r=e[G];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:on(e)?2:nn(e)?3:0}function Wt(e,r){return zt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ul(e,r){return zt(e)===2?e.get(r):e[r]}function Us(e,r,o){var n=zt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ms(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function on(e){return gl&&e instanceof Map}function nn(e){return ml&&e instanceof Set}function st(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Hs(e);delete r[G];for(var o=Ht(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 sn(e,r){return r===void 0&&(r=!1),cn(e)||Ge(e)||!Ne(e)||(zt(e)>1&&(e.set=e.add=e.clear=e.delete=pl),Object.freeze(e),r&&Et(e,function(o,n){return sn(n,!0)},!0)),e}function pl(){Ce(2)}function cn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _e(e){var r=rn[e];return r||Ce(18,e),r}function fl(e,r){rn[e]||(rn[e]=r)}function Jo(){return yr}function qo(e,r){r&&(_e("Patches"),e.u=[],e.s=[],e.v=r)}function Xr(e){en(e),e.p.forEach(hl),e.p=null}function en(e){e===yr&&(yr=e.l)}function Ps(e){return yr={p:[],l:yr,h:e,m:!0,_:0}}function hl(e){var r=e[G];r.i===0||r.i===1?r.j():r.g=!0}function Yo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||_e("ES5").S(r,e,n),n?(o[G].P&&(Xr(r),Ce(4)),Ne(e)&&(e=Qr(r,e),r.l||Jr(r,e)),r.u&&_e("Patches").M(o[G].t,e,r.u,r.s)):e=Qr(r,o,[]),Xr(r),r.u&&r.v(r.u,r.s),e!==Ws?e:void 0}function Qr(e,r,o){if(cn(r))return r;var n=r[G];if(!n)return Et(r,function(l,p){return Ts(e,n,r,l,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Jr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=an(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Et(i,function(l,p){return Ts(e,n,a,l,p,o,c)}),Jr(e,a,!1),o&&e.u&&_e("Patches").N(n,o,e.u,e.s)}return n.o}function Ts(e,r,o,n,a,i,c){if(Ge(a)){var l=Qr(e,a,i&&r&&r.i!==3&&!Wt(r.R,n)?i.concat(n):void 0);if(Us(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!cn(a)){if(!e.h.D&&e._<1)return;Qr(e,a),r&&r.A.l||Jr(e,a)}}function Jr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&sn(r,o)}function Xo(e,r){var o=e[G];return(o?st(o):e)[r]}function ks(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 ct(e){e.P||(e.P=!0,e.l&&ct(e.l))}function Qo(e){e.o||(e.o=an(e.t))}function tn(e,r,o){var n=on(r)?_e("MapSet").F(r,o):nn(r)?_e("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Jo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=gr;c&&(p=[l],u=hr);var h=Proxy.revocable(p,u),g=h.revoke,m=h.proxy;return l.k=m,l.j=g,m}(r,o):_e("ES5").J(r,o);return(o?o.A:Jo()).p.push(n),n}function yl(e){return Ge(e)||Ce(22,e),function r(o){if(!Ne(o))return o;var n,a=o[G],i=zt(o);if(a){if(!a.P&&(a.i<4||!_e("ES5").K(a)))return a.t;a.I=!0,n=_s(o,i),a.I=!1}else n=_s(o,i);return Et(n,function(c,l){a&&ul(a.t,c)===l||Us(n,c,r(l))}),i===3?new Set(n):n}(e)}function _s(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function Fs(){function e(c,l){var p=i[c];return p?p.enumerable=l:i[c]=p={configurable:!0,enumerable:l,get:function(){var u=this[G];return gr.get(u,c)},set:function(u){var h=this[G];gr.set(h,c,u)}},p}function r(c){for(var l=c.length-1;l>=0;l--){var p=c[l][G];if(!p.P)switch(p.i){case 5:n(p)&&ct(p);break;case 4:o(p)&&ct(p)}}}function o(c){for(var l=c.t,p=c.k,u=Ht(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==G){var m=l[g];if(m===void 0&&!Wt(l,g))return!0;var v=p[g],x=v&&v[G];if(x?x.t!==m:!Ms(v,m))return!0}}var S=!!l[G];return u.length!==Ht(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(st(c)))}var i={};fl("ES5",{J:function(c,l){var p=Array.isArray(c),u=function(g,m){if(g){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Hs(m);delete S[G];for(var L=Ht(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,g||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),h={i:p?5:4,A:l?l.A:Jo(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,G,{value:h,writable:!0}),u},S:function(c,l,p){p?Ge(l)&&l[G].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var g=h[G];if(g){var m=g.t,v=g.k,x=g.R,S=g.i;if(S===4)Et(v,function(B){B!==G&&(m[B]!==void 0||Wt(m,B)?x[B]||u(v[B]):(x[B]=!0,ct(g)))}),Et(m,function(B){v[B]!==void 0||Wt(v,B)||(x[B]=!1,ct(g))});else if(S===5){if(n(g)&&(ct(g),x.length=!0),v.length<m.length)for(var L=v.length;L<m.length;L++)x[L]=!1;else for(var N=m.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,m.length),k=0;k<R;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&u(v[k])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ds,yr,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gl=typeof Map<"u",ml=typeof Set<"u",Bs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ws=ln?Symbol.for("immer-nothing"):((Ds={})["immer-nothing"]=!0,Ds),$s=ln?Symbol.for("immer-draftable"):"__$immer_draftable",G=ln?Symbol.for("immer-state"):"__$immer_state";var bl=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hs=Object.getOwnPropertyDescriptors||function(e){var r={};return Ht(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},rn={},gr={get:function(e,r){if(r===G)return e;var o=st(e);if(!Wt(o,r))return function(a,i,c){var l,p=ks(i,c);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ne(n)?n:n===Xo(e.t,r)?(Qo(e),e.o[r]=tn(e.A.h,n,e)):n},has:function(e,r){return r in st(e)},ownKeys:function(e){return Reflect.ownKeys(st(e))},set:function(e,r,o){var n=ks(st(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Xo(st(e),r),i=a?.[G];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ms(o,a)&&(o!==void 0||Wt(e.t,r)))return!0;Qo(e),ct(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 Xo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Qo(e),ct(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=st(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},hr={};Et(gr,function(e,r){hr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),hr.deleteProperty=function(e,r){return hr.set.call(this,e,r,void 0)},hr.set=function(e,r,o){return gr.set.call(this,e[0],r,o,e[0])};var xl=function(){function e(o){var n=this;this.O=Bs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(S){var L=this;S===void 0&&(S=l);for(var N=arguments.length,R=Array(N>1?N-1:0),k=1;k<N;k++)R[k-1]=arguments[k];return p.produce(S,function(B){var $;return($=i).call.apply($,[L,B].concat(R))})}}var u;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var h=Ps(n),g=tn(n,a,void 0),m=!0;try{u=i(g),m=!1}finally{m?Xr(h):en(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return qo(h,c),Yo(S,h)},function(S){throw Xr(h),S}):(qo(h,c),Yo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ws&&(u=void 0),n.D&&sn(u,!0),c){var v=[],x=[];_e("Patches").M(a,u,v,x),c(v,x)}return u}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(g))})};var c,l,p=n.produce(a,i,function(u,h){c=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,l]}):[p,c,l]},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){Ne(o)||Ce(8),Ge(o)&&(o=yl(o));var n=Ps(this),a=tn(this,o,void 0);return a[G].C=!0,en(n),a},r.finishDraft=function(o,n){var a=o&&o[G],i=a.A;return qo(i,n),Yo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Bs&&Ce(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=_e("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new xl,vl=Se.produce,cm=Se.produceWithPatches.bind(Se),lm=Se.setAutoFreeze.bind(Se),dm=Se.setUseProxies.bind(Se),um=Se.applyPatches.bind(Se),pm=Se.createDraft.bind(Se),fm=Se.finishDraft.bind(Se),eo=vl;function lt(e){"@babel/helpers - typeof";return lt=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},lt(e)}function dn(e,r){if(lt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function un(e){var r=dn(e,"string");return lt(r)==="symbol"?r:String(r)}function pn(e,r,o){return r=un(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function zs(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 to(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?zs(Object(o),!0).forEach(function(n){pn(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):zs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(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 Gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ro={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Sl(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 hn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(hn)(e,r)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=r,c=[],l=c,p=!1;function u(){l===c&&(l=c.slice())}function h(){if(p)throw new Error(ce(3));return i}function g(S){if(typeof S!="function")throw new Error(ce(4));if(p)throw new Error(ce(5));var L=!0;return u(),l.push(S),function(){if(L){if(p)throw new Error(ce(6));L=!1,u();var R=l.indexOf(S);l.splice(R,1),c=null}}}function m(S){if(!Sl(S))throw new Error(ce(7));if(typeof S.type>"u")throw new Error(ce(8));if(p)throw new Error(ce(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var L=c=l,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ce(10));a=S,m({type:ro.REPLACE})}function x(){var S,L=g;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ce(11));function k(){R.next&&R.next(h())}k();var B=L(k);return{unsubscribe:B}}},S[Gs]=function(){return this},S}return m({type:ro.INIT}),n={dispatch:m,subscribe:g,getState:h,replaceReducer:v},n[Gs]=x,n}function Ol(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:ro.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function js(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,l;try{Ol(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var m=!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 k=h&&h.type;throw new Error(ce(14))}v[S]=R,m=m||R!==N}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Gt(){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(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(p){return p(c)});return i=Gt.apply(void 0,l)(a.dispatch),to(to({},a),{},{dispatch:i})}}}function Vs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Zs=Vs();Zs.withExtraArgument=Vs;var yn=Zs;var Js=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)}}(),Cl=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(h){return p([u,h])}}function p(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}}},jt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},El=Object.defineProperty,wl=Object.defineProperties,Al=Object.getOwnPropertyDescriptors,qs=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,Ys=function(e,r,o){return r in e?El(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},dt=function(e,r){for(var o in r||(r={}))Nl.call(r,o)&&Ys(e,o,r[o]);if(qs)for(var n=0,a=qs(r);n<a.length;n++){var o=a[n];Rl.call(r,o)&&Ys(e,o,r[o])}return e},gn=function(e,r){return wl(e,Al(r))},Ll=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},c=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Il=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gt:Gt.apply(null,arguments)},Pm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Pl(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 Tl=function(e){Js(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,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array),kl=function(e){Js(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,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array);function xn(e){return Ne(e)?eo(e,function(){}):e}function _l(e){return typeof e=="boolean"}function Dl(){return function(r){return Bl(r)}}function Bl(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,l=new Tl;if(o&&(_l(o)?l.push(yn):l.push(yn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return l}var mn=!0;function ec(e){var r=Dl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,m=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(Pl(a))v=js(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),!mn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!mn&&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=Gt;p&&(L=Il(dt({trace:!mn},typeof p=="object"&&p)));var N=new kl(S),R=N;Array.isArray(m)?R=jt([S],m):typeof m=="function"&&(R=m(N));var k=L.apply(void 0,R);return hn(v,h,k)}function ut(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 dt(dt({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 tc(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=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 $l(e){return typeof e=="function"}function Ul(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?tc(r):[r,o,n],i=a[0],c=a[1],l=a[2],p;if($l(e))p=function(){return xn(e())};else{var u=xn(e);p=function(){return u}}function h(g,m){g===void 0&&(g=p());var v=jt([i[m.type]],c.filter(function(x){var S=x.matcher;return S(m)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ge(x)){var L=x,N=S(L,m);return N===void 0?x:N}else{if(Ne(x))return eo(x,function(R){return S(R,m)});var N=S(x,m);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},g)}return h.getInitialState=p,h}function Ml(e,r){return e+"/"+r}function rc(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:xn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var g=n[h],m=Ml(r,h),v,x;"reducer"in g?(v=g.reducer,x=g.prepare):v=g,i[h]=v,c[m]=v,l[h]=x?ut(m,x):ut(m)});function p(){var h=typeof e.extraReducers=="function"?tc(e.extraReducers):[e.extraReducers],g=h[0],m=g===void 0?{}:g,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=dt(dt({},m),c);return Ul(o,function(R){for(var k in N)R.addCase(k,N[k]);for(var B=0,$=x;B<$.length;B++){var pe=$[B];R.addMatcher(pe.matcher,pe.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Fl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Fl[Math.random()*64|0];return r},Hl=["name","message","stack","code"],bn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Xs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),zl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Hl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Dm=function(){function e(r,o,n){var a=ut(r+"/fulfilled",function(h,g,m,v){return{payload:h,meta:gn(dt({},v||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),i=ut(r+"/pending",function(h,g,m){return{payload:void 0,meta:gn(dt({},m||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),c=ut(r+"/rejected",function(h,g,m,v,x){return{payload:v,error:(n&&n.serializeError||zl)(h||"Rejected"),meta:gn(dt({},x||{}),{arg:m,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(g,m,v){var x=n?.idGenerator?n.idGenerator(h):Wl(),S=new p,L,N=!1;function R(B){L=B,S.abort()}var k=function(){return Ll(this,null,function(){var B,$,pe,Le,le,Ie,oe;return Cl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Le=(B=n?.condition)==null?void 0:B.call(n,h,{getState:m,extra:v}),jl(Le)?[4,Le]:[3,2];case 1:Le=y.sent(),y.label=2;case 2:if(Le===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,le=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),g(i(x,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([le,Promise.resolve(o(h,{dispatch:g,getState:m,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new bn(b,P)},fulfillWithValue:function(b,P){return new Xs(b,P)}})).then(function(b){if(b instanceof bn)throw b;return b instanceof Xs?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return pe=y.sent(),[3,5];case 4:return Ie=y.sent(),pe=Ie instanceof bn?c(null,x,h,Ie.payload,Ie.meta):c(Ie,x,h),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,oe||g(pe),[2,pe]}})})}();return Object.assign(k,{abort:R,requestId:x,arg:h,unwrap:function(){return k.then(Gl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Gl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var oc="listener",nc="completed",ac="cancelled",Bm="task-"+ac,$m="task-"+nc,Um=oc+"-"+ac,Mm=oc+"-"+nc;var vn="listenerMiddleware";var Fm=ut(vn+"/add"),Wm=ut(vn+"/removeAll"),Hm=ut(vn+"/remove");var Qs,zm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Qs||(Qs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Kl=function(e){return function(r){setTimeout(r,e)}},Gm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kl(10);Fs();function Vl(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 oo=class extends Vl(Object){};window.ftReduxStores||(window.ftReduxStores={});var ic=class e extends oo{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(pr(i))return i;if(a==null)return;let c=rc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=ec({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:c.reducer(p,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new jr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...p)=>{let u=l(...p);return this.reduxStore.dispatch(u),u}:p=>{this.setState({[c]:p})}}})}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 so=C(_());var no=class extends ze{async listMySearches(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var ao=class extends ze{async listMyBookmarks(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var ql="ft-user-assets",io=so.FtReduxStore.get({name:ql,initialState:{savedSearches:void 0,bookmarks:void 0}}),Sn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ao,this.savedSearchesService=new no,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=T.getState();(0,so.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(),io.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),io.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();io.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;io.actions.bookmarks(o)}}},Ob=new Sn;var On=class{addCommand(r,o=!1){T.commands.add(r,o)}consumeCommand(r){return T.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new On;var sc=C(_()),Cn=class{highlightHtml(r,o,n){(0,sc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Cn;var cc=C(_());var En=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return cc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new En;var lc=C(_());var Kt=class{static get(r,o){var n,a,i,c;let l=T.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new lc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}};(0,dc.customElement)("ft-app-context")(q);var wn=class e extends Event{constructor(){super(e.eventName)}};wn.eventName="search-context-clear-all-filters";var Yl=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Rn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Nn=Symbol("registerInterval");function Xl(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[Nn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Nn]):this.dispatchEvent(new Rn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=Nn,Yl([(0,pc.state)()],o.prototype,"stateManager",void 0),o}var Vt=class extends Xl(uc.FtLitElementRedux){};var mc=C(_());var fo=C(W()),ho=C(J()),yo=C(_());var fc=C(W());var hc=fc.css`
1144
- `;var uo=C(_());var gc=C(J()),Ql=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Ln=Symbol("i18nAttributes"),In=Symbol("i18nListAttributes"),co=Symbol("i18nProperties"),mr=Symbol("i18nUnsubs");function po(e){var r;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?ms:Ot}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let p=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,c,l;(i=this[Ln])===null||i===void 0||i.forEach((p,u)=>{let h=this.getI18nAttributeValue(u);h&&(this[u]=this.getI18nAttributeMessage(h,p,a))}),(c=this[In])===null||c===void 0||c.forEach((p,u)=>{let h=this.getI18nListAttributeValues(u);this[u]=h?.map(g=>this.getI18nAttributeMessage(g,p,a))}),(l=this[co])===null||l===void 0||l.forEach((p,u)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let p=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[Ln])===null||i===void 0||i.forEach((p,u)=>{let h=this.getI18nAttributeValue(u);h?.context&&h.key&&(a.has(u)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,u),this[u]=this.getI18nAttributeMessage(h,p))}),(c=this[In])===null||c===void 0||c.forEach((p,u)=>{let h=this.getI18nListAttributeValues(u);(a.has(u)||p.argsProvider!=null)&&(this[u]=h?.map(g=>(this.addI18nContextIfNeeded(g,a,u),this.getI18nAttributeMessage(g,p))))}),(l=this[co])===null||l===void 0||l.forEach((p,u)=>{p.argsProvider!=null&&(this[u]=this.i18n(p))})}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,l,p,u;super.connectedCallback(),new Set([...(i=(a=this[co])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[Ln])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(u=(p=this[In])===null||p===void 0?void 0:p.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[mr].has(a)||this[mr].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[mr].forEach(a=>a()),this[mr].clear()}}return r=mr,Ql([(0,gc.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var yc=class extends po(uo.FtLitElement){},lo=class extends po(uo.FtLitElementRedux){};var br=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Re=class extends lo{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":fo.nothing:fo.html`
1143
+ `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&T.actions.noCustom(this.noCustom),r.has("editorMode")&&T.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&T.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ot.addContext(l)),r.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.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())}};q.elementDefinitions={};q.styles=ys;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Ae.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Ae.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var Zl=C(ee());function cl(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(!Gr(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(!Gr(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(!Gr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Gr(e,r){try{return cl(e,r)}catch{return!1}}function Zo(e,r){return!Gr(e,r)}var ll=C(ee(),1);var jr=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 ur=C(ee(),1);var xs=C(ee(),1);function vs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,xs.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:Zo,...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(l){a(l);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 Os=C(W(),1);var Vr=window,dl=Vr.ShadowRoot&&(Vr.ShadyCSS===void 0||Vr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yg=Symbol();var Ss=(e,r)=>{dl?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Vr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Zr=class extends Os.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 Ss(n,r.elementStyles),n}};var qr=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},As,Cs=Symbol("constructorPrototype"),Es=Symbol("constructorName"),Ns=Symbol("exportpartsDebouncer"),ws=Symbol("dynamicDependenciesLoaded"),at=class extends Zr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[As]=new Kr(5),this[Es]=this.constructor.name,this[Cs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Es]&&Object.setPrototypeOf(this,this[Cs])}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[ws]||(r[ws]=!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[Ns].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,l;let p=m=>m!=null&&m.trim().length>0,u=r.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};As=Ns;qr([(0,ur.property)()],at.prototype,"exportpartsPrefix",void 0);qr([vs([])],at.prototype,"exportpartsPrefixes",void 0);qr([(0,ur.property)()],at.prototype,"customStylesheet",void 0);qr([(0,ur.state)()],at.prototype,"useAdoptedStyleSheets",void 0);function pr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Rs,Ls,Is,Yr=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),fr=class extends at{constructor(){super(...arguments),this[Rs]=new Map,this[Ls]=new Map,this[Is]=[]}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Ct].get(r)}addStore(r,o){var n;o=(n=o??(pr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,r)}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Ct].delete(o)}setupStore(r,o){this[Ct].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ct].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[it].has(r.store):this[it].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[it].set(r,o.subscribe(()=>this.updateFromStores())),pr(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=l=>this[i](l);o.addEventListener(a.eventName,c),this[Yr].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[it].forEach((r,o)=>this.unsubscribeFromStore(o)),this[Yr].forEach(r=>r()),this[Yr]=[]}unsubscribeFromStore(r){this[it].has(r)&&this[it].get(r)(),this[it].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rs=it,Ls=Ct,Is=Yr;fr.reduxProperties=new Map;fr.reduxReactiveProperties=new Set;fr.reduxEventListeners=new Map;function Ce(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 Ge(e){return!!e&&!!e[j]}function Ne(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)===bl}(e)||Array.isArray(e)||!!e[$s]||!!(!((r=e.constructor)===null||r===void 0)&&r[$s])||on(e)||nn(e))}function Et(e,r,o){o===void 0&&(o=!1),zt(e)===0?(o?Object.keys:Ht)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function zt(e){var r=e[j];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:on(e)?2:nn(e)?3:0}function Wt(e,r){return zt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ul(e,r){return zt(e)===2?e.get(r):e[r]}function Us(e,r,o){var n=zt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ms(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function on(e){return gl&&e instanceof Map}function nn(e){return ml&&e instanceof Set}function st(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Hs(e);delete r[j];for(var o=Ht(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 sn(e,r){return r===void 0&&(r=!1),cn(e)||Ge(e)||!Ne(e)||(zt(e)>1&&(e.set=e.add=e.clear=e.delete=pl),Object.freeze(e),r&&Et(e,function(o,n){return sn(n,!0)},!0)),e}function pl(){Ce(2)}function cn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _e(e){var r=rn[e];return r||Ce(18,e),r}function fl(e,r){rn[e]||(rn[e]=r)}function Jo(){return yr}function qo(e,r){r&&(_e("Patches"),e.u=[],e.s=[],e.v=r)}function Xr(e){en(e),e.p.forEach(hl),e.p=null}function en(e){e===yr&&(yr=e.l)}function Ps(e){return yr={p:[],l:yr,h:e,m:!0,_:0}}function hl(e){var r=e[j];r.i===0||r.i===1?r.j():r.g=!0}function Yo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||_e("ES5").S(r,e,n),n?(o[j].P&&(Xr(r),Ce(4)),Ne(e)&&(e=Qr(r,e),r.l||Jr(r,e)),r.u&&_e("Patches").M(o[j].t,e,r.u,r.s)):e=Qr(r,o,[]),Xr(r),r.u&&r.v(r.u,r.s),e!==Ws?e:void 0}function Qr(e,r,o){if(cn(r))return r;var n=r[j];if(!n)return Et(r,function(l,p){return Ts(e,n,r,l,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Jr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=an(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Et(i,function(l,p){return Ts(e,n,a,l,p,o,c)}),Jr(e,a,!1),o&&e.u&&_e("Patches").N(n,o,e.u,e.s)}return n.o}function Ts(e,r,o,n,a,i,c){if(Ge(a)){var l=Qr(e,a,i&&r&&r.i!==3&&!Wt(r.R,n)?i.concat(n):void 0);if(Us(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Ne(a)&&!cn(a)){if(!e.h.D&&e._<1)return;Qr(e,a),r&&r.A.l||Jr(e,a)}}function Jr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&sn(r,o)}function Xo(e,r){var o=e[j];return(o?st(o):e)[r]}function ks(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 ct(e){e.P||(e.P=!0,e.l&&ct(e.l))}function Qo(e){e.o||(e.o=an(e.t))}function tn(e,r,o){var n=on(r)?_e("MapSet").F(r,o):nn(r)?_e("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Jo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=gr;c&&(p=[l],u=hr);var h=Proxy.revocable(p,u),g=h.revoke,m=h.proxy;return l.k=m,l.j=g,m}(r,o):_e("ES5").J(r,o);return(o?o.A:Jo()).p.push(n),n}function yl(e){return Ge(e)||Ce(22,e),function r(o){if(!Ne(o))return o;var n,a=o[j],i=zt(o);if(a){if(!a.P&&(a.i<4||!_e("ES5").K(a)))return a.t;a.I=!0,n=_s(o,i),a.I=!1}else n=_s(o,i);return Et(n,function(c,l){a&&ul(a.t,c)===l||Us(n,c,r(l))}),i===3?new Set(n):n}(e)}function _s(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function Fs(){function e(c,l){var p=i[c];return p?p.enumerable=l:i[c]=p={configurable:!0,enumerable:l,get:function(){var u=this[j];return gr.get(u,c)},set:function(u){var h=this[j];gr.set(h,c,u)}},p}function r(c){for(var l=c.length-1;l>=0;l--){var p=c[l][j];if(!p.P)switch(p.i){case 5:n(p)&&ct(p);break;case 4:o(p)&&ct(p)}}}function o(c){for(var l=c.t,p=c.k,u=Ht(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==j){var m=l[g];if(m===void 0&&!Wt(l,g))return!0;var v=p[g],x=v&&v[j];if(x?x.t!==m:!Ms(v,m))return!0}}var S=!!l[j];return u.length!==Ht(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(st(c)))}var i={};fl("ES5",{J:function(c,l){var p=Array.isArray(c),u=function(g,m){if(g){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Hs(m);delete S[j];for(var L=Ht(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,g||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),h={i:p?5:4,A:l?l.A:Jo(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,j,{value:h,writable:!0}),u},S:function(c,l,p){p?Ge(l)&&l[j].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var g=h[j];if(g){var m=g.t,v=g.k,x=g.R,S=g.i;if(S===4)Et(v,function(B){B!==j&&(m[B]!==void 0||Wt(m,B)?x[B]||u(v[B]):(x[B]=!0,ct(g)))}),Et(m,function(B){v[B]!==void 0||Wt(v,B)||(x[B]=!1,ct(g))});else if(S===5){if(n(g)&&(ct(g),x.length=!0),v.length<m.length)for(var L=v.length;L<m.length;L++)x[L]=!1;else for(var N=m.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,m.length),k=0;k<R;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&u(v[k])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ds,yr,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gl=typeof Map<"u",ml=typeof Set<"u",Bs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ws=ln?Symbol.for("immer-nothing"):((Ds={})["immer-nothing"]=!0,Ds),$s=ln?Symbol.for("immer-draftable"):"__$immer_draftable",j=ln?Symbol.for("immer-state"):"__$immer_state";var bl=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hs=Object.getOwnPropertyDescriptors||function(e){var r={};return Ht(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},rn={},gr={get:function(e,r){if(r===j)return e;var o=st(e);if(!Wt(o,r))return function(a,i,c){var l,p=ks(i,c);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ne(n)?n:n===Xo(e.t,r)?(Qo(e),e.o[r]=tn(e.A.h,n,e)):n},has:function(e,r){return r in st(e)},ownKeys:function(e){return Reflect.ownKeys(st(e))},set:function(e,r,o){var n=ks(st(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Xo(st(e),r),i=a?.[j];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ms(o,a)&&(o!==void 0||Wt(e.t,r)))return!0;Qo(e),ct(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 Xo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Qo(e),ct(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=st(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},hr={};Et(gr,function(e,r){hr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),hr.deleteProperty=function(e,r){return hr.set.call(this,e,r,void 0)},hr.set=function(e,r,o){return gr.set.call(this,e[0],r,o,e[0])};var xl=function(){function e(o){var n=this;this.O=Bs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(S){var L=this;S===void 0&&(S=l);for(var N=arguments.length,R=Array(N>1?N-1:0),k=1;k<N;k++)R[k-1]=arguments[k];return p.produce(S,function(B){var $;return($=i).call.apply($,[L,B].concat(R))})}}var u;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Ne(a)){var h=Ps(n),g=tn(n,a,void 0),m=!0;try{u=i(g),m=!1}finally{m?Xr(h):en(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return qo(h,c),Yo(S,h)},function(S){throw Xr(h),S}):(qo(h,c),Yo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ws&&(u=void 0),n.D&&sn(u,!0),c){var v=[],x=[];_e("Patches").M(a,u,v,x),c(v,x)}return u}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(g))})};var c,l,p=n.produce(a,i,function(u,h){c=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,l]}):[p,c,l]},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){Ne(o)||Ce(8),Ge(o)&&(o=yl(o));var n=Ps(this),a=tn(this,o,void 0);return a[j].C=!0,en(n),a},r.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return qo(i,n),Yo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Bs&&Ce(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=_e("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new xl,vl=Se.produce,cm=Se.produceWithPatches.bind(Se),lm=Se.setAutoFreeze.bind(Se),dm=Se.setUseProxies.bind(Se),um=Se.applyPatches.bind(Se),pm=Se.createDraft.bind(Se),fm=Se.finishDraft.bind(Se),eo=vl;function lt(e){"@babel/helpers - typeof";return lt=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},lt(e)}function dn(e,r){if(lt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function un(e){var r=dn(e,"string");return lt(r)==="symbol"?r:String(r)}function pn(e,r,o){return r=un(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function zs(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 to(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?zs(Object(o),!0).forEach(function(n){pn(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):zs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(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 Gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ro={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Sl(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 hn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(hn)(e,r)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=r,c=[],l=c,p=!1;function u(){l===c&&(l=c.slice())}function h(){if(p)throw new Error(ce(3));return i}function g(S){if(typeof S!="function")throw new Error(ce(4));if(p)throw new Error(ce(5));var L=!0;return u(),l.push(S),function(){if(L){if(p)throw new Error(ce(6));L=!1,u();var R=l.indexOf(S);l.splice(R,1),c=null}}}function m(S){if(!Sl(S))throw new Error(ce(7));if(typeof S.type>"u")throw new Error(ce(8));if(p)throw new Error(ce(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var L=c=l,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ce(10));a=S,m({type:ro.REPLACE})}function x(){var S,L=g;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ce(11));function k(){R.next&&R.next(h())}k();var B=L(k);return{unsubscribe:B}}},S[Gs]=function(){return this},S}return m({type:ro.INIT}),n={dispatch:m,subscribe:g,getState:h,replaceReducer:v},n[Gs]=x,n}function Ol(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:ro.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function js(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,l;try{Ol(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var m=!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 k=h&&h.type;throw new Error(ce(14))}v[S]=R,m=m||R!==N}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Gt(){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(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(p){return p(c)});return i=Gt.apply(void 0,l)(a.dispatch),to(to({},a),{},{dispatch:i})}}}function Vs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Zs=Vs();Zs.withExtraArgument=Vs;var yn=Zs;var Js=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)}}(),Cl=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(h){return p([u,h])}}function p(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}}},jt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},El=Object.defineProperty,wl=Object.defineProperties,Al=Object.getOwnPropertyDescriptors,qs=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,Ys=function(e,r,o){return r in e?El(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},dt=function(e,r){for(var o in r||(r={}))Nl.call(r,o)&&Ys(e,o,r[o]);if(qs)for(var n=0,a=qs(r);n<a.length;n++){var o=a[n];Rl.call(r,o)&&Ys(e,o,r[o])}return e},gn=function(e,r){return wl(e,Al(r))},Ll=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},c=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Il=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gt:Gt.apply(null,arguments)},Pm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Pl(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 Tl=function(e){Js(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,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array),kl=function(e){Js(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,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array);function xn(e){return Ne(e)?eo(e,function(){}):e}function _l(e){return typeof e=="boolean"}function Dl(){return function(r){return Bl(r)}}function Bl(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,l=new Tl;if(o&&(_l(o)?l.push(yn):l.push(yn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return l}var mn=!0;function ec(e){var r=Dl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,m=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(Pl(a))v=js(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),!mn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!mn&&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=Gt;p&&(L=Il(dt({trace:!mn},typeof p=="object"&&p)));var N=new kl(S),R=N;Array.isArray(m)?R=jt([S],m):typeof m=="function"&&(R=m(N));var k=L.apply(void 0,R);return hn(v,h,k)}function ut(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 dt(dt({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 tc(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=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 $l(e){return typeof e=="function"}function Ul(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?tc(r):[r,o,n],i=a[0],c=a[1],l=a[2],p;if($l(e))p=function(){return xn(e())};else{var u=xn(e);p=function(){return u}}function h(g,m){g===void 0&&(g=p());var v=jt([i[m.type]],c.filter(function(x){var S=x.matcher;return S(m)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ge(x)){var L=x,N=S(L,m);return N===void 0?x:N}else{if(Ne(x))return eo(x,function(R){return S(R,m)});var N=S(x,m);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},g)}return h.getInitialState=p,h}function Ml(e,r){return e+"/"+r}function rc(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:xn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var g=n[h],m=Ml(r,h),v,x;"reducer"in g?(v=g.reducer,x=g.prepare):v=g,i[h]=v,c[m]=v,l[h]=x?ut(m,x):ut(m)});function p(){var h=typeof e.extraReducers=="function"?tc(e.extraReducers):[e.extraReducers],g=h[0],m=g===void 0?{}:g,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=dt(dt({},m),c);return Ul(o,function(R){for(var k in N)R.addCase(k,N[k]);for(var B=0,$=x;B<$.length;B++){var pe=$[B];R.addMatcher(pe.matcher,pe.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Fl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Fl[Math.random()*64|0];return r},Hl=["name","message","stack","code"],bn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Xs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),zl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Hl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Dm=function(){function e(r,o,n){var a=ut(r+"/fulfilled",function(h,g,m,v){return{payload:h,meta:gn(dt({},v||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),i=ut(r+"/pending",function(h,g,m){return{payload:void 0,meta:gn(dt({},m||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),c=ut(r+"/rejected",function(h,g,m,v,x){return{payload:v,error:(n&&n.serializeError||zl)(h||"Rejected"),meta:gn(dt({},x||{}),{arg:m,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(g,m,v){var x=n?.idGenerator?n.idGenerator(h):Wl(),S=new p,L,N=!1;function R(B){L=B,S.abort()}var k=function(){return Ll(this,null,function(){var B,$,pe,Le,le,Ie,oe;return Cl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Le=(B=n?.condition)==null?void 0:B.call(n,h,{getState:m,extra:v}),jl(Le)?[4,Le]:[3,2];case 1:Le=y.sent(),y.label=2;case 2:if(Le===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,le=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),g(i(x,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([le,Promise.resolve(o(h,{dispatch:g,getState:m,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new bn(b,P)},fulfillWithValue:function(b,P){return new Xs(b,P)}})).then(function(b){if(b instanceof bn)throw b;return b instanceof Xs?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return pe=y.sent(),[3,5];case 4:return Ie=y.sent(),pe=Ie instanceof bn?c(null,x,h,Ie.payload,Ie.meta):c(Ie,x,h),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,oe||g(pe),[2,pe]}})})}();return Object.assign(k,{abort:R,requestId:x,arg:h,unwrap:function(){return k.then(Gl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Gl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var oc="listener",nc="completed",ac="cancelled",Bm="task-"+ac,$m="task-"+nc,Um=oc+"-"+ac,Mm=oc+"-"+nc;var vn="listenerMiddleware";var Fm=ut(vn+"/add"),Wm=ut(vn+"/removeAll"),Hm=ut(vn+"/remove");var Qs,zm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Qs||(Qs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Kl=function(e){return function(r){setTimeout(r,e)}},Gm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kl(10);Fs();function Vl(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 oo=class extends Vl(Object){};window.ftReduxStores||(window.ftReduxStores={});var ic=class e extends oo{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(pr(i))return i;if(a==null)return;let c=rc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=ec({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:c.reducer(p,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new jr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...p)=>{let u=l(...p);return this.reduxStore.dispatch(u),u}:p=>{this.setState({[c]:p})}}})}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 so=C(_());var no=class extends ze{async listMySearches(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var ao=class extends ze{async listMyBookmarks(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var ql="ft-user-assets",io=so.FtReduxStore.get({name:ql,initialState:{savedSearches:void 0,bookmarks:void 0}}),Sn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ao,this.savedSearchesService=new no,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=T.getState();(0,so.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(),io.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),io.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();io.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;io.actions.bookmarks(o)}}},Ob=new Sn;var On=class{addCommand(r,o=!1){T.commands.add(r,o)}consumeCommand(r){return T.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new On;var sc=C(_()),Cn=class{highlightHtml(r,o,n){(0,sc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Cn;var cc=C(_());var En=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return cc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new En;var lc=C(_());var Kt=class{static get(r,o){var n,a,i,c;let l=T.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new lc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}};(0,dc.customElement)("ft-app-context")(q);var wn=class e extends Event{constructor(){super(e.eventName)}};wn.eventName="search-context-clear-all-filters";var Yl=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Rn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Nn=Symbol("registerInterval");function Xl(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[Nn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Nn]):this.dispatchEvent(new Rn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=Nn,Yl([(0,pc.state)()],o.prototype,"stateManager",void 0),o}var Vt=class extends Xl(uc.FtLitElementRedux){};var mc=C(_());var fo=C(W()),ho=C(ee()),yo=C(_());var fc=C(W());var hc=fc.css`
1144
+ `;var uo=C(_());var gc=C(ee()),Ql=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Ln=Symbol("i18nAttributes"),In=Symbol("i18nListAttributes"),co=Symbol("i18nProperties"),mr=Symbol("i18nUnsubs");function po(e){var r;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?ms:Ot}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let p=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,c,l;(i=this[Ln])===null||i===void 0||i.forEach((p,u)=>{let h=this.getI18nAttributeValue(u);h&&(this[u]=this.getI18nAttributeMessage(h,p,a))}),(c=this[In])===null||c===void 0||c.forEach((p,u)=>{let h=this.getI18nListAttributeValues(u);this[u]=h?.map(g=>this.getI18nAttributeMessage(g,p,a))}),(l=this[co])===null||l===void 0||l.forEach((p,u)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let p=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[Ln])===null||i===void 0||i.forEach((p,u)=>{let h=this.getI18nAttributeValue(u);h?.context&&h.key&&(a.has(u)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,u),this[u]=this.getI18nAttributeMessage(h,p))}),(c=this[In])===null||c===void 0||c.forEach((p,u)=>{let h=this.getI18nListAttributeValues(u);(a.has(u)||p.argsProvider!=null)&&(this[u]=h?.map(g=>(this.addI18nContextIfNeeded(g,a,u),this.getI18nAttributeMessage(g,p))))}),(l=this[co])===null||l===void 0||l.forEach((p,u)=>{p.argsProvider!=null&&(this[u]=this.i18n(p))})}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,l,p,u;super.connectedCallback(),new Set([...(i=(a=this[co])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[Ln])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(u=(p=this[In])===null||p===void 0?void 0:p.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[mr].has(a)||this[mr].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[mr].forEach(a=>a()),this[mr].clear()}}return r=mr,Ql([(0,gc.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var yc=class extends po(uo.FtLitElement){},lo=class extends po(uo.FtLitElementRedux){};var br=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 l=e.length-1;l>=0;l--)(c=e[l])&&(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},Re=class extends lo{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":fo.nothing:fo.html`
1145
1145
  <span class="ft-i18n">
1146
1146
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1147
1147
  </span>
1148
- `}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:""})}};Re.elementDefinitions={};Re.styles=hc;br([(0,yo.redux)()],Re.prototype,"editorMode",void 0);br([(0,ho.property)()],Re.prototype,"context",void 0);br([(0,ho.property)()],Re.prototype,"key",void 0);br([(0,yo.jsonProperty)([])],Re.prototype,"args",void 0);br([(0,ho.property)()],Re.prototype,"defaultMessage",void 0);var go=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)=>Ot.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Ot.resolveRawMessage(this.name,n)})}};(0,mc.customElement)("ft-i18n")(Re);var xr=go.build("designedSearchInput");var Ve=C(J()),Cc=C(Ar());var vr=C(_()),Zt=C(W()),bo=C(J());var bc=C(W());var xc=bc.css`
1148
+ `}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:""})}};Re.elementDefinitions={};Re.styles=hc;br([(0,yo.redux)()],Re.prototype,"editorMode",void 0);br([(0,ho.property)()],Re.prototype,"context",void 0);br([(0,ho.property)()],Re.prototype,"key",void 0);br([(0,yo.jsonProperty)([])],Re.prototype,"args",void 0);br([(0,ho.property)()],Re.prototype,"defaultMessage",void 0);var go=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)=>Ot.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Ot.resolveRawMessage(this.name,n)})}};(0,mc.customElement)("ft-i18n")(Re);var xr=go.build("designedSearchInput");var Ve=C(ee()),Cc=C(Ar());var vr=C(_()),Zt=C(W()),bo=C(ee());var bc=C(W());var xc=bc.css`
1149
1149
  * {
1150
1150
  box-sizing: border-box;
1151
1151
  }