@fluid-topics/ft-search-selected-facets 2.1.24 → 2.2.1

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,17 +1,17 @@
1
- "use strict";(()=>{var Vu=Object.create;var Xo=Object.defineProperty;var zu=Object.getOwnPropertyDescriptor;var qu=Object.getOwnPropertyNames;var Ku=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var fr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Gu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qu(e))!Wu.call(t,n)&&n!==r&&Xo(t,n,{get:()=>e[n],enumerable:!(i=zu(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Vu(Ku(t)):{},Gu(e||!t||!t.__esModule?Xo(r,"default",{value:t,enumerable:!0}):r,t));var b=fr((Cp,Jo)=>{Jo.exports=ftGlobals.wcUtils});var L=fr((Op,Zo)=>{Zo.exports=ftGlobals.lit});var $=fr((wp,es)=>{es.exports=ftGlobals.litDecorators});var kn=fr((Tp,ts)=>{ts.exports=ftGlobals.litRepeat});var Zt=fr((oy,Qa)=>{Qa.exports=ftGlobals.litClassMap});var jl=fr((By,Hl)=>{Hl.exports=ftGlobals.litUnsafeHTML});var ju=f(b());var re=f(L()),_n=f($()),Rn=f(kn()),K=f(b());var rs=f(L()),is=f(b()),Yu={spacing:is.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ns=rs.css`
1
+ "use strict";(()=>{var id=Object.create;var ro=Object.defineProperty;var nd=Object.getOwnPropertyDescriptor;var sd=Object.getOwnPropertyNames;var od=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty;var lr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ld=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of sd(e))!ad.call(t,s)&&s!==r&&ro(t,s,{get:()=>e[s],enumerable:!(i=nd(e,s))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?id(od(t)):{},ld(e||!t||!t.__esModule?ro(r,"default",{value:t,enumerable:!0}):r,t));var g=lr((Yp,io)=>{io.exports=ftGlobals.wcUtils});var R=lr((Qp,no)=>{no.exports=ftGlobals.lit});var F=lr((Xp,so)=>{so.exports=ftGlobals.litDecorators});var Vn=lr((Jp,oo)=>{oo.exports=ftGlobals.litRepeat});var Gt=lr((ug,ll)=>{ll.exports=ftGlobals.litClassMap});var ec=lr((qg,Zl)=>{Zl.exports=ftGlobals.litUnsafeHTML});var ed=d(g());var ie=d(R()),Bn=d(F()),Fn=d(Vn()),W=d(g());var ao=d(R()),lo=d(g()),cd={spacing:lo.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},co=ao.css`
2
2
  .ft-search-selected-facets--container {
3
3
  display: flex;
4
4
  flex-wrap: wrap;
5
- gap: ${Yu.spacing};
5
+ gap: ${cd.spacing};
6
6
  }
7
7
 
8
8
  .ft-search-selected-facets--container > * {
9
9
  min-width: 0;
10
10
  }
11
- `;var Or=f(b()),go=f($());var Vr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vr||(Vr={}));var Jt=f(b());var Qu=f(b());var os;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(os||(os={}));var ss;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ss||(ss={}));var as;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(as||(as={}));var ls;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ls||(ls={}));var cs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(cs||(cs={}));var us;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(us||(us={}));var ds;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(ds||(ds={}));var ps;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(ps||(ps={}));var fs;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(fs||(fs={}));var hs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(hs||(hs={}));var ms;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(ms||(ms={}));var vs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(vs||(vs={}));var ys;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ys||(ys={}));var gs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gs||(gs={}));var bs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bs||(bs={}));var xs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xs||(xs={}));var dt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dt||(dt={}));var Ss;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ss||(Ss={}));var As;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(As||(As={}));var Ci;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ci||(Ci={}));var Es;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Es||(Es={}));var Cs;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cs||(Cs={}));var Os;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Os||(Os={}));var Oi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Oi||(Oi={}));var ws;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ws||(ws={}));var wi;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wi||(wi={}));var Ts;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ts||(Ts={}));var W;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(W||(W={}));var $e;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})($e||($e={}));var Rs;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Rs||(Rs={}));var _s;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(_s||(_s={}));var Ls;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ls||(Ls={}));var ks;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(ks||(ks={}));var Ps;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ps||(Ps={}));var Ds;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ds||(Ds={}));var Ns;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ns||(Ns={}));var Is;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Is||(Is={}));var Ms;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ms||(Ms={}));var $s;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})($s||($s={}));var Us;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Us||(Us={}));var Fs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Fs||(Fs={}));var Xu={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Bs(t,e){return t===e||(Xu[t]??[]).some(r=>Bs(r,e))}function Pn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Bs(i,e))}var no=f($());var Hs=f($(),1);var Dn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function js(t,e){return(0,Hs.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return zr(t);try{return JSON.parse(r)}catch{return zr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:qr,...e??{}})}function Ju(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!hr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!hr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!hr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function hr(t,e){try{return Ju(t,e)}catch{return!1}}function qr(t,e){return!hr(t,e)}function zr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ti(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Vs=f($(),1);var Nn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:qr,attribute:!1,...e};(0,Vs.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ri=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var jt=f($(),1);var _i=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var qs=f(L(),1);var Li=globalThis,Zu=Li.ShadowRoot&&(Li.ShadyCSS===void 0||Li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var zs=(t,e)=>{if(Zu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Li.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var ki=class extends qs.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return zs(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Dn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Ks(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var vr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Qs,Ws=Symbol("constructorPrototype"),Gs=Symbol("constructorName"),Xs=Symbol("exportpartsDebouncer"),Ys=Symbol("dynamicDependenciesLoaded"),mr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};mr.eventName="exportparts-updated";var tt=class extends ki{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Qs]=new _i(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Xs].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Gs]=this.constructor.name,this[Ws]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gs]&&Object.setPrototypeOf(this,this[Ws])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Ys]||(r[Ys]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(mr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(mr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new mr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=Ks(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(S=>S.trim());for(let S of v)u.add(S)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Qs=Xs;vr([(0,jt.property)()],tt.prototype,"exportpartsPrefix",void 0);vr([js([])],tt.prototype,"exportpartsPrefixes",void 0);vr([(0,jt.property)({reflect:!0})],tt.prototype,"exportparts",void 0);vr([(0,jt.property)()],tt.prototype,"customStylesheet",void 0);vr([(0,jt.property)()],tt.prototype,"elementToFocus",void 0);vr([(0,jt.state)()],tt.prototype,"useAdoptedStyleSheets",void 0);function Pi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kr=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),Vt=Symbol("internalStores"),ed=Ti(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Vt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Vt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Vt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Vt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Vt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Vt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[xt].has(s.store):this[xt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[xt].set(s,a.subscribe(()=>this.updateFromStores())),this[Kr].set(s,[]),Pi(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Kr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[xt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[xt].has(s)&&this[xt].get(s)(),this[xt].delete(s),(a=this[Kr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=xt,r=Vt,i=Kr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Js=class extends ed(tt){};function Ue(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function pt(t){return!!t&&!!t[H]}function Ve(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===ld})(t)||Array.isArray(t)||!!t[oa]||!!(!((e=t.constructor)===null||e===void 0)&&e[oa])||Vn(t)||zn(t))}function zt(t,e,r){r===void 0&&(r=!1),br(t)===0?(r?Object.keys:gr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function br(t){var e=t[H];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vn(t)?2:zn(t)?3:0}function yr(t,e){return br(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function td(t,e){return br(t)===2?t.get(e):t[e]}function sa(t,e,r){var i=br(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function aa(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vn(t){return sd&&t instanceof Map}function zn(t){return ad&&t instanceof Set}function St(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ua(t);delete e[H];for(var r=gr(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Kn(t,e){return e===void 0&&(e=!1),Wn(t)||pt(t)||!Ve(t)||(br(t)>1&&(t.set=t.add=t.clear=t.delete=rd),Object.freeze(t),e&&zt(t,(function(r,i){return Kn(i,!0)}),!0)),t}function rd(){Ue(2)}function Wn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rt(t){var e=jn[t];return e||Ue(18,t),e}function id(t,e){jn[t]||(jn[t]=e)}function Fn(){return Gr}function In(t,e){e&&(rt("Patches"),t.u=[],t.s=[],t.v=e)}function Di(t){Bn(t),t.p.forEach(nd),t.p=null}function Bn(t){t===Gr&&(Gr=t.l)}function Zs(t){return Gr={p:[],l:Gr,h:t,m:!0,_:0}}function nd(t){var e=t[H];e.i===0||e.i===1?e.j():e.g=!0}function Mn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||rt("ES5").S(e,t,i),i?(r[H].P&&(Di(e),Ue(4)),Ve(t)&&(t=Ni(e,t),e.l||Ii(e,t)),e.u&&rt("Patches").M(r[H].t,t,e.u,e.s)):t=Ni(e,r,[]),Di(e),e.u&&e.v(e.u,e.s),t!==ca?t:void 0}function Ni(t,e,r){if(Wn(e))return e;var i=e[H];if(!i)return zt(e,(function(a,l){return ea(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ii(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=qn(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),zt(o,(function(a,l){return ea(t,i,n,a,l,r,s)})),Ii(t,n,!1),r&&t.u&&rt("Patches").N(i,r,t.u,t.s)}return i.o}function ea(t,e,r,i,n,o,s){if(pt(n)){var a=Ni(t,n,o&&e&&e.i!==3&&!yr(e.R,i)?o.concat(i):void 0);if(sa(r,i,a),!pt(a))return;t.m=!1}else s&&r.add(n);if(Ve(n)&&!Wn(n)){if(!t.h.D&&t._<1)return;Ni(t,n),e&&e.A.l||Ii(t,n)}}function Ii(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Kn(e,r)}function $n(t,e){var r=t[H];return(r?St(r):t)[e]}function ta(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function At(t){t.P||(t.P=!0,t.l&&At(t.l))}function Un(t){t.o||(t.o=qn(t.t))}function Hn(t,e,r){var i=Vn(e)?rt("MapSet").F(e,r):zn(e)?rt("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:Fn(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Yr;s&&(l=[a],c=Wr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):rt("ES5").J(e,r);return(r?r.A:Fn()).p.push(i),i}function od(t){return pt(t)||Ue(22,t),(function e(r){if(!Ve(r))return r;var i,n=r[H],o=br(r);if(n){if(!n.P&&(n.i<4||!rt("ES5").K(n)))return n.t;n.I=!0,i=ra(r,o),n.I=!1}else i=ra(r,o);return zt(i,(function(s,a){n&&td(n.t,s)===a||sa(i,s,e(a))})),o===3?new Set(i):i})(t)}function ra(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function la(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[H];return Yr.get(c,s)},set:function(c){var u=this[H];Yr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][H];if(!l.P)switch(l.i){case 5:i(l)&&At(l);break;case 4:r(l)&&At(l)}}}function r(s){for(var a=s.t,l=s.k,c=gr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==H){var p=a[d];if(p===void 0&&!yr(a,d))return!0;var h=l[d],m=h&&h[H];if(m?m.t!==p:!aa(h,p))return!0}}var v=!!a[H];return c.length!==gr(a).length+(v?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&Ue(3,JSON.stringify(St(s)))}var o={};id("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=ua(p);delete v[H];for(var S=gr(v),A=0;A<S.length;A++){var E=S[A];v[E]=t(E,d||!!v[E].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:Fn(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,H,{value:u,writable:!0}),c},S:function(s,a,l){l?pt(a)&&a[H].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[H];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)zt(h,(function(R){R!==H&&(p[R]!==void 0||yr(p,R)?m[R]||c(h[R]):(m[R]=!0,At(d)))})),zt(p,(function(R){h[R]!==void 0||yr(h,R)||(m[R]=!1,At(d))}));else if(v===5){if(i(d)&&(At(d),m.length=!0),h.length<p.length)for(var S=h.length;S<p.length;S++)m[S]=!1;else for(var A=p.length;A<h.length;A++)m[A]=!0;for(var E=Math.min(h.length,p.length),O=0;O<E;O++)h.hasOwnProperty(O)||(m[O]=!0),m[O]===void 0&&c(h[O])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ia,Gr,Gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sd=typeof Map<"u",ad=typeof Set<"u",na=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ca=Gn?Symbol.for("immer-nothing"):((ia={})["immer-nothing"]=!0,ia),oa=Gn?Symbol.for("immer-draftable"):"__$immer_draftable",H=Gn?Symbol.for("immer-state"):"__$immer_state";var ld=""+Object.prototype.constructor,gr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ua=Object.getOwnPropertyDescriptors||function(t){var e={};return gr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},jn={},Yr={get:function(t,e){if(e===H)return t;var r=St(t);if(!yr(r,e))return(function(n,o,s){var a,l=ta(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!Ve(i)?i:i===$n(t.t,e)?(Un(t),t.o[e]=Hn(t.A.h,i,t)):i},has:function(t,e){return e in St(t)},ownKeys:function(t){return Reflect.ownKeys(St(t))},set:function(t,e,r){var i=ta(St(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=$n(St(t),e),o=n?.[H];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(aa(r,n)&&(r!==void 0||yr(t.t,e)))return!0;Un(t),At(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return $n(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Un(t),At(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=St(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ue(12)}},Wr={};zt(Yr,(function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,r){return Yr.set.call(this,t[0],e,r,t[0])};var cd=(function(){function t(r){var i=this;this.O=na,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(v){var S=this;v===void 0&&(v=a);for(var A=arguments.length,E=Array(A>1?A-1:0),O=1;O<A;O++)E[O-1]=arguments[O];return l.produce(v,(function(R){var Z;return(Z=o).call.apply(Z,[S,R].concat(E))}))}}var c;if(typeof o!="function"&&Ue(6),s!==void 0&&typeof s!="function"&&Ue(7),Ve(n)){var u=Zs(i),d=Hn(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?Di(u):Bn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return In(u,s),Mn(v,u)}),(function(v){throw Di(u),v})):(In(u,s),Mn(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===ca&&(c=void 0),i.D&&Kn(c,!0),s){var h=[],m=[];rt("Patches").M(n,c,h,m),s(h,m)}return c}Ue(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ve(r)||Ue(8),pt(r)&&(r=od(r));var i=Zs(this),n=Hn(this,r,void 0);return n[H].C=!0,Bn(i),n},e.finishDraft=function(r,i){var n=r&&r[H],o=n.A;return In(o,i),Mn(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!na&&Ue(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=rt("Patches").$;return pt(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),Le=new cd,ud=Le.produce,gf=Le.produceWithPatches.bind(Le),bf=Le.setAutoFreeze.bind(Le),xf=Le.setUseProxies.bind(Le),Sf=Le.applyPatches.bind(Le),Af=Le.createDraft.bind(Le),Ef=Le.finishDraft.bind(Le),Mi=ud;function qt(t){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(t)}function da(t,e){if(qt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(qt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pa(t){var e=da(t,"string");return qt(e)=="symbol"?e:e+""}function fa(t,e,r){return(e=pa(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ha(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Yn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ha(Object(r),!0).forEach(function(i){fa(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ha(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function he(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ma=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},$i={INIT:"@@redux/INIT"+Qn(),REPLACE:"@@redux/REPLACE"+Qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qn()}};function dd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Xn(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(he(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(he(1));return r(Xn)(t,e)}if(typeof t!="function")throw new Error(he(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(he(3));return o}function d(v){if(typeof v!="function")throw new Error(he(4));if(l)throw new Error(he(5));var S=!0;return c(),a.push(v),function(){if(S){if(l)throw new Error(he(6));S=!1,c();var E=a.indexOf(v);a.splice(E,1),s=null}}}function p(v){if(!dd(v))throw new Error(he(7));if(typeof v.type>"u")throw new Error(he(8));if(l)throw new Error(he(9));try{l=!0,o=n(o,v)}finally{l=!1}for(var S=s=a,A=0;A<S.length;A++){var E=S[A];E()}return v}function h(v){if(typeof v!="function")throw new Error(he(10));n=v,p({type:$i.REPLACE})}function m(){var v,S=d;return v={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(he(11));function O(){E.next&&E.next(u())}O();var R=S(O);return{unsubscribe:R}}},v[ma]=function(){return this},v}return p({type:$i.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:h},i[ma]=m,i}function pd(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:$i.INIT});if(typeof i>"u")throw new Error(he(12));if(typeof r(void 0,{type:$i.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(he(13))})}function va(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{pd(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],S=r[v],A=c[v],E=S(A,u);if(typeof E>"u"){var O=u&&u.type;throw new Error(he(14))}h[v]=E,p=p||E!==A}return p=p||o.length!==Object.keys(c).length,p?h:c}}function xr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function ya(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(he(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=xr.apply(void 0,a)(n.dispatch),Yn(Yn({},n),{},{dispatch:o})}}}function ga(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var ba=ga();ba.withExtraArgument=ga;var Jn=ba;var Ca=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),fd=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Sr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},hd=Object.defineProperty,md=Object.defineProperties,vd=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,gd=Object.prototype.propertyIsEnumerable,Sa=function(t,e,r){return e in t?hd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Et=function(t,e){for(var r in e||(e={}))yd.call(e,r)&&Sa(t,r,e[r]);if(xa)for(var i=0,n=xa(e);i<n.length;i++){var r=n[i];gd.call(e,r)&&Sa(t,r,e[r])}return t},Zn=function(t,e){return md(t,vd(e))},bd=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var xd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xr:xr.apply(null,arguments)},Hf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Ct(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Et(Et({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var Ad=(function(t){Ca(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Sr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],r.concat(this))))},e})(Array),Ed=(function(t){Ca(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Sr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],r.concat(this))))},e})(Array);function ro(t){return Ve(t)?Mi(t,function(){}):t}function Cd(t){return typeof t=="boolean"}function Od(){return function(e){return wd(e)}}function wd(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new Ad;if(r&&(Cd(r)?c.push(Jn):c.push(Jn.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var eo=!0;function Oa(t){var e=Od(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Sd(n))h=va(n);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 m=s;if(typeof m=="function"&&(m=m(e),!eo&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!eo&&m.some(function(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ya.apply(void 0,m),S=xr;l&&(S=xd(Et({trace:!eo},typeof l=="object"&&l)));var A=new Ed(v),E=A;Array.isArray(p)?E=Sr([v],p):typeof p=="function"&&(E=p(A));var O=S.apply(void 0,E);return Xn(h,u,O)}function wa(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function Td(t){return typeof t=="function"}function Rd(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?wa(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if(Td(t))l=function(){return ro(t())};else{var c=ro(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Sr([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(pt(m)){var S=m,A=v(S,p);return A===void 0?m:A}else{if(Ve(m))return Mi(m,function(E){return v(E,p)});var A=v(m,p);if(A===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return m},d)}return u.getInitialState=l,u}function _d(t,e){return t+"/"+e}function Ta(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:ro(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(u){var d=i[u],p=_d(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?Ct(p,m):Ct(p)});function l(){var u=typeof t.extraReducers=="function"?wa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],S=v===void 0?void 0:v,A=Et(Et({},p),s);return Rd(r,function(E){for(var O in A)E.addCase(O,A[O]);for(var R=0,Z=m;R<Z.length;R++){var Q=Z[R];E.addMatcher(Q.matcher,Q.reducer)}S&&E.addDefaultCase(S)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Ld="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kd=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ld[Math.random()*64|0];return e},Pd=["name","message","stack","code"],to=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Aa=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Dd=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Pd;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},qf=(function(){function t(e,r,i){var n=Ct(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Zn(Et({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Ct(e+"/pending",function(u,d,p){return{payload:void 0,meta:Zn(Et({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Ct(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||Dd)(u||"Rejected"),meta:Zn(Et({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=i?.idGenerator?i.idGenerator(u):kd(),v=new l,S,A=!1;function E(R){S=R,v.abort()}var O=(function(){return bd(this,null,function(){var R,Z,Q,gt,Ln,bt,Re;return fd(this,function(Me){switch(Me.label){case 0:return Me.trys.push([0,4,,5]),gt=(R=i?.condition)==null?void 0:R.call(i,u,{getState:p,extra:h}),Id(gt)?[4,gt]:[3,2];case 1:gt=Me.sent(),Me.label=2;case 2:if(gt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Ln=new Promise(function(_e,Ht){return v.signal.addEventListener("abort",function(){return Ht({name:"AbortError",message:S||"Aborted"})})}),d(o(m,u,(Z=i?.getPendingMeta)==null?void 0:Z.call(i,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([Ln,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:E,rejectWithValue:function(_e,Ht){return new to(_e,Ht)},fulfillWithValue:function(_e,Ht){return new Aa(_e,Ht)}})).then(function(_e){if(_e instanceof to)throw _e;return _e instanceof Aa?n(_e.payload,m,u,_e.meta):n(_e,m,u)})])];case 3:return Q=Me.sent(),[3,5];case 4:return bt=Me.sent(),Q=bt instanceof to?s(null,m,u,bt.payload,bt.meta):s(bt,m,u),[3,5];case 5:return Re=i&&!i.dispatchConditionRejection&&s.match(Q)&&Q.meta.condition,Re||d(Q),[2,Q]}})})})();return Object.assign(O,{abort:E,requestId:m,arg:u,unwrap:function(){return O.then(Nd)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Nd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Id(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ra="listener",_a="completed",La="cancelled",Kf="task-"+La,Wf="task-"+_a,Gf=Ra+"-"+La,Yf=Ra+"-"+_a;var io="listenerMiddleware";var Qf=Ct(io+"/add"),Xf=Ct(io+"/removeAll"),Jf=Ct(io+"/remove");var Ea,Zf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ea||(Ea=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Md=function(t){return function(e){setTimeout(e,t)}},eh=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Md(10);la();var $d=Ti(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ui=class extends $d(Object){};window.ftReduxStores||(window.ftReduxStores={});var ka=class t extends Ui{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Pi(o))return o;if(n==null)return;let s=Ta({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Oa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=zr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ri;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];hr(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fi=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Bi=f(b()),Ud="ft-app-info",Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kt.eventName="authentication-change";var Qr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Qr.eventName="ui-locale-changed";var Fd={session:(t,e)=>{(0,Bi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>C.dispatchEvent(new Kt(e.payload)),0))}},C=Bi.FtReduxStore.get({name:Ud,reducers:Fd,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Pa=f(b()),Hi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Da=(0,Pa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(C)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Fi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Hi([(0,no.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Hi([(0,no.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Hi([Nn({store:C.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Hi([Nn({store:C.name})],e.prototype,"uiLocale",void 0),e});var Ki=f(b());var oo=f(b());var Wt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=C.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=C.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Ar=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Wt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Wt.await()}};var be=class extends Ar{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new oo.CacheRegistry,this.cache=e?n.commonCache:new oo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var ji=class extends be{async listMySearches(){let{session:e}=C.getState();return Pn(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Vi=class extends be{async listMyBookmarks(){let e=C.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var zi=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var qi=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=C.getState().session;return!!e?.sessionAuthenticated}};var Bd="ft-user-assets",Hd={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values($e).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;ao(t,r,[...so(t,r),n]),Na(t,r,1,i),Ia(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ao(t,r,so(t,r).map(n=>n.id===i.id?i:n)),Ia(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;ao(t,r,so(t,r).filter(o=>o.id!==n)),Na(t,r,-1,i)}},Ma={[$e.SEARCHES]:"savedSearches",[$e.BOOKMARKS]:"bookmarks",[$e.BOOKS]:void 0,[$e.COLLECTIONS]:void 0},so=(t,e)=>{var r;let i=Ma[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ao=(t,e,r)=>{let i=Ma[e];i&&(t[i]=r)},Na=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===$e.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Ia=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ye=Ki.FtReduxStore.get({name:Bd,reducers:Hd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values($e).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),lo=class{constructor(e=new zi,r=new qi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vi,this.savedSearchesService=new ji,C.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=C.getState();(0,Ki.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ye.actions.clearAssetCount(),ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ye.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ye.getState().assetCounts.allAsset[e]!==r.count&&ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ye.getState().assetCounts.bookmarkByMap[e]!==r.count&&ye.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ye.getState().assetCounts.bookmarkByMap).length!==0;e===$e.BOOKMARKS&&r&&ye.actions.clearBookmarkCountByMap(),ye.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ye.actions.bookmarks(r)}}},jd=new lo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=jd);var co=class{addCommand(e,r=!1){C.commands.add(e,r)}consumeCommand(e){return C.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new co;var Fe=f(b());var $a,Er=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Vd=Symbol("clearAfterUnitTest"),Wi=class extends(0,Fe.withEventBus)(be){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$a]=()=>{this.defaultMessages={},this.cache=new Fe.CacheRegistry,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=C.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Fe.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Fe.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Fe.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Er({loadedContexts:e})),this.dispatchEvent(new Er({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Er({loadedContexts:[e]})),this.dispatchEvent(new Er({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Fe.delay)(0).then(()=>i()).catch(()=>null)))}};$a=Vd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Cr=window.FluidTopicsI18nService,Gi=window.FluidTopicsCustomI18nService;var Ua=f(b()),uo=class{highlightHtml(e,r,i){(0,Ua.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new uo;var Fa=f(b());var po=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=C.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Fa.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:C.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new po;var Ba=f(b());var Xr=class{static get(e,r){var i,n,o,s;let a=C.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Ba.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var fo=class{urlToSearchRequest(e){return Xr.get().parse(e)}searchRequestToUrl(e){return Xr.get().serialize(e)}};window.FluidTopicsUrlService=new fo;var ft=f(b());var Gt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Gt.eventName="change";var ho=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ha=new ho;var Yi=class t extends ft.WithEventBus{static build(){return new t(window.history,Ha,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ft.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Gt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Gt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Gt.eventName,e)}currentItem(){return(0,ft.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ft.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,ft.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ft.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Yi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ja=f(L());var Va=ja.css`
12
- `;var qa=f(L()),xe=f($()),Xt=f(b());var Yt=f(b());function za(t,e){let{authenticationRequired:r,session:i}=C.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Qi=class extends Ar{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var mo=class t extends Yt.FtStateManager{static build(e){return new t(C,e)}constructor(e,r){super(),this.store=e,this.cache=new Yt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Qi,this.cleanSessionDebouncer=new Yt.Debouncer,this.reloadDebouncer=new Yt.Debouncer(500),this.apiProvider=r??(()=>Wt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Kt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>za(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Qr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},vo=mo.build();var Qt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Jr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Qt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var oe=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},j=class extends Xt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=vo,this.contextRoot=new Jr}render(){return qa.html`
11
+ `;var gr=d(g()),As=d(F());var Ir;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Ir||(Ir={}));var Wt=d(g());var ud=d(g());var uo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(uo||(uo={}));var po;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(po||(po={}));var fo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(fo||(fo={}));var ho;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ho||(ho={}));var mo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(mo||(mo={}));var yo;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(yo||(yo={}));var go;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(go||(go={}));var vo;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(vo||(vo={}));var bo;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(bo||(bo={}));var xo;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(xo||(xo={}));var So;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(So||(So={}));var Eo;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Eo||(Eo={}));var Ao;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ao||(Ao={}));var _o;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(_o||(_o={}));var Co;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Co||(Co={}));var wo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(wo||(wo={}));var dt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dt||(dt={}));var Oo;(function(t){t.ASC="ASC",t.DESC="DESC"})(Oo||(Oo={}));var To;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(To||(To={}));var xi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xi||(xi={}));var Ro;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ro||(Ro={}));var Lo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Lo||(Lo={}));var ko;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ko||(ko={}));var Si;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Si||(Si={}));var Do;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Do||(Do={}));var Ei;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ei||(Ei={}));var Po;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Po||(Po={}));var Q;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Q||(Q={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var No;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(No||(No={}));var Mo;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Mo||(Mo={}));var Io;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Io||(Io={}));var $o;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})($o||($o={}));var Uo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Uo||(Uo={}));var Fo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fo||(Fo={}));var Bo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bo||(Bo={}));var Vo;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vo||(Vo={}));var Ho;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ho||(Ho={}));var zo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(zo||(zo={}));var jo;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(jo||(jo={}));var qo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(qo||(qo={}));var dd={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Ko(t,e){return t===e||(dd[t]??[]).some(r=>Ko(r,e))}function Hn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Ko(i,e))}var us=d(F());var Wo=d(F(),1);var zn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Go(t,e){return(0,Wo.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return $r(t);try{return JSON.parse(r)}catch{return $r(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ur,...e??{}})}function pd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!cr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!cr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!cr(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return pd(t,e)}catch{return!1}}function Ur(t,e){return!cr(t,e)}function $r(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ai(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var Yo=d(F(),1);var jn=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Ur,attribute:!1,...e};(0,Yo.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var _i=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ut=d(F(),1);var Ci=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xo=d(R(),1);var wi=globalThis,fd=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Qo=(t,e)=>{if(fd)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=wi.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}};var Oi=class extends Xo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Qo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){zn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Jo(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var dr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ra,Zo=Symbol("constructorPrototype"),ea=Symbol("constructorName"),ia=Symbol("exportpartsDebouncer"),ta=Symbol("dynamicDependenciesLoaded"),ur=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ur.eventName="exportparts-updated";var tt=class extends Oi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ra]=new Ci(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ia].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ea]=this.constructor.name,this[Zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ea]&&Object.setPrototypeOf(this,this[Zo])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ta]||(r[ta]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ur.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ur.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ur)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Jo(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(n=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&n!==void 0?n:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};ra=ia;dr([(0,Ut.property)()],tt.prototype,"exportpartsPrefix",void 0);dr([Go([])],tt.prototype,"exportpartsPrefixes",void 0);dr([(0,Ut.property)({reflect:!0})],tt.prototype,"exportparts",void 0);dr([(0,Ut.property)()],tt.prototype,"customStylesheet",void 0);dr([(0,Ut.property)()],tt.prototype,"elementToFocus",void 0);dr([(0,Ut.state)()],tt.prototype,"useAdoptedStyleSheets",void 0);function Ti(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Fr=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores"),hd=Ai(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ft].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ft].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ft].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[bt].has(o.store):this[bt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[bt].set(o,a.subscribe(()=>this.updateFromStores())),this[Fr].set(o,[]),Ti(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let p=f=>this[u](f);a.addEventListener(c.eventName,p),this[Fr].get(o).push(()=>a.removeEventListener(c.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[bt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[bt].has(o)&&this[bt].get(o)(),this[bt].delete(o),(a=this[Fr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Fr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Ft,i=Fr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),na=class extends hd(tt){};function oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var md=typeof Symbol=="function"&&Symbol.observable||"@@observable",sa=md,qn=()=>Math.random().toString(36).substring(7).split("").join("."),yd={INIT:`@@redux/INIT${qn()}`,REPLACE:`@@redux/REPLACE${qn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qn()}`},Ri=yd;function Li(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Kn(t,e,r){if(typeof t!="function")throw new Error(oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(oe(1));return r(Kn)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function c(){o===n&&(o=new Map,n.forEach((b,_)=>{o.set(_,b)}))}function u(){if(l)throw new Error(oe(3));return s}function p(b){if(typeof b!="function")throw new Error(oe(4));if(l)throw new Error(oe(5));let _=!0;c();let P=a++;return o.set(P,b),function(){if(_){if(l)throw new Error(oe(6));_=!1,c(),o.delete(P),n=null}}}function f(b){if(!Li(b))throw new Error(oe(7));if(typeof b.type>"u")throw new Error(oe(8));if(typeof b.type!="string")throw new Error(oe(17));if(l)throw new Error(oe(9));try{l=!0,s=i(s,b)}finally{l=!1}return(n=o).forEach(P=>{P()}),b}function y(b){if(typeof b!="function")throw new Error(oe(10));i=b,f({type:Ri.REPLACE})}function x(){let b=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(oe(11));function P(){let O=_;O.next&&O.next(u())}return P(),{unsubscribe:b(P)}},[sa](){return this}}}return f({type:Ri.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[sa]:x}}function gd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Ri.INIT})>"u")throw new Error(oe(12));if(typeof r(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function oa(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{gd(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],A=y(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(oe(14))}u[f]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Br(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function aa(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(oe(15))},o={getState:s.getState,dispatch:(l,...c)=>n(l,...c)},a=t.map(l=>l(o));return n=Br(...a)(s.dispatch),{...s,dispatch:n}}}function la(t){return Li(t)&&"type"in t&&typeof t.type=="string"}var ga=Symbol.for("immer-nothing"),ca=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,fr=Le.getPrototypeOf,Ni="constructor",Bi="prototype",Qn="configurable",Mi="enumerable",Di="writable",Vr="value",rt=t=>!!t&&!!t[ye];function ke(t){return t?va(t)||Hi(t)||!!t[ca]||!!t[Ni]?.[ca]||zi(t)||ji(t):!1}var vd=Le[Bi][Ni].toString(),ua=new WeakMap;function va(t){if(!t||!ns(t))return!1;let e=fr(t);if(e===null||e===Le[Bi])return!0;let r=Le.hasOwnProperty.call(e,Ni)&&e[Ni];if(r===Object)return!0;if(!pr(r))return!1;let i=ua.get(r);return i===void 0&&(i=Function.toString.call(r),ua.set(r,i)),i===vd}function Vi(t,e,r=!0){jr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function jr(t){let e=t[ye];return e?e.type_:Hi(t)?1:zi(t)?2:ji(t)?3:0}var Wn=(t,e,r=jr(t))=>r===2?t.has(e):Le[Bi].hasOwnProperty.call(t,e),Xn=(t,e,r=jr(t))=>r===2?t.get(e):t[e],Ii=(t,e,r,i=jr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function bd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Hi=Array.isArray,zi=t=>t instanceof Map,ji=t=>t instanceof Set,ns=t=>typeof t=="object",pr=t=>typeof t=="function",Gn=t=>typeof t=="boolean";function xd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var pt=t=>t.copy_||t.base_;var ss=t=>t.modified_?t.copy_:t.base_;function Jn(t,e){if(zi(t))return new Map(t);if(ji(t))return new Set(t);if(Hi(t))return Array[Bi].slice.call(t);let r=va(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ye];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[Di]===!1&&(a[Di]=!0,a[Qn]=!0),(a.get||a.set)&&(i[o]={[Qn]:!0,[Di]:!0,[Mi]:a[Mi],[Vr]:t[o]})}return Le.create(fr(t),i)}else{let i=fr(t);if(i!==null&&r)return{...t};let s=Le.create(i);return Le.assign(s,t)}}function os(t,e=!1){return qi(t)||rt(t)||!ke(t)||(jr(t)>1&&Le.defineProperties(t,{set:ki,add:ki,clear:ki,delete:ki}),Le.freeze(t),e&&Vi(t,(r,i)=>{os(i,!0)},!1)),t}function Sd(){ze(2)}var ki={[Vr]:Sd};function qi(t){return t===null||!ns(t)?!0:Le.isFrozen(t)}var $i="MapSet",Zn="Patches",da="ArrayMethods",ba={};function Bt(t){let e=ba[t];return e||ze(0,t),e}var pa=t=>!!ba[t];var Hr,xa=()=>Hr,Ed=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pa($i)?Bt($i):void 0,arrayMethodsPlugin_:pa(da)?Bt(da):void 0});function fa(t,e){e&&(t.patchPlugin_=Bt(Zn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function es(t){ts(t),t.drafts_.forEach(Ad),t.drafts_=null}function ts(t){t===Hr&&(Hr=t.parent_)}var ha=t=>Hr=Ed(Hr,t);function Ad(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function ma(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(es(e),ze(4)),ke(t)&&(t=ya(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[ye].base_,t,e)}else t=ya(e,r);return _d(e,t,!0),es(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==ga?t:void 0}function ya(t,e){if(qi(e))return e;let r=e[ye];if(!r)return Ui(e,t.handledSet_,t);if(!Ki(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Aa(r,t)}return r.copy_}function _d(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&os(e,r)}function Sa(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ki=(t,e)=>t.scope_===e,Cd=[];function Ea(t,e,r,i){let s=pt(t),n=t.type_;if(i!==void 0&&Xn(s,i,n)===e){Ii(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Vi(s,(l,c)=>{if(rt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??Cd;for(let a of o)Ii(s,a,r,n)}function wd(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Ki(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=ss(n);Ea(t,n.draft_??n,o,r),Aa(n,s)})}function Aa(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}Sa(t)}}function Od(t,e,r){let{scope_:i}=t;if(rt(r)){let s=r[ye];Ki(s,i)&&s.callbacks_.push(function(){Pi(t);let o=ss(s);Ea(t,r,o,e)})}else ke(r)&&t.callbacks_.push(function(){let n=pt(t);t.type_===3?n.has(r)&&Ui(r,i.handledSet_,i):Xn(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ui(Xn(t.copy_,e,t.type_),i.handledSet_,i)})}function Ui(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rt(t)||e.has(t)||!ke(t)||qi(t)||(e.add(t),Vi(t,(i,s)=>{if(rt(s)){let n=s[ye];if(Ki(n,r)){let o=ss(n);Ii(t,i,o,t.type_),Sa(n)}}else ke(s)&&Ui(s,e,r)})),t}function Td(t,e){let r=Hi(t),i={type_:r?1:0,scope_:e?e.scope_:xa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Fi;r&&(s=[i],n=zr);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Fi={get(t,e){if(e===ye)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=pt(t);if(!Wn(s,e,t.type_))return Ld(t,s,e);let n=s[e];if(t.finalized_||!ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&xd(e))return n;if(n===Yn(t.base_,e)||Rd(t,e,n)){Pi(t);let o=t.type_===1?+e:e,a=is(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in pt(t)},ownKeys(t){return Reflect.ownKeys(pt(t))},set(t,e,r){let i=_a(pt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=Yn(pt(t),e),n=s?.[ye];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(bd(r,s)&&(r!==void 0||Wn(t.base_,e,t.type_)))return!0;Pi(t),rs(t)}return t.copy_[e]===r&&(r!==void 0||Wn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Od(t,e,r)),!0},deleteProperty(t,e){return Pi(t),Yn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),rs(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=pt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Di]:!0,[Qn]:t.type_!==1||e!=="length",[Mi]:i[Mi],[Vr]:r[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){ze(12)}},zr={};for(let t in Fi){let e=Fi[t];zr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}zr.deleteProperty=function(t,e){return zr.set.call(this,t,e,void 0)};zr.set=function(t,e,r){return Fi.set.call(this,t[0],e,r,t[0])};function Yn(t,e){let r=t[ye];return(r?pt(r):t)[e]}function Rd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ke(r)||r[ye]?!1:t.baseRefs_.has(r)}function Ld(t,e,r){let i=_a(e,r);return i?Vr in i?i[Vr]:i.get?.call(t.draft_):void 0}function _a(t,e){if(!(e in t))return;let r=fr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=fr(r)}}function rs(t){t.modified_||(t.modified_=!0,t.parent_&&rs(t.parent_))}function Pi(t){t.copy_||(t.assigned_=new Map,t.copy_=Jn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var kd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(pr(e)&&!pr(r)){let n=r;r=e;let o=this;return function(l=n,...c){return o.produce(l,u=>r.call(this,u,...c))}}pr(r)||ze(6),i!==void 0&&!pr(i)&&ze(7);let s;if(ke(e)){let n=ha(this),o=is(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?es(n):ts(n)}return fa(n,i),ma(s,n)}else if(!e||!ns(e)){if(s=r(e),s===void 0&&(s=e),s===ga&&(s=void 0),this.autoFreeze_&&os(s,!0),i){let n=[],o=[];Bt(Zn).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else ze(1,e)},this.produceWithPatches=(e,r)=>{if(pr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},Gn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Gn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Gn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ke(t)||ze(8),rt(t)&&(t=Ca(t));let e=ha(this),r=is(e,t,void 0);return r[ye].isManual_=!0,ts(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&ze(9);let{scope_:i}=r;return fa(i,e),ma(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Bt(Zn).applyPatches_;return rt(t)?i(t,e):this.produce(t,s=>i(s,e))}};function is(t,e,r,i){let[s,n]=zi(e)?Bt($i).proxyMap_(e,r):ji(e)?Bt($i).proxySet_(e,r):Td(e,r);return(r?.scope_??xa()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?wd(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),s}function Ca(t){return rt(t)||ze(10,t),wa(t)}function wa(t){if(!ke(t)||qi(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Jn(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Jn(t,!0);return Vi(r,(s,n)=>{Ii(r,s,wa(n))},i),e&&(e.finalized_=!1),r}var Dd=new kd,as=Dd.produce;function Oa(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var Ta=Oa(),Ra=Oa;var Pd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Br:Br.apply(null,arguments)},Qf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Nd=t=>t&&typeof t.match=="function";function xt(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(ft(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>la(i)&&i.type===t,r}var Na=class qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,qr.prototype)}static get[Symbol.species](){return qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new qr(...e[0].concat(this)):new qr(...e.concat(this))}};function La(t){return ke(t)?as(t,()=>{}):t}function Wi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Md(t){return typeof t=="boolean"}var Id=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new Na;return r&&(Md(r)?o.push(Ta):o.push(Ra(r.extraArgument))),o},$d="RTK_autoBatch";var ka=t=>e=>{setTimeout(e,t)},Ud=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(o),r())},n=t(s),o=setTimeout(s,e)},Fd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Ud(window.requestAnimationFrame,100):ka(10):t.type==="callback"?t.queueNotification:ka(t.timeout),c=()=>{o=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>s&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[$d],n=!s,n&&(o||(o=!0,l(c))),i.dispatch(u)}finally{s=!0}}})},Bd=t=>function(r){let{autoBatch:i=!0}=r??{},s=new Na(t);return i&&s.push(Fd(typeof i=="object"?i:void 0)),s};function Ma(t){let e=Id(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Li(r))l=oa(r);else throw new Error(ft(1));let c;typeof i=="function"?c=i(e):c=e();let u=Br;s&&(u=Pd({trace:!1,...typeof s=="object"&&s}));let p=aa(...c),f=Bd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Kn(l,o,x)}function Ia(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(ft(28));if(a in e)throw new Error(ft(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function Vd(t){return typeof t=="function"}function Hd(t,e){let[r,i,s]=Ia(e),n;if(Vd(t))n=()=>La(t());else{let a=La(t);n=()=>a}function o(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,p)=>{if(p)if(rt(u)){let y=p(u,l);return y===void 0?u:y}else{if(ke(u))return as(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return o.getInitialState=n,o}var zd=(t,e)=>Nd(t)?t.match(e):t(e);function jd(...t){return e=>t.some(r=>zd(r,e))}var qd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kd=(t=21)=>{let e="",r=t;for(;r--;)e+=qd[Math.random()*64|0];return e},Wd=["name","message","stack","code"],ls=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Da=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Gd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Wd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Pa="External signal was aborted",Yd=(()=>{function t(e,r,i){let s=xt(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=xt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=xt(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Gd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Kd(),x=new AbortController,A,b;function _(S){b=S,x.abort()}c&&(c.aborted?_(Pa):c.addEventListener("abort",()=>_(Pa),{once:!0}));let P=(async function(){let S;try{let L=i?.condition?.(l,{getState:p,extra:f});if(Xd(L)&&(L=await L),L===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let G=new Promise((U,Y)=>{A=()=>{Y({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([G,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:_,rejectWithValue:((U,Y)=>new ls(U,Y)),fulfillWithValue:((U,Y)=>new Da(U,Y))})).then(U=>{if(U instanceof ls)throw U;return U instanceof Da?s(U.payload,y,l,U.meta):s(U,y,l)})])}catch(L){S=L instanceof ls?o(null,y,l,L.payload,L.meta):o(L,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(P,{abort:_,requestId:y,arg:l,unwrap(){return P.then(Qd)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:jd(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function Qd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Xd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var $a=Symbol.for("rtk-slice-createasyncthunk"),Jf={[$a]:Yd};function Jd(t,e){return`${t}/${e}`}function Zd({creators:t}={}){let e=t?.asyncThunk?.[$a];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(ft(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(tp()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,O){let L=typeof S=="string"?S:S.type;if(!L)throw new Error(ft(12));if(L in l.sliceCaseReducersByType)throw new Error(ft(13));return l.sliceCaseReducersByType[L]=O,c},addMatcher(S,O){return l.sliceMatchers.push({matcher:S,reducer:O}),c},exposeAction(S,O){return l.actionCreators[S]=O,c},exposeCaseReducer(S,O){return l.sliceCaseReducersByName[S]=O,c}};a.forEach(S=>{let O=o[S],L={reducerName:S,type:Jd(s,S),createNotation:typeof i.reducers=="function"};ip(O)?sp(L,O,c,e):rp(L,O,c)});function u(){let[S={},O=[],L=void 0]=typeof i.extraReducers=="function"?Ia(i.extraReducers):[i.extraReducers],G={...S,...l.sliceCaseReducersByType};return Hd(i.initialState,U=>{for(let Y in G)U.addCase(Y,G[Y]);for(let Y of l.sliceMatchers)U.addMatcher(Y.matcher,Y.reducer);for(let Y of O)U.addMatcher(Y.matcher,Y.reducer);L&&U.addDefaultCase(L)})}let p=S=>S,f=new Map,y=new WeakMap,x;function A(S,O){return x||(x=u()),x(S,O)}function b(){return x||(x=u()),x.getInitialState()}function _(S,O=!1){function L(U){let Y=U[S];return typeof Y>"u"&&O&&(Y=Wi(y,L,b)),Y}function G(U=p){let Y=Wi(f,O,()=>new WeakMap);return Wi(Y,U,()=>{let Mr={};for(let[$e,$t]of Object.entries(i.selectors??{}))Mr[$e]=ep($t,U,()=>Wi(y,U,b),O);return Mr})}return{reducerPath:S,getSelectors:G,get selectors(){return G(L)},selectSlice:L}}let P={name:s,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,..._(n),injectInto(S,{reducerPath:O,...L}={}){let G=O??n;return S.inject({reducerPath:G,reducer:A},L),{...P,..._(G,!0)}}};return P}}function ep(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var Ua=Zd();function tp(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function rp({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!np(i))throw new Error(ft(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?xt(t,o):xt(t))}function ip(t){return t._reducerDefinitionType==="asyncThunk"}function np(t){return t._reducerDefinitionType==="reducerWithPrepare"}function sp({type:t,reducerName:e},r,i,s){if(!s)throw new Error(ft(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=s(t,n,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||Gi,pending:a||Gi,rejected:l||Gi,settled:c||Gi})}function Gi(){}var Fa="listener",Ba="completed",Va="cancelled",Zf=`task-${Va}`,eh=`task-${Ba}`,th=`${Fa}-${Va}`,rh=`${Fa}-${Ba}`;var{assign:Ha}=Object;var cs="listenerMiddleware";var op=Ha(xt(`${cs}/add`),{withTypes:()=>op}),ih=xt(`${cs}/removeAll`),ap=Ha(xt(`${cs}/remove`),{withTypes:()=>ap});function ft(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var lp=Ai(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Yi=class extends lp(Object){};window.ftReduxStores||(window.ftReduxStores={});var za=class t extends Yi{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Ti(n))return n;if(s==null)return;let o=Ua({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Ma({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=$r(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new _i,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,c=n[l];return c?(...u)=>{let p=c(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];cr(f,u)||this.setState({[p]:s(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Qi=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Xi=d(g()),cp="ft-app-info",Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Vt.eventName="authentication-change";var Kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kr.eventName="ui-locale-changed";var up={session:(t,e)=>{(0,Xi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Vt(e.payload)),0))}},E=Xi.FtReduxStore.get({name:cp,reducers:up,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ja=d(g()),Ji=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},qa=(0,ja.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Qi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ji([(0,us.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ji([(0,us.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ji([jn({store:E.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Ji([jn({store:E.name})],e.prototype,"uiLocale",void 0),e});var nn=d(g());var ds=d(g());var Ht=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=E.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var hr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Se=class extends hr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new ds.CacheRegistry,this.cache=e?s.commonCache:new ds.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Zi=class extends Se{async listMySearches(){let{session:e}=E.getState();return Hn(e,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var en=class extends Se{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var tn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var rn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var dp="ft-user-assets",pp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ue).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;fs(t,r,[...ps(t,r),s]),Ka(t,r,1,i),Wa(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;fs(t,r,ps(t,r).map(s=>s.id===i.id?i:s)),Wa(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;fs(t,r,ps(t,r).filter(n=>n.id!==s)),Ka(t,r,-1,i)}},Ga={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},ps=(t,e)=>{var r;let i=Ga[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},fs=(t,e,r)=>{let i=Ga[e];i&&(t[i]=r)},Ka=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Ue.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},Wa=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},be=nn.FtReduxStore.get({name:dp,reducers:pp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),hs=class{constructor(e=new tn,r=new rn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new Zi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,nn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&be.getState().assetCounts.allAsset[e]!==r.count&&be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&be.getState().assetCounts.bookmarkByMap[e]!==r.count&&be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(r)}}},fp=new hs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=fp);var ms=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ms;var Fe=d(g());var Ya,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hp=Symbol("clearAfterUnitTest"),sn=class extends(0,Fe.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ya]=()=>{this.defaultMessages={},this.cache=new Fe.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Fe.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new Fe.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof Fe.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Fe.delay)(0).then(()=>i()).catch(()=>null)))}};Ya=hp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,on=window.FluidTopicsCustomI18nService;var Qa=d(g()),ys=class{highlightHtml(e,r,i){(0,Qa.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ys;var Xa=d(g());var gs=class{isDate(e){var r,i,s,n;return(n=(s=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return Xa.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new gs;var Ja=d(g());var Wr=class{static get(e,r){var i,s,n,o;let a=E.getState(),{lang:l,region:c}=(n=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Ja.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var vs=class{urlToSearchRequest(e){return Wr.get().parse(e)}searchRequestToUrl(e){return Wr.get().serialize(e)}};window.FluidTopicsUrlService=new vs;var ht=d(g());var zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zt.eventName="change";var bs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Za=new bs;var an=class t extends ht.WithEventBus{static build(){return new t(window.history,Za,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zt(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...n,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(s,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(zt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zt.eventName,e)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,ht.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ht.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var el=d(R());var tl=el.css`
12
+ `;var il=d(R()),Ee=d(F()),Kt=d(g());var jt=d(g());function rl(t,e){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ln=class extends hr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var xs=class t extends jt.FtStateManager{static build(e){return new t(E,e)}constructor(e,r){super(),this.store=e,this.cache=new jt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ln,this.cleanSessionDebouncer=new jt.Debouncer,this.reloadDebouncer=new jt.Debouncer(500),this.apiProvider=r??(()=>Ht.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Vt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>rl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Kr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Ss=xs.build();var qt=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}};var Gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new qt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},z=class extends Kt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ss,this.contextRoot=new Gr}render(){return il.html`
13
13
  <slot></slot>
14
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Cr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};j.elementDefinitions={};j.styles=Va;oe([(0,xe.property)()],j.prototype,"baseUrl",void 0);oe([(0,xe.property)()],j.prototype,"tenantId",void 0);oe([(0,xe.property)()],j.prototype,"apiIntegrationIdentifier",void 0);oe([(0,xe.property)()],j.prototype,"apiIntegrationAppVersion",void 0);oe([(0,xe.property)()],j.prototype,"uiLocale",void 0);oe([(0,Xt.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);oe([(0,Xt.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"editorMode",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"noCustom",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],j.prototype,"noCustomComponent",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"withManualResources",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);oe([(0,xe.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);oe([(0,Xt.jsonProperty)([])],j.prototype,"messageContexts",void 0);oe([(0,Xt.jsonProperty)(void 0)],j.prototype,"session",void 0);var Wa=f(b());var Ka={"ft-app-context":j};(0,Wa.customElements)(Ka);var Xi=class t extends Event{constructor(){super(t.eventName)}};Xi.eventName="search-context-clear-all-filters";var Ji=t=>t.request.virtualField===Ci.TITLE_ONLY&&t.request.scope===wi.DOCUMENTS,Zi=t=>t.request.keywordMatch==dt.MANDATORY;var Ga=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},bo=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ya=Symbol("registerInterval"),yo=Symbol("registerAttempts"),Kd=40,Wd=(0,Or.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,o,s;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[yo]=0,this.tryToRegisterToContext(),this[Ya]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[yo]>Kd?window.clearInterval(this[Ya]):(this[yo]++,this.dispatchEvent(new bo))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ga([(0,go.state)()],e.prototype,"stateManager",void 0),Ga([(0,go.state)({hasChanged:Or.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Ot=class extends Wd(Or.FtLitElementRedux){};var Sn=f(L()),ue=f($()),Xc=f(Zt()),Hr=f(b());var nl=f(L()),ae=f($()),ol=f(Zt()),Zr=f(b());var rl=f(L()),X=f(b()),Xa=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorContent),se={color:Xa,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xa),opacityContentOnSurfacePressed:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:X.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ja=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorPrimary),Za={color:Ja,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ja)},el=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorSecondary),tl={color:el,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",el)},il=rl.css`
14
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>yr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=tl;ae([(0,Ee.property)()],z.prototype,"baseUrl",void 0);ae([(0,Ee.property)()],z.prototype,"tenantId",void 0);ae([(0,Ee.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ae([(0,Ee.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ae([(0,Ee.property)()],z.prototype,"uiLocale",void 0);ae([(0,Kt.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ae([(0,Kt.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"editorMode",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"noCustom",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,Ee.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomComponent",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ae([(0,Ee.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ae([(0,Kt.jsonProperty)([])],z.prototype,"messageContexts",void 0);ae([(0,Kt.jsonProperty)(void 0)],z.prototype,"session",void 0);var sl=d(g());var nl={"ft-app-context":z};(0,sl.customElements)(nl);var cn=class t extends Event{constructor(){super(t.eventName)}};cn.eventName="search-context-clear-all-filters";var un=t=>t.request.virtualField===xi.TITLE_ONLY&&t.request.scope===Ei.DOCUMENTS,dn=t=>t.request.keywordMatch==dt.MANDATORY;var ol=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},_s=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},al=Symbol("registerInterval"),Es=Symbol("registerAttempts"),gp=40,vp=(0,gr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,n,o;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Es]=0,this.tryToRegisterToContext(),this[al]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Es]>gp?window.clearInterval(this[al]):(this[Es]++,this.dispatchEvent(new _s))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ol([(0,As.state)()],e.prototype,"stateManager",void 0),ol([(0,As.state)({hasChanged:gr.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),St=class extends vp(gr.FtLitElementRedux){};var Dn=d(R()),pe=d(F()),cu=d(Gt()),Pr=d(g());var yl=d(R()),ce=d(F()),gl=d(Gt()),Yr=d(g());var hl=d(R()),Z=d(g()),cl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),le={color:cl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",cl),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")},ul=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),dl={color:ul,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",ul)},pl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),fl={color:pl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",pl)},ml=hl.css`
15
15
  :host {
16
16
  display: contents;
17
17
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  .ft-ripple:not(.ft-ripple--unbounded) {
26
26
  overflow: hidden;
27
- border-radius: ${se.borderRadius};
27
+ border-radius: ${le.borderRadius};
28
28
  }
29
29
 
30
30
  .ft-ripple .ft-ripple--background,
@@ -58,27 +58,27 @@
58
58
  }
59
59
 
60
60
  .ft-ripple .ft-ripple--background {
61
- background-color: ${se.backgroundColor};
61
+ background-color: ${le.backgroundColor};
62
62
  }
63
63
 
64
64
  .ft-ripple .ft-ripple--effect {
65
- background-color: ${se.color};
65
+ background-color: ${le.color};
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
69
- background-color: ${tl.backgroundColor};
69
+ background-color: ${fl.backgroundColor};
70
70
  }
71
71
 
72
72
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
73
- background-color: ${tl.color};
73
+ background-color: ${fl.color};
74
74
  }
75
75
 
76
76
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
77
- background-color: ${Za.backgroundColor};
77
+ background-color: ${dl.backgroundColor};
78
78
  }
79
79
 
80
80
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
81
- background-color: ${Za.color};
81
+ background-color: ${dl.color};
82
82
  }
83
83
 
84
84
  .ft-ripple .ft-ripple--background {
@@ -108,45 +108,73 @@
108
108
  }
109
109
 
110
110
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
111
- opacity: ${se.opacityContentOnSurfaceHover};
111
+ opacity: ${le.opacityContentOnSurfaceHover};
112
112
  }
113
113
 
114
114
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
115
- opacity: ${se.opacityContentOnSurfaceSelected};
115
+ opacity: ${le.opacityContentOnSurfaceSelected};
116
116
  }
117
117
 
118
118
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
119
- opacity: ${se.opacityContentOnSurfaceFocused};
119
+ opacity: ${le.opacityContentOnSurfaceFocused};
120
120
  }
121
121
 
122
122
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
123
- opacity: ${se.opacityContentOnSurfacePressed};
123
+ opacity: ${le.opacityContentOnSurfacePressed};
124
124
  transform: translate(-50%, -50%) scale(1);
125
125
  }
126
- `;var Se=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},D=class extends Zr.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 Zr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Zr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 nl.html`
126
+ `;var Ae=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},N=class extends Yr.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 Yr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Yr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:n}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 yl.html`
127
127
  <style>
128
128
  .ft-ripple .ft-ripple--effect {
129
129
  left: ${this.originX}px;
130
130
  top: ${this.originY}px;
131
131
  }
132
132
  </style>
133
- <div class="${(0,ol.classMap)(e)}">
133
+ <div class="${(0,gl.classMap)(e)}">
134
134
  <div class="ft-ripple--background"></div>
135
135
  <div class="ft-ripple--effect"></div>
136
136
  </div>
137
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=il;Se([(0,ae.property)({type:Boolean})],D.prototype,"primary",void 0);Se([(0,ae.property)({type:Boolean})],D.prototype,"secondary",void 0);Se([(0,ae.property)({type:Boolean})],D.prototype,"unbounded",void 0);Se([(0,ae.property)({type:Boolean})],D.prototype,"activated",void 0);Se([(0,ae.property)({type:Boolean})],D.prototype,"selected",void 0);Se([(0,ae.property)({type:Boolean})],D.prototype,"disabled",void 0);Se([(0,ae.state)()],D.prototype,"hovered",void 0);Se([(0,ae.state)()],D.prototype,"focused",void 0);Se([(0,ae.state)()],D.prototype,"pressed",void 0);Se([(0,ae.state)()],D.prototype,"rippling",void 0);Se([(0,ae.state)()],D.prototype,"originX",void 0);Se([(0,ae.state)()],D.prototype,"originY",void 0);Se([(0,ae.query)(".ft-ripple")],D.prototype,"ripple",void 0);Se([(0,ae.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var al=f(b());var sl={"ft-ripple":D};(0,al.customElements)(sl);var wo=globalThis,ll=t=>t,en=wo.trustedTypes,cl=en?en.createPolicy("lit-html",{createHTML:t=>t}):void 0,ml="$lit$",wt=`lit$${Math.random().toFixed(9).slice(2)}$`,vl="?"+wt,Gd=`<${vl}>`,rr=document,tn=()=>rr.createComment(""),ti=t=>t===null||typeof t!="object"&&typeof t!="function",To=Array.isArray,Yd=t=>To(t)||typeof t?.[Symbol.iterator]=="function",xo=`[
138
- \f\r]`,ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ul=/-->/g,dl=/>/g,er=RegExp(`>|${xo}(?:([^\\s"'>=/]+)(${xo}*=${xo}*(?:[^
139
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pl=/'/g,fl=/"/g,yl=/^(?:script|style|textarea|title)$/i,Ro=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gl=Ro(1),bl=Ro(2),xl=Ro(3),ri=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),hl=new WeakMap,tr=rr.createTreeWalker(rr,129);function Sl(t,e){if(!To(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(e):e}var Qd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=ei;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===ei?u[1]==="!--"?s=ul:u[1]!==void 0?s=dl:u[2]!==void 0?(yl.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=er):u[3]!==void 0&&(s=er):s===er?u[0]===">"?(s=n??ei,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?er:u[3]==='"'?fl:pl):s===fl||s===pl?s=er:s===ul||s===dl?s=ei:(s=er,n=void 0);let h=s===er&&t[a+1].startsWith("/>")?" ":"";o+=s===ei?l+Gd:d>=0?(i.push(c),l.slice(0,d)+ml+l.slice(d)+wt+h):l+wt+(d===-2?a:h)}return[Sl(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ii=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Qd(e,r);if(this.el=t.createElement(c,i),tr.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=tr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ml)){let p=u[s++],h=n.getAttribute(d).split(wt),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Ao:m[1]==="?"?Eo:m[1]==="@"?Co:Tr}),n.removeAttribute(d)}else d.startsWith(wt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(yl.test(n.tagName)){let d=n.textContent.split(wt),p=d.length-1;if(p>0){n.textContent=en?en.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],tn()),tr.nextNode(),l.push({type:2,index:++o});n.append(d[p],tn())}}}else if(n.nodeType===8)if(n.data===vl)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(wt,d+1))!==-1;)l.push({type:7,index:o}),d+=wt.length-1}o++}}static createElement(e,r){let i=rr.createElement("template");return i.innerHTML=e,i}};function wr(t,e,r=t,i){if(e===ri)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=ti(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=wr(t,n._$AS(t,e.values),n,i)),e}var So=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??rr).importNode(r,!0);tr.currentNode=n;let o=tr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new rn(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Oo(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=tr.nextNode(),s++)}return tr.currentNode=rr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},rn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=wr(this,e,r),ti(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Yd(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==J&&ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(rr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ii.createElement(Sl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new So(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=hl.get(e.strings);return r===void 0&&hl.set(e.strings,r=new ii(e)),r}k(e){To(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(tn()),this.O(tn()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=ll(e).nextSibling;ll(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=wr(this,e,r,0),s=!ti(e)||e!==this._$AH&&e!==ri,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=wr(this,a[i+l],r,l),c===ri&&(c=this._$AH[l]),s||=!ti(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ao=class extends Tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},Eo=class extends Tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},Co=class extends Tr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=wr(this,e,r,0)??J)===ri)return;let i=this._$AH,n=e===J&&i!==J||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==J&&(i===J||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Oo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){wr(this,e)}};var Xd=wo.litHtmlPolyfillSupport;Xd?.(ii,rn),(wo.litHtmlVersions??=[]).push("3.3.3");var El=Symbol.for(""),Jd=t=>{if(t?.r===El)return t?._$litStatic$},_o=t=>({_$litStatic$:t,r:El});var Al=new Map,Lo=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=Jd(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let d=s.join("$$lit$$");(e=Al.get(d))===void 0&&(s.raw=s,Al.set(d,e=s)),r=a}return t(e,...r)},ko=Lo(gl),by=Lo(bl),xy=Lo(xl);var Po=f($()),Ml=f(b());var le;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(le||(le={}));var Be=f(L()),g=f(b()),Cl=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),ht=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),x={fontFamily:ht,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Rr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cl),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},_r={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cl),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Lr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},kr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},Pr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},ee={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},Dr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Nr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},Ir={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},it={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ht),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Ol=Be.css`
137
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=ml;Ae([(0,ce.property)({type:Boolean})],N.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"disabled",void 0);Ae([(0,ce.state)()],N.prototype,"hovered",void 0);Ae([(0,ce.state)()],N.prototype,"focused",void 0);Ae([(0,ce.state)()],N.prototype,"pressed",void 0);Ae([(0,ce.state)()],N.prototype,"rippling",void 0);Ae([(0,ce.state)()],N.prototype,"originX",void 0);Ae([(0,ce.state)()],N.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],N.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var bl=d(g());var vl={"ft-ripple":N};(0,bl.customElements)(vl);var ks=globalThis,xl=t=>t,pn=ks.trustedTypes,Sl=pn?pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ol="$lit$",Et=`lit$${Math.random().toFixed(9).slice(2)}$`,Tl="?"+Et,bp=`<${Tl}>`,Xt=document,fn=()=>Xt.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",Ds=Array.isArray,xp=t=>Ds(t)||typeof t?.[Symbol.iterator]=="function",Cs=`[
138
+ \f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,Al=/>/g,Yt=RegExp(`>|${Cs}(?:([^\\s"'>=/]+)(${Cs}*=${Cs}*(?:[^
139
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_l=/'/g,Cl=/"/g,Rl=/^(?:script|style|textarea|title)$/i,Ps=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ll=Ps(1),kl=Ps(2),Dl=Ps(3),Jr=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),wl=new WeakMap,Qt=Xt.createTreeWalker(Xt,129);function Pl(t,e){if(!Ds(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sl!==void 0?Sl.createHTML(e):e}var Sp=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Qr;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===Qr?u[1]==="!--"?o=El:u[1]!==void 0?o=Al:u[2]!==void 0?(Rl.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=Yt):u[3]!==void 0&&(o=Yt):o===Yt?u[0]===">"?(o=s??Qr,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Yt:u[3]==='"'?Cl:_l):o===Cl||o===_l?o=Yt:o===El||o===Al?o=Qr:(o=Yt,s=void 0);let y=o===Yt&&t[a+1].startsWith("/>")?" ":"";n+=o===Qr?l+bp:p>=0?(i.push(c),l.slice(0,p)+Ol+l.slice(p)+Et+y):l+Et+(p===-2?a:y)}return[Pl(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Zr=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,l=this.parts,[c,u]=Sp(e,r);if(this.el=t.createElement(c,i),Qt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=Qt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(Ol)){let f=u[o++],y=s.getAttribute(p).split(Et),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:y,ctor:x[1]==="."?Os:x[1]==="?"?Ts:x[1]==="@"?Rs:br}),s.removeAttribute(p)}else p.startsWith(Et)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Rl.test(s.tagName)){let p=s.textContent.split(Et),f=p.length-1;if(f>0){s.textContent=pn?pn.emptyScript:"";for(let y=0;y<f;y++)s.append(p[y],fn()),Qt.nextNode(),l.push({type:2,index:++n});s.append(p[f],fn())}}}else if(s.nodeType===8)if(s.data===Tl)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Et,p+1))!==-1;)l.push({type:7,index:n}),p+=Et.length-1}n++}}static createElement(e,r){let i=Xt.createElement("template");return i.innerHTML=e,i}};function vr(t,e,r=t,i){if(e===Jr)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=Xr(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=vr(t,s._$AS(t,e.values),s,i)),e}var ws=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,s=(e?.creationScope??Xt).importNode(r,!0);Qt.currentNode=s;let n=Qt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new hn(n,n.nextSibling,this,e):l.type===1?c=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(c=new Ls(n,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=Qt.nextNode(),o++)}return Qt.currentNode=Xt,s}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},hn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=vr(this,e,r),Xr(e)?e===ee||e==null||e===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==Jr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ee&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Zr.createElement(Pl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new ws(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=wl.get(e.strings);return r===void 0&&wl.set(e.strings,r=new Zr(e)),r}k(e){Ds(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(fn()),this.O(fn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=xl(e).nextSibling;xl(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ee}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=vr(this,e,r,0),o=!Xr(e)||e!==this._$AH&&e!==Jr,o&&(this._$AH=e);else{let a=e,l,c;for(e=n[0],l=0;l<n.length-1;l++)c=vr(this,a[i+l],r,l),c===Jr&&(c=this._$AH[l]),o||=!Xr(c)||c!==this._$AH[l],c===ee?e=ee:e!==ee&&(e+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Os=class extends br{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}},Ts=class extends br{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}},Rs=class extends br{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=vr(this,e,r,0)??ee)===Jr)return;let i=this._$AH,s=e===ee&&i!==ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ee&&(i===ee||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ls=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};var Ep=ks.litHtmlPolyfillSupport;Ep?.(Zr,hn),(ks.litHtmlVersions??=[]).push("3.3.3");var Ml=Symbol.for(""),Ap=t=>{if(t?.r===Ml)return t?._$litStatic$},Ns=t=>({_$litStatic$:t,r:Ml});var Nl=new Map,Ms=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(n=r[c],(s=Ap(n))!==void 0);)l+=s+e[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Nl.get(p))===void 0&&(o.raw=o,Nl.set(p,e=o)),r=a}return t(e,...r)},Is=Ms(Ll),_g=Ms(kl),Cg=Ms(Dl);var $s=d(F()),Gl=d(g());var ue;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ue||(ue={}));var Be=d(R()),m=d(g()),Il=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),mt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),v={fontFamily:mt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Il),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},Sr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Il),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},te={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},$l=Be.css`
140
140
  .ft-typography--title {
141
- font-family: ${Rr.fontFamily};
142
- font-size: ${Rr.fontSize};
143
- font-weight: ${Rr.fontWeight};
144
- letter-spacing: ${Rr.letterSpacing};
145
- line-height: ${Rr.lineHeight};
146
- text-transform: ${Rr.textTransform};
147
- }
148
- `,wl=Be.css`
141
+ font-family: ${xr.fontFamily};
142
+ font-size: ${xr.fontSize};
143
+ font-weight: ${xr.fontWeight};
144
+ letter-spacing: ${xr.letterSpacing};
145
+ line-height: ${xr.lineHeight};
146
+ text-transform: ${xr.textTransform};
147
+ }
148
+ `,Ul=Be.css`
149
149
  .ft-typography--title-dense {
150
+ font-family: ${Sr.fontFamily};
151
+ font-size: ${Sr.fontSize};
152
+ font-weight: ${Sr.fontWeight};
153
+ letter-spacing: ${Sr.letterSpacing};
154
+ line-height: ${Sr.lineHeight};
155
+ text-transform: ${Sr.textTransform};
156
+ }
157
+ `,Fl=Be.css`
158
+ .ft-typography--subtitle1 {
159
+ font-family: ${Er.fontFamily};
160
+ font-size: ${Er.fontSize};
161
+ font-weight: ${Er.fontWeight};
162
+ letter-spacing: ${Er.letterSpacing};
163
+ line-height: ${Er.lineHeight};
164
+ text-transform: ${Er.textTransform};
165
+ }
166
+ `,Bl=Be.css`
167
+ .ft-typography--subtitle2 {
168
+ font-family: ${Ar.fontFamily};
169
+ font-size: ${Ar.fontSize};
170
+ font-weight: ${Ar.fontWeight};
171
+ letter-spacing: ${Ar.letterSpacing};
172
+ line-height: ${Ar.lineHeight};
173
+ text-transform: ${Ar.textTransform};
174
+ }
175
+
176
+ `,Vl=Be.css`
177
+ .ft-typography--body1 {
150
178
  font-family: ${_r.fontFamily};
151
179
  font-size: ${_r.fontSize};
152
180
  font-weight: ${_r.fontWeight};
@@ -154,71 +182,43 @@
154
182
  line-height: ${_r.lineHeight};
155
183
  text-transform: ${_r.textTransform};
156
184
  }
157
- `,Tl=Be.css`
158
- .ft-typography--subtitle1 {
159
- font-family: ${Lr.fontFamily};
160
- font-size: ${Lr.fontSize};
161
- font-weight: ${Lr.fontWeight};
162
- letter-spacing: ${Lr.letterSpacing};
163
- line-height: ${Lr.lineHeight};
164
- text-transform: ${Lr.textTransform};
165
- }
166
- `,Rl=Be.css`
167
- .ft-typography--subtitle2 {
168
- font-family: ${kr.fontFamily};
169
- font-size: ${kr.fontSize};
170
- font-weight: ${kr.fontWeight};
171
- letter-spacing: ${kr.letterSpacing};
172
- line-height: ${kr.lineHeight};
173
- text-transform: ${kr.textTransform};
174
- }
175
-
176
- `,_l=Be.css`
177
- .ft-typography--body1 {
178
- font-family: ${Pr.fontFamily};
179
- font-size: ${Pr.fontSize};
180
- font-weight: ${Pr.fontWeight};
181
- letter-spacing: ${Pr.letterSpacing};
182
- line-height: ${Pr.lineHeight};
183
- text-transform: ${Pr.textTransform};
184
- }
185
- `,Ll=Be.css`
185
+ `,Hl=Be.css`
186
186
  .ft-typography--body2 {
187
- font-family: ${ee.fontFamily};
188
- font-size: ${ee.fontSize};
189
- font-weight: ${ee.fontWeight};
190
- letter-spacing: ${ee.letterSpacing};
191
- line-height: ${ee.lineHeight};
192
- text-transform: ${ee.textTransform};
193
- }
194
- `,nn=Be.css`
187
+ font-family: ${te.fontFamily};
188
+ font-size: ${te.fontSize};
189
+ font-weight: ${te.fontWeight};
190
+ letter-spacing: ${te.letterSpacing};
191
+ line-height: ${te.lineHeight};
192
+ text-transform: ${te.textTransform};
193
+ }
194
+ `,mn=Be.css`
195
195
  .ft-typography--caption {
196
- font-family: ${Dr.fontFamily};
197
- font-size: ${Dr.fontSize};
198
- font-weight: ${Dr.fontWeight};
199
- letter-spacing: ${Dr.letterSpacing};
200
- line-height: ${Dr.lineHeight};
201
- text-transform: ${Dr.textTransform};
202
- }
203
- `,kl=Be.css`
196
+ font-family: ${Cr.fontFamily};
197
+ font-size: ${Cr.fontSize};
198
+ font-weight: ${Cr.fontWeight};
199
+ letter-spacing: ${Cr.letterSpacing};
200
+ line-height: ${Cr.lineHeight};
201
+ text-transform: ${Cr.textTransform};
202
+ }
203
+ `,zl=Be.css`
204
204
  .ft-typography--breadcrumb {
205
- font-family: ${Nr.fontFamily};
206
- font-size: ${Nr.fontSize};
207
- font-weight: ${Nr.fontWeight};
208
- letter-spacing: ${Nr.letterSpacing};
209
- line-height: ${Nr.lineHeight};
210
- text-transform: ${Nr.textTransform};
211
- }
212
- `,Pl=Be.css`
205
+ font-family: ${wr.fontFamily};
206
+ font-size: ${wr.fontSize};
207
+ font-weight: ${wr.fontWeight};
208
+ letter-spacing: ${wr.letterSpacing};
209
+ line-height: ${wr.lineHeight};
210
+ text-transform: ${wr.textTransform};
211
+ }
212
+ `,jl=Be.css`
213
213
  .ft-typography--overline {
214
- font-family: ${Ir.fontFamily};
215
- font-size: ${Ir.fontSize};
216
- font-weight: ${Ir.fontWeight};
217
- letter-spacing: ${Ir.letterSpacing};
218
- line-height: ${Ir.lineHeight};
219
- text-transform: ${Ir.textTransform};
220
- }
221
- `,Dl=Be.css`
214
+ font-family: ${Or.fontFamily};
215
+ font-size: ${Or.fontSize};
216
+ font-weight: ${Or.fontWeight};
217
+ letter-spacing: ${Or.letterSpacing};
218
+ line-height: ${Or.lineHeight};
219
+ text-transform: ${Or.textTransform};
220
+ }
221
+ `,ql=Be.css`
222
222
  .ft-typography--button {
223
223
  font-family: ${it.fontFamily};
224
224
  font-size: ${it.fontSize};
@@ -227,19 +227,19 @@
227
227
  line-height: ${it.lineHeight};
228
228
  text-transform: ${it.textTransform};
229
229
  }
230
- `,Nl=Be.css`
230
+ `,Kl=Be.css`
231
231
  .ft-typography {
232
232
  vertical-align: inherit;
233
233
  }
234
- `;var Il=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},V=class extends Ml.FtLitElement{constructor(){super(...arguments),this.variant=le.body1}render(){return this.element?ko`
235
- <${_o(this.element)}
234
+ `;var Wl=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},j=class extends Gl.FtLitElement{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?Is`
235
+ <${Ns(this.element)}
236
236
  part="text"
237
237
  class="ft-typography ft-typography--${this.variant}">
238
238
  <slot></slot>
239
- </${_o(this.element)}>
240
- `:ko`
239
+ </${Ns(this.element)}>
240
+ `:Is`
241
241
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
242
- `}};V.styles=[Ol,wl,Tl,Rl,_l,Ll,nn,kl,Pl,Dl,Nl];Il([(0,Po.property)()],V.prototype,"element",void 0);Il([(0,Po.property)()],V.prototype,"variant",void 0);var Ul=f(b());var $l={"ft-typography":V};(0,Ul.customElements)($l);var Fl=f(L()),ze=f(b()),ke={size:ze.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ze.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ze.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ze.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ze.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ze.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ze.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ze.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bl=[Fl.css`
242
+ `}};j.styles=[$l,Ul,Fl,Bl,Vl,Hl,mn,zl,jl,ql,Kl];Wl([(0,$s.property)()],j.prototype,"element",void 0);Wl([(0,$s.property)()],j.prototype,"variant",void 0);var Ql=d(g());var Yl={"ft-typography":j};(0,Ql.customElements)(Yl);var Xl=d(R()),je=d(g()),De={size:je.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:je.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:je.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:je.FtCssVariableFactory.extend("--ft-icon-material-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:je.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Jl=[Xl.css`
243
243
  :host, i.ft-icon {
244
244
  display: inline-flex;
245
245
  align-items: center;
@@ -248,14 +248,14 @@
248
248
  }
249
249
 
250
250
  :host {
251
- width: ${ke.size};
252
- height: ${ke.size};
251
+ width: ${De.size};
252
+ height: ${De.size};
253
253
  }
254
254
 
255
255
  i.ft-icon {
256
256
  width: 100%;
257
257
  height: 100%;
258
- font-size: ${ke.size};
258
+ font-size: ${De.size};
259
259
  line-height: 1;
260
260
  font-weight: normal;
261
261
  text-transform: none;
@@ -266,33 +266,33 @@
266
266
  text-rendering: auto;
267
267
  -webkit-font-smoothing: antialiased;
268
268
  -moz-osx-font-smoothing: grayscale;
269
- vertical-align: ${ke.verticalAlign};
269
+ vertical-align: ${De.verticalAlign};
270
270
  }
271
271
 
272
272
  i.ft-icon.ft-icon--fluid-topics {
273
- font-family: ${ke.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
273
+ font-family: ${De.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
274
274
 
275
275
  /* Ugly fix because font is broken */
276
- font-size: calc(0.75 * ${ke.size});
277
- line-height: ${ke.size};
276
+ font-size: calc(0.75 * ${De.size});
277
+ line-height: ${De.size};
278
278
  position: relative;
279
279
  top: -4%;
280
280
  justify-content: center;
281
281
  }
282
282
 
283
283
  .ft-icon--file-format {
284
- font-family: ${ke.fileFormatFontFamily}, ft-mime, sans-serif;
284
+ font-family: ${De.fileFormatFontFamily}, ft-mime, sans-serif;
285
285
  }
286
286
 
287
287
  .ft-icon--material {
288
- font-family: ${ke.materialFontFamily}, "Material Icons", sans-serif;
288
+ font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
289
289
  }
290
- `,ze.noTextSelect];var Tt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Tt||(Tt={}));var ni=f(L()),Rt=f($()),Vl=f(b()),zl=f(jl());var on;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(on||(on={}));var y;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(y||(y={}));var Hy=new Map([...["abw"].map(t=>[t,y.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]);var jy={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var oi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ce=class extends Vl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ni.nothing}render(){let e=this.variant&&Object.values(Tt).includes(this.variant)?this.variant:Tt.fluid_topics,r=e!==Tt.material||!!this.value;return ni.html`
290
+ `,je.noTextSelect];var At;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(At||(At={}));var ei=d(R()),_t=d(F()),tc=d(g()),rc=d(ec());var yn;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(yn||(yn={}));var h;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(h||(h={}));var Kg=new Map([...["abw"].map(t=>[t,h.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,h.AUDIO]),...["avi"].map(t=>[t,h.AVI]),...["chm","xhs"].map(t=>[t,h.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,h.CODE]),...["csv"].map(t=>[t,h.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,h.DITA]),...["epub"].map(t=>[t,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,h.EXCEL]),...["flac"].map(t=>[t,h.FLAC]),...["gif"].map(t=>[t,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,h.GZIP]),...["html","htm","xhtml"].map(t=>[t,h.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,h.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,h.JPEG]),...["json"].map(t=>[t,h.JSON]),...["m4a","m4p"].map(t=>[t,h.M4A]),...["mov","qt"].map(t=>[t,h.MOV]),...["mp3"].map(t=>[t,h.MP3]),...["mp4","m4v"].map(t=>[t,h.MP4]),...["ogg","oga"].map(t=>[t,h.OGG]),...["pdf","ps"].map(t=>[t,h.PDF]),...["png"].map(t=>[t,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,h.POWERPOINT]),...["rar"].map(t=>[t,h.RAR]),...["stp"].map(t=>[t,h.STP]),...["txt","rtf","md","mdown"].map(t=>[t,h.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,h.VIDEO]),...["wav"].map(t=>[t,h.WAV]),...["wma"].map(t=>[t,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,h.WORD]),...["xml","xsl","rdf"].map(t=>[t,h.XML]),...["yaml","yml","x-yaml"].map(t=>[t,h.YAML]),...["zip"].map(t=>[t,h.ZIP])]);var Wg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var ti=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},de=class extends tc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ei.nothing}render(){let e=this.variant&&Object.values(At).includes(this.variant)?this.variant:At.fluid_topics,r=e!==At.material||!!this.value;return ei.html`
291
291
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
292
- ${(0,zl.unsafeHTML)(this.resolvedIcon)}
292
+ ${(0,rc.unsafeHTML)(this.resolvedIcon)}
293
293
  <slot ?hidden=${r}></slot>
294
294
  </i>
295
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Tt.file_format:this.resolvedIcon=(e=y[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Tt.material:this.resolvedIcon=this.value||ni.nothing;break;default:this.resolvedIcon=(r=on[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ce.elementDefinitions={};ce.styles=Bl;oi([(0,Rt.property)()],ce.prototype,"variant",void 0);oi([(0,Rt.property)()],ce.prototype,"value",void 0);oi([(0,Rt.property)({reflect:!0,attribute:"aria-hidden"})],ce.prototype,"ariaHidden",void 0);oi([(0,Rt.state)()],ce.prototype,"resolvedIcon",void 0);oi([(0,Rt.query)("slot")],ce.prototype,"slottedContent",void 0);var Kl=f(b());var ql={"ft-icon":ce};(0,Kl.customElements)(ql);var bi=f(L()),_=f(b());var at=f(b());var Pc=f(L()),je=f($()),He=f(b());var Wl=f(L()),_t=f(b()),si={distance:_t.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:_t.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:_t.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:_t.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",_t.designSystemVariables.borderRadiusS),maxWidth:_t.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Gl=Wl.css`
295
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case At.file_format:this.resolvedIcon=(e=h[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case At.material:this.resolvedIcon=this.value||ei.nothing;break;default:this.resolvedIcon=(r=yn[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Jl;ti([(0,_t.property)()],de.prototype,"variant",void 0);ti([(0,_t.property)()],de.prototype,"value",void 0);ti([(0,_t.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);ti([(0,_t.state)()],de.prototype,"resolvedIcon",void 0);ti([(0,_t.query)("slot")],de.prototype,"slottedContent",void 0);var nc=d(g());var ic={"ft-icon":de};(0,nc.customElements)(ic);var mi=d(R()),T=d(g());var at=d(g());var jc=d(R()),He=d(F()),Ve=d(g());var sc=d(R()),Ct=d(g()),ri={distance:Ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ct.designSystemVariables.borderRadiusS),maxWidth:Ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},oc=sc.css`
296
296
  .ft-tooltip--container {
297
297
  display: block;
298
298
  }
@@ -310,25 +310,25 @@
310
310
  box-sizing: border-box;
311
311
  overflow: hidden;
312
312
  width: max-content;
313
- max-width: ${si.maxWidth};
313
+ max-width: ${ri.maxWidth};
314
314
  text-align: center;
315
- padding: ${si.distance};
315
+ padding: ${ri.distance};
316
316
  }
317
317
 
318
318
  .ft-tooltip--content {
319
319
  padding: 4px 8px;
320
- border-radius: ${si.borderRadiusS};
321
- background-color: ${si.backgroundColor};
322
- color: ${si.color};
320
+ border-radius: ${ri.borderRadiusS};
321
+ background-color: ${ri.backgroundColor};
322
+ color: ${ri.color};
323
323
  position: relative;
324
324
  word-break: break-word;
325
325
  }
326
- `;var Ql=["top","right","bottom","left"],Yl=["start","end"],No=Ql.reduce((t,e)=>t.concat(e,e+"-"+Yl[0],e+"-"+Yl[1]),[]),ai=Math.min,Lt=Math.max,li=Math.round;var nt=t=>({x:t,y:t}),Zd={left:"right",right:"left",bottom:"top",top:"bottom"};function Xl(t,e,r){return Lt(t,ai(e,r))}function sn(t,e){return typeof t=="function"?t(e):t}function ci(t){return t.split("-")[0]}function kt(t){return t.split("-")[1]}function Io(t){return t==="x"?"y":"x"}function Mo(t){return t==="y"?"height":"width"}function an(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function $o(t){return Io(an(t))}function Jl(t,e,r){r===void 0&&(r=!1);let i=kt(t),n=$o(t),o=Mo(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Do(s)),[s,Do(s)]}function Zl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Do(t){let e=ci(t);return Zd[e]+t.slice(e.length)}function ep(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function ec(t){return typeof t!="number"?ep(t):{top:t,right:t,bottom:t,left:t}}function ir(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function tc(t,e,r){let{reference:i,floating:n}=t,o=an(e),s=$o(e),a=Mo(s),l=ci(e),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=kt(e);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function rc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=sn(e,t),m=ec(h),S=a[p?d==="floating"?"reference":"floating":d],A=ir(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(S)))==null||r?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),R=await(o.isElement==null?void 0:o.isElement(O))&&await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1},Z=ir(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:O,strategy:l}):E);return{top:(A.top-Z.top+m.top)/R.y,bottom:(Z.bottom-A.bottom+m.bottom)/R.y,left:(A.left-Z.left+m.left)/R.x,right:(Z.right-A.right+m.right)/R.x}}var tp=50,ic=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:rc},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=tc(c,i,l),p=i,h=0,m={};for(let v=0;v<o.length;v++){let S=o[v];if(!S)continue;let{name:A,fn:E}=S,{x:O,y:R,data:Z,reset:Q}=await E({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=O??u,d=R??d,m[A]={...m[A],...Z},Q&&h<tp&&(h++,typeof Q=="object"&&(Q.placement&&(p=Q.placement),Q.rects&&(c=Q.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):Q.rects),{x:u,y:d}=tc(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function rp(t,e,r){return(t?[...r.filter(n=>kt(n)===t),...r.filter(n=>kt(n)!==t)]:r.filter(n=>ci(n)===n)).filter(n=>t?kt(n)===t||(e?Zl(n)!==n:!1):!0)}var nc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=No,autoAlignment:h=!0,...m}=sn(t,e),v=d!==void 0||p===No?rp(d||null,h,p):p,S=((r=s.autoPlacement)==null?void 0:r.index)||0,A=v[S];if(A==null)return{};if(a!==A)return{reset:{placement:v[0]}};let E=await l.detectOverflow(e,m),O=Jl(A,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),R=[E[ci(A)],E[O[0]],E[O[1]]],Z=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:A,overflows:R}],Q=v[S+1];if(Q)return{data:{index:S+1,overflows:Z},reset:{placement:Q}};let gt=Z.map(Re=>{let Me=kt(Re.placement);return[Re.placement,Me&&u?Re.overflows.slice(0,2).reduce((_e,Ht)=>_e+Ht,0):Re.overflows[0],Re.overflows]}).sort((Re,Me)=>Re[1]-Me[1]),bt=((n=gt.filter(Re=>Re[2].slice(0,kt(Re[0])?2:3).every(Me=>Me<=0))[0])==null?void 0:n[0])||gt[0][0];return bt!==a?{data:{index:S+1,overflows:Z},reset:{placement:bt}}:{}}}};var oc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:E=>{let{x:O,y:R}=E;return{x:O,y:R}}},...c}=sn(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=an(n),h=Io(p),m=u[h],v=u[p],S=(E,O)=>Xl(O+d[E==="y"?"top":"left"],O,O-d[E==="y"?"bottom":"right"]);s&&(m=S(h,m)),a&&(v=S(p,v));let A=l.fn({...e,[h]:m,[p]:v});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[h]:s,[p]:a}}}}}};function cn(){return typeof window<"u"}function or(t){return ac(t)?(t.nodeName||"").toLowerCase():"#document"}function Ae(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ac(t){return cn()?t instanceof Node||t instanceof Ae(t).Node:!1}function qe(t){return cn()?t instanceof Element||t instanceof Ae(t).Element:!1}function vt(t){return cn()?t instanceof HTMLElement||t instanceof Ae(t).HTMLElement:!1}function sc(t){return!cn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ae(t).ShadowRoot}function ui(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function lc(t){return/^(table|td|th)$/.test(or(t))}function di(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ip=/transform|translate|scale|rotate|perspective|filter/,np=/paint|layout|strict|content/,nr=t=>!!t&&t!=="none",Uo;function Mr(t){let e=qe(t)?Ke(t):t;return nr(e.transform)||nr(e.translate)||nr(e.scale)||nr(e.rotate)||nr(e.perspective)||!un()&&(nr(e.backdropFilter)||nr(e.filter))||ip.test(e.willChange||"")||np.test(e.contain||"")}function cc(t){let e=Pt(t);for(;vt(e)&&!$r(e);){if(Mr(e))return e;if(di(e))return null;e=Pt(e)}return null}function un(){return Uo==null&&(Uo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Uo}function $r(t){return/^(html|body|#document)$/.test(or(t))}function Ke(t){return Ae(t).getComputedStyle(t)}function pi(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pt(t){if(or(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sc(t)&&t.host||mt(t);return sc(e)?e.host:e}function uc(t){let e=Pt(t);return $r(e)?(t.ownerDocument||t).body:vt(e)&&ui(e)?e:uc(e)}function ln(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=uc(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ae(n);if(o){let a=dn(s);return e.concat(s,s.visualViewport||[],ui(n)?n:[],a&&r?ln(a):[])}else return e.concat(n,ln(n,[],r))}function dn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fc(t){let e=Ke(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=vt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=li(r)!==o||li(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function hc(t){return qe(t)?t:t.contextElement}function Ur(t){let e=hc(t);if(!vt(e))return nt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=fc(e),s=(o?li(r.width):r.width)/i,a=(o?li(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var op=nt(0);function mc(t){let e=Ae(t);return!un()||!e.visualViewport?op:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ae(t)}function fi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=hc(t),s=nt(1);e&&(i?qe(i)&&(s=Ur(i)):s=Ur(t));let a=sp(o,r,i)?mc(o):nt(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=Ae(o),h=qe(i)?Ae(i):i,m=p,v=dn(m);for(;v&&h!==m;){let S=Ur(v),A=v.getBoundingClientRect(),E=Ke(v),O=A.left+(v.clientLeft+parseFloat(E.paddingLeft))*S.x,R=A.top+(v.clientTop+parseFloat(E.paddingTop))*S.y;l*=S.x,c*=S.y,u*=S.x,d*=S.y,l+=O,c+=R,m=Ae(v),v=dn(m)}}return ir({width:u,height:d,x:l,y:c})}function pn(t,e){let r=pi(t).scrollLeft;return e?e.left+r:fi(mt(t)).left+r}function vc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-pn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function ap(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=mt(i),a=e?di(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=nt(1),u=nt(0),d=vt(i);if((d||!o)&&((or(i)!=="body"||ui(s))&&(l=pi(i)),d)){let h=fi(i);c=Ur(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?vc(s,l):nt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function lp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function cp(t){let e=pi(t),r=t.ownerDocument.body,i=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+pn(t),s=-e.scrollTop;return Ke(r).direction==="rtl"&&(o+=Lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var up=25;function dp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ae(t),o=mt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!un()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(pn(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(o.clientWidth-h.clientWidth-v),A=getComputedStyle(o).scrollbarGutter==="stable both-edges"?S/2:S;A<=up&&(a-=A)}return{width:a,height:l,x:c,y:u}}function pp(t,e){let r=fi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Ur(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function dc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=dp(t,r,e);else if(e==="document")i=cp(mt(t));else if(qe(e))i=pp(e,r);else{let n=mc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ir(i)}function fp(t,e){let r=e.get(t);if(r)return r;let i=ln(t,[],!1).filter(a=>qe(a)&&or(a)!=="body"),n=null,o=Ke(t).position==="fixed",s=o?Pt(t):t;for(;qe(s)&&!$r(s);){let a=Ke(s),l=Mr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Pt(s)}return e.set(t,i),i}function hp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?di(e)?[]:fp(e,this._c):[].concat(r),i],a=dc(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=dc(e,s[p],n);l=Lt(h.top,l),c=ai(h.right,c),u=ai(h.bottom,u),d=Lt(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function mp(t){let{width:e,height:r}=fc(t);return{width:e,height:r}}function vp(t,e,r){let i=vt(e),n=mt(e),o=r==="fixed",s=fi(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=nt(0);if((i||!o)&&((or(e)!=="body"||ui(n))&&(a=pi(e)),i)){let p=fi(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=pn(n));let c=n&&!i&&!o?vc(n,a):nt(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function Fo(t){return Ke(t).position==="static"}function pc(t,e){if(!vt(t)||Ke(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mt(t)===r&&(r=r.ownerDocument.body),r}function yc(t,e){let r=Ae(t);if(di(t))return r;if(!vt(t)){let n=Pt(t);for(;n&&!$r(n);){if(qe(n)&&!Fo(n))return n;n=Pt(n)}return r}let i=pc(t,e);for(;i&&lc(i)&&Fo(i);)i=pc(i,e);return i&&$r(i)&&Fo(i)&&!Mr(i)?r:i||cc(t)||r}var yp=async function(t){let e=this.getOffsetParent||yc,r=this.getDimensions,i=await r(t.floating);return{reference:vp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function gp(t){return Ke(t).direction==="rtl"}var fn={convertOffsetParentRelativeRectToViewportRelativeRect:ap,getDocumentElement:mt,getClippingRect:hp,getOffsetParent:yc,getElementRects:yp,getClientRects:lp,getDimensions:mp,getScale:Ur,isElement:qe,isRTL:gp};var gc=nc,bc=oc;var xc=(t,e,r)=>{let i=new Map,n=r??{},o={...fn,...n.platform,_c:i};return ic(t,e,{...n,platform:o})};function Sc(t){return bp(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function bp(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Mr(r)||e.tagName==="BODY"))return e}return null}async function Ac(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},xc(t,e,{strategy:i.strategy,platform:{...fn,getOffsetParent:n=>fn.getOffsetParent(n,Sc)},middleware:[bc({crossAxis:!0}),gc({allowedPlacements:[i.placement]})]})}var Br=f(b());var Ec=f($());var Ho=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Fr=new Ho;var xp=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},mi=Symbol("i18nAttributes"),Cc=Symbol("i18nListAttributes"),Oc=Symbol("i18nProperties"),hn=Symbol("i18nContexts"),hi=Symbol("i18nUnsubs"),ot=(0,Br.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Gi:Cr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Fr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[mi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Cc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[Oc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[hn].set(l,{isCustomContext:a}),this[hi].has(l)||this[hi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[hn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[hn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[hi].forEach(o=>o()),this[hi].clear()}}return e=hn,r=hi,xp([(0,Ec.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),mn=class extends ot(Br.FtLitElement){},vn=class extends ot(Br.FtLitElementRedux){};var wc=f(b());var jo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Fr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Sp=new jo;var Tc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:wc.hasChanged,converter:Fr,...e}),r[mi]=(n=r[mi])!==null&&n!==void 0?n:new Map,r[mi].set(i,t??{})};var Dt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Gi:Cr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Rc=f(L());var _c=Rc.css`
327
- `;var yn=f(L()),gn=f($()),bn=f(b());var vi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},We=class extends vn{constructor(){super(),this.editorMode=!1,this.addStore(C)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":yn.nothing:yn.html`
326
+ `;var lc=["top","right","bottom","left"],ac=["start","end"],Fs=lc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),ii=Math.min,wt=Math.max,ni=Math.round;var nt=t=>({x:t,y:t}),_p={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(t,e,r){return wt(t,ii(e,r))}function gn(t,e){return typeof t=="function"?t(e):t}function si(t){return t.split("-")[0]}function Ot(t){return t.split("-")[1]}function Bs(t){return t==="x"?"y":"x"}function Vs(t){return t==="y"?"height":"width"}function vn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Hs(t){return Bs(vn(t))}function uc(t,e,r){r===void 0&&(r=!1);let i=Ot(t),s=Hs(t),n=Vs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Us(o)),[o,Us(o)]}function dc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Us(t){let e=si(t);return _p[e]+t.slice(e.length)}function Cp(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function pc(t){return typeof t!="number"?Cp(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}function fc(t,e,r){let{reference:i,floating:s}=t,n=vn(e),o=Hs(e),a=Vs(o),l=si(e),c=n==="y",u=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,f=i[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:i.y-s.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-s.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Ot(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function hc(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=gn(e,t),x=pc(y),b=a[f?p==="floating"?"reference":"floating":p],_=Jt(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(b)))==null||r?b:b.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),P=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),O=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},L=Jt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(_.top-L.top+x.top)/O.y,bottom:(L.bottom-_.bottom+x.bottom)/O.y,left:(_.left-L.left+x.left)/O.x,right:(L.right-_.right+x.right)/O.x}}var wp=50,mc=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:hc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:p}=fc(c,i,l),f=i,y=0,x={};for(let A=0;A<n.length;A++){let b=n[A];if(!b)continue;let{name:_,fn:P}=b,{x:S,y:O,data:L,reset:G}=await P({x:u,y:p,initialPlacement:i,placement:f,strategy:s,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=O??p,x[_]={...x[_],...L},G&&y<wp&&(y++,typeof G=="object"&&(G.placement&&(f=G.placement),G.rects&&(c=G.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):G.rects),{x:u,y:p}=fc(c,f,l)),A=-1)}return{x:u,y:p,placement:f,strategy:s,middlewareData:x}};function Op(t,e,r){return(t?[...r.filter(s=>Ot(s)===t),...r.filter(s=>Ot(s)!==t)]:r.filter(s=>si(s)===s)).filter(s=>t?Ot(s)===t||(e?dc(s)!==s:!1):!0)}var yc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Fs,autoAlignment:y=!0,...x}=gn(t,e),A=p!==void 0||f===Fs?Op(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,_=A[b];if(_==null)return{};if(a!==_)return{reset:{placement:A[0]}};let P=await l.detectOverflow(e,x),S=uc(_,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[P[si(_)],P[S[0]],P[S[1]]],L=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:O}],G=A[b+1];if(G)return{data:{index:b+1,overflows:L},reset:{placement:G}};let U=L.map($e=>{let $t=Ot($e.placement);return[$e.placement,$t&&u?$e.overflows.slice(0,2).reduce((td,rd)=>td+rd,0):$e.overflows[0],$e.overflows]}).sort(($e,$t)=>$e[1]-$t[1]),Mr=((s=U.filter($e=>$e[2].slice(0,Ot($e[0])?2:3).every($t=>$t<=0))[0])==null?void 0:s[0])||U[0][0];return Mr!==a?{data:{index:b+1,overflows:L},reset:{placement:Mr}}:{}}}};var gc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:O}=P;return{x:S,y:O}}},...c}=gn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,c),f=vn(s),y=Bs(f),x=u[y],A=u[f],b=(P,S)=>cc(S+p[P==="y"?"top":"left"],S,S-p[P==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(A=b(f,A));let _=l.fn({...e,[y]:x,[f]:A});return{..._,data:{x:_.x-r,y:_.y-i,enabled:{[y]:o,[f]:a}}}}}};function xn(){return typeof window<"u"}function er(t){return bc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yt(t){var e;return(e=(bc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bc(t){return xn()?t instanceof Node||t instanceof _e(t).Node:!1}function qe(t){return xn()?t instanceof Element||t instanceof _e(t).Element:!1}function gt(t){return xn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function vc(t){return!xn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function oi(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function xc(t){return/^(table|td|th)$/.test(er(t))}function ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Tp=/transform|translate|scale|rotate|perspective|filter/,Rp=/paint|layout|strict|content/,Zt=t=>!!t&&t!=="none",zs;function Tr(t){let e=qe(t)?Ke(t):t;return Zt(e.transform)||Zt(e.translate)||Zt(e.scale)||Zt(e.rotate)||Zt(e.perspective)||!Sn()&&(Zt(e.backdropFilter)||Zt(e.filter))||Tp.test(e.willChange||"")||Rp.test(e.contain||"")}function Sc(t){let e=Tt(t);for(;gt(e)&&!Rr(e);){if(Tr(e))return e;if(ai(e))return null;e=Tt(e)}return null}function Sn(){return zs==null&&(zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zs}function Rr(t){return/^(html|body|#document)$/.test(er(t))}function Ke(t){return _e(t).getComputedStyle(t)}function li(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vc(t)&&t.host||yt(t);return vc(e)?e.host:e}function Ec(t){let e=Tt(t);return Rr(e)?(t.ownerDocument||t).body:gt(e)&&oi(e)?e:Ec(e)}function bn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=Ec(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=_e(s);if(n){let a=En(o);return e.concat(o,o.visualViewport||[],oi(s)?s:[],a&&r?bn(a):[])}else return e.concat(s,bn(s,[],r))}function En(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cc(t){let e=Ke(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=gt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=ni(r)!==n||ni(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function wc(t){return qe(t)?t:t.contextElement}function Lr(t){let e=wc(t);if(!gt(e))return nt(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=Cc(e),o=(n?ni(r.width):r.width)/i,a=(n?ni(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Lp=nt(0);function Oc(t){let e=_e(t);return!Sn()||!e.visualViewport?Lp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function kp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function ci(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=wc(t),o=nt(1);e&&(i?qe(i)&&(o=Lr(i)):o=Lr(t));let a=kp(n,r,i)?Oc(n):nt(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,p=s.height/o.y;if(n&&i){let f=_e(n),y=qe(i)?_e(i):i,x=f,A=En(x);for(;A&&y!==x;){let b=Lr(A),_=A.getBoundingClientRect(),P=Ke(A),S=_.left+(A.clientLeft+parseFloat(P.paddingLeft))*b.x,O=_.top+(A.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=O,x=_e(A),A=En(x)}}return Jt({width:u,height:p,x:l,y:c})}function An(t,e){let r=li(t).scrollLeft;return e?e.left+r:ci(yt(t)).left+r}function Tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-An(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Dp(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=yt(i),a=e?ai(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=nt(1),u=nt(0),p=gt(i);if((p||!n)&&((er(i)!=="body"||oi(o))&&(l=li(i)),p)){let y=ci(i);c=Lr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!n?Tc(o,l):nt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Pp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Np(t){let e=li(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+An(t),o=-e.scrollTop;return Ke(r).direction==="rtl"&&(n+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var Mp=25;function Ip(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=_e(t),n=yt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){let f=!Sn()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(An(n)<=0){let f=n.ownerDocument,y=f.body,x=getComputedStyle(y),A=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(n.clientWidth-y.clientWidth-A),_=getComputedStyle(n).scrollbarGutter==="stable both-edges"?b/2:b;_<=Mp&&(a-=_)}return{width:a,height:l,x:c,y:u}}function $p(t,e){let r=ci(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=Lr(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,c=i*n.y;return{width:o,height:a,x:l,y:c}}function Ac(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Ip(t,r,e);else if(e==="document")i=Np(yt(t));else if(qe(e))i=$p(e,r);else{let s=Oc(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Jt(i)}function Up(t,e){let r=e.get(t);if(r)return r;let i=bn(t,[],!1).filter(a=>qe(a)&&er(a)!=="body"),s=null,n=Ke(t).position==="fixed",o=n?Tt(t):t;for(;qe(o)&&!Rr(o);){let a=Ke(o),l=Tr(o),c=s?s.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=Tt(o)}return e.set(t,i),i}function Fp(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?ai(e)?[]:Up(e,this._c):[].concat(r),i],a=Ac(e,o[0],s),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Ac(e,o[f],s);l=wt(y.top,l),c=ii(y.right,c),u=ii(y.bottom,u),p=wt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Bp(t){let{width:e,height:r}=Cc(t);return{width:e,height:r}}function Vp(t,e,r){let i=gt(e),s=yt(e),n=r==="fixed",o=ci(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=nt(0);if((i||!n)&&((er(e)!=="body"||oi(s))&&(a=li(e)),i)){let f=ci(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&s&&(l.x=An(s));let c=s&&!i&&!n?Tc(s,a):nt(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function js(t){return Ke(t).position==="static"}function _c(t,e){if(!gt(t)||Ke(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return yt(t)===r&&(r=r.ownerDocument.body),r}function Rc(t,e){let r=_e(t);if(ai(t))return r;if(!gt(t)){let s=Tt(t);for(;s&&!Rr(s);){if(qe(s)&&!js(s))return s;s=Tt(s)}return r}let i=_c(t,e);for(;i&&xc(i)&&js(i);)i=_c(i,e);return i&&Rr(i)&&js(i)&&!Tr(i)?r:i||Sc(t)||r}var Hp=async function(t){let e=this.getOffsetParent||Rc,r=this.getDimensions,i=await r(t.floating);return{reference:Vp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zp(t){return Ke(t).direction==="rtl"}var _n={convertOffsetParentRelativeRectToViewportRelativeRect:Dp,getDocumentElement:yt,getClippingRect:Fp,getOffsetParent:Rc,getElementRects:Hp,getClientRects:Pp,getDimensions:Bp,getScale:Lr,isElement:qe,isRTL:zp};var Lc=yc,kc=gc;var Dc=(t,e,r)=>{let i=new Map,s=r??{},n={..._n,...s.platform,_c:i};return mc(t,e,{...s,platform:n})};function Pc(t){return jp(t)}function qs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function jp(t){for(let e=t;e;e=qs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=qs(t);e;e=qs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Tr(r)||e.tagName==="BODY"))return e}return null}async function Nc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Dc(t,e,{strategy:i.strategy,platform:{..._n,getOffsetParent:s=>_n.getOffsetParent(s,Pc)},middleware:[kc({crossAxis:!0}),Lc({allowedPlacements:[i.placement]})]})}var Dr=d(g());var Mc=d(F());var Ks=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},kr=new Ks;var qp=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},di=Symbol("i18nAttributes"),Ic=Symbol("i18nListAttributes"),$c=Symbol("i18nProperties"),Cn=Symbol("i18nContexts"),ui=Symbol("i18nUnsubs"),st=(0,Dr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?on:yr}i18n(n){let{context:o,key:a,message:l}=n,{custom:c,args:u,argsProvider:p}=n;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(kr.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&n(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[di])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Ic])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(n){var o;(o=this[$c])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Cn].set(l,{isCustomContext:a}),this[ui].has(l)||this[ui].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[Cn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Cn].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ui].forEach(n=>n()),this[ui].clear()}}return e=Cn,r=ui,qp([(0,Mc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wn=class extends st(Dr.FtLitElement){},On=class extends st(Dr.FtLitElementRedux){};var Uc=d(g());var Ws=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?kr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Kp=new Ws;var Fc=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:Uc.hasChanged,converter:kr,...e}),r[di]=(s=r[di])!==null&&s!==void 0?s:new Map,r[di].set(i,t??{})};var Rt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?on:yr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let n=s;return o=>({context:this.name,key:n,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...n)=>this.service.resolveMessage(this.name,s,...n)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Bc=d(R());var Vc=Bc.css`
327
+ `;var Tn=d(R()),Rn=d(F()),Ln=d(g());var pi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},We=class extends On{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Tn.nothing:Tn.html`
328
328
  <span class="ft-i18n">
329
329
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
330
330
  </span>
331
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};We.elementDefinitions={};We.styles=_c;vi([(0,bn.redux)()],We.prototype,"editorMode",void 0);vi([(0,gn.property)()],We.prototype,"context",void 0);vi([(0,gn.property)()],We.prototype,"key",void 0);vi([(0,bn.jsonProperty)([])],We.prototype,"args",void 0);vi([(0,gn.property)()],We.prototype,"defaultMessage",void 0);var kc=f(b());var Lc={"ft-i18n":We};(0,kc.customElements)(Lc);var Ge=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},G=class extends mn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new He.Debouncer,this.revealDebouncer=new He.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Pc.html`
331
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};We.elementDefinitions={};We.styles=Vc;pi([(0,Ln.redux)()],We.prototype,"editorMode",void 0);pi([(0,Rn.property)()],We.prototype,"context",void 0);pi([(0,Rn.property)()],We.prototype,"key",void 0);pi([(0,Ln.jsonProperty)([])],We.prototype,"args",void 0);pi([(0,Rn.property)()],We.prototype,"defaultMessage",void 0);var zc=d(g());var Hc={"ft-i18n":We};(0,zc.customElements)(Hc);var Ge=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},X=class extends wn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ve.Debouncer,this.revealDebouncer=new Ve.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return jc.html`
332
332
  <div part="container"
333
333
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
334
334
  <slot part="slot"></slot>
@@ -337,13 +337,13 @@
337
337
  popover="manual">
338
338
  <div part="tooltip-content" class="ft-tooltip--content">
339
339
  <slot name="text"></slot>
340
- <ft-typography variant="${le.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
340
+ <ft-typography variant="${ue.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
341
341
  ${(r=this.text)===null||r===void 0?void 0:r.message}
342
342
  </ft-typography>
343
343
  </div>
344
344
  </div>
345
345
  </div>
346
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Ac(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${He.designSystemVariables.transitionDuration}, left ${He.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,He.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};G.elementDefinitions={"ft-typography":V};G.styles=Gl;Ge([Tc()],G.prototype,"text",void 0);Ge([(0,je.property)({type:Boolean})],G.prototype,"manual",void 0);Ge([(0,je.property)({type:Boolean})],G.prototype,"inline",void 0);Ge([(0,He.numberProperty)()],G.prototype,"delay",void 0);Ge([(0,je.property)()],G.prototype,"position",void 0);Ge([(0,He.jsonProperty)([])],G.prototype,"ignoreMatchingElements",void 0);Ge([(0,je.queryAssignedNodes)()],G.prototype,"slotNodes",void 0);Ge([(0,je.query)(".ft-tooltip--container")],G.prototype,"container",void 0);Ge([(0,je.query)(".ft-tooltip")],G.prototype,"tooltip",void 0);Ge([(0,je.query)(".ft-tooltip--content")],G.prototype,"tooltipContent",void 0);Ge([(0,je.state)()],G.prototype,"visible",void 0);var Nc=f(b());var Dc={"ft-tooltip":G};(0,Nc.customElements)(Dc);var Ic=f(L()),yi=f(b()),sr={color:yi.FtCssVariableFactory.extend("--ft-loader-color","",yi.designSystemVariables.colorPrimary),size:yi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Mc=Ic.css`
346
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Nc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ve.designSystemVariables.transitionDuration}, left ${Ve.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Ve.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":j};X.styles=oc;Ge([Fc()],X.prototype,"text",void 0);Ge([(0,He.property)({type:Boolean})],X.prototype,"manual",void 0);Ge([(0,He.property)({type:Boolean})],X.prototype,"inline",void 0);Ge([(0,Ve.numberProperty)()],X.prototype,"delay",void 0);Ge([(0,He.property)()],X.prototype,"position",void 0);Ge([(0,Ve.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Ge([(0,He.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Ge([(0,He.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Ge([(0,He.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Ge([(0,He.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Ge([(0,He.state)()],X.prototype,"visible",void 0);var Kc=d(g());var qc={"ft-tooltip":X};(0,Kc.customElements)(qc);var Wc=d(R()),fi=d(g()),tr={color:fi.FtCssVariableFactory.extend("--ft-loader-color","",fi.designSystemVariables.colorPrimary),size:fi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Gc=Wc.css`
347
347
  :host {
348
348
  line-height: 0;
349
349
  }
@@ -352,8 +352,8 @@
352
352
  display: inline-block;
353
353
  position: relative;
354
354
 
355
- width: ${sr.size};
356
- height: ${sr.size};
355
+ width: ${tr.size};
356
+ height: ${tr.size};
357
357
  }
358
358
 
359
359
  .ft-loader div {
@@ -362,7 +362,7 @@
362
362
  width: 25%;
363
363
  height: 25%;
364
364
  border-radius: 50%;
365
- background: ${sr.color};
365
+ background: ${tr.color};
366
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
367
367
  }
368
368
 
@@ -409,17 +409,17 @@
409
409
  transform: translate(0, 0);
410
410
  }
411
411
  100% {
412
- transform: translate(calc(0.35 * ${sr.size}), 0);
412
+ transform: translate(calc(0.35 * ${tr.size}), 0);
413
413
  }
414
414
  }
415
- `;var $c=f(L()),Uc=f(b());var ar=class extends Uc.FtLitElement{render(){return $c.html`
415
+ `;var Yc=d(R()),Qc=d(g());var rr=class extends Qc.FtLitElement{render(){return Yc.html`
416
416
  <div class="ft-loader">
417
417
  <div></div>
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  </div>
422
- `}};ar.styles=Mc;var Bc=f(b());var Fc={"ft-loader":ar};(0,Bc.customElements)(Fc);var Nt=f(L()),xn=f(Zt()),N=f($());var gi=t=>t??J;var Vc=f(L()),T=f(b());var Hc=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),P={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:Hc,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",it.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hc),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},jc=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),Vo={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:jc,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",jc)},st={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},zc=Vc.css`
422
+ `}};rr.styles=Gc;var Jc=d(g());var Xc={"ft-loader":rr};(0,Jc.customElements)(Xc);var Lt=d(R()),kn=d(Gt()),M=d(F());var hi=t=>t??ee;var tu=d(R()),w=d(g());var Zc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),D={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Zc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",it.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Zc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},eu=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Gs={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:eu,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",eu)},ot={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ru=tu.css`
423
423
  :host {
424
424
  display: inline-block;
425
425
  max-width: 100%;
@@ -430,7 +430,7 @@
430
430
  box-shadow: 0px 0px 0px transparent;
431
431
  border: 0px solid transparent;
432
432
  text-shadow: 0px 0px 0px transparent;
433
- font-size: ${P.fontSize};
433
+ font-size: ${D.fontSize};
434
434
  text-decoration: none;
435
435
  }
436
436
 
@@ -450,7 +450,7 @@
450
450
  }
451
451
 
452
452
  .ft-button:focus-visible {
453
- outline: 2px solid ${T.designSystemVariables.colorPrimary};
453
+ outline: 2px solid ${w.designSystemVariables.colorPrimary};
454
454
  outline-offset: 2px;
455
455
  }
456
456
 
@@ -464,31 +464,31 @@
464
464
  border: none;
465
465
  pointer-events: auto;
466
466
 
467
- --button-internal-line-height: max(calc(${P.fontSize} + 2px), ${P.iconSize});
468
- --button-internal-color: ${P.color};
469
- ${(0,T.setVariable)(ke.size,P.iconSize)};
470
- ${(0,T.setVariable)(se.color,P.rippleColor)};
471
- ${(0,T.setVariable)(se.borderRadius,P.borderRadius)};
467
+ --button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
468
+ --button-internal-color: ${D.color};
469
+ ${(0,w.setVariable)(De.size,D.iconSize)};
470
+ ${(0,w.setVariable)(le.color,D.rippleColor)};
471
+ ${(0,w.setVariable)(le.borderRadius,D.borderRadius)};
472
472
 
473
- border-radius: ${P.borderRadius};
474
- padding: ${P.verticalPadding} ${P.horizontalPadding};
475
- background-color: ${P.backgroundColor};
473
+ border-radius: ${D.borderRadius};
474
+ padding: ${D.verticalPadding} ${D.horizontalPadding};
475
+ background-color: ${D.backgroundColor};
476
476
  color: var(--button-internal-color);
477
477
  }
478
478
 
479
479
  .ft-button.ft-button--outlined {
480
480
  border: 1px solid var(--button-internal-color);
481
- padding: calc(${P.verticalPadding} - 1px) calc(${P.horizontalPadding} - 1px);
481
+ padding: calc(${D.verticalPadding} - 1px) calc(${D.horizontalPadding} - 1px);
482
482
  }
483
483
 
484
484
  .ft-button.ft-button--dense {
485
- padding: ${st.verticalPadding} ${st.horizontalPadding};
486
- border-radius: ${st.borderRadius};
487
- ${(0,T.setVariable)(se.borderRadius,st.borderRadius)};
485
+ padding: ${ot.verticalPadding} ${ot.horizontalPadding};
486
+ border-radius: ${ot.borderRadius};
487
+ ${(0,w.setVariable)(le.borderRadius,ot.borderRadius)};
488
488
  }
489
489
 
490
490
  .ft-button.ft-button--dense.ft-button--outlined {
491
- padding: calc(${st.verticalPadding} - 1px) calc(${st.horizontalPadding} - 1px);
491
+ padding: calc(${ot.verticalPadding} - 1px) calc(${ot.horizontalPadding} - 1px);
492
492
  }
493
493
 
494
494
  .ft-button:not([disabled]):hover {
@@ -496,22 +496,22 @@
496
496
  }
497
497
 
498
498
  .ft-button--round {
499
- border-radius: calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding});
499
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${D.verticalPadding});
500
500
  }
501
501
 
502
502
  .ft-button--round.ft-button--dense {
503
- border-radius: calc(var(--button-internal-line-height) / 2 + ${st.verticalPadding});
503
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ot.verticalPadding});
504
504
  }
505
505
 
506
506
  .ft-button[disabled] {
507
507
  filter: grayscale(1);
508
- opacity: ${P.opacityDisabled};
508
+ opacity: ${D.opacityDisabled};
509
509
  }
510
510
 
511
511
  .ft-button.ft-button--primary {
512
- background-color: ${Vo.backgroundColor};
513
- --button-internal-color: ${Vo.color};
514
- ${(0,T.setVariable)(se.color,Vo.rippleColor)};
512
+ background-color: ${Gs.backgroundColor};
513
+ --button-internal-color: ${Gs.color};
514
+ ${(0,w.setVariable)(le.color,Gs.rippleColor)};
515
515
  }
516
516
 
517
517
  .ft-button--label {
@@ -520,13 +520,13 @@
520
520
  white-space: nowrap;
521
521
  text-overflow: ellipsis;
522
522
  display: block;
523
- margin: 0 ${P.iconPadding};
524
- ${(0,T.setVariable)(it.fontSize,"1em")};
525
- ${(0,T.setVariable)(it.lineHeight,"var(--button-internal-line-height)")};
523
+ margin: 0 ${D.iconPadding};
524
+ ${(0,w.setVariable)(it.fontSize,"1em")};
525
+ ${(0,w.setVariable)(it.lineHeight,"var(--button-internal-line-height)")};
526
526
  }
527
527
 
528
528
  .ft-button--dense .ft-button--label {
529
- margin: 0 ${st.iconPadding};
529
+ margin: 0 ${ot.iconPadding};
530
530
  }
531
531
 
532
532
  .ft-button--label.ft-button--label-no-text {
@@ -539,13 +539,13 @@
539
539
  }
540
540
 
541
541
  .ft-button--label[hidden] + [part="icon"] {
542
- margin: 0 calc(${P.horizontalPadding} * -1);
543
- padding: 0 ${P.verticalPadding};
542
+ margin: 0 calc(${D.horizontalPadding} * -1);
543
+ padding: 0 ${D.verticalPadding};
544
544
  }
545
545
 
546
546
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
547
- margin: 0 calc(${st.horizontalPadding} * -1);
548
- padding: 0 ${st.verticalPadding};
547
+ margin: 0 calc(${ot.horizontalPadding} * -1);
548
+ padding: 0 ${ot.verticalPadding};
549
549
  }
550
550
 
551
551
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -553,51 +553,51 @@
553
553
  }
554
554
 
555
555
  ft-loader {
556
- ${(0,T.setVariable)(sr.size,P.iconSize)};
557
- ${(0,T.setVariable)(sr.color,"var(--button-internal-color)")};
556
+ ${(0,w.setVariable)(tr.size,D.iconSize)};
557
+ ${(0,w.setVariable)(tr.color,"var(--button-internal-color)")};
558
558
  }
559
- `;var U=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},w=class t extends(0,at.toFtFormComponent)(at.FtLitElement){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":at.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Nt.html`
559
+ `;var B=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},C=class t extends(0,at.toFtFormComponent)(at.FtLitElement){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":at.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=Lt.html`
560
560
  <ft-ripple part="ripple"
561
561
  ?disabled=${this.isDisabled()}
562
562
  ?activated=${this.activated}
563
563
  ></ft-ripple>
564
564
  <ft-typography part="label"
565
- variant="${le.button}"
565
+ variant="${ue.button}"
566
566
  element="span"
567
- class="${(0,xn.classMap)(n)}">
567
+ class="${(0,kn.classMap)(s)}">
568
568
  <slot></slot>
569
569
  </ft-typography>
570
570
  ${this.resolveIcon()}
571
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Nt.html`
572
- <a href="${s}"
571
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Lt.html`
572
+ <a href="${o}"
573
573
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
574
574
  part="button"
575
- class="${(0,xn.classMap)(this.buttonClasses)}"
576
- aria-label="${gi((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
575
+ class="${(0,kn.classMap)(this.buttonClasses)}"
576
+ aria-label="${hi((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
577
577
  ?disabled=${this.isDisabled()}>
578
- ${o}
578
+ ${n}
579
579
  </a>
580
- `:Nt.html`
580
+ `:Lt.html`
581
581
  <button part="button"
582
- class="${(0,xn.classMap)(this.buttonClasses)}"
583
- aria-label="${gi((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
- aria-haspopup="${gi(this.ariaHasPopup)}"
585
- aria-pressed="${gi(this.ariaPressed)}"
582
+ class="${(0,kn.classMap)(this.buttonClasses)}"
583
+ aria-label="${hi((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
+ aria-haspopup="${hi(this.ariaHasPopup)}"
585
+ aria-pressed="${hi(this.ariaPressed)}"
586
586
  ?disabled=${this.isDisabled()}>
587
- ${o}
587
+ ${n}
588
588
  </button>
589
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Nt.html`
589
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Lt.html`
590
590
  <ft-tooltip part="tooltip"
591
591
  text="${this.label}"
592
592
  position="${this.tooltipPosition}">
593
593
  ${e}
594
594
  </ft-tooltip>
595
- `:e}resolveIcon(){return this.loading?Nt.html`
596
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Nt.html`
595
+ `:e}resolveIcon(){return this.loading?Lt.html`
596
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Lt.html`
597
597
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
598
- `:Nt.html`
598
+ `:Lt.html`
599
599
  <slot part="icon" name="icon"></slot>
600
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":D,"ft-tooltip":G,"ft-icon":ce,"ft-loader":ar,"ft-typography":V};w.styles=[at.safariEllipsisFix,zc,at.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});U([(0,N.property)({type:Boolean})],w.prototype,"primary",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"outlined",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"dense",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"round",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"disabled",void 0);U([(0,N.property)()],w.prototype,"icon",void 0);U([(0,N.property)()],w.prototype,"iconVariant",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);U([(0,N.property)()],w.prototype,"label",void 0);U([(0,N.property)()],w.prototype,"type",void 0);U([(0,N.property)()],w.prototype,"href",void 0);U([(0,N.property)()],w.prototype,"target",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"loading",void 0);U([(0,N.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);U([(0,N.property)()],w.prototype,"ariaHasPopup",void 0);U([(0,N.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);U([(0,N.property)()],w.prototype,"tooltipPosition",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);U([(0,N.property)({type:Boolean})],w.prototype,"activated",void 0);U([(0,N.query)(".ft-button")],w.prototype,"button",void 0);U([(0,N.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);U([(0,N.state)()],w.prototype,"hasTextContent",void 0);U([(0,N.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);U([(0,N.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var Kc=f(b());var qc={"ft-button":w};(0,Kc.customElements)(qc);var Wc=_.FtCssVariableFactory.extend("--ft-chip-color","",_.designSystemVariables.colorOnSurface),Ee={backgroundColor:_.FtCssVariableFactory.extend("--ft-chip-background-color","",_.designSystemVariables.colorSurface),color:Wc,fontSize:_.FtCssVariableFactory.extend("--ft-chip-font-size","",ee.fontSize),fontWeight:_.FtCssVariableFactory.extend("--ft-chip-font-weight","",ee.fontWeight),iconSize:_.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:_.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:_.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Wc),horizontalPadding:_.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:_.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:_.FtCssVariableFactory.extend("--ft-chip-border-color","",_.designSystemVariables.colorOutline),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},Gc=_.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",_.FtCssVariableFactory.extend("--ft-chip-color","",_.designSystemVariables.colorOnPrimary)),zo={backgroundColor:_.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",_.FtCssVariableFactory.extend("--ft-chip-background-color","",_.designSystemVariables.colorPrimary)),color:Gc,rippleColor:_.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Gc)},Yc={horizontalPadding:_.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:_.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Qc=[_.noTextSelect,bi.css`
600
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":de,"ft-loader":rr,"ft-typography":j};C.styles=[at.safariEllipsisFix,ru,at.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});B([(0,M.property)({type:Boolean})],C.prototype,"primary",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"outlined",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"dense",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"round",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"disabled",void 0);B([(0,M.property)()],C.prototype,"icon",void 0);B([(0,M.property)()],C.prototype,"iconVariant",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);B([(0,M.property)()],C.prototype,"label",void 0);B([(0,M.property)()],C.prototype,"type",void 0);B([(0,M.property)()],C.prototype,"href",void 0);B([(0,M.property)()],C.prototype,"target",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"loading",void 0);B([(0,M.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);B([(0,M.property)()],C.prototype,"ariaHasPopup",void 0);B([(0,M.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);B([(0,M.property)()],C.prototype,"tooltipPosition",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"activated",void 0);B([(0,M.query)(".ft-button")],C.prototype,"button",void 0);B([(0,M.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);B([(0,M.state)()],C.prototype,"hasTextContent",void 0);B([(0,M.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);B([(0,M.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var nu=d(g());var iu={"ft-button":C};(0,nu.customElements)(iu);var su=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),Ce={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:su,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",te.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",te.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",su),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},ou=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Ys={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:ou,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ou)},au={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lu=[T.noTextSelect,mi.css`
601
601
  :host {
602
602
  display: inline-block;
603
603
  max-width: 100%;
@@ -613,21 +613,21 @@
613
613
  box-sizing: border-box;
614
614
  pointer-events: auto;
615
615
 
616
- --chip-internal-font-size: ${Ee.fontSize};
617
- --chip-internal-font-weight: ${Ee.fontWeight};
616
+ --chip-internal-font-size: ${Ce.fontSize};
617
+ --chip-internal-font-weight: ${Ce.fontWeight};
618
618
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
619
- ${(0,_.setVariable)(ke.size,Ee.iconSize)};
620
- --chip-internal-vertical-padding: ${Ee.verticalPadding};
621
- --chip-internal-horizontal-padding: ${Ee.horizontalPadding};
619
+ ${(0,T.setVariable)(De.size,Ce.iconSize)};
620
+ --chip-internal-vertical-padding: ${Ce.verticalPadding};
621
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding};
622
622
  --chip-internal-icon-padding: 3px;
623
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ee.iconSize});
623
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ce.iconSize});
624
624
 
625
- border: 1px solid ${Ee.borderColor};
626
- color: ${Ee.color};
627
- ${(0,_.setVariable)(se.color,Ee.rippleColor)};
628
- border-radius: var(${(0,bi.unsafeCSS)(Ee.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
625
+ border: 1px solid ${Ce.borderColor};
626
+ color: ${Ce.color};
627
+ ${(0,T.setVariable)(le.color,Ce.rippleColor)};
628
+ border-radius: var(${(0,mi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
629
629
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
630
- background-color: ${Ee.backgroundColor};
630
+ background-color: ${Ce.backgroundColor};
631
631
  line-height: var(--chip-internal-content-height);
632
632
  }
633
633
 
@@ -637,28 +637,28 @@
637
637
 
638
638
  .ft-chip--dense {
639
639
  --chip-internal-icon-padding: 3px;
640
- --chip-internal-vertical-padding: ${Yc.verticalPadding};
641
- --chip-internal-horizontal-padding: ${Yc.horizontalPadding};
640
+ --chip-internal-vertical-padding: ${au.verticalPadding};
641
+ --chip-internal-horizontal-padding: ${au.horizontalPadding};
642
642
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
643
643
  }
644
644
 
645
645
  .ft-chip--no-content {
646
- --chip-internal-horizontal-padding: ${Ee.horizontalPadding.get(bi.css`var(--chip-internal-vertical-padding)`)};
646
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(mi.css`var(--chip-internal-vertical-padding)`)};
647
647
  }
648
648
 
649
649
  .ft-chip--disabled {
650
650
  cursor: default;
651
651
  pointer-events: none;
652
652
  filter: grayscale(1);
653
- opacity: ${Ee.opacityDisabled};
653
+ opacity: ${Ce.opacityDisabled};
654
654
  }
655
655
 
656
656
  .ft-chip--highlighted {
657
657
  border: none;
658
658
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
659
- background-color: ${zo.backgroundColor};
660
- ${(0,_.setVariable)(se.color,zo.rippleColor)};
661
- color: ${zo.color};
659
+ background-color: ${Ys.backgroundColor};
660
+ ${(0,T.setVariable)(le.color,Ys.rippleColor)};
661
+ color: ${Ys.color};
662
662
  }
663
663
 
664
664
  .ft-chip--clickable {
@@ -667,7 +667,7 @@
667
667
  }
668
668
 
669
669
  .ft-chip:focus {
670
- outline: 2px solid ${_.designSystemVariables.colorPrimary};
670
+ outline: 2px solid ${T.designSystemVariables.colorPrimary};
671
671
  outline-offset: 2px;
672
672
  }
673
673
 
@@ -689,9 +689,9 @@
689
689
  }
690
690
 
691
691
  .ft-chip--icon-button {
692
- ${(0,_.setVariable)(P.iconSize,Ee.iconSize)};
693
- ${(0,_.setVariable)(P.horizontalPadding,"var(--chip-internal-icon-padding)")};
694
- ${(0,_.setVariable)(P.verticalPadding,"var(--chip-internal-icon-padding)")};
692
+ ${(0,T.setVariable)(D.iconSize,Ce.iconSize)};
693
+ ${(0,T.setVariable)(D.horizontalPadding,"var(--chip-internal-icon-padding)")};
694
+ ${(0,T.setVariable)(D.verticalPadding,"var(--chip-internal-icon-padding)")};
695
695
  margin: calc((-1) * var(--chip-internal-icon-padding));
696
696
  }
697
697
 
@@ -699,9 +699,9 @@
699
699
  vertical-align: bottom;
700
700
  display: block;
701
701
  margin: 0 var(--chip-internal-horizontal-padding);
702
- ${(0,_.setVariable)(ee.fontSize,"var(--chip-internal-font-size)")};
703
- ${(0,_.setVariable)(ee.fontWeight,"var(--chip-internal-font-weight)")};
704
- ${(0,_.setVariable)(ee.lineHeight,"var(--chip-internal-content-height)")};
702
+ ${(0,T.setVariable)(te.fontSize,"var(--chip-internal-font-size)")};
703
+ ${(0,T.setVariable)(te.fontWeight,"var(--chip-internal-font-weight)")};
704
+ ${(0,T.setVariable)(te.lineHeight,"var(--chip-internal-content-height)")};
705
705
  }
706
706
 
707
707
  .ft-chip--safari-fix .ft-chip--label {
@@ -737,8 +737,8 @@
737
737
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
738
738
  order: -1;
739
739
  }
740
- `];var ge=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},An=class extends CustomEvent{constructor(){super("icon-click")}},z=class extends Hr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Hr.isSafari};return Sn.html`
741
- <div class="${(0,Xc.classMap)(r)}"
740
+ `];var xe=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Pn=class extends CustomEvent{constructor(){super("icon-click")}},q=class extends Pr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Pr.isSafari};return Dn.html`
741
+ <div class="${(0,cu.classMap)(r)}"
742
742
  aria-label="${this.getLabel()}"
743
743
  tabindex="${this.interactionsOnChip?0:-1}"
744
744
  @keyup=${this.onKeyUp}
@@ -749,7 +749,7 @@
749
749
  </ft-typography>
750
750
  ${this.internalIcon?this.renderIcon():null}
751
751
  </div>
752
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Sn.html`
752
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Dn.html`
753
753
  <ft-button round
754
754
  class="ft-chip--icon-button"
755
755
  @click=${this.onIconClick}
@@ -760,12 +760,12 @@
760
760
  part="icon-button"
761
761
  ?hideTooltip=${this.hideIconTooltip}
762
762
  ></ft-button>
763
- `:Sn.html`
763
+ `:Dn.html`
764
764
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
765
765
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
766
766
  </div>
767
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new An))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new An))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Hr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};z.elementDefinitions={"ft-ripple":D,"ft-typography":V,"ft-icon":ce,"ft-button":w};z.styles=Qc;ge([(0,ue.property)({type:Boolean})],z.prototype,"highlighted",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"removable",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"disabled",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"clickable",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"iconClickable",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"dense",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"multiLine",void 0);ge([(0,ue.property)()],z.prototype,"label",void 0);ge([(0,ue.property)()],z.prototype,"iconLabel",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"hideIconTooltip",void 0);ge([(0,ue.property)()],z.prototype,"icon",void 0);ge([(0,ue.property)()],z.prototype,"iconVariant",void 0);ge([(0,ue.property)({type:Boolean})],z.prototype,"trailingIcon",void 0);ge([(0,ue.property)()],z.prototype,"typographyVariant",void 0);ge([(0,ue.query)("ft-typography slot")],z.prototype,"slottedContent",void 0);var Zc=f(b());var Jc={"ft-chip":z};(0,Zc.customElements)(Jc);var eu=f(L());var tu=eu.css`
768
- `;var Du=f(L()),Yo=f(b());var ru=f(L()),I=f(b());var xi={buttonMoreColor:I.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",I.designSystemVariables.colorOnSurface),borderRadiusM:I.FtCssVariableFactory.external(I.designSystemVariables.borderRadiusM,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:I.FtCssVariableFactory.external(ee.fontFamily,"Body2 typography"),fontSize:I.FtCssVariableFactory.external(ee.fontSize,"Body2 typography"),fontWeight:I.FtCssVariableFactory.external(ee.fontWeight,"Body2 typography"),letterSpacing:I.FtCssVariableFactory.external(ee.letterSpacing,"Body2 typography"),lineHeight:I.FtCssVariableFactory.external(ee.lineHeight,"Body2 typography"),textTransform:I.FtCssVariableFactory.external(ee.textTransform,"Body2 typography")},iu=ru.css`
767
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Pn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Pn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Pr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};q.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":de,"ft-button":C};q.styles=lu;xe([(0,pe.property)({type:Boolean})],q.prototype,"highlighted",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"removable",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"disabled",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"clickable",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"iconClickable",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"dense",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"multiLine",void 0);xe([(0,pe.property)()],q.prototype,"label",void 0);xe([(0,pe.property)()],q.prototype,"iconLabel",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"hideIconTooltip",void 0);xe([(0,pe.property)()],q.prototype,"icon",void 0);xe([(0,pe.property)()],q.prototype,"iconVariant",void 0);xe([(0,pe.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);xe([(0,pe.property)()],q.prototype,"typographyVariant",void 0);xe([(0,pe.query)("ft-typography slot")],q.prototype,"slottedContent",void 0);var du=d(g());var uu={"ft-chip":q};(0,du.customElements)(uu);var pu=d(R());var fu=pu.css`
768
+ `;var qu=d(R()),eo=d(g());var hu=d(R()),I=d(g());var yi={buttonMoreColor:I.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",I.designSystemVariables.colorOnSurface),borderRadiusM:I.FtCssVariableFactory.external(I.designSystemVariables.borderRadiusM,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:I.FtCssVariableFactory.external(te.fontFamily,"Body2 typography"),fontSize:I.FtCssVariableFactory.external(te.fontSize,"Body2 typography"),fontWeight:I.FtCssVariableFactory.external(te.fontWeight,"Body2 typography"),letterSpacing:I.FtCssVariableFactory.external(te.letterSpacing,"Body2 typography"),lineHeight:I.FtCssVariableFactory.external(te.lineHeight,"Body2 typography"),textTransform:I.FtCssVariableFactory.external(te.textTransform,"Body2 typography")},mu=hu.css`
769
769
  .ft-filter-level--container {
770
770
  display: flex;
771
771
  flex-direction: column;
@@ -780,14 +780,14 @@
780
780
  flex-shrink: 0;
781
781
  text-decoration: none;
782
782
  position: relative;
783
- border-radius: ${xi.borderRadiusM};
783
+ border-radius: ${yi.borderRadiusM};
784
784
  overflow: hidden;
785
785
  display: flex;
786
786
  align-items: center;
787
787
  padding: 4px 4px;
788
788
  gap: 4px;
789
789
  cursor: pointer;
790
- color: ${xi.colorOnSurface};
790
+ color: ${yi.colorOnSurface};
791
791
  }
792
792
 
793
793
  .ft-filter-level--go-back:focus {
@@ -816,11 +816,11 @@
816
816
  }
817
817
 
818
818
  ft-button {
819
- ${(0,I.setVariable)(P.color,xi.colorOnSurface)};
819
+ ${(0,I.setVariable)(D.color,yi.colorOnSurface)};
820
820
  }
821
821
 
822
822
  ft-button.ft-filter-level--display-more {
823
- ${(0,I.setVariable)(P.color,xi.buttonMoreColor)};
823
+ ${(0,I.setVariable)(D.color,yi.buttonMoreColor)};
824
824
  }
825
825
 
826
826
  ft-radio, ft-checkbox {
@@ -834,9 +834,9 @@
834
834
 
835
835
  .ft-filter-level--no-values {
836
836
  margin: 10px 0;
837
- color: ${xi.colorOnSurfaceMedium};
837
+ color: ${yi.colorOnSurfaceMedium};
838
838
  }
839
- `;var cr=f(L()),M=f($()),Y=f(b());var Ne=f(L()),te=f($()),Su=f(kn()),Oe=f(b());var En=f(L()),Ye=f($()),su=f(b()),au=f(Zt());var de=f(b()),nu=f(L());var Pe={textColor:de.FtCssVariableFactory.extend("--ft-checkbox-text-color","",de.designSystemVariables.colorOnSurfaceHigh),fontSize:de.FtCssVariableFactory.extend("--ft-checkbox-font-size","",x.fontSize),activeColor:de.FtCssVariableFactory.extend("--ft-checkbox-active-color","",de.designSystemVariables.colorPrimary),checkColor:de.FtCssVariableFactory.extend("--ft-checkbox-check-color","",de.designSystemVariables.colorOnPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-checkbox-border-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledColor:de.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",de.designSystemVariables.colorOnSurfaceDisabled),errorColor:de.FtCssVariableFactory.extend("--ft-checkbox-error-color","",de.designSystemVariables.colorError)},ou=nu.css`
839
+ `;var nr=d(R()),$=d(F()),J=d(g());var Me=d(R()),re=d(F()),Pu=d(Vn()),Oe=d(g());var Nn=d(R()),Ye=d(F()),vu=d(g()),bu=d(Gt());var fe=d(g()),yu=d(R());var Pe={textColor:fe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",fe.designSystemVariables.colorOnSurfaceHigh),fontSize:fe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:fe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",fe.designSystemVariables.colorPrimary),checkColor:fe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",fe.designSystemVariables.colorOnPrimary),borderColor:fe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",fe.designSystemVariables.colorOnSurfaceMedium),disabledColor:fe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",fe.designSystemVariables.colorOnSurfaceDisabled),errorColor:fe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",fe.designSystemVariables.colorError)},gu=yu.css`
840
840
  * {
841
841
  box-sizing: border-box;
842
842
  }
@@ -917,7 +917,7 @@
917
917
 
918
918
  .ft-checkbox.ft-checkbox--error {
919
919
  color: ${Pe.errorColor};
920
- ${(0,de.setVariable)(se.color,Pe.errorColor)};
920
+ ${(0,fe.setVariable)(le.color,Pe.errorColor)};
921
921
 
922
922
  .ft-checkbox--box {
923
923
  border-color: ${Pe.errorColor};
@@ -929,7 +929,7 @@
929
929
  }
930
930
  }
931
931
  }
932
- `;var yt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},qo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},pe=class extends su.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return En.html`
932
+ `;var vt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Qs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},he=class extends vu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Nn.html`
933
933
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
934
934
  <ft-ripple part="checkbox-ripple"
935
935
  ?disabled=${this.disabled}
@@ -951,27 +951,27 @@
951
951
  @change=${this.onChange}
952
952
  >
953
953
  </div>
954
- `}render(){return En.html`
955
- <label class="${(0,au.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
954
+ `}render(){return Nn.html`
955
+ <label class="${(0,bu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
956
956
  ${this.renderBoxContainer()}
957
- <ft-typography variant="${le.body2}" part="checkbox-body">
957
+ <ft-typography variant="${ue.body2}" part="checkbox-body">
958
958
  <slot @slotchange=${this.onSlotchange}></slot>
959
959
  </ft-typography>
960
960
  </label>
961
- `}renderBoxIcon(){return En.html`
961
+ `}renderBoxIcon(){return Nn.html`
962
962
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
963
963
  <path class="ft-checkbox--checkmark-path" fill="none"
964
964
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
965
965
  </svg>
966
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new qo(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};pe.elementDefinitions={"ft-ripple":D,"ft-typography":V};pe.styles=ou;yt([(0,Ye.property)()],pe.prototype,"name",void 0);yt([(0,Ye.property)()],pe.prototype,"value",void 0);yt([(0,Ye.property)({type:Boolean,reflect:!0})],pe.prototype,"checked",void 0);yt([(0,Ye.property)({type:Boolean})],pe.prototype,"indeterminate",void 0);yt([(0,Ye.property)({type:Boolean})],pe.prototype,"disabled",void 0);yt([(0,Ye.property)({type:Boolean})],pe.prototype,"error",void 0);yt([(0,Ye.query)(".ft-checkbox")],pe.prototype,"container",void 0);yt([(0,Ye.query)("ft-ripple")],pe.prototype,"ripple",void 0);yt([(0,Ye.query)("input")],pe.prototype,"input",void 0);var cu=f(b());var lu={"ft-checkbox":pe};(0,cu.customElements)(lu);var pu=f(L()),lt=f($()),fu=f(b()),hu=f(Zt());var uu=f(L()),Ce=f(b());var It={textColor:Ce.FtCssVariableFactory.extend("--ft-radio-text-color","",Ce.designSystemVariables.colorOnSurfaceHigh),fontSize:Ce.FtCssVariableFactory.extend("--ft-radio-font-size","",x.fontSize),colorPrimary:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ce.FtCssVariableFactory.extend("--ft-radio-border-color","",Ce.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnSurfaceDisabled,"Design system")},du=uu.css`
966
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Qs(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};he.elementDefinitions={"ft-ripple":N,"ft-typography":j};he.styles=gu;vt([(0,Ye.property)()],he.prototype,"name",void 0);vt([(0,Ye.property)()],he.prototype,"value",void 0);vt([(0,Ye.property)({type:Boolean,reflect:!0})],he.prototype,"checked",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"indeterminate",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"disabled",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"error",void 0);vt([(0,Ye.query)(".ft-checkbox")],he.prototype,"container",void 0);vt([(0,Ye.query)("ft-ripple")],he.prototype,"ripple",void 0);vt([(0,Ye.query)("input")],he.prototype,"input",void 0);var Su=d(g());var xu={"ft-checkbox":he};(0,Su.customElements)(xu);var _u=d(R()),lt=d(F()),Cu=d(g()),wu=d(Gt());var Eu=d(R()),we=d(g());var kt={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnPrimary,"Design system"),borderColor:we.FtCssVariableFactory.extend("--ft-radio-border-color","",we.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Au=Eu.css`
967
967
  * {
968
968
  box-sizing: border-box;
969
969
  }
970
970
 
971
971
  .ft-radio {
972
972
  box-sizing: border-box;
973
- color: ${It.textColor};
974
- font-size: ${It.fontSize};
973
+ color: ${kt.textColor};
974
+ font-size: ${kt.fontSize};
975
975
 
976
976
  display: inline-flex;
977
977
  align-items: center;
@@ -979,7 +979,7 @@
979
979
  }
980
980
 
981
981
  .ft-radio--disabled {
982
- color: ${It.colorOnSurfaceDisabled};
982
+ color: ${kt.colorOnSurfaceDisabled};
983
983
  }
984
984
 
985
985
  input {
@@ -1002,7 +1002,7 @@
1002
1002
  }
1003
1003
 
1004
1004
  .ft-radio--box {
1005
- border: 2px solid ${It.borderColor};
1005
+ border: 2px solid ${kt.borderColor};
1006
1006
  border-radius: 50%;
1007
1007
 
1008
1008
  display: flex;
@@ -1015,7 +1015,7 @@
1015
1015
 
1016
1016
  .ft-radio--box:after {
1017
1017
  content: " ";
1018
- background-color: ${It.colorPrimary};
1018
+ background-color: ${kt.colorPrimary};
1019
1019
 
1020
1020
  border-radius: 50%;
1021
1021
 
@@ -1027,7 +1027,7 @@
1027
1027
  }
1028
1028
 
1029
1029
  .ft-radio--checked .ft-radio--box {
1030
- border-color: ${It.colorPrimary};
1030
+ border-color: ${kt.colorPrimary};
1031
1031
  }
1032
1032
 
1033
1033
 
@@ -1036,24 +1036,24 @@
1036
1036
  }
1037
1037
 
1038
1038
  .ft-radio--disabled .ft-radio--box {
1039
- border-color: ${It.colorOnSurfaceDisabled};
1039
+ border-color: ${kt.colorOnSurfaceDisabled};
1040
1040
  background-color: transparent;
1041
1041
  }
1042
1042
 
1043
1043
  .ft-radio--disabled .ft-radio--box:after {
1044
- background-color: ${It.colorOnSurfaceDisabled};
1044
+ background-color: ${kt.colorOnSurfaceDisabled};
1045
1045
  }
1046
1046
 
1047
1047
  .ft-radio:has(:focus-visible) {
1048
- outline: 2px solid ${Ce.designSystemVariables.colorPrimary};
1048
+ outline: 2px solid ${we.designSystemVariables.colorPrimary};
1049
1049
  outline-offset: -2px;
1050
1050
  }
1051
1051
 
1052
1052
  .ft-radio ft-typography {
1053
1053
  padding-right: 2px;
1054
1054
  }
1055
- `;var Mt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Cn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ie=class extends fu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return pu.html`
1056
- <div class="${(0,hu.classMap)(this.radioClasses)}"
1055
+ `;var Dt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Mn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ne=class extends Cu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return _u.html`
1056
+ <div class="${(0,wu.classMap)(this.radioClasses)}"
1057
1057
  @click=${this.onClick}>
1058
1058
  <div class="ft-radio--box-container">
1059
1059
  <ft-ripple
@@ -1073,12 +1073,12 @@
1073
1073
  >
1074
1074
  </div>
1075
1075
  <label for="radio-button" inert>
1076
- <ft-typography variant="${le.body2}">
1076
+ <ft-typography variant="${ue.body2}">
1077
1077
  <slot></slot>
1078
1078
  </ft-typography>
1079
1079
  </label>
1080
1080
  </div>
1081
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Cn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Cn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ie.elementDefinitions={"ft-ripple":D,"ft-typography":V};ie.styles=du;Mt([(0,lt.property)()],ie.prototype,"name",void 0);Mt([(0,lt.property)()],ie.prototype,"value",void 0);Mt([(0,lt.property)({type:Boolean,reflect:!0})],ie.prototype,"checked",void 0);Mt([(0,lt.property)({attribute:"aria-checked",reflect:!0})],ie.prototype,"ariaChecked",void 0);Mt([(0,lt.property)({type:Boolean})],ie.prototype,"disabled",void 0);Mt([(0,lt.query)(".ft-radio")],ie.prototype,"container",void 0);Mt([(0,lt.query)("ft-ripple")],ie.prototype,"ripple",void 0);Mt([(0,lt.query)("input")],ie.prototype,"input",void 0);var yu=f(b()),$t=f($()),gu=f(L());var mu=f(L());var vu=mu.css`
1081
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Mn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Mn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ne.elementDefinitions={"ft-ripple":N,"ft-typography":j};ne.styles=Au;Dt([(0,lt.property)()],ne.prototype,"name",void 0);Dt([(0,lt.property)()],ne.prototype,"value",void 0);Dt([(0,lt.property)({type:Boolean,reflect:!0})],ne.prototype,"checked",void 0);Dt([(0,lt.property)({attribute:"aria-checked",reflect:!0})],ne.prototype,"ariaChecked",void 0);Dt([(0,lt.property)({type:Boolean})],ne.prototype,"disabled",void 0);Dt([(0,lt.query)(".ft-radio")],ne.prototype,"container",void 0);Dt([(0,lt.query)("ft-ripple")],ne.prototype,"ripple",void 0);Dt([(0,lt.query)("input")],ne.prototype,"input",void 0);var Ru=d(g()),Pt=d(F()),Lu=d(R());var Ou=d(R());var Tu=Ou.css`
1082
1082
  :host {
1083
1083
  display: block;
1084
1084
  }
@@ -1086,14 +1086,14 @@
1086
1086
  :host(:focus-visible) {
1087
1087
  outline: none;
1088
1088
  }
1089
- `;var Si=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},De=class extends yu.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return gu.html`
1089
+ `;var gi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ne=class extends Ru.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Lu.html`
1090
1090
  <slot @slotchange=${this.onSlotChange}
1091
1091
  @change=${this.onChange}
1092
1092
  @keydown=${this.onKeyDown}
1093
1093
  ></slot>
1094
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};De.elementDefinitions={};De.styles=vu;Si([(0,$t.property)()],De.prototype,"name",void 0);Si([(0,$t.property)({reflect:!0,attribute:"role"})],De.prototype,"role",void 0);Si([(0,$t.property)({reflect:!0,attribute:"aria-labelledby"})],De.prototype,"ariaLabelledBy",void 0);Si([(0,$t.queryAssignedElements)()],De.prototype,"assignedElements",void 0);Si([(0,$t.state)()],De.prototype,"currentSelectedIndex",void 0);var xu=f(b());var bu={"ft-radio":ie,"ft-radio-group":De};(0,xu.customElements)(bu);var fe=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ko={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},q=class extends(0,Oe.withAnalytics)(ot((0,Oe.withAriaNotification)(Oe.FtLitElement)),Ko){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Ne.html`
1094
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Tu;gi([(0,Pt.property)()],Ne.prototype,"name",void 0);gi([(0,Pt.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);gi([(0,Pt.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);gi([(0,Pt.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);gi([(0,Pt.state)()],Ne.prototype,"currentSelectedIndex",void 0);var Du=d(g());var ku={"ft-radio":ne,"ft-radio-group":Ne};(0,Du.customElements)(ku);var me=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Xs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},K=class extends(0,Oe.withAnalytics)(st((0,Oe.withAriaNotification)(Oe.FtLitElement)),Xs){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Me.html`
1095
1095
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1096
- ${this.parent==null?null:Ne.html`
1096
+ ${this.parent==null?null:Me.html`
1097
1097
  <div tabindex="0"
1098
1098
  part="controls go-back"
1099
1099
  class="ft-filter-level--go-back"
@@ -1104,18 +1104,18 @@
1104
1104
  @click=${this.goBackOnClick}>
1105
1105
  <ft-ripple></ft-ripple>
1106
1106
  <ft-icon>thin_arrow_left</ft-icon>
1107
- <ft-typography variant="${le.body2}">${this.parent.label}</ft-typography>
1107
+ <ft-typography variant="${ue.body2}">${this.parent.label}</ft-typography>
1108
1108
  </div>
1109
1109
  `}
1110
- ${this.filteredOptions.length===0&&this.noValuesLabel?Ne.html`
1111
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${le.body2}">
1110
+ ${this.filteredOptions.length===0&&this.noValuesLabel?Me.html`
1111
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${ue.body2}">
1112
1112
  ${this.noValuesLabel}
1113
1113
  </ft-typography>
1114
- `:Ne.nothing}
1115
- ${(0,Su.repeat)(e,r=>r.value,r=>{var i;return Ne.html`
1114
+ `:Me.nothing}
1115
+ ${(0,Pu.repeat)(e,r=>r.value,r=>{var i;return Me.html`
1116
1116
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1117
1117
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1118
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Ne.nothing:Ne.html`
1118
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Me.nothing:Me.html`
1119
1119
  <ft-button icon="thin_arrow_right"
1120
1120
  part="controls navigate-hierarchy"
1121
1121
  aria-label="Expand node"
@@ -1126,7 +1126,7 @@
1126
1126
  `}
1127
1127
  </div>
1128
1128
  `})}
1129
- ${e.length<this.filteredOptions.length?Ne.html`
1129
+ ${e.length<this.filteredOptions.length?Me.html`
1130
1130
  <ft-button
1131
1131
  class="ft-filter-level--display-more"
1132
1132
  icon="thin_arrow"
@@ -1135,20 +1135,20 @@
1135
1135
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1136
1136
  ${this.moreValuesButtonLabel}
1137
1137
  </ft-button>
1138
- `:Ne.nothing}
1138
+ `:Me.nothing}
1139
1139
  </div>
1140
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Ne.html`
1140
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Me.html`
1141
1141
  <ft-checkbox name="${this.filterId}"
1142
1142
  part="multivalued-option option"
1143
1143
  .exportpartsPrefixes=${["multivalued-option","option"]}
1144
1144
  data-value="${e.value}"
1145
1145
  .checked=${e.selected}
1146
1146
  .disabled=${this.disabled}
1147
- .indeterminate=${(0,Oe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1147
+ .indeterminate=${(0,Oe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
1148
1148
  @change=${i=>this.optionsChanged(i,e)}>
1149
1149
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1150
1150
  </ft-checkbox>
1151
- `}buildMonoValuedOption(e){return Ne.html`
1151
+ `}buildMonoValuedOption(e){return Me.html`
1152
1152
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1153
1153
  part="monovalued-option option"
1154
1154
  data-value="${e.value}"
@@ -1159,7 +1159,7 @@
1159
1159
  @change=${r=>this.optionsChanged(r,e)}>
1160
1160
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1161
1161
  </ft-radio>
1162
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};q.elementDefinitions={"ft-button":w,"ft-ripple":D,"ft-typography":V,"ft-checkbox":pe,"ft-icon":ce,"ft-radio":ie};q.styles=iu;fe([(0,te.property)({type:String})],q.prototype,"filterId",void 0);fe([(0,te.property)({type:Object})],q.prototype,"parent",void 0);fe([(0,te.property)({type:Array,hasChanged:Oe.hasChanged})],q.prototype,"options",void 0);fe([(0,te.property)({type:Boolean})],q.prototype,"multivalued",void 0);fe([(0,te.property)({type:Boolean})],q.prototype,"disabled",void 0);fe([(0,te.property)({type:Boolean})],q.prototype,"hideSelectedOptions",void 0);fe([(0,te.property)({type:Boolean})],q.prototype,"displayCount",void 0);fe([(0,te.property)({type:Boolean})],q.prototype,"preventNavigation",void 0);fe([(0,te.property)({type:String})],q.prototype,"filter",void 0);fe([(0,te.property)({type:String})],q.prototype,"moreValuesButtonLabel",void 0);fe([(0,te.property)({type:String})],q.prototype,"noValuesLabel",void 0);fe([(0,te.property)()],q.prototype,"filteredOptionsNumberAriaNotification",void 0);fe([(0,Oe.numberProperty)()],q.prototype,"displayedValuesLimit",void 0);fe([(0,te.query)(".ft-filter-level--container")],q.prototype,"container",void 0);fe([(0,te.state)()],q.prototype,"radios",void 0);fe([(0,te.state)()],q.prototype,"displayedPages",void 0);fe([(0,te.state)()],q.prototype,"filteredOptions",void 0);var Cu=f(L()),Ie=f($()),lr=f(b());var Ou=f(Zt());var Au=f(L()),Qe=f(b());var Ut={buttonsColor:Qe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Qe.designSystemVariables.colorPrimary),buttonsZIndex:Qe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Qe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorSurface,"Design system")},Eu=Au.css`
1162
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};K.elementDefinitions={"ft-button":C,"ft-ripple":N,"ft-typography":j,"ft-checkbox":he,"ft-icon":de,"ft-radio":ne};K.styles=mu;me([(0,re.property)({type:String})],K.prototype,"filterId",void 0);me([(0,re.property)({type:Object})],K.prototype,"parent",void 0);me([(0,re.property)({type:Array,hasChanged:Oe.hasChanged})],K.prototype,"options",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"multivalued",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"hideSelectedOptions",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"displayCount",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"preventNavigation",void 0);me([(0,re.property)({type:String})],K.prototype,"filter",void 0);me([(0,re.property)({type:String})],K.prototype,"moreValuesButtonLabel",void 0);me([(0,re.property)({type:String})],K.prototype,"noValuesLabel",void 0);me([(0,re.property)()],K.prototype,"filteredOptionsNumberAriaNotification",void 0);me([(0,Oe.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);me([(0,re.query)(".ft-filter-level--container")],K.prototype,"container",void 0);me([(0,re.state)()],K.prototype,"radios",void 0);me([(0,re.state)()],K.prototype,"displayedPages",void 0);me([(0,re.state)()],K.prototype,"filteredOptions",void 0);var Iu=d(R()),Ie=d(F()),ir=d(g());var $u=d(Gt());var Nu=d(R()),Qe=d(g());var Nt={buttonsColor:Qe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Qe.designSystemVariables.colorPrimary),buttonsZIndex:Qe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Qe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorSurface,"Design system")},Mu=Nu.css`
1163
1163
  .ft-snap-scroll {
1164
1164
  box-sizing: border-box;
1165
1165
  position: relative;
@@ -1194,7 +1194,7 @@
1194
1194
  flex-wrap: nowrap;
1195
1195
  align-items: flex-start;
1196
1196
  justify-content: flex-start;
1197
- gap: ${Ut.gap};
1197
+ gap: ${Nt.gap};
1198
1198
  }
1199
1199
 
1200
1200
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1237,11 +1237,11 @@
1237
1237
  .ft-snap-scroll--next {
1238
1238
  position: absolute;
1239
1239
  display: flex;
1240
- z-index: ${Ut.buttonsZIndex};
1240
+ z-index: ${Nt.buttonsZIndex};
1241
1241
  opacity: 1;
1242
1242
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1243
- ${(0,Qe.setVariable)(P.backgroundColor,"transparent")};
1244
- ${(0,Qe.setVariable)(P.color,Ut.buttonsColor)};
1243
+ ${(0,Qe.setVariable)(D.backgroundColor,"transparent")};
1244
+ ${(0,Qe.setVariable)(D.color,Nt.buttonsColor)};
1245
1245
  }
1246
1246
 
1247
1247
  .ft-snap-scroll--previous[hidden],
@@ -1254,37 +1254,37 @@
1254
1254
  top: 0;
1255
1255
  left: -1px;
1256
1256
  bottom: 0;
1257
- background: linear-gradient(to right, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1257
+ background: linear-gradient(to right, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1258
1258
  }
1259
1259
 
1260
1260
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1261
1261
  top: -1px;
1262
1262
  left: 0;
1263
1263
  right: 0;
1264
- background: linear-gradient(to bottom, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1264
+ background: linear-gradient(to bottom, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1265
1265
  }
1266
1266
 
1267
1267
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1268
1268
  top: 0;
1269
1269
  right: -1px;
1270
1270
  bottom: 0;
1271
- background: linear-gradient(to left, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1271
+ background: linear-gradient(to left, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1272
1272
  }
1273
1273
 
1274
1274
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1275
1275
  left: 0;
1276
1276
  right: 0;
1277
1277
  bottom: -1px;
1278
- background: linear-gradient(to top, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1278
+ background: linear-gradient(to top, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1279
1279
  }
1280
1280
 
1281
1281
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1282
1282
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1283
1283
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1284
1284
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1285
- background-color: ${Ut.colorSurface};
1285
+ background-color: ${Nt.colorSurface};
1286
1286
  }
1287
- `;var ct=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Wo=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ne=class extends lr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new lr.Debouncer(200),this.updateScrollDebouncer=new lr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Ou.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":lr.isSafari}),r=this.controls&&this.withScroll;return Cu.html`
1287
+ `;var ct=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Js=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},se=class extends ir.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ir.Debouncer(200),this.updateScrollDebouncer=new ir.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,$u.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ir.isSafari}),r=this.controls&&this.withScroll;return Iu.html`
1288
1288
  <div part="container" class="${e}">
1289
1289
  <ft-button
1290
1290
  class="ft-snap-scroll--previous"
@@ -1308,7 +1308,7 @@
1308
1308
  @click=${this.next}
1309
1309
  ></ft-button>
1310
1310
  </div>
1311
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Wo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ne.elementDefinitions={"ft-button":w};ne.styles=Eu;ct([(0,Ie.property)({type:Boolean})],ne.prototype,"horizontal",void 0);ct([(0,Ie.property)({type:Boolean})],ne.prototype,"hideScrollbar",void 0);ct([(0,Ie.property)({type:Boolean})],ne.prototype,"controls",void 0);ct([(0,Ie.property)({type:Boolean})],ne.prototype,"limitSize",void 0);ct([(0,Ie.state)()],ne.prototype,"elements",void 0);ct([(0,Ie.state)()],ne.prototype,"currentElement",void 0);ct([(0,Ie.state)()],ne.prototype,"withScroll",void 0);ct([(0,Ie.state)()],ne.prototype,"startReached",void 0);ct([(0,Ie.state)()],ne.prototype,"endReached",void 0);ct([(0,Ie.query)(".ft-snap-scroll--content")],ne.prototype,"contentSlot",void 0);var Tu=f(b());var wu={"ft-snap-scroll":ne};(0,Tu.customElements)(wu);var Ru=f(L()),F=f(b());var we={colorOutline:F.FtCssVariableFactory.external(F.designSystemVariables.colorOutline,"Design system"),colorOnSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:F.FtCssVariableFactory.external(F.designSystemVariables.colorPrimary,"Design system"),colorSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorSurface,"Design system"),transitionDuration:F.FtCssVariableFactory.external(F.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:F.FtCssVariableFactory.external(F.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:F.FtCssVariableFactory.extend("--ft-filter-label-color","",F.designSystemVariables.colorOnSurface),labelFontSize:F.FtCssVariableFactory.extend("--ft-filter-label-font-size","",x.fontSize,"16px")},_u=[nn,F.noTextInputDefaultClearButton,Ru.css`
1311
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Js(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};se.elementDefinitions={"ft-button":C};se.styles=Mu;ct([(0,Ie.property)({type:Boolean})],se.prototype,"horizontal",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"hideScrollbar",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"controls",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"limitSize",void 0);ct([(0,Ie.state)()],se.prototype,"elements",void 0);ct([(0,Ie.state)()],se.prototype,"currentElement",void 0);ct([(0,Ie.state)()],se.prototype,"withScroll",void 0);ct([(0,Ie.state)()],se.prototype,"startReached",void 0);ct([(0,Ie.state)()],se.prototype,"endReached",void 0);ct([(0,Ie.query)(".ft-snap-scroll--content")],se.prototype,"contentSlot",void 0);var Fu=d(g());var Uu={"ft-snap-scroll":se};(0,Fu.customElements)(Uu);var Bu=d(R()),V=d(g());var Te={colorOutline:V.FtCssVariableFactory.external(V.designSystemVariables.colorOutline,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorSurface,"Design system"),transitionDuration:V.FtCssVariableFactory.external(V.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:V.FtCssVariableFactory.external(V.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:V.FtCssVariableFactory.extend("--ft-filter-label-color","",V.designSystemVariables.colorOnSurface),labelFontSize:V.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},Vu=[mn,V.noTextInputDefaultClearButton,Bu.css`
1312
1312
  :host {
1313
1313
  display: flex;
1314
1314
  max-height: 100%;
@@ -1336,7 +1336,7 @@
1336
1336
  .ft-filter--header ft-button {
1337
1337
  flex-shrink: 0;
1338
1338
  margin-left: auto;
1339
- ${(0,F.setVariable)(P.iconSize,"18px")};
1339
+ ${(0,V.setVariable)(D.iconSize,"18px")};
1340
1340
  }
1341
1341
 
1342
1342
  .filter-label {
@@ -1348,10 +1348,10 @@
1348
1348
  flex-shrink: 1;
1349
1349
  flex-grow: 1;
1350
1350
  word-break: break-word;
1351
- color: ${we.labelColor};
1352
- font-size: ${we.labelFontSize};
1353
- ${(0,F.setVariable)(x.lineHeight,"22px")};
1354
- ${(0,F.setVariable)(x.fontWeight,"bold")};
1351
+ color: ${Te.labelColor};
1352
+ font-size: ${Te.labelFontSize};
1353
+ ${(0,V.setVariable)(v.lineHeight,"22px")};
1354
+ ${(0,V.setVariable)(v.fontWeight,"bold")};
1355
1355
  }
1356
1356
 
1357
1357
  .ft-filter--filter {
@@ -1362,8 +1362,8 @@
1362
1362
  padding: 0 10px;
1363
1363
  overflow: hidden;
1364
1364
  height: 32px;
1365
- transition: height ${we.transitionDuration} ${we.transitionTimingFunction},
1366
- margin ${we.transitionDuration} ${we.transitionTimingFunction};
1365
+ transition: height ${Te.transitionDuration} ${Te.transitionTimingFunction},
1366
+ margin ${Te.transitionDuration} ${Te.transitionTimingFunction};
1367
1367
  transition-delay: 500ms;
1368
1368
  }
1369
1369
 
@@ -1376,15 +1376,15 @@
1376
1376
  display: block;
1377
1377
  width: 100%;
1378
1378
  border-radius: 4px;
1379
- border: 1px solid ${we.colorOutline};
1379
+ border: 1px solid ${Te.colorOutline};
1380
1380
  padding: 4px;
1381
- background-color: ${we.colorSurface};
1382
- color: ${we.colorOnSurface};
1383
- outline-color: ${we.colorPrimary};
1381
+ background-color: ${Te.colorSurface};
1382
+ color: ${Te.colorOnSurface};
1383
+ outline-color: ${Te.colorPrimary};
1384
1384
  }
1385
1385
 
1386
1386
  input::placeholder {
1387
- color: ${we.colorOnSurfaceMedium};
1387
+ color: ${Te.colorOnSurfaceMedium};
1388
1388
  }
1389
1389
 
1390
1390
  input:placeholder-shown {
@@ -1400,7 +1400,7 @@
1400
1400
  }
1401
1401
 
1402
1402
  .ft-filter--separator {
1403
- border-top: 1px solid ${we.colorOutline};
1403
+ border-top: 1px solid ${Te.colorOutline};
1404
1404
  margin: 4px 10px;
1405
1405
  }
1406
1406
 
@@ -1425,19 +1425,19 @@
1425
1425
  slot:not([name]) {
1426
1426
  display: none;
1427
1427
  }
1428
- `];var B=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Go=class extends CustomEvent{constructor(e){super("change",{detail:e})}},k=class extends(0,Y.withAnalytics)(Y.FtLitElement,Ko){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Y.Debouncer(300),this.changeDebouncer=new Y.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Y.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Y.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return cr.html`
1428
+ `];var H=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Zs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},k=class extends(0,J.withAnalytics)(J.FtLitElement,Xs){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new J.Debouncer(300),this.changeDebouncer=new J.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return nr.html`
1429
1429
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1430
1430
  part="container">
1431
- ${!this.label&&!e?null:cr.html`
1431
+ ${!this.label&&!e?null:nr.html`
1432
1432
 
1433
1433
  <div class="ft-filter--header" part="header">
1434
1434
  <div class="filter-label" id="id-group-${this.id}">
1435
- <ft-typography class="ft-filter--label" variant="${le.overline}" part="label">
1435
+ <ft-typography class="ft-filter--label" variant="${ue.overline}" part="label">
1436
1436
  ${this.label}
1437
1437
  </ft-typography>
1438
1438
  <slot name="label"></slot>
1439
1439
  </div>
1440
- ${e&&!this.hideClearButton?cr.html`
1440
+ ${e&&!this.hideClearButton?nr.html`
1441
1441
  <ft-button icon="close"
1442
1442
  aria-label="${this.clearButtonLabel+" "+this.label}"
1443
1443
  dense
@@ -1465,8 +1465,8 @@
1465
1465
  @slotchange=${this.updateOptionsFromSlot}
1466
1466
  @option-change=${this.optionsChanged}></slot>
1467
1467
  </div>
1468
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,o,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(o=>o.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return cr.html`
1469
- ${this.raiseSelectedOptions&&r.length>0?cr.html`
1468
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,n,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return nr.html`
1469
+ ${this.raiseSelectedOptions&&r.length>0?nr.html`
1470
1470
  <ft-filter-level
1471
1471
  filterId="${this.id}"
1472
1472
  ?multivalued=${this.multivalued}
@@ -1483,11 +1483,11 @@
1483
1483
  `:null}
1484
1484
  <ft-snap-scroll horizontal hideScrollbar
1485
1485
  class="ft-filter--levels"
1486
- @current-element-change=${o=>this.levelsScrollDebouncer.run(()=>{for(;o.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1487
- ${this.renderLevel(n,this.options)}
1488
- ${this.displayedLevels.map(o=>e.find(s=>s.value===o)).map((o,s)=>{var a;let l=o?.value===this.slideIn||o?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=o?.subOptions)!==null&&a!==void 0?a:[],o)})}
1486
+ @current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1487
+ ${this.renderLevel(s,this.options)}
1488
+ ${this.displayedLevels.map(n=>e.find(o=>o.value===n)).map((n,o)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1489
1489
  </ft-snap-scroll>
1490
- `}renderLevel(e,r,i){return cr.html`
1490
+ `}renderLevel(e,r,i){return nr.html`
1491
1491
  <ft-filter-level
1492
1492
  class="${e}"
1493
1493
  filterId="${this.id}"
@@ -1509,9 +1509,9 @@
1509
1509
  noValuesLabel="${this.noValuesLabel}"
1510
1510
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1511
1511
  ></ft-filter-level>
1512
- `}goBack(e){this.slideOut=e.detail.value,(0,Y.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Y.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Y.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(o=>o.value===e.detail.value);i.selected=!i.selected;let n=o=>{var s;o!==i&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Y.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Go(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};k.elementDefinitions={"ft-button":w,"ft-filter-level":q,"ft-snap-scroll":ne,"ft-typography":V};k.styles=_u;B([(0,M.property)({type:String})],k.prototype,"id",void 0);B([(0,M.property)({type:String})],k.prototype,"label",void 0);B([(0,M.property)({type:String})],k.prototype,"filterPlaceHolder",void 0);B([(0,M.property)({type:String})],k.prototype,"clearButtonLabel",void 0);B([(0,M.property)({type:String})],k.prototype,"moreValuesButtonLabel",void 0);B([(0,M.property)({type:String})],k.prototype,"noValuesLabel",void 0);B([(0,Y.jsonProperty)([])],k.prototype,"options",void 0);B([(0,M.property)({type:Boolean})],k.prototype,"multivalued",void 0);B([(0,M.property)({type:Boolean})],k.prototype,"disabled",void 0);B([(0,M.property)({type:Boolean})],k.prototype,"raiseSelectedOptions",void 0);B([(0,M.property)({type:Boolean})],k.prototype,"displayCount",void 0);B([(0,Y.numberProperty)()],k.prototype,"displayedValuesLimit",void 0);B([(0,Y.jsonProperty)(void 0)],k.prototype,"filteredOptionsNumberAriaNotification",void 0);B([(0,M.property)({type:Boolean})],k.prototype,"hideClearButton",void 0);B([(0,M.query)(".ft-filter--slot")],k.prototype,"slotElement",void 0);B([(0,M.query)(".ft-filter--container")],k.prototype,"container",void 0);B([(0,M.query)(".ft-filter--values")],k.prototype,"valuesContainer",void 0);B([(0,M.query)(".ft-filter--levels")],k.prototype,"levelsContainer",void 0);B([(0,M.state)()],k.prototype,"lastLevelHasHiddenvalues",void 0);B([(0,M.query)(".ft-filter--filter input")],k.prototype,"filterInput",void 0);B([(0,M.queryAll)(".ft-filter--levels ft-filter-level")],k.prototype,"levels",void 0);B([(0,M.state)()],k.prototype,"withScroll",void 0);B([(0,M.state)()],k.prototype,"filter",void 0);B([(0,M.state)()],k.prototype,"slideIn",void 0);B([(0,M.state)()],k.prototype,"slideOut",void 0);var On=f(b()),ur=f($()),Lu=f(L()),jr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Xe=class extends On.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Lu.html`
1512
+ `}goBack(e){this.slideOut=e.detail.value,(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,J.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,J.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Zs(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};k.elementDefinitions={"ft-button":C,"ft-filter-level":K,"ft-snap-scroll":se,"ft-typography":j};k.styles=Vu;H([(0,$.property)({type:String})],k.prototype,"id",void 0);H([(0,$.property)({type:String})],k.prototype,"label",void 0);H([(0,$.property)({type:String})],k.prototype,"filterPlaceHolder",void 0);H([(0,$.property)({type:String})],k.prototype,"clearButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"moreValuesButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"noValuesLabel",void 0);H([(0,J.jsonProperty)([])],k.prototype,"options",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"multivalued",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"raiseSelectedOptions",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"displayCount",void 0);H([(0,J.numberProperty)()],k.prototype,"displayedValuesLimit",void 0);H([(0,J.jsonProperty)(void 0)],k.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"hideClearButton",void 0);H([(0,$.query)(".ft-filter--slot")],k.prototype,"slotElement",void 0);H([(0,$.query)(".ft-filter--container")],k.prototype,"container",void 0);H([(0,$.query)(".ft-filter--values")],k.prototype,"valuesContainer",void 0);H([(0,$.query)(".ft-filter--levels")],k.prototype,"levelsContainer",void 0);H([(0,$.state)()],k.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,$.query)(".ft-filter--filter input")],k.prototype,"filterInput",void 0);H([(0,$.queryAll)(".ft-filter--levels ft-filter-level")],k.prototype,"levels",void 0);H([(0,$.state)()],k.prototype,"withScroll",void 0);H([(0,$.state)()],k.prototype,"filter",void 0);H([(0,$.state)()],k.prototype,"slideIn",void 0);H([(0,$.state)()],k.prototype,"slideOut",void 0);var In=d(g()),sr=d(F()),Hu=d(R()),Nr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Xe=class extends In.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Hu.html`
1513
1513
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1514
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};jr([(0,ur.property)({type:String})],Xe.prototype,"label",void 0);jr([(0,ur.property)({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);jr([(0,ur.property)({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);jr([(0,ur.property)({type:Object})],Xe.prototype,"subOptions",void 0);jr([(0,On.jsonProperty)({})],Xe.prototype,"renderOption",void 0);jr([(0,ur.query)(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var Pu=f(b());var ku={"ft-filter":k,"ft-filter-option":Xe};(0,Pu.customElements)(ku);var Je=Dt.build("designedSearchType"),wn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var Ei=f($());var Ai=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Ze=class extends ot(Ot){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>Je.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>Je.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?dt.MANDATORY:dt.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(Je,wn)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return Du.html`
1514
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};Nr([(0,sr.property)({type:String})],Xe.prototype,"label",void 0);Nr([(0,sr.property)({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);Nr([(0,sr.property)({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);Nr([(0,sr.property)({type:Object})],Xe.prototype,"subOptions",void 0);Nr([(0,In.jsonProperty)({})],Xe.prototype,"renderOption",void 0);Nr([(0,sr.query)(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var ju=d(g());var zu={"ft-filter":k,"ft-filter-option":Xe};(0,ju.customElements)(zu);var Je=Rt.build("designedSearchType"),$n={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var bi=d(F());var vi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ze=class extends st(St){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>Je.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>Je.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?dt.MANDATORY:dt.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(Je,$n)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return qu.html`
1515
1515
  <ft-filter
1516
1516
  label="${Je.messages.label()}"
1517
1517
  clearButtonLabel="${Je.messages.clear()}"
@@ -1522,7 +1522,7 @@
1522
1522
  multivalued
1523
1523
  @change=${()=>this.onSelectionChange()}
1524
1524
  ></ft-filter>
1525
- `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Ze.elementDefinitions={"ft-filter":k};Ze.styles=tu;Ai([(0,Yo.redux)({selector:Ji})],Ze.prototype,"searchInDocumentTitlesOnly",void 0);Ai([(0,Ei.property)({type:Boolean})],Ze.prototype,"hideSearchInDocumentTitlesOnly",void 0);Ai([(0,Yo.redux)({selector:Zi})],Ze.prototype,"matchAllKeywords",void 0);Ai([(0,Ei.property)({type:Boolean})],Ze.prototype,"displayMatchAllKeywords",void 0);Ai([(0,Ei.query)("ft-filter")],Ze.prototype,"filter",void 0);var Iu=f(b());var Nu={"ft-search-type":Ze};(0,Iu.customElements)(Nu);var Mu=f(L()),dr=f(b());var Ap={headerColor:dr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",dr.designSystemVariables.colorOnSurface)},$u=Mu.css`
1525
+ `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Ze.elementDefinitions={"ft-filter":k};Ze.styles=fu;vi([(0,eo.redux)({selector:un})],Ze.prototype,"searchInDocumentTitlesOnly",void 0);vi([(0,bi.property)({type:Boolean})],Ze.prototype,"hideSearchInDocumentTitlesOnly",void 0);vi([(0,eo.redux)({selector:dn})],Ze.prototype,"matchAllKeywords",void 0);vi([(0,bi.property)({type:Boolean})],Ze.prototype,"displayMatchAllKeywords",void 0);vi([(0,bi.query)("ft-filter")],Ze.prototype,"filter",void 0);var Wu=d(g());var Ku={"ft-search-type":Ze};(0,Wu.customElements)(Ku);var Gu=d(R()),or=d(g());var Wp={headerColor:or.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",or.designSystemVariables.colorOnSurface)},Yu=Gu.css`
1526
1526
  [part="container"] {
1527
1527
  flex-grow: 1;
1528
1528
  display: flex;
@@ -1537,7 +1537,7 @@
1537
1537
  overflow: auto;
1538
1538
  display: flex;
1539
1539
  flex-direction: column;
1540
- ${(0,dr.setVariable)(x.lineHeight,"22px")};
1540
+ ${(0,or.setVariable)(v.lineHeight,"22px")};
1541
1541
  }
1542
1542
 
1543
1543
  [part="header"] {
@@ -1547,7 +1547,7 @@
1547
1547
  flex-shrink: 0;
1548
1548
  padding: 0 10px;
1549
1549
  margin-bottom: 8px;
1550
- color: ${Ap.headerColor};
1550
+ color: ${Wp.headerColor};
1551
1551
  }
1552
1552
 
1553
1553
  [part="label"] {
@@ -1555,97 +1555,97 @@
1555
1555
  flex-shrink: 1;
1556
1556
  flex-grow: 1;
1557
1557
  word-break: break-word;
1558
- font-size: ${we.labelFontSize};
1559
- ${(0,dr.setVariable)(x.fontWeight,"bold")};
1558
+ font-size: ${Te.labelFontSize};
1559
+ ${(0,or.setVariable)(v.fontWeight,"bold")};
1560
1560
  }
1561
1561
 
1562
- `;var et=f(L());var Qo=f(b());var me=Dt.build("designedSearchPeriodFilter"),Tn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var pr=f($());var Ft=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Te=class extends ot(Ot){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(me,Tn),this.addStore(C)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,n;return et.html`
1562
+ `;var et=d(R());var to=d(g());var ge=Rt.build("designedSearchPeriodFilter"),Un={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var ar=d(F());var Mt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Re=class extends st(St){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(ge,Un),this.addStore(E)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,s;return et.html`
1563
1563
  <div part="container">
1564
1564
  <div part="header">
1565
1565
  <ft-typography variant="overline" part="label" id="label">
1566
1566
  ${this.header()}
1567
1567
  </ft-typography>
1568
1568
  </div>
1569
- <ft-radio-group @change=${o=>this.setPeriodFilter(o)} aria-labelledby="label">
1569
+ <ft-radio-group @change=${n=>this.setPeriodFilter(n)} aria-labelledby="label">
1570
1570
  <ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
1571
- ${me.messages.anyTime()}
1571
+ ${ge.messages.anyTime()}
1572
1572
  </ft-radio>
1573
1573
  ${this.lessThanAWeek?et.html`
1574
- <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${me.messages.LAST_WEEK()}
1574
+ <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${ge.messages.LAST_WEEK()}
1575
1575
  </ft-radio>`:et.nothing}
1576
1576
  ${this.lessThanAMonth?et.html`
1577
- <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${me.messages.LAST_MONTH()}
1577
+ <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${ge.messages.LAST_MONTH()}
1578
1578
  </ft-radio>`:et.nothing}
1579
1579
  ${this.lessThanAQuarter?et.html`
1580
1580
  <ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_QUARTER"} value="LAST_QUARTER">
1581
- ${me.messages.LAST_QUARTER()}
1581
+ ${ge.messages.LAST_QUARTER()}
1582
1582
  </ft-radio>`:et.nothing}
1583
1583
  ${this.lessThanAYear?et.html`
1584
- <ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${me.messages.LAST_YEAR()}
1584
+ <ft-radio ?checked=${((s=this.dateFilter)===null||s===void 0?void 0:s.type)=="LAST_YEAR"} value="LAST_YEAR">${ge.messages.LAST_YEAR()}
1585
1585
  </ft-radio>`:et.nothing}
1586
1586
  </ft-radio-group>
1587
- </div>`}setPeriodFilter(e){var r,i;let n=Oi[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?me.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Te.elementDefinitions={"ft-radio-group":De,"ft-radio":ie,"ft-typography":V};Te.styles=$u;Ft([(0,pr.property)({type:String})],Te.prototype,"key",void 0);Ft([(0,pr.property)({type:Boolean})],Te.prototype,"lessThanAWeek",void 0);Ft([(0,pr.property)({type:Boolean})],Te.prototype,"lessThanAMonth",void 0);Ft([(0,pr.property)({type:Boolean})],Te.prototype,"lessThanAQuarter",void 0);Ft([(0,pr.property)({type:Boolean})],Te.prototype,"lessThanAYear",void 0);Ft([(0,Qo.redux)({store:"search",selector:t=>t.request.metadataFilters})],Te.prototype,"filters",void 0);Ft([(0,Qo.redux)({store:C.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Te.prototype,"metadataDescriptors",void 0);Ft([(0,pr.property)({attribute:!1})],Te.prototype,"dateFilter",void 0);var Fu=f(b());var Uu={"ft-search-period-filter":Te};(0,Fu.customElements)(Uu);var Bt=Dt.build("designedSearchSelectedFacets"),Bu={filterGroupLabel:"Filters enabled",removeFilterLabel:"Remove filter"};var ut=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ve=class extends(0,K.withAriaNotification)(Da(ot(Ot))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.facets)===null||e===void 0?void 0:e.some(i=>this.getSelectedValues(i).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(i=>i.dateFilter||i.rangeFilter))}get numberOfChips(){return(0,K.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.neededSearchRequests=[Vr.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new K.Debouncer(100),this.addI18nContext(Je,wn),this.addI18nContext(Bt,Bu),this.addI18nContext(me,Tn)}render(){var e,r;return this.hasSomethingToDisplay?re.html`
1588
- <div role="group" class="ft-search-selected-facets--container" aria-label="${Bt.messages.filterGroupLabel()}">
1589
- ${(0,Rn.repeat)(this.facets||[],i=>i.key,i=>{let n=this.getSelectedValues(i);return(0,Rn.repeat)(n,o=>i.key+"-"+o,o=>this.renderFacet(i.key,i.label,n,o))})}
1587
+ </div>`}setPeriodFilter(e){var r,i;let s=Si[e.detail];s?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,s):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?ge.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(s=>s.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Ne,"ft-radio":ne,"ft-typography":j};Re.styles=Yu;Mt([(0,ar.property)({type:String})],Re.prototype,"key",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);Mt([(0,to.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);Mt([(0,to.redux)({store:E.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Re.prototype,"metadataDescriptors",void 0);Mt([(0,ar.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Xu=d(g());var Qu={"ft-search-period-filter":Re};(0,Xu.customElements)(Qu);var It=Rt.build("designedSearchSelectedFacets"),Ju={filterGroupLabel:"Filters enabled",removeFilterLabel:"Remove filter"};var ut=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ve=class extends(0,W.withAriaNotification)(qa(st(St))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.facets)===null||e===void 0?void 0:e.some(i=>this.getSelectedValues(i).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(i=>i.dateFilter||i.rangeFilter))}get numberOfChips(){return(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.neededSearchRequests=[Ir.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new W.Debouncer(100),this.addI18nContext(Je,$n),this.addI18nContext(It,Ju),this.addI18nContext(ge,Un)}render(){var e,r;return this.hasSomethingToDisplay?ie.html`
1588
+ <div role="group" class="ft-search-selected-facets--container" aria-label="${It.messages.filterGroupLabel()}">
1589
+ ${(0,Fn.repeat)(this.facets||[],i=>i.key,i=>{let s=this.getSelectedValues(i);return(0,Fn.repeat)(s,n=>i.key+"-"+n,n=>this.renderFacet(i.key,i.label,s,n))})}
1590
1590
  ${this.renderSearchScope()}
1591
- ${(0,Rn.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1591
+ ${(0,Fn.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1592
1592
  </div>
1593
- `:re.nothing}renderFacet(e,r,i,n){if(e==="ft:publicationId")return re.nothing;let o=e.replace(":","-"),s=this.getLabelFromValue(e,n),a=this.getBreadcrumbFromValue(e,n),l=r+": "+a,c=!this.forceTooltip&&this.displayLabel&&a==s,u=re.html`
1593
+ `:ie.nothing}renderFacet(e,r,i,s){if(e==="ft:publicationId")return ie.nothing;let n=e.replace(":","-"),o=this.getLabelFromValue(e,s),a=this.getBreadcrumbFromValue(e,s),l=r+": "+a,c=!this.forceTooltip&&this.displayLabel&&a==o,u=ie.html`
1594
1594
  <ft-chip
1595
- part="ft-search-selected-facets ft-search-selected-facet-${o}"
1595
+ part="ft-search-selected-facets ft-search-selected-facet-${n}"
1596
1596
  removable hideIconTooltip
1597
- iconLabel="${Bt.messages.removeFilterLabel()}"
1597
+ iconLabel="${It.messages.removeFilterLabel()}"
1598
1598
  label="${l}"
1599
- @icon-click=${d=>{var p;(p=this.stateManager)===null||p===void 0||p.setValueFilter(e,i.filter(h=>h!==n)),this.determineAndApplyFocus(d)}}
1599
+ @icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==s)),this.determineAndApplyFocus(p)}}
1600
1600
  ?multiLine=${this.multiLine}
1601
1601
  data-key="${e}"
1602
- data-value="${n}">
1603
- ${this.displayLabel?re.html`
1604
- <span part="label">${r}: </span>`:re.nothing}
1602
+ data-value="${s}">
1603
+ ${this.displayLabel?ie.html`
1604
+ <span part="label">${r}: </span>`:ie.nothing}
1605
1605
  <span part="values">
1606
- ${s}
1606
+ ${o}
1607
1607
  </span>
1608
- </ft-chip>`;return c?u:re.html`
1608
+ </ft-chip>`;return c?u:ie.html`
1609
1609
  <ft-tooltip inline text="${l}"
1610
- part="tooltips tooltip-${o}">
1610
+ part="tooltips tooltip-${n}">
1611
1611
  ${u}
1612
1612
  </ft-tooltip>
1613
- `}getNextChipToFocusOn(e){let r=(0,K.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new K.FocusMainContentEvent)}getSelectedValues(e){return(0,K.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let n=this.getDateFormatter(e);return n?n(r):(0,K.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return re.html`
1613
+ `}getNextChipToFocusOn(e){let r=(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new W.FocusMainContentEvent)}getSelectedValues(e){return(0,W.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let s=this.getDateFormatter(e);return s?s(r):(0,W.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ie.html`
1614
1614
  ${this.renderSearchInDocumentTitlesOnly()}
1615
1615
  ${this.renderKeywordMatch()}
1616
- `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return re.nothing;let e=Je.messages.documentTitlesOnly(),r=re.html`
1616
+ `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return ie.nothing;let e=Je.messages.documentTitlesOnly(),r=ie.html`
1617
1617
  <ft-chip
1618
1618
  part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
1619
1619
  label="${e}"
1620
1620
  removable
1621
1621
  hideIconTooltip
1622
- iconLabel="${Bt.messages.removeFilterLabel()}"
1623
- @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1622
+ iconLabel="${It.messages.removeFilterLabel()}"
1623
+ @icon-click=${i=>{var s;(s=this.stateManager)===null||s===void 0||s.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1624
1624
  ?multiLine=${this.multiLine}>
1625
1625
  <span part="values">
1626
1626
  ${e}
1627
1627
  </span>
1628
- </ft-chip>`;return this.forceTooltip?re.html`
1628
+ </ft-chip>`;return this.forceTooltip?ie.html`
1629
1629
  <ft-tooltip inline text="${e}"
1630
1630
  part="tooltips tooltip-search-in-document-titles-only">
1631
1631
  ${r}
1632
- </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return re.nothing;let e=Je.messages.matchAllKeywords(),r=re.html`
1632
+ </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return ie.nothing;let e=Je.messages.matchAllKeywords(),r=ie.html`
1633
1633
  <ft-chip
1634
1634
  part="ft-search-selected-facets ft-search-selected-facet-match-all-keywords"
1635
1635
  label="${e}"
1636
1636
  removable
1637
1637
  hideIconTooltip
1638
- iconLabel="${Bt.messages.removeFilterLabel()}"
1639
- @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setKeywordMatch(dt.OPTIONAL),this.determineAndApplyFocus(i)}}
1638
+ iconLabel="${It.messages.removeFilterLabel()}"
1639
+ @icon-click=${i=>{var s;(s=this.stateManager)===null||s===void 0||s.setKeywordMatch(dt.OPTIONAL),this.determineAndApplyFocus(i)}}
1640
1640
  ?multiLine=${this.multiLine}>
1641
1641
  <span part="values">
1642
1642
  ${e}
1643
1643
  </span>
1644
- </ft-chip>`;return this.forceTooltip?re.html`
1644
+ </ft-chip>`;return this.forceTooltip?ie.html`
1645
1645
  <ft-tooltip inline text="${e}"
1646
1646
  part="tooltips tooltip-match-all-keywords">
1647
1647
  ${r}
1648
- </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):re.nothing}renderDateFilter(e,r){let i=me.messages.period(me.messages[r.type]());return re.html`
1648
+ </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ie.nothing}renderDateFilter(e,r){let i=ge.messages.period(ge.messages[r.type]());return ie.html`
1649
1649
  <ft-tooltip inline text="${i}"
1650
1650
  part=" tooltips tooltip-search-period-filter">
1651
1651
  <ft-chip
@@ -1653,28 +1653,28 @@
1653
1653
  removable
1654
1654
  hideIconTooltip
1655
1655
  label="${i}"
1656
- iconLabel="${Bt.messages.removeFilterLabel()}"
1657
- @icon-click=${n=>{var o;(o=this.stateManager)===null||o===void 0||o.removeDateFilter(e),this.determineAndApplyFocus(n)}}
1656
+ iconLabel="${It.messages.removeFilterLabel()}"
1657
+ @icon-click=${s=>{var n;(n=this.stateManager)===null||n===void 0||n.removeDateFilter(e),this.determineAndApplyFocus(s)}}
1658
1658
  ?multiLine=${this.multiLine}>
1659
1659
  <span part="values">
1660
- ${me.messages[r.type]()}
1660
+ ${ge.messages[r.type]()}
1661
1661
  </span>
1662
1662
  </ft-chip>
1663
- </ft-tooltip>`}renderRangeFilter(e,r){let i=me.messages.period(me.messages.customPeriod(r.from,r.to));return re.html`
1663
+ </ft-tooltip>`}renderRangeFilter(e,r){let i=ge.messages.period(ge.messages.customPeriod(r.from,r.to));return ie.html`
1664
1664
  <ft-tooltip inline text="${i}" part=" tooltips tooltip-search-period-filter">
1665
1665
  <ft-chip
1666
1666
  part="ft-search-selected-facets ft-search-selected-facet-period-filter"
1667
1667
  label="${i}"
1668
1668
  removable
1669
1669
  hideIconTooltip
1670
- iconLabel="${Bt.messages.removeFilterLabel()}"
1671
- @icon-click=${n=>{var o;(o=this.stateManager)===null||o===void 0||o.removeRangeFilter(e),this.determineAndApplyFocus(n)}}
1670
+ iconLabel="${It.messages.removeFilterLabel()}"
1671
+ @icon-click=${s=>{var n;(n=this.stateManager)===null||n===void 0||n.removeRangeFilter(e),this.determineAndApplyFocus(s)}}
1672
1672
  ?multiLine=${this.multiLine}>
1673
1673
  <span part="values">
1674
- ${me.messages.CUSTOM()}
1674
+ ${ge.messages.CUSTOM()}
1675
1675
  </span>
1676
1676
  </ft-chip>
1677
- </ft-tooltip>`}updated(e){var r,i,n,o;if(super.updated(e),e.get("filters")){let s=(i=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&i!==void 0?i:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(s-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let s=(o=(n=this.facets)===null||n===void 0?void 0:n.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&o!==void 0?o:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(s-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let s=e.get("searchInDocumentTitlesOnly");(!s&&this.searchInDocumentTitlesOnly||s&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let s=e.get("keywordMatch");(!s&&this.keywordMatch||s&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ve.elementDefinitions={"ft-chip":z,"ft-tooltip":G};ve.styles=ns;ut([(0,_n.property)({type:Boolean})],ve.prototype,"displayLabel",void 0);ut([(0,_n.property)({type:Boolean})],ve.prototype,"forceTooltip",void 0);ut([(0,_n.property)({type:Boolean})],ve.prototype,"multiLine",void 0);ut([(0,K.numberProperty)()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);ut([(0,K.redux)({store:"search"})],ve.prototype,"facets",void 0);ut([(0,K.redux)({store:"search",selector:Ji})],ve.prototype,"searchInDocumentTitlesOnly",void 0);ut([(0,K.redux)({store:"search",selector:Zi})],ve.prototype,"keywordMatch",void 0);ut([(0,K.redux)({store:"search",selector:t=>t.request.metadataFilters})],ve.prototype,"filters",void 0);ut([(0,K.redux)({store:"search",selector:t=>t.request.scope})],ve.prototype,"scope",void 0);ut([(0,K.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ve.prototype,"selectedFacetsAriaNotification",void 0);var Hu={"ft-search-selected-facets":ve};(0,ju.customElements)(Hu);})();
1677
+ </ft-tooltip>`}updated(e){var r,i,s,n;if(super.updated(e),e.get("filters")){let o=(i=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&i!==void 0?i:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(n=(s=this.facets)===null||s===void 0?void 0:s.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&n!==void 0?n:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ve.elementDefinitions={"ft-chip":q,"ft-tooltip":X};ve.styles=co;ut([(0,Bn.property)({type:Boolean})],ve.prototype,"displayLabel",void 0);ut([(0,Bn.property)({type:Boolean})],ve.prototype,"forceTooltip",void 0);ut([(0,Bn.property)({type:Boolean})],ve.prototype,"multiLine",void 0);ut([(0,W.numberProperty)()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);ut([(0,W.redux)({store:"search"})],ve.prototype,"facets",void 0);ut([(0,W.redux)({store:"search",selector:un})],ve.prototype,"searchInDocumentTitlesOnly",void 0);ut([(0,W.redux)({store:"search",selector:dn})],ve.prototype,"keywordMatch",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.metadataFilters})],ve.prototype,"filters",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.scope})],ve.prototype,"scope",void 0);ut([(0,W.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ve.prototype,"selectedFacetsAriaNotification",void 0);var Zu={"ft-search-selected-facets":ve};(0,ed.customElements)(Zu);})();
1678
1678
  /*! Bundled license information:
1679
1679
 
1680
1680
  @lit/reactive-element/css-tag.js: