@fluid-topics/ft-search-load-more-button 1.2.46 → 1.2.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var gc=Object.create;var En=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var bc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty;var yt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Sc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of bc(r))!vc.call(e,a)&&a!==o&&En(e,a,{get:()=>r[a],enumerable:!(n=mc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?gc(xc(e)):{},Sc(r||!e||!e.__esModule?En(o,"default",{value:e,enumerable:!0}):o,e));var k=yt((jl,An)=>{An.exports=ftGlobals.wcUtils});var G=yt((Kl,wn)=>{wn.exports=ftGlobals.lit});var ne=yt((ql,Ln)=>{Ln.exports=ftGlobals.litDecorators});var lo=yt((yh,Ta)=>{Ta.exports=ftGlobals.litClassMap});var Ni=yt((xy,Ri)=>{Ri.exports=ftGlobals.litUnsafeHTML});var Wi=yt((Ye,$i)=>{var Nr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Lr=function(){function e(){this.fetch=!1,this.DOMException=Nr.DOMException}return e.prototype=Nr,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(g){return g&&DataView.prototype.isPrototypeOf(g)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(g){return g&&c.indexOf(Object.prototype.toString.call(g))>-1};function p(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function u(g){return typeof g!="string"&&(g=String(g)),g}function y(g){var b={next:function(){var
|
|
2
|
-
`)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var ur=z.join(":").trim();try{b.append(M,ur)}catch(so){console.warn("Response "+so.message)}}}),b}N.call(U.prototype);function se(g,b){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new f(b.headers),this.url=b.url||"",this._initBody(g)}N.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},se.error=function(){var g=new se(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var Re=[301,302,303,307,308];se.redirect=function(g,b){if(Re.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:g}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,
|
|
3
|
-
`;var Bo=C(k());var Jt=C(ne()),Di=C(k());var Na=C(G()),D=C(k());var Dn=C(G()),Z=C(k()),Tn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:Tn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Tn),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},
|
|
1
|
+
"use strict";(()=>{var gc=Object.create;var En=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var bc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty;var yt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Sc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of bc(r))!vc.call(e,a)&&a!==o&&En(e,a,{get:()=>r[a],enumerable:!(n=mc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?gc(xc(e)):{},Sc(r||!e||!e.__esModule?En(o,"default",{value:e,enumerable:!0}):o,e));var k=yt((jl,An)=>{An.exports=ftGlobals.wcUtils});var G=yt((Kl,wn)=>{wn.exports=ftGlobals.lit});var ne=yt((ql,Ln)=>{Ln.exports=ftGlobals.litDecorators});var lo=yt((yh,Ta)=>{Ta.exports=ftGlobals.litClassMap});var Ni=yt((xy,Ri)=>{Ri.exports=ftGlobals.litUnsafeHTML});var Wi=yt((Ye,$i)=>{var Nr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Lr=function(){function e(){this.fetch=!1,this.DOMException=Nr.DOMException}return e.prototype=Nr,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(g){return g&&DataView.prototype.isPrototypeOf(g)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(g){return g&&c.indexOf(Object.prototype.toString.call(g))>-1};function p(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function u(g){return typeof g!="string"&&(g=String(g)),g}function y(g){var b={next:function(){var P=g.shift();return{done:P===void 0,value:P}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function f(g){this.map={},g instanceof f?g.forEach(function(b,P){this.append(P,b)},this):Array.isArray(g)?g.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):g&&Object.getOwnPropertyNames(g).forEach(function(b){this.append(b,g[b])},this)}f.prototype.append=function(g,b){g=p(g),b=u(b);var P=this.map[g];this.map[g]=P?P+", "+b:b},f.prototype.delete=function(g){delete this.map[p(g)]},f.prototype.get=function(g){return g=p(g),this.has(g)?this.map[g]:null},f.prototype.has=function(g){return this.map.hasOwnProperty(p(g))},f.prototype.set=function(g,b){this.map[p(g)]=u(b)},f.prototype.forEach=function(g,b){for(var P in this.map)this.map.hasOwnProperty(P)&&g.call(b,this.map[P],P,this)},f.prototype.keys=function(){var g=[];return this.forEach(function(b,P){g.push(P)}),y(g)},f.prototype.values=function(){var g=[];return this.forEach(function(b){g.push(b)}),y(g)},f.prototype.entries=function(){var g=[];return this.forEach(function(b,P){g.push([P,b])}),y(g)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function v(g){return new Promise(function(b,P){g.onload=function(){b(g.result)},g.onerror=function(){P(g.error)}})}function x(g){var b=new FileReader,P=v(b);return b.readAsArrayBuffer(g),P}function S(g){var b=new FileReader,P=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(g.type),z=$?$[1]:"utf-8";return b.readAsText(g,z),P}function L(g){for(var b=new Uint8Array(g),P=new Array(b.length),$=0;$<b.length;$++)P[$]=String.fromCharCode(b[$]);return P.join("")}function R(g){if(g.slice)return g.slice(0);var b=new Uint8Array(g.byteLength);return b.set(new Uint8Array(g)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:a.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:a.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():a.arrayBuffer&&a.blob&&i(g)?(this._bodyArrayBuffer=R(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||d(g))?this._bodyArrayBuffer=R(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="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(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var g=m(this);if(g)return g;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 g=m(this);return g||(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 g=m(this);if(g)return g;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(le)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(g){var b=g.toUpperCase();return _.indexOf(b)>-1?b:g}function U(g,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var P=b.body;if(g instanceof U){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,b.headers||(this.headers=new f(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!P&&g._bodyInit!=null&&(P=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new f(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(g){var b=new FormData;return g.trim().split("&").forEach(function(P){if(P){var $=P.split("="),z=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(z),decodeURIComponent(M))}}),b}function we(g){var b=new f,P=g.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function($){return $.indexOf(`
|
|
2
|
+
`)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var ur=z.join(":").trim();try{b.append(M,ur)}catch(so){console.warn("Response "+so.message)}}}),b}N.call(U.prototype);function se(g,b){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new f(b.headers),this.url=b.url||"",this._initBody(g)}N.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},se.error=function(){var g=new se(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var Re=[301,302,303,307,308];se.redirect=function(g,b){if(Re.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:g}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,P){this.message=b,this.name=P;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function J(g,b){return new Promise(function(P,$){var z=new U(g,b);if(z.signal&&z.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function ur(){M.abort()}M.onload=function(){var ee={statusText:M.statusText,headers:we(M.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(M.status<200||M.status>599)?ee.status=200:ee.status=M.status,ee.url="responseURL"in M?M.responseURL:ee.headers.get("X-Request-URL");var nt="response"in M?M.response:M.responseText;setTimeout(function(){P(new se(nt,ee))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function so(ee){try{return ee===""&&n.location.href?n.location.href:ee}catch{return ee}}if(M.open(z.method,so(z.url),!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof f||n.Headers&&b.headers instanceof n.Headers)){var Cn=[];Object.getOwnPropertyNames(b.headers).forEach(function(ee){Cn.push(p(ee)),M.setRequestHeader(ee,u(b.headers[ee]))}),z.headers.forEach(function(ee,nt){Cn.indexOf(nt)===-1&&M.setRequestHeader(nt,ee)})}else z.headers.forEach(function(ee,nt){M.setRequestHeader(nt,ee)});z.signal&&(z.signal.addEventListener("abort",ur),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",ur)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return J.polyfill=!0,n.fetch||(n.fetch=J,n.Headers=f,n.Request=U,n.Response=se),o.Headers=f,o.Request=U,o.Response=se,o.fetch=J,o}({})})(Lr);Lr.fetch.ponyfill=!0;delete Lr.fetch.polyfill;var It=Nr.fetch?Nr:Lr;Ye=It.fetch;Ye.default=It.fetch;Ye.fetch=It.fetch;Ye.Headers=It.Headers;Ye.Request=It.Request;Ye.Response=It.Response;$i.exports=Ye});var yc=C(k());var io=C(G()),On=C(k());var Rn=C(G()),Vl={},Nn=Rn.css`
|
|
3
|
+
`;var Bo=C(k());var Jt=C(ne()),Di=C(k());var Na=C(G()),D=C(k());var Dn=C(G()),Z=C(k()),Tn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:Tn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Tn),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Pn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),_n={color:Pn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Pn)},In=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),kn={color:In,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",In)},Bn=Dn.css`
|
|
4
4
|
:host {
|
|
5
5
|
display: contents;
|
|
6
6
|
}
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
66
|
-
background-color: ${
|
|
66
|
+
background-color: ${_n.backgroundColor};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
70
|
-
background-color: ${
|
|
70
|
+
background-color: ${_n.color};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.ft-ripple .ft-ripple--background {
|
|
@@ -334,7 +334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
334
334
|
.ft-icon--material {
|
|
335
335
|
font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
|
|
336
336
|
}
|
|
337
|
-
`,xe.noTextSelect];var wa=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),
|
|
337
|
+
`,xe.noTextSelect];var wa=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),X={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:wa,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",wa),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ra=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),co={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ra,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ra)},Le={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},La=[Na.css`
|
|
338
338
|
:host {
|
|
339
339
|
display: inline-block;
|
|
340
340
|
max-width: 100%;
|
|
@@ -345,7 +345,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
345
345
|
box-shadow: 0px 0px 0px transparent;
|
|
346
346
|
border: 0px solid transparent;
|
|
347
347
|
text-shadow: 0px 0px 0px transparent;
|
|
348
|
-
font-size: ${
|
|
348
|
+
font-size: ${X.fontSize};
|
|
349
349
|
text-decoration: none;
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -375,21 +375,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
375
375
|
border: none;
|
|
376
376
|
pointer-events: auto;
|
|
377
377
|
|
|
378
|
-
--ft-button-internal-line-height: max(calc(${
|
|
379
|
-
--ft-button-internal-color: ${
|
|
380
|
-
${(0,D.setVariable)(ce.size,
|
|
381
|
-
${(0,D.setVariable)(E.color,
|
|
378
|
+
--ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
379
|
+
--ft-button-internal-color: ${X.color};
|
|
380
|
+
${(0,D.setVariable)(ce.size,X.iconSize)};
|
|
381
|
+
${(0,D.setVariable)(E.color,X.rippleColor)};
|
|
382
382
|
|
|
383
|
-
border-radius: ${
|
|
384
|
-
padding: ${
|
|
385
|
-
background-color: ${
|
|
383
|
+
border-radius: ${X.borderRadius};
|
|
384
|
+
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
385
|
+
background-color: ${X.backgroundColor};
|
|
386
386
|
color: var(--ft-button-internal-color);
|
|
387
387
|
-webkit-mask-image: radial-gradient(white, black);
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
.ft-button.ft-button--outlined {
|
|
391
391
|
border: 1px solid var(--ft-button-internal-color);
|
|
392
|
-
padding: calc(${
|
|
392
|
+
padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-button.ft-button--dense {
|
|
@@ -407,7 +407,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.ft-button--round {
|
|
410
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
410
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${X.verticalPadding});
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.ft-button--round.ft-button--dense {
|
|
@@ -416,7 +416,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
416
416
|
|
|
417
417
|
.ft-button[disabled] {
|
|
418
418
|
filter: grayscale(1);
|
|
419
|
-
opacity: ${
|
|
419
|
+
opacity: ${X.opacityDisabled};
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
.ft-button.ft-button--primary {
|
|
@@ -435,7 +435,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
435
435
|
white-space: nowrap;
|
|
436
436
|
text-overflow: ellipsis;
|
|
437
437
|
display: block;
|
|
438
|
-
margin: 0 ${
|
|
438
|
+
margin: 0 ${X.iconPadding};
|
|
439
439
|
${(0,D.setVariable)(Ne.fontSize,"1em")};
|
|
440
440
|
${(0,D.setVariable)(Ne.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
441
441
|
}
|
|
@@ -454,8 +454,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.ft-button--label[hidden] + [part="icon"] {
|
|
457
|
-
margin: 0 calc(${
|
|
458
|
-
padding: 0 ${
|
|
457
|
+
margin: 0 calc(${X.horizontalPadding} * -1);
|
|
458
|
+
padding: 0 ${X.verticalPadding};
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
@@ -468,23 +468,23 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
ft-loader {
|
|
471
|
-
${(0,D.setVariable)(W.size,
|
|
471
|
+
${(0,D.setVariable)(W.size,X.iconSize)};
|
|
472
472
|
${(0,D.setVariable)(W.color,"var(--ft-button-internal-color)")};
|
|
473
473
|
}
|
|
474
|
-
`,D.noTextSelect];var qe=C(k());var Ia=C(k());var
|
|
474
|
+
`,D.noTextSelect];var qe=C(k());var Ia=C(k());var Pa=C(G()),te=C(ne()),_a=C(lo()),Ft=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},j=class extends Ft.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ft.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ft.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Pa.html`
|
|
475
475
|
<style>
|
|
476
476
|
.ft-ripple .ft-ripple--effect {
|
|
477
477
|
left: ${this.originX}px;
|
|
478
478
|
top: ${this.originY}px;
|
|
479
479
|
}
|
|
480
480
|
</style>
|
|
481
|
-
<div class="${(0,
|
|
481
|
+
<div class="${(0,_a.classMap)(r)}">
|
|
482
482
|
<div class="ft-ripple--background"></div>
|
|
483
483
|
<div class="ft-ripple--effect"></div>
|
|
484
484
|
</div>
|
|
485
|
-
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>p=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Bn;de([(0,
|
|
485
|
+
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>p=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Bn;de([(0,te.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,te.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,te.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,te.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,te.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,te.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,te.state)()],j.prototype,"hovered",void 0);de([(0,te.state)()],j.prototype,"focused",void 0);de([(0,te.state)()],j.prototype,"pressed",void 0);de([(0,te.state)()],j.prototype,"rippling",void 0);de([(0,te.state)()],j.prototype,"originX",void 0);de([(0,te.state)()],j.prototype,"originY",void 0);de([(0,te.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,te.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var wi=C(k());var Ai=C(G()),q=C(ne()),Yt=C(k());var Xa=C(k());var mo=globalThis,yr=mo.trustedTypes,ka=yr?yr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Wa="$lit$",Ge=`lit$${Math.random().toFixed(9).slice(2)}$`,Fa="?"+Ge,Cc=`<${Fa}>`,st=document,gr=()=>st.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",bo=Array.isArray,Ec=e=>bo(e)||typeof e?.[Symbol.iterator]=="function",uo=`[
|
|
486
486
|
\f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Da=/-->/g,Ba=/>/g,at=RegExp(`>|${uo}(?:([^\\s"'>=/]+)(${uo}*=${uo}*(?:[^
|
|
487
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ua=/'/g,Ma=/"/g,Ha=/^(?:script|style|textarea|title)$/i,xo=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),za=xo(1),Ga=xo(2),ja=xo(3),Gt=Symbol.for("lit-noChange"),
|
|
487
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ua=/'/g,Ma=/"/g,Ha=/^(?:script|style|textarea|title)$/i,xo=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),za=xo(1),Ga=xo(2),ja=xo(3),Gt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),$a=new WeakMap,it=st.createTreeWalker(st,129);function Ka(e,r){if(!bo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ka!==void 0?ka.createHTML(r):r}var Ac=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":r===3?"<math>":"",c=Ht;for(let d=0;d<o;d++){let p=e[d],u,y,f=-1,m=0;for(;m<p.length&&(c.lastIndex=m,y=c.exec(p),y!==null);)m=c.lastIndex,c===Ht?y[1]==="!--"?c=Da:y[1]!==void 0?c=Ba:y[2]!==void 0?(Ha.test(y[2])&&(a=RegExp("</"+y[2],"g")),c=at):y[3]!==void 0&&(c=at):c===at?y[0]===">"?(c=a??Ht,f=-1):y[1]===void 0?f=-2:(f=c.lastIndex-y[2].length,u=y[1],c=y[3]===void 0?at:y[3]==='"'?Ma:Ua):c===Ma||c===Ua?c=at:c===Da||c===Ba?c=Ht:(c=at,a=void 0);let v=c===at&&e[d+1].startsWith("/>")?" ":"";i+=c===Ht?p+Cc:f>=0?(n.push(u),p.slice(0,f)+Wa+p.slice(f)+Ge+v):p+Ge+(f===-2?d:v)}return[Ka(e,i+(e[o]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,p=this.parts,[u,y]=Ac(r,o);if(this.el=e.createElement(u,n),it.currentNode=this.el.content,o===2||o===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=it.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(Wa)){let m=y[c++],v=a.getAttribute(f).split(Ge),x=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?fo:x[1]==="?"?ho:x[1]==="@"?yo:Rt}),a.removeAttribute(f)}else f.startsWith(Ge)&&(p.push({type:6,index:i}),a.removeAttribute(f));if(Ha.test(a.tagName)){let f=a.textContent.split(Ge),m=f.length-1;if(m>0){a.textContent=yr?yr.emptyScript:"";for(let v=0;v<m;v++)a.append(f[v],gr()),it.nextNode(),p.push({type:2,index:++i});a.append(f[m],gr())}}}else if(a.nodeType===8)if(a.data===Fa)p.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(Ge,f+1))!==-1;)p.push({type:7,index:i}),f+=Ge.length-1}i++}}static createElement(r,o){let n=st.createElement("template");return n.innerHTML=r,n}};function wt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=wt(e,a._$AS(e,r.values),a,n)),r}var po=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??st).importNode(o,!0);it.currentNode=a;let i=it.nextNode(),c=0,d=0,p=n[0];for(;p!==void 0;){if(c===p.index){let u;p.type===2?u=new mr(i,i.nextSibling,this,r):p.type===1?u=new p.ctor(i,p.name,p.strings,this,r):p.type===6&&(u=new go(i,this,r)),this._$AV.push(u),p=n[++d]}c!==p?.index&&(i=it.nextNode(),c++)}return it.currentNode=st,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},mr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=wt(this,r,o),zt(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Ec(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==Q&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.T(st.createTextNode(r)),this._$AH=r}$(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ka(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new po(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(r){let o=$a.get(r.strings);return o===void 0&&$a.set(r.strings,o=new jt(r)),o}k(r){bo(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.O(gr()),this.O(gr()),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))}},Rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=wt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let d=r,p,u;for(r=i[0],p=0;p<i.length-1;p++)u=wt(this,d[n+p],o,p),u===Gt&&(u=this._$AH[p]),c||=!zt(u)||u!==this._$AH[p],u===Q?r=Q:r!==Q&&(r+=(u??"")+i[p+1]),this._$AH[p]=u}c&&!a&&this.j(r)}j(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},fo=class extends Rt{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===Q?void 0:r}},ho=class extends Rt{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==Q)}},yo=class extends Rt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=wt(this,r,o,0)??Q)===Gt)return;let n=this._$AH,a=r===Q&&n!==Q||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==Q&&(n===Q||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},go=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){wt(this,r)}};var wc=mo.litHtmlPolyfillSupport;wc?.(jt,mr),(mo.litHtmlVersions??=[]).push("3.3.0");var Za=Symbol.for(""),Rc=e=>{if(e?.r===Za)return e?._$litStatic$},vo=e=>({_$litStatic$:e,r:Za});var Va=new Map,So=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],p,u=0,y=!1;for(;u<n;){for(p=r[u];u<n&&(i=o[u],(a=Rc(i))!==void 0);)p+=a+r[++u],y=!0;u!==n&&d.push(i),c.push(p),u++}if(u===n&&c.push(r[n]),y){let f=c.join("$$lit$$");(r=Va.get(f))===void 0&&(c.raw=c,Va.set(f,r=c)),o=d}return e(r,...o)},Oo=So(za),Ah=So(Ga),wh=So(ja);var Co=C(ne()),Ya=C(k());var je;(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"})(je||(je={}));var qa=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ve=class extends Ya.FtLitElement{constructor(){super(...arguments),this.variant=je.body1}render(){return this.element?Oo`
|
|
488
488
|
<${vo(this.element)}
|
|
489
489
|
part="text"
|
|
490
490
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -521,7 +521,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
521
521
|
position: relative;
|
|
522
522
|
word-break: break-word;
|
|
523
523
|
}
|
|
524
|
-
`;var ti=["top","right","bottom","left"],ei=["start","end"],Ao=ti.reduce((e,r)=>e.concat(r,r+"-"+ei[0],r+"-"+ei[1]),[]),ri=Math.min,oi=Math.max;var Nc={left:"right",right:"left",bottom:"top",top:"bottom"},Lc={start:"end",end:"start"};function wo(e,r,o){return oi(e,ri(r,o))}function br(e,r){return typeof e=="function"?e(r):e}function Lt(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function Ro(e){return e==="x"?"y":"x"}function No(e){return e==="y"?"height":"width"}function xr(e){return["top","bottom"].includes(Lt(e))?"y":"x"}function Lo(e){return Ro(xr(e))}function ni(e,r,o){o===void 0&&(o=!1);let n=Ke(e),a=Lo(e),i=No(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=Eo(c)),[c,Eo(c)]}function ai(e){return e.replace(/start|end/g,r=>Lc[r])}function Eo(e){return e.replace(/left|right|bottom|top/g,r=>Nc[r])}function Tc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ii(e){return typeof e!="number"?Tc(e):{top:e,right:e,bottom:e,left:e}}function ct(e){let{x:r,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function si(e,r,o){let{reference:n,floating:a}=e,i=xr(r),c=Lo(r),d=No(c),p=Lt(r),u=i==="y",y=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,v;switch(p){case"top":v={x:y,y:n.y-a.height};break;case"bottom":v={x:y,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-a.width,y:f};break;default:v={x:n.x,y:n.y}}switch(Ke(r)){case"start":v[c]-=m*(o&&u?-1:1);break;case"end":v[c]+=m*(o&&u?-1:1);break}return v}var ci=async(e,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,d=i.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(r)),u=await c.getElementRects({reference:e,floating:r,strategy:a}),{x:y,y:f}=si(u,n,p),m=n,v={},x=0;for(let S=0;S<d.length;S++){let{name:L,fn:R}=d[S],{x:N,y:P,data:B,reset:U}=await R({x:y,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:v,rects:u,platform:c,elements:{reference:e,floating:r}});y=N??y,f=P??f,v={...v,[L]:{...v[L],...B}},U&&x<=50&&(x++,typeof U=="object"&&(U.placement&&(m=U.placement),U.rects&&(u=U.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:a}):U.rects),{x:y,y:f}=si(u,m,p)),S=-1)}return{x:y,y:f,placement:m,strategy:a,middlewareData:v}};async function To(e,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:d,strategy:p}=e,{boundary:u="clippingAncestors",rootBoundary:y="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=br(r,e),x=ii(v),L=d[m?f==="floating"?"reference":"floating":f],R=ct(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:u,rootBoundary:y,strategy:p})),N=f==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},U=ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:P,strategy:p}):N);return{top:(R.top-U.top+x.top)/B.y,bottom:(U.bottom-R.bottom+x.bottom)/B.y,left:(R.left-U.left+x.left)/B.x,right:(U.right-R.right+x.right)/B.x}}function _c(e,r,o){return(e?[...o.filter(a=>Ke(a)===e),...o.filter(a=>Ke(a)!==e)]:o.filter(a=>Lt(a)===a)).filter(a=>e?Ke(a)===e||(r?ai(a)!==a:!1):!0)}var _o=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:d,platform:p,elements:u}=r,{crossAxis:y=!1,alignment:f,allowedPlacements:m=Ao,autoAlignment:v=!0,...x}=br(e,r),S=f!==void 0||m===Ao?_c(f||null,v,m):m,L=await To(r,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=S[R];if(N==null)return{};let P=ni(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(d!==N)return{reset:{placement:S[0]}};let B=[L[Lt(N)],L[P[0]],L[P[1]]],U=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],le=S[R+1];if(le)return{data:{index:R+1,overflows:U},reset:{placement:le}};let we=U.map(ee=>{let g=Ke(ee.placement);return[ee.placement,g&&y?ee.overflows.slice(0,2).reduce((b,_)=>b+_,0):ee.overflows[0],ee.overflows]}).sort((ee,g)=>ee[1]-g[1]),Re=((a=we.filter(ee=>ee[2].slice(0,Ke(ee[0])?2:3).every(g=>g<=0))[0])==null?void 0:a[0])||we[0][0];return Re!==d?{data:{index:R+1,overflows:U},reset:{placement:Re}}:{}}}};var Po=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:L=>{let{x:R,y:N}=L;return{x:R,y:N}}},...p}=br(e,r),u={x:o,y:n},y=await To(r,p),f=xr(Lt(a)),m=Ro(f),v=u[m],x=u[f];if(i){let L=m==="y"?"top":"left",R=m==="y"?"bottom":"right",N=v+y[L],P=v-y[R];v=wo(N,v,P)}if(c){let L=f==="y"?"top":"left",R=f==="y"?"bottom":"right",N=x+y[L],P=x-y[R];x=wo(N,x,P)}let S=d.fn({...r,[m]:v,[f]:x});return{...S,data:{x:S.x-o,y:S.y-n,enabled:{[m]:i,[f]:c}}}}}};var Io=Math.min,Tt=Math.max,Kt=Math.round;var Ue=e=>({x:e,y:e});function Me(e){return di(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function $e(e){var r;return(r=(di(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function di(e){return e instanceof Node||e instanceof ue(e).Node}function Te(e){return e instanceof Element||e instanceof ue(e).Element}function Se(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function li(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function _t(e){let{overflow:r,overflowX:o,overflowY:n,display:a}=he(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function ui(e){return["table","td","th"].includes(Me(e))}function Sr(e){let r=Or(),o=he(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function pi(e){let r=lt(e);for(;Se(r)&&!Vt(r);){if(Sr(r))return r;r=lt(r)}return null}function Or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vt(e){return["html","body","#document"].includes(Me(e))}function he(e){return ue(e).getComputedStyle(e)}function Zt(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(Me(e)==="html")return e;let r=e.assignedSlot||e.parentNode||li(e)&&e.host||$e(e);return li(r)?r.host:r}function fi(e){let r=lt(e);return Vt(r)?e.ownerDocument?e.ownerDocument.body:e.body:Se(r)&&_t(r)?r:fi(r)}function vr(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=fi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=ue(a);return i?r.concat(c,c.visualViewport||[],_t(a)?a:[],c.frameElement&&o?vr(c.frameElement):[]):r.concat(a,vr(a,[],o))}function gi(e){let r=he(e),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=Se(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=Kt(o)!==i||Kt(n)!==c;return d&&(o=i,n=c),{width:o,height:n,$:d}}function mi(e){return Te(e)?e:e.contextElement}function Pt(e){let r=mi(e);if(!Se(r))return Ue(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=gi(r),c=(i?Kt(o.width):o.width)/n,d=(i?Kt(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var kc=Ue(0);function bi(e){let r=ue(e);return!Or()||!r.visualViewport?kc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Dc(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==ue(e)?!1:r}function qt(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=mi(e),c=Ue(1);r&&(n?Te(n)&&(c=Pt(n)):c=Pt(e));let d=Dc(i,o,n)?bi(i):Ue(0),p=(a.left+d.x)/c.x,u=(a.top+d.y)/c.y,y=a.width/c.x,f=a.height/c.y;if(i){let m=ue(i),v=n&&Te(n)?ue(n):n,x=m.frameElement;for(;x&&n&&v!==m;){let S=Pt(x),L=x.getBoundingClientRect(),R=he(x),N=L.left+(x.clientLeft+parseFloat(R.paddingLeft))*S.x,P=L.top+(x.clientTop+parseFloat(R.paddingTop))*S.y;p*=S.x,u*=S.y,y*=S.x,f*=S.y,p+=N,u+=P,x=ue(x).frameElement}}return ct({width:y,height:f,x:p,y:u})}function Bc(e){let{rect:r,offsetParent:o,strategy:n}=e,a=Se(o),i=$e(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},d=Ue(1),p=Ue(0);if((a||!a&&n!=="fixed")&&((Me(o)!=="body"||_t(i))&&(c=Zt(o)),Se(o))){let u=qt(o);d=Pt(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x,y:r.y*d.y-c.scrollTop*d.y+p.y}}function Uc(e){return Array.from(e.getClientRects())}function xi(e){return qt($e(e)).left+Zt(e).scrollLeft}function Mc(e){let r=$e(e),o=Zt(e),n=e.ownerDocument.body,a=Tt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Tt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+xi(e),d=-o.scrollTop;return he(n).direction==="rtl"&&(c+=Tt(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:d}}function $c(e,r){let o=ue(e),n=$e(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,d=0,p=0;if(a){i=a.width,c=a.height;let u=Or();(!u||u&&r==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:c,x:d,y:p}}function Wc(e,r){let o=qt(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Se(e)?Pt(e):Ue(1),c=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:c,height:d,x:p,y:u}}function hi(e,r,o){let n;if(r==="viewport")n=$c(e,o);else if(r==="document")n=Mc($e(e));else if(Te(r))n=Wc(r,o);else{let a=bi(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return ct(n)}function vi(e,r){let o=lt(e);return o===r||!Te(o)||Vt(o)?!1:he(o).position==="fixed"||vi(o,r)}function Fc(e,r){let o=r.get(e);if(o)return o;let n=vr(e,[],!1).filter(d=>Te(d)&&Me(d)!=="body"),a=null,i=he(e).position==="fixed",c=i?lt(e):e;for(;Te(c)&&!Vt(c);){let d=he(c),p=Sr(c);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||_t(c)&&!p&&vi(e,c))?n=n.filter(y=>y!==c):a=d,c=lt(c)}return r.set(e,n),n}function Hc(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Fc(r,this._c):[].concat(o),n],d=c[0],p=c.reduce((u,y)=>{let f=hi(r,y,a);return u.top=Tt(f.top,u.top),u.right=Io(f.right,u.right),u.bottom=Io(f.bottom,u.bottom),u.left=Tt(f.left,u.left),u},hi(r,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function zc(e){return gi(e)}function Gc(e,r,o){let n=Se(r),a=$e(r),i=o==="fixed",c=qt(e,!0,i,r),d={scrollLeft:0,scrollTop:0},p=Ue(0);if(n||!n&&!i)if((Me(r)!=="body"||_t(a))&&(d=Zt(r)),n){let u=qt(r,!0,i,r);p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}else a&&(p.x=xi(a));return{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function yi(e,r){return!Se(e)||he(e).position==="fixed"?null:r?r(e):e.offsetParent}function Si(e,r){let o=ue(e);if(!Se(e))return o;let n=yi(e,r);for(;n&&ui(n)&&he(n).position==="static";)n=yi(n,r);return n&&(Me(n)==="html"||Me(n)==="body"&&he(n).position==="static"&&!Sr(n))?o:n||pi(e)||o}var jc=async function(e){let{reference:r,floating:o,strategy:n}=e,a=this.getOffsetParent||Si,i=this.getDimensions;return{reference:Gc(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Kc(e){return he(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:$e,getClippingRect:Hc,getOffsetParent:Si,getElementRects:jc,getClientRects:Uc,getDimensions:zc,getScale:Pt,isElement:Te,isRTL:Kc};var Oi=(e,r,o)=>{let n=new Map,a={platform:Cr,...o},i={...a.platform,_c:n};return ci(e,r,{...a,platform:i})};function Ci(e){return Vc(e)}function ko(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Vc(e){for(let r=e;r;r=ko(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=ko(e);r;r=ko(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Ei(e,r,o){return Oi(e,r,{platform:{...Cr,getOffsetParent:n=>Cr.getOffsetParent(n,Ci)},middleware:[Po({crossAxis:!0}),_o({allowedPlacements:[o]})]})}var pe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Yt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Yt.Debouncer,this.revealDebouncer=new Yt.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ai.html`
|
|
524
|
+
`;var ti=["top","right","bottom","left"],ei=["start","end"],Ao=ti.reduce((e,r)=>e.concat(r,r+"-"+ei[0],r+"-"+ei[1]),[]),ri=Math.min,oi=Math.max;var Nc={left:"right",right:"left",bottom:"top",top:"bottom"},Lc={start:"end",end:"start"};function wo(e,r,o){return oi(e,ri(r,o))}function br(e,r){return typeof e=="function"?e(r):e}function Lt(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function Ro(e){return e==="x"?"y":"x"}function No(e){return e==="y"?"height":"width"}function xr(e){return["top","bottom"].includes(Lt(e))?"y":"x"}function Lo(e){return Ro(xr(e))}function ni(e,r,o){o===void 0&&(o=!1);let n=Ke(e),a=Lo(e),i=No(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=Eo(c)),[c,Eo(c)]}function ai(e){return e.replace(/start|end/g,r=>Lc[r])}function Eo(e){return e.replace(/left|right|bottom|top/g,r=>Nc[r])}function Tc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ii(e){return typeof e!="number"?Tc(e):{top:e,right:e,bottom:e,left:e}}function ct(e){let{x:r,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function si(e,r,o){let{reference:n,floating:a}=e,i=xr(r),c=Lo(r),d=No(c),p=Lt(r),u=i==="y",y=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,v;switch(p){case"top":v={x:y,y:n.y-a.height};break;case"bottom":v={x:y,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-a.width,y:f};break;default:v={x:n.x,y:n.y}}switch(Ke(r)){case"start":v[c]-=m*(o&&u?-1:1);break;case"end":v[c]+=m*(o&&u?-1:1);break}return v}var ci=async(e,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,d=i.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(r)),u=await c.getElementRects({reference:e,floating:r,strategy:a}),{x:y,y:f}=si(u,n,p),m=n,v={},x=0;for(let S=0;S<d.length;S++){let{name:L,fn:R}=d[S],{x:N,y:_,data:B,reset:U}=await R({x:y,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:v,rects:u,platform:c,elements:{reference:e,floating:r}});y=N??y,f=_??f,v={...v,[L]:{...v[L],...B}},U&&x<=50&&(x++,typeof U=="object"&&(U.placement&&(m=U.placement),U.rects&&(u=U.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:a}):U.rects),{x:y,y:f}=si(u,m,p)),S=-1)}return{x:y,y:f,placement:m,strategy:a,middlewareData:v}};async function To(e,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:d,strategy:p}=e,{boundary:u="clippingAncestors",rootBoundary:y="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=br(r,e),x=ii(v),L=d[m?f==="floating"?"reference":"floating":f],R=ct(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:u,rootBoundary:y,strategy:p})),N=f==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},U=ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:_,strategy:p}):N);return{top:(R.top-U.top+x.top)/B.y,bottom:(U.bottom-R.bottom+x.bottom)/B.y,left:(R.left-U.left+x.left)/B.x,right:(U.right-R.right+x.right)/B.x}}function Pc(e,r,o){return(e?[...o.filter(a=>Ke(a)===e),...o.filter(a=>Ke(a)!==e)]:o.filter(a=>Lt(a)===a)).filter(a=>e?Ke(a)===e||(r?ai(a)!==a:!1):!0)}var Po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:d,platform:p,elements:u}=r,{crossAxis:y=!1,alignment:f,allowedPlacements:m=Ao,autoAlignment:v=!0,...x}=br(e,r),S=f!==void 0||m===Ao?Pc(f||null,v,m):m,L=await To(r,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=S[R];if(N==null)return{};let _=ni(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(d!==N)return{reset:{placement:S[0]}};let B=[L[Lt(N)],L[_[0]],L[_[1]]],U=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],le=S[R+1];if(le)return{data:{index:R+1,overflows:U},reset:{placement:le}};let we=U.map(J=>{let g=Ke(J.placement);return[J.placement,g&&y?J.overflows.slice(0,2).reduce((b,P)=>b+P,0):J.overflows[0],J.overflows]}).sort((J,g)=>J[1]-g[1]),Re=((a=we.filter(J=>J[2].slice(0,Ke(J[0])?2:3).every(g=>g<=0))[0])==null?void 0:a[0])||we[0][0];return Re!==d?{data:{index:R+1,overflows:U},reset:{placement:Re}}:{}}}};var _o=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:L=>{let{x:R,y:N}=L;return{x:R,y:N}}},...p}=br(e,r),u={x:o,y:n},y=await To(r,p),f=xr(Lt(a)),m=Ro(f),v=u[m],x=u[f];if(i){let L=m==="y"?"top":"left",R=m==="y"?"bottom":"right",N=v+y[L],_=v-y[R];v=wo(N,v,_)}if(c){let L=f==="y"?"top":"left",R=f==="y"?"bottom":"right",N=x+y[L],_=x-y[R];x=wo(N,x,_)}let S=d.fn({...r,[m]:v,[f]:x});return{...S,data:{x:S.x-o,y:S.y-n,enabled:{[m]:i,[f]:c}}}}}};var Io=Math.min,Tt=Math.max,Kt=Math.round;var Ue=e=>({x:e,y:e});function Me(e){return di(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function $e(e){var r;return(r=(di(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function di(e){return e instanceof Node||e instanceof ue(e).Node}function Te(e){return e instanceof Element||e instanceof ue(e).Element}function Se(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function li(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Pt(e){let{overflow:r,overflowX:o,overflowY:n,display:a}=he(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function ui(e){return["table","td","th"].includes(Me(e))}function Sr(e){let r=Or(),o=he(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function pi(e){let r=lt(e);for(;Se(r)&&!Vt(r);){if(Sr(r))return r;r=lt(r)}return null}function Or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vt(e){return["html","body","#document"].includes(Me(e))}function he(e){return ue(e).getComputedStyle(e)}function Zt(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(Me(e)==="html")return e;let r=e.assignedSlot||e.parentNode||li(e)&&e.host||$e(e);return li(r)?r.host:r}function fi(e){let r=lt(e);return Vt(r)?e.ownerDocument?e.ownerDocument.body:e.body:Se(r)&&Pt(r)?r:fi(r)}function vr(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=fi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=ue(a);return i?r.concat(c,c.visualViewport||[],Pt(a)?a:[],c.frameElement&&o?vr(c.frameElement):[]):r.concat(a,vr(a,[],o))}function gi(e){let r=he(e),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=Se(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=Kt(o)!==i||Kt(n)!==c;return d&&(o=i,n=c),{width:o,height:n,$:d}}function mi(e){return Te(e)?e:e.contextElement}function _t(e){let r=mi(e);if(!Se(r))return Ue(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=gi(r),c=(i?Kt(o.width):o.width)/n,d=(i?Kt(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var kc=Ue(0);function bi(e){let r=ue(e);return!Or()||!r.visualViewport?kc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Dc(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==ue(e)?!1:r}function qt(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=mi(e),c=Ue(1);r&&(n?Te(n)&&(c=_t(n)):c=_t(e));let d=Dc(i,o,n)?bi(i):Ue(0),p=(a.left+d.x)/c.x,u=(a.top+d.y)/c.y,y=a.width/c.x,f=a.height/c.y;if(i){let m=ue(i),v=n&&Te(n)?ue(n):n,x=m.frameElement;for(;x&&n&&v!==m;){let S=_t(x),L=x.getBoundingClientRect(),R=he(x),N=L.left+(x.clientLeft+parseFloat(R.paddingLeft))*S.x,_=L.top+(x.clientTop+parseFloat(R.paddingTop))*S.y;p*=S.x,u*=S.y,y*=S.x,f*=S.y,p+=N,u+=_,x=ue(x).frameElement}}return ct({width:y,height:f,x:p,y:u})}function Bc(e){let{rect:r,offsetParent:o,strategy:n}=e,a=Se(o),i=$e(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},d=Ue(1),p=Ue(0);if((a||!a&&n!=="fixed")&&((Me(o)!=="body"||Pt(i))&&(c=Zt(o)),Se(o))){let u=qt(o);d=_t(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x,y:r.y*d.y-c.scrollTop*d.y+p.y}}function Uc(e){return Array.from(e.getClientRects())}function xi(e){return qt($e(e)).left+Zt(e).scrollLeft}function Mc(e){let r=$e(e),o=Zt(e),n=e.ownerDocument.body,a=Tt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Tt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+xi(e),d=-o.scrollTop;return he(n).direction==="rtl"&&(c+=Tt(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:d}}function $c(e,r){let o=ue(e),n=$e(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,d=0,p=0;if(a){i=a.width,c=a.height;let u=Or();(!u||u&&r==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:c,x:d,y:p}}function Wc(e,r){let o=qt(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Se(e)?_t(e):Ue(1),c=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:c,height:d,x:p,y:u}}function hi(e,r,o){let n;if(r==="viewport")n=$c(e,o);else if(r==="document")n=Mc($e(e));else if(Te(r))n=Wc(r,o);else{let a=bi(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return ct(n)}function vi(e,r){let o=lt(e);return o===r||!Te(o)||Vt(o)?!1:he(o).position==="fixed"||vi(o,r)}function Fc(e,r){let o=r.get(e);if(o)return o;let n=vr(e,[],!1).filter(d=>Te(d)&&Me(d)!=="body"),a=null,i=he(e).position==="fixed",c=i?lt(e):e;for(;Te(c)&&!Vt(c);){let d=he(c),p=Sr(c);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Pt(c)&&!p&&vi(e,c))?n=n.filter(y=>y!==c):a=d,c=lt(c)}return r.set(e,n),n}function Hc(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Fc(r,this._c):[].concat(o),n],d=c[0],p=c.reduce((u,y)=>{let f=hi(r,y,a);return u.top=Tt(f.top,u.top),u.right=Io(f.right,u.right),u.bottom=Io(f.bottom,u.bottom),u.left=Tt(f.left,u.left),u},hi(r,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function zc(e){return gi(e)}function Gc(e,r,o){let n=Se(r),a=$e(r),i=o==="fixed",c=qt(e,!0,i,r),d={scrollLeft:0,scrollTop:0},p=Ue(0);if(n||!n&&!i)if((Me(r)!=="body"||Pt(a))&&(d=Zt(r)),n){let u=qt(r,!0,i,r);p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}else a&&(p.x=xi(a));return{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function yi(e,r){return!Se(e)||he(e).position==="fixed"?null:r?r(e):e.offsetParent}function Si(e,r){let o=ue(e);if(!Se(e))return o;let n=yi(e,r);for(;n&&ui(n)&&he(n).position==="static";)n=yi(n,r);return n&&(Me(n)==="html"||Me(n)==="body"&&he(n).position==="static"&&!Sr(n))?o:n||pi(e)||o}var jc=async function(e){let{reference:r,floating:o,strategy:n}=e,a=this.getOffsetParent||Si,i=this.getDimensions;return{reference:Gc(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Kc(e){return he(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:$e,getClippingRect:Hc,getOffsetParent:Si,getElementRects:jc,getClientRects:Uc,getDimensions:zc,getScale:_t,isElement:Te,isRTL:Kc};var Oi=(e,r,o)=>{let n=new Map,a={platform:Cr,...o},i={...a.platform,_c:n};return ci(e,r,{...a,platform:i})};function Ci(e){return Vc(e)}function ko(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Vc(e){for(let r=e;r;r=ko(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=ko(e);r;r=ko(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Ei(e,r,o){return Oi(e,r,{platform:{...Cr,getOffsetParent:n=>Cr.getOffsetParent(n,Ci)},middleware:[_o({crossAxis:!0}),Po({allowedPlacements:[o]})]})}var pe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Yt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Yt.Debouncer,this.revealDebouncer=new Yt.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ai.html`
|
|
525
525
|
<div part="container"
|
|
526
526
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
527
527
|
@mouseenter=${this.onHover}
|
|
@@ -539,19 +539,19 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
541
|
</div>
|
|
542
|
-
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ei(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))}};K.elementDefinitions={"ft-typography":ve};K.styles=Ja;pe([(0,Y.property)()],K.prototype,"text",void 0);pe([(0,Y.property)({type:Boolean})],K.prototype,"manual",void 0);pe([(0,Y.property)({type:Boolean})],K.prototype,"inline",void 0);pe([(0,Y.property)({type:Number})],K.prototype,"delay",void 0);pe([(0,Y.property)()],K.prototype,"position",void 0);pe([(0,Y.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);pe([(0,Y.query)(".ft-tooltip--container")],K.prototype,"container",void 0);pe([(0,Y.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);pe([(0,Y.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);pe([(0,Y.state)()],K.prototype,"visible",void 0);pe([(0,Y.eventOptions)({passive:!0})],K.prototype,"onTouch",null);pe([(0,Y.eventOptions)({passive:!0})],K.prototype,"onHover",null);pe([(0,Y.eventOptions)({passive:!0})],K.prototype,"onOut",null);pe([(0,Y.eventOptions)({passive:!0})],K.prototype,"onClick",null);(0,wi.customElement)("ft-tooltip")(K);var _i=C(k());var Xt=C(G()),Ve=C(ne()),Li=C(k()),Ti=C(Ni());var Er;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(Er||(Er={}));var A;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(A||(A={}));var vy=new Map([...["abw"].map(e=>[e,A.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,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.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,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.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,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Sy={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var _e;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(_e||(_e={}));var Qt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ye=class extends Li.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xt.nothing}render(){let r=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,o=r!==_e.material||!!this.value;return Xt.html`
|
|
542
|
+
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ei(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))}};K.elementDefinitions={"ft-typography":ve};K.styles=Ja;pe([(0,q.property)()],K.prototype,"text",void 0);pe([(0,q.property)({type:Boolean})],K.prototype,"manual",void 0);pe([(0,q.property)({type:Boolean})],K.prototype,"inline",void 0);pe([(0,q.property)({type:Number})],K.prototype,"delay",void 0);pe([(0,q.property)()],K.prototype,"position",void 0);pe([(0,q.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);pe([(0,q.query)(".ft-tooltip--container")],K.prototype,"container",void 0);pe([(0,q.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);pe([(0,q.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);pe([(0,q.state)()],K.prototype,"visible",void 0);pe([(0,q.eventOptions)({passive:!0})],K.prototype,"onTouch",null);pe([(0,q.eventOptions)({passive:!0})],K.prototype,"onHover",null);pe([(0,q.eventOptions)({passive:!0})],K.prototype,"onOut",null);pe([(0,q.eventOptions)({passive:!0})],K.prototype,"onClick",null);(0,wi.customElement)("ft-tooltip")(K);var Pi=C(k());var Xt=C(G()),Ve=C(ne()),Li=C(k()),Ti=C(Ni());var Er;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(Er||(Er={}));var A;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(A||(A={}));var vy=new Map([...["abw"].map(e=>[e,A.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,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.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,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.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,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Sy={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Pe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Pe||(Pe={}));var Qt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ye=class extends Li.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xt.nothing}render(){let r=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,o=r!==Pe.material||!!this.value;return Xt.html`
|
|
543
543
|
<i class="ft-icon ft-icon--${r} ft-no-text-select" part="icon icon-${r}">
|
|
544
544
|
${(0,Ti.unsafeHTML)(this.resolvedIcon)}
|
|
545
545
|
<slot ?hidden=${o}></slot>
|
|
546
546
|
</i>
|
|
547
|
-
`}get textContent(){var r,o;return(o=(r=this.slottedContent)===null||r===void 0?void 0:r.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(r){super.update(r),["value","variant"].some(o=>r.has(o))&&this.resolveIcon()}resolveIcon(){var r,o;let n=this.value||this.textContent;switch(this.variant){case
|
|
547
|
+
`}get textContent(){var r,o;return(o=(r=this.slottedContent)===null||r===void 0?void 0:r.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(r){super.update(r),["value","variant"].some(o=>r.has(o))&&this.resolveIcon()}resolveIcon(){var r,o;let n=this.value||this.textContent;switch(this.variant){case Pe.file_format:this.resolvedIcon=(r=A[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break;case Pe.material:this.resolvedIcon=this.value||Xt.nothing;break;default:this.resolvedIcon=(o=Er[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(r){super.firstUpdated(r),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=Aa;Qt([(0,Ve.property)()],ye.prototype,"variant",void 0);Qt([(0,Ve.property)()],ye.prototype,"value",void 0);Qt([(0,Ve.property)({reflect:!0,attribute:"aria-hidden"})],ye.prototype,"ariaHidden",void 0);Qt([(0,Ve.state)()],ye.prototype,"resolvedIcon",void 0);Qt([(0,Ve.query)("slot")],ye.prototype,"slottedContent",void 0);(0,Pi.customElement)("ft-icon")(ye);var ki=C(k());var _i=C(G()),Ii=C(k());var dt=class extends Ii.FtLitElement{render(){return _i.html`
|
|
548
548
|
<div class="ft-loader">
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
<div></div>
|
|
552
552
|
<div></div>
|
|
553
553
|
</div>
|
|
554
|
-
`}};dt.styles=Ca;(0,ki.customElement)("ft-loader")(dt);var Ze=C(G()),Do=C(lo()),
|
|
554
|
+
`}};dt.styles=Ca;(0,ki.customElement)("ft-loader")(dt);var Ze=C(G()),Do=C(lo()),Y=C(ne()),re=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,qe.toFtFormComponent)(qe.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=Ze.html`
|
|
555
555
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
556
556
|
<ft-typography part="label"
|
|
557
557
|
variant=${this.typographyVariant}
|
|
@@ -588,7 +588,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
588
588
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
589
589
|
`:Ze.html`
|
|
590
590
|
<slot part="icon" name="icon"></slot>
|
|
591
|
-
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,qe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":K,"ft-typography":ve,"ft-icon":ye,"ft-loader":dt};
|
|
591
|
+
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,qe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":K,"ft-typography":ve,"ft-icon":ye,"ft-loader":dt};re([(0,Y.property)()],F.prototype,"href",void 0);re([(0,Y.property)()],F.prototype,"target",void 0);re([(0,Y.property)({type:String,reflect:!0})],F.prototype,"role",void 0);re([(0,Y.property)()],F.prototype,"type",void 0);re([(0,Y.property)({type:Boolean})],F.prototype,"disabled",void 0);re([(0,Y.property)()],F.prototype,"label",void 0);re([(0,Y.property)()],F.prototype,"icon",void 0);re([(0,Y.property)()],F.prototype,"iconVariant",void 0);re([(0,Y.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);re([(0,Y.property)({type:Boolean})],F.prototype,"loading",void 0);re([(0,Y.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);re([(0,Y.property)()],F.prototype,"tooltipPosition",void 0);re([(0,Y.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);re([(0,Y.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);re([(0,Y.query)(".ft-button")],F.prototype,"button",void 0);re([(0,Y.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);re([(0,Y.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Oe=class extends F{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Oe.styles=[Di.safariEllipsisFix,La];Ar([(0,Jt.property)({type:Boolean})],Oe.prototype,"primary",void 0);Ar([(0,Jt.property)({type:Boolean})],Oe.prototype,"outlined",void 0);Ar([(0,Jt.property)({type:Boolean})],Oe.prototype,"dense",void 0);Ar([(0,Jt.property)({type:Boolean})],Oe.prototype,"round",void 0);var er=C(ne());var Rr=C(k());var Bi=C(G()),O=C(k());var Ui=[Bi.css`
|
|
592
592
|
:host {
|
|
593
593
|
display: inline-block;
|
|
594
594
|
max-width: 100%;
|
|
@@ -1054,15 +1054,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1054
1054
|
.ftds--size-small.ft-button--icon-only {
|
|
1055
1055
|
width: ${h.smallIconOnlyWidth};
|
|
1056
1056
|
}
|
|
1057
|
-
`,O.noTextSelect];var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},We=class extends(0,Rr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=
|
|
1058
|
-
`;var Tr=C(k()),qc="ft-app-info",$o=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Yc={session:(e,r)=>{(0,Tr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>I.dispatchEvent(new $o(r.payload)),0))}},I=Tr.FtReduxStore.get({name:qc,reducers:Yc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var
|
|
1057
|
+
`,O.noTextSelect];var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},We=class extends(0,Rr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Pe.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 gt.large:return je.body2medium;case gt.medium:return je.caption1medium;case gt.small:return je.caption2medium}}};We.styles=[Rr.safariEllipsisFix,Ui];wr([(0,er.property)({type:Boolean})],We.prototype,"primary",void 0);wr([(0,er.property)({type:Boolean})],We.prototype,"secondary",void 0);wr([(0,er.property)({type:Boolean})],We.prototype,"tertiary",void 0);wr([(0,er.property)({type:Boolean})],We.prototype,"round",void 0);(0,Bo.customElement)("ft-button")(Oe);(0,Bo.customElement)("ftds-button")(We);var sc=C(k()),cc=C(ne());var Yr=C(k());var Mi=C(k());var Zc=C(Wi(),1);var Fi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Fi||(Fi={}));var Hi;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Hi||(Hi={}));var zi;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(zi||(zi={}));var Gi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Gi||(Gi={}));var ji;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(ji||(ji={}));var Ki;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ki||(Ki={}));var Vi;(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"})(Vi||(Vi={}));var Zi;(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"})(Zi||(Zi={}));var qi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(qi||(qi={}));var Yi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Yi||(Yi={}));var Xi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Xi||(Xi={}));var Qi;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Qi||(Qi={}));var Ji;(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"})(Ji||(Ji={}));var es;(function(e){e.ASC="ASC",e.DESC="DESC"})(es||(es={}));var ts;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ts||(ts={}));var Uo;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Uo||(Uo={}));var rs;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(rs||(rs={}));var os;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(os||(os={}));var ns;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(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"})(as||(as={}));var is;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(is||(is={}));var Mo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Mo||(Mo={}));var oe;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(oe||(oe={}));var ss;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ss||(ss={}));var cs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(cs||(cs={}));var Og={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};var ic=C(k());var ps=C(G()),fe=C(ne()),Ce=C(k());var ls=C(G());var ds=ls.css`
|
|
1058
|
+
`;var Tr=C(k()),qc="ft-app-info",$o=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Yc={session:(e,r)=>{(0,Tr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>I.dispatchEvent(new $o(r.payload)),0))}},I=Tr.FtReduxStore.get({name:qc,reducers:Yc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var _e=C(k());var Wo=C(k());var ut=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=I.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=I.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var tr=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}};var Fe=class extends tr{constructor(r=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Wo.CacheRegistry,this.cache=r?a.commonCache:new Wo.CacheRegistry}clearCache(){this.cache.clearAll()}};var us,Xc=Symbol("clearAfterUnitTest"),Pr=class extends Fe{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[us]=()=>{this.defaultMessages={},this.cache=new _e.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=I.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,_e.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return 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 _e.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r))}catch(a){a instanceof _e.CanceledPromiseError||console.error(a)}return o&&await this.notify(r),n}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,_e.delay)(0).then(()=>o()).catch(()=>null)))}};us=Xc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var kt=window.FluidTopicsI18nService,_r=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},V=class extends Ce.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=()=>ut.get(),this.messageContexts=[],this.cache=new Ce.CacheRegistry,this.cleanSessionDebouncer=new Ce.Debouncer}render(){return ps.html`
|
|
1059
1059
|
<slot></slot>
|
|
1060
|
-
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&I.actions.noCustom(this.noCustom),r.has("editorMode")&&I.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&I.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>kt.addContext(d)),r.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((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())}};V.elementDefinitions={};V.styles=ds;ae([(0,fe.property)()],V.prototype,"baseUrl",void 0);ae([(0,fe.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ae([(0,fe.property)()],V.prototype,"uiLocale",void 0);ae([(0,Ce.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ae([(0,Ce.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"editorMode",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"noCustom",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,fe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ae([(0,fe.property)({type:Object})],V.prototype,"apiProvider",void 0);ae([(0,Ce.jsonProperty)([])],V.prototype,"messageContexts",void 0);ae([(0,Ce.jsonProperty)(void 0)],V.prototype,"session",void 0);ae([(0,fe.state)()],V.prototype,"localesConfiguration",void 0);var Ml=C(ne());function Qc(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(!Ir(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(!Ir(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();let i=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Ir(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Ir(e,r){try{return Qc(e,r)}catch{return!1}}function kr(e,r){return!Ir(e,r)}var Jc=C(ne(),1);var Dr=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 rr=C(ne(),1);var fs=C(ne(),1);function hs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,fs.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:kr,...r??{}})}var Br=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gs=C(G(),1);var Ur=globalThis,el=Ur.ShadowRoot&&(Ur.ShadyCSS===void 0||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,om=Symbol();var ys=(e,r)=>{if(el)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Ur.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Mr=class extends gs.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 ys(n,r.elementStyles),n}};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 d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},vs,ms=Symbol("constructorPrototype"),bs=Symbol("constructorName"),Ss=Symbol("exportpartsDebouncer"),xs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Mr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vs]=new Br(5),this[bs]=this.constructor.name,this[ms]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bs]&&Object.setPrototypeOf(this,this[ms])}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[xs]||(r[xs]=!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[Ss].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,d;let 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 y=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=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};vs=Ss;$r([(0,rr.property)()],Xe.prototype,"exportpartsPrefix",void 0);$r([hs([])],Xe.prototype,"exportpartsPrefixes",void 0);$r([(0,rr.property)()],Xe.prototype,"customStylesheet",void 0);$r([(0,rr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function or(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Os,Cs,Es,nr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),pt=Symbol("internalStores"),ar=class extends Xe{constructor(){super(...arguments),this[Os]=new Map,this[Cs]=new Map,this[Es]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[pt].get(r)}addStore(r,o){var n;o=(n=o??(or(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[pt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[pt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[pt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[nr].set(r,[]),or(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[nr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[nr].get(r))===null||o===void 0||o.forEach(n=>n()),this[nr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Os=Qe,Cs=pt,Es=nr;ar.reduxProperties=new Map;ar.reduxReactiveProperties=new Set;ar.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function He(e){return!!e&&!!e[H]}function Ee(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)===cl}(e)||Array.isArray(e)||!!e[_s]||!!(!((r=e.constructor)===null||r===void 0)&&r[_s])||qo(e)||Yo(e))}function ft(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:qo(e)?2:Yo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function tl(e,r){return Ut(e)===2?e.get(r):e[r]}function Ps(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Is(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function qo(e){return il&&e instanceof Map}function Yo(e){return sl&&e instanceof Set}function Je(e){return e.o||e.t}function Xo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Bs(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Qo(e,r){return r===void 0&&(r=!1),Jo(e)||He(e)||!Ee(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=rl),Object.freeze(e),r&&ft(e,function(o,n){return Qo(n,!0)},!0)),e}function rl(){be(2)}function Jo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ie(e){var r=Zo[e];return r||be(18,e),r}function ol(e,r){Zo[e]||(Zo[e]=r)}function jo(){return sr}function Fo(e,r){r&&(Ie("Patches"),e.u=[],e.s=[],e.v=r)}function Wr(e){Ko(e),e.p.forEach(nl),e.p=null}function Ko(e){e===sr&&(sr=e.l)}function As(e){return sr={p:[],l:sr,h:e,m:!0,_:0}}function nl(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Ho(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Ie("ES5").S(r,e,n),n?(o[H].P&&(Wr(r),be(4)),Ee(e)&&(e=Fr(r,e),r.l||Hr(r,e)),r.u&&Ie("Patches").M(o[H].t,e,r.u,r.s)):e=Fr(r,o,[]),Wr(r),r.u&&r.v(r.u,r.s),e!==Ds?e:void 0}function Fr(e,r,o){if(Jo(r))return r;var n=r[H];if(!n)return ft(r,function(d,p){return ws(e,n,r,d,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Hr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Xo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),ft(i,function(d,p){return ws(e,n,a,d,p,o,c)}),Hr(e,a,!1),o&&e.u&&Ie("Patches").N(n,o,e.u,e.s)}return n.o}function ws(e,r,o,n,a,i,c){if(He(a)){var d=Fr(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(Ps(o,n,d),!He(d))return;e.m=!1}else c&&o.add(a);if(Ee(a)&&!Jo(a)){if(!e.h.D&&e._<1)return;Fr(e,a),r&&r.A.l||Hr(e,a)}}function Hr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Qo(r,o)}function zo(e,r){var o=e[H];return(o?Je(o):e)[r]}function Rs(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function Go(e){e.o||(e.o=Xo(e.t))}function Vo(e,r,o){var n=qo(r)?Ie("MapSet").F(r,o):Yo(r)?Ie("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={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=d,u=cr;c&&(p=[d],u=ir);var y=Proxy.revocable(p,u),f=y.revoke,m=y.proxy;return d.k=m,d.j=f,m}(r,o):Ie("ES5").J(r,o);return(o?o.A:jo()).p.push(n),n}function al(e){return He(e)||be(22,e),function r(o){if(!Ee(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Ie("ES5").K(a)))return a.t;a.I=!0,n=Ns(o,i),a.I=!1}else n=Ns(o,i);return ft(n,function(c,d){a&&tl(a.t,c)===d||Ps(n,c,r(d))}),i===3?new Set(n):n}(e)}function Ns(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Xo(e)}function ks(){function e(c,d){var p=i[c];return p?p.enumerable=d:i[c]=p={configurable:!0,enumerable:d,get:function(){var u=this[H];return cr.get(u,c)},set:function(u){var y=this[H];cr.set(y,c,u)}},p}function r(c){for(var d=c.length-1;d>=0;d--){var p=c[d][H];if(!p.P)switch(p.i){case 5:n(p)&&et(p);break;case 4:o(p)&&et(p)}}}function o(c){for(var d=c.t,p=c.k,u=Bt(p),y=u.length-1;y>=0;y--){var f=u[y];if(f!==H){var m=d[f];if(m===void 0&&!Dt(d,f))return!0;var v=p[f],x=v&&v[H];if(x?x.t!==m:!Is(v,m))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};ol("ES5",{J:function(c,d){var p=Array.isArray(c),u=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Bs(m);delete S[H];for(var L=Bt(S),R=0;R<L.length;R++){var N=L[R];S[N]=e(N,f||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),y={i:p?5:4,A:d?d.A:jo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:y,writable:!0}),u},S:function(c,d,p){p?He(d)&&d[H].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var f=y[H];if(f){var m=f.t,v=f.k,x=f.R,S=f.i;if(S===4)ft(v,function(B){B!==H&&(m[B]!==void 0||Dt(m,B)?x[B]||u(v[B]):(x[B]=!0,et(f)))}),ft(m,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(f))});else if(S===5){if(n(f)&&(et(f),x.length=!0),v.length<m.length)for(var L=v.length;L<m.length;L++)x[L]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&u(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ls,sr,en=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",il=typeof Map<"u",sl=typeof Set<"u",Ts=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ds=en?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),_s=en?Symbol.for("immer-draftable"):"__$immer_draftable",H=en?Symbol.for("immer-state"):"__$immer_state";var cl=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Zo={},cr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,p=Rs(i,c);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ee(n)?n:n===zo(e.t,r)?(Go(e),e.o[r]=Vo(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Rs(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=zo(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Is(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;Go(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return zo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Go(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ir={};ft(cr,function(e,r){ir[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ir.deleteProperty=function(e,r){return ir.set.call(this,e,r,void 0)},ir.set=function(e,r,o){return cr.set.call(this,e[0],r,o,e[0])};var ll=function(){function e(o){var n=this;this.O=Ts,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(S){var L=this;S===void 0&&(S=d);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return p.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(N))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ee(a)){var y=As(n),f=Vo(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?Wr(y):Ko(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Fo(y,c),Ho(S,y)},function(S){throw Wr(y),S}):(Fo(y,c),Ho(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ds&&(u=void 0),n.D&&Qo(u,!0),c){var v=[],x=[];Ie("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(f))})};var c,d,p=n.produce(a,i,function(u,y){c=u,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,d]}):[p,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ee(o)||be(8),He(o)&&(o=al(o));var n=As(this),a=Vo(this,o,void 0);return a[H].C=!0,Ko(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Fo(i,n),Ho(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Ts&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ie("Patches").$;return He(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ge=new ll,dl=ge.produce,ym=ge.produceWithPatches.bind(ge),gm=ge.setAutoFreeze.bind(ge),mm=ge.setUseProxies.bind(ge),bm=ge.applyPatches.bind(ge),xm=ge.createDraft.bind(ge),vm=ge.finishDraft.bind(ge),zr=dl;function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}function Us(e,r){if(ht(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ms(e){var r=Us(e,"string");return ht(r)=="symbol"?r:r+""}function $s(e,r,o){return(r=Ms(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ws(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 tn(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ws(Object(o),!0).forEach(function(n){$s(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ws(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Fs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),rn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+rn(),REPLACE:"@@redux/REPLACE"+rn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rn()}};function ul(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 on(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(on)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,p=!1;function u(){d===c&&(d=c.slice())}function y(){if(p)throw new Error(ie(3));return i}function f(S){if(typeof S!="function")throw new Error(ie(4));if(p)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(p)throw new Error(ie(6));L=!1,u();var N=d.indexOf(S);d.splice(N,1),c=null}}}function m(S){if(!ul(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(p)throw new Error(ie(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var L=c=d,R=0;R<L.length;R++){var N=L[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,m({type:Gr.REPLACE})}function x(){var S,L=f;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function P(){N.next&&N.next(y())}P();var B=L(P);return{unsubscribe:B}}},S[Fs]=function(){return this},S}return m({type:Gr.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:v},n[Fs]=x,n}function pl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Hs(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{pl(o)}catch(p){d=p}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var f;for(var m=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],R=u[S],N=L(R,y);if(typeof N>"u"){var P=y&&y.type;throw new Error(ie(14))}v[S]=N,m=m||N!==R}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function zs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(p){return p(c)});return i=Mt.apply(void 0,d)(a.dispatch),tn(tn({},a),{},{dispatch:i})}}}function Gs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var js=Gs();js.withExtraArgument=Gs;var nn=js;var Ys=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)}}(),fl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(y){return p([u,y])}}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(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},hl=Object.defineProperty,yl=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,Vs=function(e,r,o){return r in e?hl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},tt=function(e,r){for(var o in r||(r={}))ml.call(r,o)&&Vs(e,o,r[o]);if(Ks)for(var n=0,a=Ks(r);n<a.length;n++){var o=a[n];bl.call(r,o)&&Vs(e,o,r[o])}return e},an=function(e,r){return yl(e,gl(r))},xl=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{d(o.next(p))}catch(u){a(u)}},c=function(p){try{d(o.throw(p))}catch(u){a(u)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};d((o=o.apply(e,r)).next())})};var vl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},Mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Sl(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 Ol=function(e){Ys(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),Cl=function(e){Ys(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function ln(e){return Ee(e)?zr(e,function(){}):e}function El(e){return typeof e=="boolean"}function Al(){return function(r){return wl(r)}}function wl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new Ol;if(o&&(El(o)?d.push(nn):d.push(nn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return d}var sn=!0;function Xs(e){var r=Al(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,p=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,v;if(typeof a=="function")v=a;else if(Sl(a))v=Hs(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),!sn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!sn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=zs.apply(void 0,x),L=Mt;p&&(L=vl(tt({trace:!sn},typeof p=="object"&&p)));var R=new Cl(S),N=R;Array.isArray(m)?N=$t([S],m):typeof m=="function"&&(N=m(R));var P=L.apply(void 0,N);return on(v,y,P)}function rt(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 tt(tt({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 Qs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Rl(e){return typeof e=="function"}function Nl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Qs(r):[r,o,n],i=a[0],c=a[1],d=a[2],p;if(Rl(e))p=function(){return ln(e())};else{var u=ln(e);p=function(){return u}}function y(f,m){f===void 0&&(f=p());var v=$t([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=[d]),v.reduce(function(x,S){if(S)if(He(x)){var L=x,R=S(L,m);return R===void 0?x:R}else{if(Ee(x))return zr(x,function(N){return S(N,m)});var R=S(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},f)}return y.getInitialState=p,y}function Ll(e,r){return e+"/"+r}function Js(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:ln(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(y){var f=n[y],m=Ll(r,y),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,i[y]=v,c[m]=v,d[y]=x?rt(m,x):rt(m)});function p(){var y=typeof e.extraReducers=="function"?Qs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,v=y[1],x=v===void 0?[]:v,S=y[2],L=S===void 0?void 0:S,R=tt(tt({},m),c);return Nl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var le=U[B];N.addMatcher(le.matcher,le.reducer)}L&&N.addDefaultCase(L)})}var u;return{name:r,reducer:function(y,f){return u||(u=p()),u(y,f)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Tl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_l=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Tl[Math.random()*64|0];return r},Pl=["name","message","stack","code"],cn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Zs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Il=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Pl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Hm=function(){function e(r,o,n){var a=rt(r+"/fulfilled",function(y,f,m,v){return{payload:y,meta:an(tt({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=rt(r+"/pending",function(y,f,m){return{payload:void 0,meta:an(tt({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=rt(r+"/rejected",function(y,f,m,v,x){return{payload:v,error:(n&&n.serializeError||Il)(y||"Rejected"),meta:an(tt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(f,m,v){var x=n?.idGenerator?n.idGenerator(y):_l(),S=new p,L,R=!1;function N(B){L=B,S.abort()}var P=function(){return xl(this,null,function(){var B,U,le,we,se,Re,ee;return fl(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:v}),Dl(we)?[4,we]:[3,2];case 1:we=g.sent(),g.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,se=new Promise(function(b,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:L||"Aborted"})})}),f(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:m,extra:v}))),[4,Promise.race([se,Promise.resolve(o(y,{dispatch:f,getState:m,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,_){return new cn(b,_)},fulfillWithValue:function(b,_){return new Zs(b,_)}})).then(function(b){if(b instanceof cn)throw b;return b instanceof Zs?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return le=g.sent(),[3,5];case 4:return Re=g.sent(),le=Re instanceof cn?c(null,x,y,Re.payload,Re.meta):c(Re,x,y),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||f(le),[2,le]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:y,unwrap:function(){return P.then(kl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function kl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Dl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ec="listener",tc="completed",rc="cancelled",zm="task-"+rc,Gm="task-"+tc,jm=ec+"-"+rc,Km=ec+"-"+tc;var dn="listenerMiddleware";var Vm=rt(dn+"/add"),Zm=rt(dn+"/removeAll"),qm=rt(dn+"/remove");var qs,Ym=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)})},Bl=function(e){return function(r){setTimeout(r,e)}},Xm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bl(10);ks();function Ul(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var jr=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var oc=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(or(i))return i;if(a==null)return;let c=Js({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Xs({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,d,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,d)=>{let p=c,u=i[p];return u?(...y)=>{let f=u(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[p]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=C(k());var Kr=class extends Fe{async listMySearches(){let r=I.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends Fe{async listMyBookmarks(){let r=I.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var $l="ft-user-assets",Zr=qr.FtReduxStore.get({name:$l,initialState:{savedSearches:void 0,bookmarks:void 0}}),un=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new Kr,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=I.getState();(0,qr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Zr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zr.actions.bookmarks(o)}}},Pb=new un;var pn=class{addCommand(r,o=!1){I.commands.add(r,o)}consumeCommand(r){return I.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new pn;var nc=C(k()),fn=class{highlightHtml(r,o,n){(0,nc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new fn;var ac=C(k());var hn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return ac.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new hn;var Wl=C(k());(0,ic.customElement)("ft-app-context")(V);var yn=class e extends Event{constructor(){super(e.eventName)}};yn.eventName="search-context-clear-all-filters";var Fl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},gn=Symbol("registerInterval");function Hl(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[gn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[gn]):this.dispatchEvent(new mn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=gn,Fl([(0,cc.state)()],o.prototype,"stateManager",void 0),o}var Xr=class extends Hl(sc.FtLitElementRedux){};var fc=C(k());var ro=C(G()),oo=C(ne()),no=C(k());var lc=C(G());var dc=lc.css`
|
|
1061
|
-
`;var eo=C(k());var pc=C(ne()),zl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},bn=Symbol("i18nAttributes"),xn=Symbol("i18nListAttributes"),Qr=Symbol("i18nProperties"),vn=Symbol("i18nManualContexts"),lr=Symbol("i18nUnsubs");function to(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?
|
|
1060
|
+
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&I.actions.noCustom(this.noCustom),r.has("editorMode")&&I.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&I.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>kt.addContext(d)),r.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((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())}};V.elementDefinitions={};V.styles=ds;ae([(0,fe.property)()],V.prototype,"baseUrl",void 0);ae([(0,fe.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ae([(0,fe.property)()],V.prototype,"uiLocale",void 0);ae([(0,Ce.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ae([(0,Ce.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"editorMode",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"noCustom",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,fe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ae([(0,fe.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ae([(0,fe.property)({type:Object})],V.prototype,"apiProvider",void 0);ae([(0,Ce.jsonProperty)([])],V.prototype,"messageContexts",void 0);ae([(0,Ce.jsonProperty)(void 0)],V.prototype,"session",void 0);ae([(0,fe.state)()],V.prototype,"localesConfiguration",void 0);var Ml=C(ne());function Qc(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(!Ir(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(!Ir(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();let i=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Ir(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Ir(e,r){try{return Qc(e,r)}catch{return!1}}function kr(e,r){return!Ir(e,r)}var Jc=C(ne(),1);var Dr=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 rr=C(ne(),1);var fs=C(ne(),1);function hs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,fs.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:kr,...r??{}})}var Br=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gs=C(G(),1);var Ur=globalThis,el=Ur.ShadowRoot&&(Ur.ShadyCSS===void 0||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,om=Symbol();var ys=(e,r)=>{if(el)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Ur.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Mr=class extends gs.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 ys(n,r.elementStyles),n}};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 d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},vs,ms=Symbol("constructorPrototype"),bs=Symbol("constructorName"),Ss=Symbol("exportpartsDebouncer"),xs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Mr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vs]=new Br(5),this[bs]=this.constructor.name,this[ms]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bs]&&Object.setPrototypeOf(this,this[ms])}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[xs]||(r[xs]=!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[Ss].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,d;let 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 y=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=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};vs=Ss;$r([(0,rr.property)()],Xe.prototype,"exportpartsPrefix",void 0);$r([hs([])],Xe.prototype,"exportpartsPrefixes",void 0);$r([(0,rr.property)()],Xe.prototype,"customStylesheet",void 0);$r([(0,rr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function or(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Os,Cs,Es,nr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),pt=Symbol("internalStores"),ar=class extends Xe{constructor(){super(...arguments),this[Os]=new Map,this[Cs]=new Map,this[Es]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[pt].get(r)}addStore(r,o){var n;o=(n=o??(or(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[pt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[pt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[pt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[nr].set(r,[]),or(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[nr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[nr].get(r))===null||o===void 0||o.forEach(n=>n()),this[nr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Os=Qe,Cs=pt,Es=nr;ar.reduxProperties=new Map;ar.reduxReactiveProperties=new Set;ar.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function He(e){return!!e&&!!e[H]}function Ee(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)===cl}(e)||Array.isArray(e)||!!e[Ps]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ps])||qo(e)||Yo(e))}function ft(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:qo(e)?2:Yo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function tl(e,r){return Ut(e)===2?e.get(r):e[r]}function _s(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Is(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function qo(e){return il&&e instanceof Map}function Yo(e){return sl&&e instanceof Set}function Je(e){return e.o||e.t}function Xo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Bs(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Qo(e,r){return r===void 0&&(r=!1),Jo(e)||He(e)||!Ee(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=rl),Object.freeze(e),r&&ft(e,function(o,n){return Qo(n,!0)},!0)),e}function rl(){be(2)}function Jo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ie(e){var r=Zo[e];return r||be(18,e),r}function ol(e,r){Zo[e]||(Zo[e]=r)}function jo(){return sr}function Fo(e,r){r&&(Ie("Patches"),e.u=[],e.s=[],e.v=r)}function Wr(e){Ko(e),e.p.forEach(nl),e.p=null}function Ko(e){e===sr&&(sr=e.l)}function As(e){return sr={p:[],l:sr,h:e,m:!0,_:0}}function nl(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Ho(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Ie("ES5").S(r,e,n),n?(o[H].P&&(Wr(r),be(4)),Ee(e)&&(e=Fr(r,e),r.l||Hr(r,e)),r.u&&Ie("Patches").M(o[H].t,e,r.u,r.s)):e=Fr(r,o,[]),Wr(r),r.u&&r.v(r.u,r.s),e!==Ds?e:void 0}function Fr(e,r,o){if(Jo(r))return r;var n=r[H];if(!n)return ft(r,function(d,p){return ws(e,n,r,d,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Hr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Xo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),ft(i,function(d,p){return ws(e,n,a,d,p,o,c)}),Hr(e,a,!1),o&&e.u&&Ie("Patches").N(n,o,e.u,e.s)}return n.o}function ws(e,r,o,n,a,i,c){if(He(a)){var d=Fr(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(_s(o,n,d),!He(d))return;e.m=!1}else c&&o.add(a);if(Ee(a)&&!Jo(a)){if(!e.h.D&&e._<1)return;Fr(e,a),r&&r.A.l||Hr(e,a)}}function Hr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Qo(r,o)}function zo(e,r){var o=e[H];return(o?Je(o):e)[r]}function Rs(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function Go(e){e.o||(e.o=Xo(e.t))}function Vo(e,r,o){var n=qo(r)?Ie("MapSet").F(r,o):Yo(r)?Ie("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={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=d,u=cr;c&&(p=[d],u=ir);var y=Proxy.revocable(p,u),f=y.revoke,m=y.proxy;return d.k=m,d.j=f,m}(r,o):Ie("ES5").J(r,o);return(o?o.A:jo()).p.push(n),n}function al(e){return He(e)||be(22,e),function r(o){if(!Ee(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Ie("ES5").K(a)))return a.t;a.I=!0,n=Ns(o,i),a.I=!1}else n=Ns(o,i);return ft(n,function(c,d){a&&tl(a.t,c)===d||_s(n,c,r(d))}),i===3?new Set(n):n}(e)}function Ns(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Xo(e)}function ks(){function e(c,d){var p=i[c];return p?p.enumerable=d:i[c]=p={configurable:!0,enumerable:d,get:function(){var u=this[H];return cr.get(u,c)},set:function(u){var y=this[H];cr.set(y,c,u)}},p}function r(c){for(var d=c.length-1;d>=0;d--){var p=c[d][H];if(!p.P)switch(p.i){case 5:n(p)&&et(p);break;case 4:o(p)&&et(p)}}}function o(c){for(var d=c.t,p=c.k,u=Bt(p),y=u.length-1;y>=0;y--){var f=u[y];if(f!==H){var m=d[f];if(m===void 0&&!Dt(d,f))return!0;var v=p[f],x=v&&v[H];if(x?x.t!==m:!Is(v,m))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};ol("ES5",{J:function(c,d){var p=Array.isArray(c),u=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Bs(m);delete S[H];for(var L=Bt(S),R=0;R<L.length;R++){var N=L[R];S[N]=e(N,f||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),y={i:p?5:4,A:d?d.A:jo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:y,writable:!0}),u},S:function(c,d,p){p?He(d)&&d[H].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var f=y[H];if(f){var m=f.t,v=f.k,x=f.R,S=f.i;if(S===4)ft(v,function(B){B!==H&&(m[B]!==void 0||Dt(m,B)?x[B]||u(v[B]):(x[B]=!0,et(f)))}),ft(m,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(f))});else if(S===5){if(n(f)&&(et(f),x.length=!0),v.length<m.length)for(var L=v.length;L<m.length;L++)x[L]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),_=0;_<N;_++)v.hasOwnProperty(_)||(x[_]=!0),x[_]===void 0&&u(v[_])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ls,sr,en=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",il=typeof Map<"u",sl=typeof Set<"u",Ts=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ds=en?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),Ps=en?Symbol.for("immer-draftable"):"__$immer_draftable",H=en?Symbol.for("immer-state"):"__$immer_state";var cl=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Zo={},cr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,p=Rs(i,c);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ee(n)?n:n===zo(e.t,r)?(Go(e),e.o[r]=Vo(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Rs(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=zo(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Is(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;Go(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return zo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Go(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ir={};ft(cr,function(e,r){ir[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ir.deleteProperty=function(e,r){return ir.set.call(this,e,r,void 0)},ir.set=function(e,r,o){return cr.set.call(this,e[0],r,o,e[0])};var ll=function(){function e(o){var n=this;this.O=Ts,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(S){var L=this;S===void 0&&(S=d);for(var R=arguments.length,N=Array(R>1?R-1:0),_=1;_<R;_++)N[_-1]=arguments[_];return p.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(N))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ee(a)){var y=As(n),f=Vo(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?Wr(y):Ko(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Fo(y,c),Ho(S,y)},function(S){throw Wr(y),S}):(Fo(y,c),Ho(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ds&&(u=void 0),n.D&&Qo(u,!0),c){var v=[],x=[];Ie("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(f))})};var c,d,p=n.produce(a,i,function(u,y){c=u,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,d]}):[p,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ee(o)||be(8),He(o)&&(o=al(o));var n=As(this),a=Vo(this,o,void 0);return a[H].C=!0,Ko(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Fo(i,n),Ho(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Ts&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ie("Patches").$;return He(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ge=new ll,dl=ge.produce,ym=ge.produceWithPatches.bind(ge),gm=ge.setAutoFreeze.bind(ge),mm=ge.setUseProxies.bind(ge),bm=ge.applyPatches.bind(ge),xm=ge.createDraft.bind(ge),vm=ge.finishDraft.bind(ge),zr=dl;function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}function Us(e,r){if(ht(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ms(e){var r=Us(e,"string");return ht(r)=="symbol"?r:r+""}function $s(e,r,o){return(r=Ms(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ws(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 tn(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ws(Object(o),!0).forEach(function(n){$s(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ws(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Fs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),rn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+rn(),REPLACE:"@@redux/REPLACE"+rn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rn()}};function ul(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 on(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(on)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,p=!1;function u(){d===c&&(d=c.slice())}function y(){if(p)throw new Error(ie(3));return i}function f(S){if(typeof S!="function")throw new Error(ie(4));if(p)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(p)throw new Error(ie(6));L=!1,u();var N=d.indexOf(S);d.splice(N,1),c=null}}}function m(S){if(!ul(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(p)throw new Error(ie(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var L=c=d,R=0;R<L.length;R++){var N=L[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,m({type:Gr.REPLACE})}function x(){var S,L=f;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function _(){N.next&&N.next(y())}_();var B=L(_);return{unsubscribe:B}}},S[Fs]=function(){return this},S}return m({type:Gr.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:v},n[Fs]=x,n}function pl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Hs(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{pl(o)}catch(p){d=p}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var f;for(var m=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],R=u[S],N=L(R,y);if(typeof N>"u"){var _=y&&y.type;throw new Error(ie(14))}v[S]=N,m=m||N!==R}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function zs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(p){return p(c)});return i=Mt.apply(void 0,d)(a.dispatch),tn(tn({},a),{},{dispatch:i})}}}function Gs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var js=Gs();js.withExtraArgument=Gs;var nn=js;var Ys=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)}}(),fl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(y){return p([u,y])}}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(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},hl=Object.defineProperty,yl=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,Vs=function(e,r,o){return r in e?hl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},tt=function(e,r){for(var o in r||(r={}))ml.call(r,o)&&Vs(e,o,r[o]);if(Ks)for(var n=0,a=Ks(r);n<a.length;n++){var o=a[n];bl.call(r,o)&&Vs(e,o,r[o])}return e},an=function(e,r){return yl(e,gl(r))},xl=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{d(o.next(p))}catch(u){a(u)}},c=function(p){try{d(o.throw(p))}catch(u){a(u)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};d((o=o.apply(e,r)).next())})};var vl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},Mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Sl(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 Ol=function(e){Ys(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),Cl=function(e){Ys(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function ln(e){return Ee(e)?zr(e,function(){}):e}function El(e){return typeof e=="boolean"}function Al(){return function(r){return wl(r)}}function wl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new Ol;if(o&&(El(o)?d.push(nn):d.push(nn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return d}var sn=!0;function Xs(e){var r=Al(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,p=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,v;if(typeof a=="function")v=a;else if(Sl(a))v=Hs(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),!sn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!sn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=zs.apply(void 0,x),L=Mt;p&&(L=vl(tt({trace:!sn},typeof p=="object"&&p)));var R=new Cl(S),N=R;Array.isArray(m)?N=$t([S],m):typeof m=="function"&&(N=m(R));var _=L.apply(void 0,N);return on(v,y,_)}function rt(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 tt(tt({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 Qs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Rl(e){return typeof e=="function"}function Nl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Qs(r):[r,o,n],i=a[0],c=a[1],d=a[2],p;if(Rl(e))p=function(){return ln(e())};else{var u=ln(e);p=function(){return u}}function y(f,m){f===void 0&&(f=p());var v=$t([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=[d]),v.reduce(function(x,S){if(S)if(He(x)){var L=x,R=S(L,m);return R===void 0?x:R}else{if(Ee(x))return zr(x,function(N){return S(N,m)});var R=S(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},f)}return y.getInitialState=p,y}function Ll(e,r){return e+"/"+r}function Js(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:ln(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(y){var f=n[y],m=Ll(r,y),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,i[y]=v,c[m]=v,d[y]=x?rt(m,x):rt(m)});function p(){var y=typeof e.extraReducers=="function"?Qs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,v=y[1],x=v===void 0?[]:v,S=y[2],L=S===void 0?void 0:S,R=tt(tt({},m),c);return Nl(o,function(N){for(var _ in R)N.addCase(_,R[_]);for(var B=0,U=x;B<U.length;B++){var le=U[B];N.addMatcher(le.matcher,le.reducer)}L&&N.addDefaultCase(L)})}var u;return{name:r,reducer:function(y,f){return u||(u=p()),u(y,f)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Tl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Tl[Math.random()*64|0];return r},_l=["name","message","stack","code"],cn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Zs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Il=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=_l;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Hm=function(){function e(r,o,n){var a=rt(r+"/fulfilled",function(y,f,m,v){return{payload:y,meta:an(tt({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=rt(r+"/pending",function(y,f,m){return{payload:void 0,meta:an(tt({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=rt(r+"/rejected",function(y,f,m,v,x){return{payload:v,error:(n&&n.serializeError||Il)(y||"Rejected"),meta:an(tt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(f,m,v){var x=n?.idGenerator?n.idGenerator(y):Pl(),S=new p,L,R=!1;function N(B){L=B,S.abort()}var _=function(){return xl(this,null,function(){var B,U,le,we,se,Re,J;return fl(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:v}),Dl(we)?[4,we]:[3,2];case 1:we=g.sent(),g.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),f(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:m,extra:v}))),[4,Promise.race([se,Promise.resolve(o(y,{dispatch:f,getState:m,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,P){return new cn(b,P)},fulfillWithValue:function(b,P){return new Zs(b,P)}})).then(function(b){if(b instanceof cn)throw b;return b instanceof Zs?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return le=g.sent(),[3,5];case 4:return Re=g.sent(),le=Re instanceof cn?c(null,x,y,Re.payload,Re.meta):c(Re,x,y),[3,5];case 5:return J=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,J||f(le),[2,le]}})})}();return Object.assign(_,{abort:N,requestId:x,arg:y,unwrap:function(){return _.then(kl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function kl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Dl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ec="listener",tc="completed",rc="cancelled",zm="task-"+rc,Gm="task-"+tc,jm=ec+"-"+rc,Km=ec+"-"+tc;var dn="listenerMiddleware";var Vm=rt(dn+"/add"),Zm=rt(dn+"/removeAll"),qm=rt(dn+"/remove");var qs,Ym=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)})},Bl=function(e){return function(r){setTimeout(r,e)}},Xm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bl(10);ks();function Ul(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var jr=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var oc=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(or(i))return i;if(a==null)return;let c=Js({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Xs({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,d,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,d)=>{let p=c,u=i[p];return u?(...y)=>{let f=u(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[p]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=C(k());var Kr=class extends Fe{async listMySearches(){let r=I.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends Fe{async listMyBookmarks(){let r=I.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var $l="ft-user-assets",Zr=qr.FtReduxStore.get({name:$l,initialState:{savedSearches:void 0,bookmarks:void 0}}),un=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new Kr,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=I.getState();(0,qr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Zr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zr.actions.bookmarks(o)}}},_b=new un;var pn=class{addCommand(r,o=!1){I.commands.add(r,o)}consumeCommand(r){return I.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new pn;var nc=C(k()),fn=class{highlightHtml(r,o,n){(0,nc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new fn;var ac=C(k());var hn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return ac.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new hn;var Wl=C(k());(0,ic.customElement)("ft-app-context")(V);var yn=class e extends Event{constructor(){super(e.eventName)}};yn.eventName="search-context-clear-all-filters";var Fl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},gn=Symbol("registerInterval");function Hl(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[gn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[gn]):this.dispatchEvent(new mn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=gn,Fl([(0,cc.state)()],o.prototype,"stateManager",void 0),o}var Xr=class extends Hl(sc.FtLitElementRedux){};var fc=C(k());var ro=C(G()),oo=C(ne()),no=C(k());var lc=C(G());var dc=lc.css`
|
|
1061
|
+
`;var eo=C(k());var pc=C(ne()),zl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},bn=Symbol("i18nAttributes"),xn=Symbol("i18nListAttributes"),Qr=Symbol("i18nProperties"),vn=Symbol("i18nManualContexts"),lr=Symbol("i18nUnsubs");function to(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?_r:kt}i18n(i,c,...d){var p;if(typeof i=="string")return this.getI18nService().resolveMessage(i,c,...d);let u=(p=i.args)!==null&&p!==void 0?p:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...u)}onI18nUpdate(i){var c,d,p;(c=this[bn])===null||c===void 0||c.forEach((u,y)=>{let f=this.getI18nAttributeValue(y);f&&(this[y]=this.getI18nAttributeMessage(f,u,i))}),(d=this[xn])===null||d===void 0||d.forEach((u,y)=>{let f=this.getI18nListAttributeValues(y);this[y]=f?.map(m=>this.getI18nAttributeMessage(m,u,i))}),(p=this[Qr])===null||p===void 0||p.forEach((u,y)=>{u.context.toLowerCase()===i.toLowerCase()&&(this[y]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}getI18nAttributeMessage(i,c,d){var p;let u=!d||((p=i.context)===null||p===void 0?void 0:p.toLowerCase())===d.toLowerCase(),y=i.context&&i.key&&u?this.i18n({context:i.context,key:i.key,...c}):i.message;return{...i,message:y}}update(i){var c,d,p;super.update(i),(c=this[bn])===null||c===void 0||c.forEach((u,y)=>{let f=this.getI18nAttributeValue(y);f?.context&&f.key&&(i.has(y)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,i,y),this[y]=this.getI18nAttributeMessage(f,u))}),(d=this[xn])===null||d===void 0||d.forEach((u,y)=>{let f=this.getI18nListAttributeValues(y);(i.has(y)||u.argsProvider!=null)&&(this[y]=f?.map(m=>(this.addI18nContextIfNeeded(m,i,y),this.getI18nAttributeMessage(m,u))))}),(p=this[Qr])===null||p===void 0||p.forEach((u,y)=>{u.argsProvider!=null&&(this[y]=this.i18n(u))})}getI18nAttributeValue(i){return this[i]}getI18nListAttributeValues(i){return this[i]}addI18nContextIfNeeded(i,c,d){i.context&&i.key&&c.has(d)&&this.addI18nContext(i.context)}addI18nMessagesAndSubscribe(i,c,d){i=i.toLowerCase(),this[lr].has(i)||this[lr].set(i,this.getI18nService(d).subscribe(i,()=>this.onI18nUpdate(i))),this.getI18nService(d).prepareContext(i,c??{}),this.onI18nUpdate(i)}connectedCallback(){var i,c,d,p,u,y;super.connectedCallback(),new Set([...(c=(i=this[Qr])===null||i===void 0?void 0:i.values())!==null&&c!==void 0?c:[],...[...(p=(d=this[bn])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].map(f=>this.getI18nAttributeValue(f)),...[...(y=(u=this[xn])===null||u===void 0?void 0:u.keys())!==null&&y!==void 0?y:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[vn].forEach((f,m)=>{this.addI18nMessagesAndSubscribe(m,f.defaultMessages,f.isCustomContext)})}addI18nMessages(i,c,d){this[vn].set(i,{defaultMessages:c,isCustomContext:d}),this.addI18nMessagesAndSubscribe(i,c,d)}addI18nContext(i,c,d){typeof i=="string"?this.addI18nMessages(i,c,d):this.addI18nMessages(i.name,c,i.custom)}disconnectedCallback(){super.disconnectedCallback(),this[lr].forEach(i=>i()),this[lr].clear()}}return r=vn,o=lr,zl([(0,pc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var uc=class extends to(eo.FtLitElement){},Jr=class extends to(eo.FtLitElementRedux){};var dr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ae=class extends Jr{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ro.nothing:ro.html`
|
|
1062
1062
|
<span class="ft-i18n">
|
|
1063
1063
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1064
1064
|
</span>
|
|
1065
|
-
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ae.elementDefinitions={};Ae.styles=dc;dr([(0,no.redux)()],Ae.prototype,"editorMode",void 0);dr([(0,oo.property)()],Ae.prototype,"context",void 0);dr([(0,oo.property)()],Ae.prototype,"key",void 0);dr([(0,no.jsonProperty)([])],Ae.prototype,"args",void 0);dr([(0,oo.property)()],Ae.prototype,"defaultMessage",void 0);var ao=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?
|
|
1065
|
+
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ae.elementDefinitions={};Ae.styles=dc;dr([(0,no.redux)()],Ae.prototype,"editorMode",void 0);dr([(0,oo.property)()],Ae.prototype,"context",void 0);dr([(0,oo.property)()],Ae.prototype,"key",void 0);dr([(0,no.jsonProperty)([])],Ae.prototype,"args",void 0);dr([(0,oo.property)()],Ae.prototype,"defaultMessage",void 0);var ao=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?_r:kt}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};(0,fc.customElement)("ft-i18n")(Ae);var Sn=ao.fromGwt("designedActionBlockAriaLabels");var hc=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ot=class extends to(Xr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(Sn)}render(){return this.isLastPage?io.nothing:io.html`
|
|
1066
1066
|
<ft-button @click="${this.loadMore}">
|
|
1067
1067
|
${Sn.messages.searchPageLoadMore()}
|
|
1068
1068
|
</ft-button>
|