@fluid-topics/ft-search-result-title 2.2.2 → 2.2.3

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,10 +1,10 @@
1
- "use strict";(()=>{var Ji=Object.create;var rn=Object.defineProperty;var Zi=Object.getOwnPropertyDescriptor;var ea=Object.getOwnPropertyNames;var ta=Object.getPrototypeOf,ra=Object.prototype.hasOwnProperty;var rt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ea(t))!ra.call(e,s)&&s!==r&&rn(e,s,{get:()=>t[s],enumerable:!(n=Zi(t,s))||n.enumerable});return e};var m=(e,t,r)=>(r=e!=null?Ji(ta(e)):{},na(t||!e||!e.__esModule?rn(r,"default",{value:e,enumerable:!0}):r,e));var _=rt((_o,nn)=>{nn.exports=ftGlobals.wcUtils});var re=rt((xo,sn)=>{sn.exports=ftGlobals.lit});var z=rt((Co,an)=>{an.exports=ftGlobals.litDecorators});var Hi=rt((op,$i)=>{$i.exports=ftGlobals.litUnsafeHTML});var Qi=m(_());var tt=m(re()),zi=m(z()),Ki=m(_());var Qt=m(_());var xe=m(_()),Ur=m(z());var Zt;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}));var pe=m(_());var sa=m(_());var on;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(on||(on={}));var cn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cn||(cn={}));var ln;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ln||(ln={}));var un;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(un||(un={}));var dn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(dn||(dn={}));var pn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(pn||(pn={}));var hn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(hn||(hn={}));var fn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(fn||(fn={}));var mn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(mn||(mn={}));var yn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(yn||(yn={}));var gn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(gn||(gn={}));var Sn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sn||(Sn={}));var En;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(En||(En={}));var vn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(vn||(vn={}));var An;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(An||(An={}));var bn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(bn||(bn={}));var er;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(er||(er={}));var _n;(function(e){e.ASC="ASC",e.DESC="DESC"})(_n||(_n={}));var xn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(xn||(xn={}));var tr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(tr||(tr={}));var Cn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Cn||(Cn={}));var nt;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(nt||(nt={}));var wn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(wn||(wn={}));var Tn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Tn||(Tn={}));var On;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(On||(On={}));var rr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rr||(rr={}));var Rn;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Rn||(Rn={}));var w;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(w||(w={}));var H;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(H||(H={}));var In;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(In||(In={}));var Mn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Mn||(Mn={}));var Nn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Nn||(Nn={}));var kn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(kn||(kn={}));var Dn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Dn||(Dn={}));var Ln;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ln||(Ln={}));var Pn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Pn||(Pn={}));var Fn;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Fn||(Fn={}));var Un;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Un||(Un={}));var $n;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})($n||($n={}));var Hn;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Hn||(Hn={}));var Bn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Bn||(Bn={}));var ia={[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 Vn(e,t){return e===t||(ia[e]??[]).some(r=>Vn(r,t))}function nr(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Vn(n,t))}var Cr=m(z());var jn=m(z(),1);var sr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qn(e,t){return(0,jn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ue(e);try{return JSON.parse(r)}catch{return Ue(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:$e,...t??{}})}function aa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ge(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!ge(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!ge(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ge(e,t){try{return aa(e,t)}catch{return!1}}function $e(e,t){return!ge(e,t)}function Ue(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function st(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var zn=m(z(),1);var ir=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:$e,attribute:!1,...t};(0,zn.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var it=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ne=m(z(),1);var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){s(o);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wn=m(re(),1);var ot=globalThis,oa=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Kn=(e,t)=>{if(oa)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=ot.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var ct=class extends Wn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Kn(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){sr(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Gn(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ee=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Jn,Qn=Symbol("constructorPrototype"),Yn=Symbol("constructorName"),Zn=Symbol("exportpartsDebouncer"),Xn=Symbol("dynamicDependenciesLoaded"),Se=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Se.eventName="exportparts-updated";var K=class extends ct{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Jn]=new at(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Zn].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Yn]=this.constructor.name,this[Qn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Yn]&&Object.setPrototypeOf(this,this[Qn])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Xn]||(r[Xn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Se.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Se.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Se)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Gn(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,a,o;let c=h=>h!=null&&h.trim().length>0,l=t.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(s=h.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],v=(o=(a=h.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],R=[...S,...v].filter(c).map(E=>E.trim());for(let E of R)u.add(E)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(S=>`${h}:${S}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};Jn=Zn;Ee([(0,ne.property)()],K.prototype,"exportpartsPrefix",void 0);Ee([qn([])],K.prototype,"exportpartsPrefixes",void 0);Ee([(0,ne.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ee([(0,ne.property)()],K.prototype,"customStylesheet",void 0);Ee([(0,ne.property)()],K.prototype,"elementToFocus",void 0);Ee([(0,ne.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function lt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var He=Symbol("internalReduxEventsUnsubscribers"),Z=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ca=st(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[se].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[se].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[se].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[Z].has(a.store):this[Z].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[Z].set(a,o.subscribe(()=>this.updateFromStores())),this[He].set(a,[]),lt(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let d=h=>this[u](h);o.addEventListener(l.eventName,d),this[He].get(a).push(()=>o.removeEventListener(l.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Z].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[Z].has(a)&&this[Z].get(a)(),this[Z].delete(a),(o=this[He].get(a))===null||o===void 0||o.forEach(c=>c()),this[He].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Z,r=se,n=He,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),es=class extends ca(K){};function M(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var la=typeof Symbol=="function"&&Symbol.observable||"@@observable",ts=la,ar=()=>Math.random().toString(36).substring(7).split("").join("."),ua={INIT:`@@redux/INIT${ar()}`,REPLACE:`@@redux/REPLACE${ar()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ar()}`},ut=ua;function dt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function or(e,t,r){if(typeof e!="function")throw new Error(M(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(M(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(M(1));return r(or)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((E,I)=>{a.set(I,E)}))}function u(){if(c)throw new Error(M(3));return s}function d(E){if(typeof E!="function")throw new Error(M(4));if(c)throw new Error(M(5));let I=!0;l();let F=o++;return a.set(F,E),function(){if(I){if(c)throw new Error(M(6));I=!1,l(),a.delete(F),i=null}}}function h(E){if(!dt(E))throw new Error(M(7));if(typeof E.type>"u")throw new Error(M(8));if(typeof E.type!="string")throw new Error(M(17));if(c)throw new Error(M(9));try{c=!0,s=n(s,E)}finally{c=!1}return(i=a).forEach(F=>{F()}),E}function S(E){if(typeof E!="function")throw new Error(M(10));n=E,h({type:ut.REPLACE})}function v(){let E=d;return{subscribe(I){if(typeof I!="object"||I===null)throw new Error(M(11));function F(){let A=I;A.next&&A.next(u())}return F(),{unsubscribe:E(F)}},[ts](){return this}}}return h({type:ut.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:S,[ts]:v}}function da(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ut.INIT})>"u")throw new Error(M(12));if(typeof r(void 0,{type:ut.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(M(13))})}function rs(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{da(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let h=n[d],S=r[h],v=o[h],R=S(v,c);if(typeof R>"u"){let E=c&&c.type;throw new Error(M(14))}u[h]=R,l=l||R!==v}return l=l||n.length!==Object.keys(o).length,l?u:o}}function Be(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ns(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(M(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=Be(...o)(s.dispatch),{...s,dispatch:i}}}function ss(e){return dt(e)&&"type"in e&&typeof e.type=="string"}var hs=Symbol.for("immer-nothing"),is=Symbol.for("immer-draftable"),k=Symbol.for("immer-state");function j(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,Ae=U.getPrototypeOf,mt="constructor",At="prototype",dr="configurable",yt="enumerable",ht="writable",Ve="value",W=e=>!!e&&!!e[k];function $(e){return e?fs(e)||_t(e)||!!e[is]||!!e[mt]?.[is]||xt(e)||Ct(e):!1}var pa=U[At][mt].toString(),as=new WeakMap;function fs(e){if(!e||!Er(e))return!1;let t=Ae(e);if(t===null||t===U[At])return!0;let r=U.hasOwnProperty.call(t,mt)&&t[mt];if(r===Object)return!0;if(!ve(r))return!1;let n=as.get(r);return n===void 0&&(n=Function.toString.call(r),as.set(r,n)),n===pa}function bt(e,t,r=!0){ze(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function ze(e){let t=e[k];return t?t.type_:_t(e)?1:xt(e)?2:Ct(e)?3:0}var cr=(e,t,r=ze(e))=>r===2?e.has(t):U[At].hasOwnProperty.call(e,t),pr=(e,t,r=ze(e))=>r===2?e.get(t):e[t],gt=(e,t,r,n=ze(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ha(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _t=Array.isArray,xt=e=>e instanceof Map,Ct=e=>e instanceof Set,Er=e=>typeof e=="object",ve=e=>typeof e=="function",lr=e=>typeof e=="boolean";function fa(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var G=e=>e.copy_||e.base_;var vr=e=>e.modified_?e.copy_:e.base_;function hr(e,t){if(xt(e))return new Map(e);if(Ct(e))return new Set(e);if(_t(e))return Array[At].slice.call(e);let r=fs(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[k];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[ht]===!1&&(o[ht]=!0,o[dr]=!0),(o.get||o.set)&&(n[a]={[dr]:!0,[ht]:!0,[yt]:o[yt],[Ve]:e[a]})}return U.create(Ae(e),n)}else{let n=Ae(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function Ar(e,t=!1){return wt(e)||W(e)||!$(e)||(ze(e)>1&&U.defineProperties(e,{set:pt,add:pt,clear:pt,delete:pt}),U.freeze(e),t&&bt(e,(r,n)=>{Ar(n,!0)},!1)),e}function ma(){j(2)}var pt={[Ve]:ma};function wt(e){return e===null||!Er(e)?!0:U.isFrozen(e)}var St="MapSet",fr="Patches",os="ArrayMethods",ms={};function ie(e){let t=ms[e];return t||j(0,e),t}var cs=e=>!!ms[e];var je,ys=()=>je,ya=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:cs(St)?ie(St):void 0,arrayMethodsPlugin_:cs(os)?ie(os):void 0});function ls(e,t){t&&(e.patchPlugin_=ie(fr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mr(e){yr(e),e.drafts_.forEach(ga),e.drafts_=null}function yr(e){e===je&&(je=e.parent_)}var us=e=>je=ya(je,e);function ga(e){let t=e[k];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ds(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[k].modified_&&(mr(t),j(4)),$(e)&&(e=ps(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[k].base_,e,t)}else e=ps(t,r);return Sa(t,e,!0),mr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hs?e:void 0}function ps(e,t){if(wt(t))return t;let r=t[k];if(!r)return Et(t,e.handledSet_,e);if(!Tt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Es(r,e)}return r.copy_}function Sa(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ar(t,r)}function gs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Tt=(e,t)=>e.scope_===t,Ea=[];function Ss(e,t,r,n){let s=G(e),i=e.type_;if(n!==void 0&&pr(s,n,i)===t){gt(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;bt(s,(c,l)=>{if(W(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??Ea;for(let o of a)gt(s,o,r,i)}function va(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Tt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=vr(i);Ss(e,i.draft_??i,a,r),Es(i,s)})}function Es(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}gs(e)}}function Aa(e,t,r){let{scope_:n}=e;if(W(r)){let s=r[k];Tt(s,n)&&s.callbacks_.push(function(){ft(e);let a=vr(s);Ss(e,r,a,t)})}else $(r)&&e.callbacks_.push(function(){let i=G(e);e.type_===3?i.has(r)&&Et(r,n.handledSet_,n):pr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Et(pr(e.copy_,t,e.type_),n.handledSet_,n)})}function Et(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||W(e)||t.has(e)||!$(e)||wt(e)||(t.add(e),bt(e,(n,s)=>{if(W(s)){let i=s[k];if(Tt(i,r)){let a=vr(i);gt(e,n,a,e.type_),gs(i)}}else $(s)&&Et(s,t,r)})),e}function ba(e,t){let r=_t(e),n={type_:r?1:0,scope_:t?t.scope_:ys(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=vt;r&&(s=[n],i=qe);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var vt={get(e,t){if(t===k)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=G(e);if(!cr(s,t,e.type_))return xa(e,s,t);let i=s[t];if(e.finalized_||!$(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&fa(t))return i;if(i===ur(e.base_,t)||_a(e,t,i)){ft(e);let a=e.type_===1?+t:t,o=Sr(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in G(e)},ownKeys(e){return Reflect.ownKeys(G(e))},set(e,t,r){let n=vs(G(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=ur(G(e),t),i=s?.[k];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ha(r,s)&&(r!==void 0||cr(e.base_,t,e.type_)))return!0;ft(e),gr(e)}return e.copy_[t]===r&&(r!==void 0||cr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Aa(e,t,r)),!0},deleteProperty(e,t){return ft(e),ur(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),gr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=G(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ht]:!0,[dr]:e.type_!==1||t!=="length",[yt]:n[yt],[Ve]:r[t]}},defineProperty(){j(11)},getPrototypeOf(e){return Ae(e.base_)},setPrototypeOf(){j(12)}},qe={};for(let e in vt){let t=vt[e];qe[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}qe.deleteProperty=function(e,t){return qe.set.call(this,e,t,void 0)};qe.set=function(e,t,r){return vt.set.call(this,e[0],t,r,e[0])};function ur(e,t){let r=e[k];return(r?G(r):e)[t]}function _a(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(r)||r[k]?!1:e.baseRefs_.has(r)}function xa(e,t,r){let n=vs(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function vs(e,t){if(!(t in e))return;let r=Ae(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ae(r)}}function gr(e){e.modified_||(e.modified_=!0,e.parent_&&gr(e.parent_))}function ft(e){e.copy_||(e.assigned_=new Map,e.copy_=hr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ca=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ve(t)&&!ve(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}ve(r)||j(6),n!==void 0&&!ve(n)&&j(7);let s;if($(t)){let i=us(this),a=Sr(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?mr(i):yr(i)}return ls(i,n),ds(s,i)}else if(!t||!Er(t)){if(s=r(t),s===void 0&&(s=t),s===hs&&(s=void 0),this.autoFreeze_&&Ar(s,!0),n){let i=[],a=[];ie(fr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else j(1,t)},this.produceWithPatches=(t,r)=>{if(ve(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},lr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),lr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),lr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||j(8),W(e)&&(e=As(e));let t=us(this),r=Sr(t,e,void 0);return r[k].isManual_=!0,yr(t),r}finishDraft(e,t){let r=e&&e[k];(!r||!r.isManual_)&&j(9);let{scope_:n}=r;return ls(n,t),ds(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ie(fr).applyPatches_;return W(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Sr(e,t,r,n){let[s,i]=xt(t)?ie(St).proxyMap_(t,r):Ct(t)?ie(St).proxySet_(t,r):ba(t,r);return(r?.scope_??ys()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?va(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function As(e){return W(e)||j(10,e),bs(e)}function bs(e){if(!$(e)||wt(e))return e;let t=e[k],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=hr(e,!0);return bt(r,(s,i)=>{gt(r,s,bs(i))},n),t&&(t.finalized_=!1),r}var wa=new Ca,br=wa.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var xs=_s(),Cs=_s;var Ta=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},Ac=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Oa=e=>e&&typeof e.match=="function";function ee(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(Q(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ss(n)&&n.type===e,r}var Is=class Ke extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ke.prototype)}static get[Symbol.species](){return Ke}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ke(...t[0].concat(this)):new Ke(...t.concat(this))}};function ws(e){return $(e)?br(e,()=>{}):e}function Ot(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Ra(e){return typeof e=="boolean"}var Ia=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new Is;return r&&(Ra(r)?a.push(xs):a.push(Cs(r.extraArgument))),a},Ma="RTK_autoBatch";var Ts=e=>t=>{setTimeout(t,e)},Na=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},ka=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Na(window.requestAnimationFrame,100):Ts(10):e.type==="callback"?e.queueNotification:Ts(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),h=n.subscribe(d);return o.add(u),()=>{h(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ma],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Da=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Is(e);return n&&s.push(ka(typeof n=="object"?n:void 0)),s};function Ms(e){let t=Ia(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(dt(r))c=rs(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=Be;s&&(u=Ta({trace:!1,...typeof s=="object"&&s}));let d=ns(...l),h=Da(d),S=typeof o=="function"?o(h):h(),v=u(...S);return or(c,a,v)}function Ns(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(Q(28));if(o in t)throw new Error(Q(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function La(e){return typeof e=="function"}function Pa(e,t){let[r,n,s]=Ns(t),i;if(La(e))i=()=>ws(e());else{let o=ws(e);i=()=>o}function a(o=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(W(u)){let S=d(u,c);return S===void 0?u:S}else{if($(u))return br(u,h=>d(h,c));{let h=d(u,c);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},o)}return a.getInitialState=i,a}var Fa=(e,t)=>Oa(e)?e.match(t):e(t);function Ua(...e){return t=>e.some(r=>Fa(r,t))}var $a="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ha=(e=21)=>{let t="",r=e;for(;r--;)t+=$a[Math.random()*64|0];return t},Ba=["name","message","stack","code"],_r=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Os=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Va=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Ba)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Rs="External signal was aborted",ja=(()=>{function e(t,r,n){let s=ee(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ee(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ee(t+"/rejected",(c,l,u,d,h)=>({payload:d,error:(n&&n.serializeError||Va)(c||"Rejected"),meta:{...h||{},arg:u,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,d,h)=>{let S=n?.idGenerator?n.idGenerator(c):Ha(),v=new AbortController,R,E;function I(g){E=g,v.abort()}l&&(l.aborted?I(Rs):l.addEventListener("abort",()=>I(Rs),{once:!0}));let F=(async function(){let g;try{let b=n?.condition?.(c,{getState:d,extra:h});if(za(b)&&(b=await b),b===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let q=new Promise((C,T)=>{R=()=>{T({name:"AbortError",message:E||"Aborted"})},v.signal.addEventListener("abort",R,{once:!0})});u(i(S,c,n?.getPendingMeta?.({requestId:S,arg:c},{getState:d,extra:h}))),g=await Promise.race([q,Promise.resolve(r(c,{dispatch:u,getState:d,extra:h,requestId:S,signal:v.signal,abort:I,rejectWithValue:((C,T)=>new _r(C,T)),fulfillWithValue:((C,T)=>new Os(C,T))})).then(C=>{if(C instanceof _r)throw C;return C instanceof Os?s(C.payload,S,c,C.meta):s(C,S,c)})])}catch(b){g=b instanceof _r?a(null,S,c,b.payload,b.meta):a(b,S,c)}finally{R&&v.signal.removeEventListener("abort",R)}return n&&!n.dispatchConditionRejection&&a.match(g)&&g.meta.condition||u(g),g})();return Object.assign(F,{abort:I,requestId:S,arg:c,unwrap(){return F.then(qa)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:Ua(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function qa(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function za(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ks=Symbol.for("rtk-slice-createasyncthunk"),_c={[ks]:ja};function Ka(e,t){return`${e}/${t}`}function Wa({creators:e}={}){let t=e?.asyncThunk?.[ks];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(Qa()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(g,A){let b=typeof g=="string"?g:g.type;if(!b)throw new Error(Q(12));if(b in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[b]=A,l},addMatcher(g,A){return c.sliceMatchers.push({matcher:g,reducer:A}),l},exposeAction(g,A){return c.actionCreators[g]=A,l},exposeCaseReducer(g,A){return c.sliceCaseReducersByName[g]=A,l}};o.forEach(g=>{let A=a[g],b={reducerName:g,type:Ka(s,g),createNotation:typeof n.reducers=="function"};Xa(A)?Za(b,A,l,t):Ya(b,A,l)});function u(){let[g={},A=[],b=void 0]=typeof n.extraReducers=="function"?Ns(n.extraReducers):[n.extraReducers],q={...g,...c.sliceCaseReducersByType};return Pa(n.initialState,C=>{for(let T in q)C.addCase(T,q[T]);for(let T of c.sliceMatchers)C.addMatcher(T.matcher,T.reducer);for(let T of A)C.addMatcher(T.matcher,T.reducer);b&&C.addDefaultCase(b)})}let d=g=>g,h=new Map,S=new WeakMap,v;function R(g,A){return v||(v=u()),v(g,A)}function E(){return v||(v=u()),v.getInitialState()}function I(g,A=!1){function b(C){let T=C[g];return typeof T>"u"&&A&&(T=Ot(S,b,E)),T}function q(C=d){let T=Ot(h,A,()=>new WeakMap);return Ot(T,C,()=>{let tn={};for(let[Yi,Xi]of Object.entries(n.selectors??{}))tn[Yi]=Ga(Xi,C,()=>Ot(S,C,E),A);return tn})}return{reducerPath:g,getSelectors:q,get selectors(){return q(b)},selectSlice:b}}let F={name:s,reducer:R,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...I(i),injectInto(g,{reducerPath:A,...b}={}){let q=A??i;return g.inject({reducerPath:q,reducer:R},b),{...F,...I(q,!0)}}};return F}}function Ga(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Ds=Wa();function Qa(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Ya({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!Ja(n))throw new Error(Q(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ee(e,a):ee(e))}function Xa(e){return e._reducerDefinitionType==="asyncThunk"}function Ja(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Za({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),o&&n.addCase(d.pending,o),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:a||Rt,pending:o||Rt,rejected:c||Rt,settled:l||Rt})}function Rt(){}var Ls="listener",Ps="completed",Fs="cancelled",xc=`task-${Fs}`,Cc=`task-${Ps}`,wc=`${Ls}-${Fs}`,Tc=`${Ls}-${Ps}`;var{assign:Us}=Object;var xr="listenerMiddleware";var eo=Us(ee(`${xr}/add`),{withTypes:()=>eo}),Oc=ee(`${xr}/removeAll`),to=Us(ee(`${xr}/remove`),{withTypes:()=>to});function Q(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ro=st(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),It=class extends ro(Object){};window.ftReduxStores||(window.ftReduxStores={});var $s=class e extends It{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(lt(i))return i;if(s==null)return;let a=Ds({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=Ms({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ue(a.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new it,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let d=l(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=c,h=this.getState()[d];ge(h,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}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 Mt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Nt=m(_()),no="ft-app-info",ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ae.eventName="authentication-change";var We=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};We.eventName="ui-locale-changed";var so={session:(e,t)=>{(0,Nt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>y.dispatchEvent(new ae(t.payload)),0))}},y=Nt.FtReduxStore.get({name:no,reducers:so,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 Hs=m(_()),kt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},sl=(0,Hs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Mt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kt([(0,Cr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),kt([(0,Cr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),kt([ir({store:y.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),kt([ir({store:y.name})],t.prototype,"uiLocale",void 0),t});var Ut=m(_());var wr=m(_());var oe=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=y.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=y.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var be=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:oe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):oe.await()}};var L=class extends be{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new wr.CacheRegistry,this.cache=t?s.commonCache:new wr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Dt=class extends L{async listMySearches(){let{session:t}=y.getState();return nr(t,w.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Lt=class extends L{async listMyBookmarks(){let t=y.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Pt=class extends L{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=y.getState().session;return!!t?.sessionAuthenticated}};var Ft=class extends L{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 t=y.getState().session;return!!t?.sessionAuthenticated}};var io="ft-user-assets",ao={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(H).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Or(e,r,[...Tr(e,r),s]),Bs(e,r,1,n),Vs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Or(e,r,Tr(e,r).map(s=>s.id===n.id?n:s)),Vs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Or(e,r,Tr(e,r).filter(i=>i.id!==s)),Bs(e,r,-1,n)}},js={[H.SEARCHES]:"savedSearches",[H.BOOKMARKS]:"bookmarks",[H.BOOKS]:void 0,[H.COLLECTIONS]:void 0},Tr=(e,t)=>{var r;let n=js[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Or=(e,t,r)=>{let n=js[t];n&&(e[n]=r)},Bs=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===H.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Vs=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},D=Ut.FtReduxStore.get({name:io,reducers:ao,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(H).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rr=class{constructor(t=new Pt,r=new Ft){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Lt,this.savedSearchesService=new Dt,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=y.getState();(0,Ut.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&D.getState().assetCounts.allAsset[t]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&D.getState().assetCounts.bookmarkByMap[t]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;t===H.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(r)}}},oo=new Rr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=oo);var Ir=class{addCommand(t,r=!1){y.commands.add(t,r)}consumeCommand(t){return y.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ir;var B=m(_());var qs,_e=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},co=Symbol("clearAfterUnitTest"),$t=class extends(0,B.withEventBus)(L){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new B.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=y.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,B.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),a=this.resolveContext(i);return new B.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof B.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new _e({loadedContexts:t})),this.dispatchEvent(new _e({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new _e({loadedContexts:[t]})),this.dispatchEvent(new _e({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,B.delay)(0).then(()=>n()).catch(()=>null)))}};qs=co;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $t{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $t{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zs=window.FluidTopicsI18nService,$l=window.FluidTopicsCustomI18nService;var Ks=m(_()),Mr=class{highlightHtml(t,r,n){(0,Ks.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Mr;var Ws=m(_());var Nr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=y.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return Ws.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new Nr;var Gs=m(_());var Ge=class{static get(t,r){var n,s,i,a;let o=y.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Gs.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var kr=class{urlToSearchRequest(t){return Ge.get().parse(t)}searchRequestToUrl(t){return Ge.get().serialize(t)}};window.FluidTopicsUrlService=new kr;var Y=m(_());var ce=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ce.eventName="change";var Dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Qs=new Dr;var Ht=class e extends Y.WithEventBus{static build(){return new e(window.history,Qs,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ce(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...i,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(s,[l,a,o]),this.setCurrentState(l,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ce.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ce.eventName,t)}currentItem(){return(0,Y.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Y.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ht.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ys=m(re());var Xs=Ys.css`
2
- `;var Zs=m(re()),P=m(z()),de=m(_());var le=m(_());function Js(e,t){let{authenticationRequired:r,session:n}=y.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Bt=class extends be{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Lr=class e extends le.FtStateManager{static build(t){return new e(y,t)}constructor(t,r){super(),this.store=t,this.cache=new le.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Bt,this.cleanSessionDebouncer=new le.Debouncer,this.reloadDebouncer=new le.Debouncer(500),this.apiProvider=r??(()=>oe.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(ae.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 t=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(t)}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 t;let r=await this.cache.get("availableContentLocales",()=>Js(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new We(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Pr=Lr.build();var ue=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Qe=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new ue(t.context,a,o,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var N=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},x=class extends de.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=Pr,this.contextRoot=new Qe}render(){return Zs.html`
1
+ "use strict";(()=>{var Ji=Object.create;var rn=Object.defineProperty;var Zi=Object.getOwnPropertyDescriptor;var ea=Object.getOwnPropertyNames;var ta=Object.getPrototypeOf,ra=Object.prototype.hasOwnProperty;var rt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ea(t))!ra.call(e,s)&&s!==r&&rn(e,s,{get:()=>t[s],enumerable:!(n=Zi(t,s))||n.enumerable});return e};var m=(e,t,r)=>(r=e!=null?Ji(ta(e)):{},na(t||!e||!e.__esModule?rn(r,"default",{value:e,enumerable:!0}):r,e));var _=rt((xo,nn)=>{nn.exports=ftGlobals.wcUtils});var re=rt((Co,sn)=>{sn.exports=ftGlobals.lit});var z=rt((wo,an)=>{an.exports=ftGlobals.litDecorators});var Hi=rt((lp,$i)=>{$i.exports=ftGlobals.litUnsafeHTML});var Qi=m(_());var tt=m(re()),zi=m(z()),Ki=m(_());var Qt=m(_());var xe=m(_()),Ur=m(z());var Zt;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}));var pe=m(_());var sa=m(_());var on;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(on||(on={}));var cn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cn||(cn={}));var ln;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ln||(ln={}));var un;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(un||(un={}));var dn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(dn||(dn={}));var pn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(pn||(pn={}));var hn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(hn||(hn={}));var fn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(fn||(fn={}));var mn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(mn||(mn={}));var yn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(yn||(yn={}));var gn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(gn||(gn={}));var Sn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sn||(Sn={}));var En;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(En||(En={}));var vn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(vn||(vn={}));var An;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(An||(An={}));var bn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(bn||(bn={}));var er;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(er||(er={}));var _n;(function(e){e.ASC="ASC",e.DESC="DESC"})(_n||(_n={}));var xn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(xn||(xn={}));var tr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(tr||(tr={}));var Cn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Cn||(Cn={}));var nt;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(nt||(nt={}));var wn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(wn||(wn={}));var Tn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Tn||(Tn={}));var On;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(On||(On={}));var rr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rr||(rr={}));var Rn;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Rn||(Rn={}));var w;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(w||(w={}));var H;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(H||(H={}));var In;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(In||(In={}));var Mn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Mn||(Mn={}));var Nn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Nn||(Nn={}));var kn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(kn||(kn={}));var Dn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Dn||(Dn={}));var Ln;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ln||(Ln={}));var Pn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Pn||(Pn={}));var Fn;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Fn||(Fn={}));var Un;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Un||(Un={}));var $n;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})($n||($n={}));var Hn;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Hn||(Hn={}));var Bn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Bn||(Bn={}));var ia={[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 Vn(e,t){return e===t||(ia[e]??[]).some(r=>Vn(r,t))}function nr(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Vn(n,t))}var Cr=m(z());var jn=m(z(),1);var sr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qn(e,t){return(0,jn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ue(e);try{return JSON.parse(r)}catch{return Ue(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:$e,...t??{}})}function aa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ge(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!ge(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!ge(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ge(e,t){try{return aa(e,t)}catch{return!1}}function $e(e,t){return!ge(e,t)}function Ue(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function st(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var zn=m(z(),1);var ir=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:$e,attribute:!1,...t};(0,zn.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var it=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ne=m(z(),1);var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){s(o);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wn=m(re(),1);var ot=globalThis,oa=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Kn=(e,t)=>{if(oa)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=ot.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var ct=class extends Wn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Kn(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){sr(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Gn(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ee=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Jn,Qn=Symbol("constructorPrototype"),Yn=Symbol("constructorName"),Zn=Symbol("exportpartsDebouncer"),Xn=Symbol("dynamicDependenciesLoaded"),Se=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Se.eventName="exportparts-updated";var K=class extends ct{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Jn]=new at(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Zn].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Yn]=this.constructor.name,this[Qn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Yn]&&Object.setPrototypeOf(this,this[Qn])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Xn]||(r[Xn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Se.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Se.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Se)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Gn(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,a,o;let c=h=>h!=null&&h.trim().length>0,l=t.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(s=h.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],v=(o=(a=h.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],I=[...S,...v].filter(c).map(E=>E.trim());for(let E of I)u.add(E)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(S=>`${h}:${S}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};Jn=Zn;Ee([(0,ne.property)()],K.prototype,"exportpartsPrefix",void 0);Ee([qn([])],K.prototype,"exportpartsPrefixes",void 0);Ee([(0,ne.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ee([(0,ne.property)()],K.prototype,"customStylesheet",void 0);Ee([(0,ne.property)()],K.prototype,"elementToFocus",void 0);Ee([(0,ne.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function lt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var He=Symbol("internalReduxEventsUnsubscribers"),Z=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ca=st(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[se].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[se].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[se].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[Z].has(a.store):this[Z].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[Z].set(a,o.subscribe(()=>this.updateFromStores())),this[He].set(a,[]),lt(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let d=h=>this[u](h);o.addEventListener(l.eventName,d),this[He].get(a).push(()=>o.removeEventListener(l.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Z].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[Z].has(a)&&this[Z].get(a)(),this[Z].delete(a),(o=this[He].get(a))===null||o===void 0||o.forEach(c=>c()),this[He].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Z,r=se,n=He,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),es=class extends ca(K){};function N(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var la=typeof Symbol=="function"&&Symbol.observable||"@@observable",ts=la,ar=()=>Math.random().toString(36).substring(7).split("").join("."),ua={INIT:`@@redux/INIT${ar()}`,REPLACE:`@@redux/REPLACE${ar()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ar()}`},ut=ua;function dt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function or(e,t,r){if(typeof e!="function")throw new Error(N(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(N(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(N(1));return r(or)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((E,M)=>{a.set(M,E)}))}function u(){if(c)throw new Error(N(3));return s}function d(E){if(typeof E!="function")throw new Error(N(4));if(c)throw new Error(N(5));let M=!0;l();let F=o++;return a.set(F,E),function(){if(M){if(c)throw new Error(N(6));M=!1,l(),a.delete(F),i=null}}}function h(E){if(!dt(E))throw new Error(N(7));if(typeof E.type>"u")throw new Error(N(8));if(typeof E.type!="string")throw new Error(N(17));if(c)throw new Error(N(9));try{c=!0,s=n(s,E)}finally{c=!1}return(i=a).forEach(F=>{F()}),E}function S(E){if(typeof E!="function")throw new Error(N(10));n=E,h({type:ut.REPLACE})}function v(){let E=d;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(N(11));function F(){let A=M;A.next&&A.next(u())}return F(),{unsubscribe:E(F)}},[ts](){return this}}}return h({type:ut.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:S,[ts]:v}}function da(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ut.INIT})>"u")throw new Error(N(12));if(typeof r(void 0,{type:ut.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(N(13))})}function rs(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{da(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let h=n[d],S=r[h],v=o[h],I=S(v,c);if(typeof I>"u"){let E=c&&c.type;throw new Error(N(14))}u[h]=I,l=l||I!==v}return l=l||n.length!==Object.keys(o).length,l?u:o}}function Be(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ns(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(N(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=Be(...o)(s.dispatch),{...s,dispatch:i}}}function ss(e){return dt(e)&&"type"in e&&typeof e.type=="string"}var hs=Symbol.for("immer-nothing"),is=Symbol.for("immer-draftable"),k=Symbol.for("immer-state");function j(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,Ae=U.getPrototypeOf,mt="constructor",At="prototype",dr="configurable",yt="enumerable",ht="writable",Ve="value",W=e=>!!e&&!!e[k];function $(e){return e?fs(e)||_t(e)||!!e[is]||!!e[mt]?.[is]||xt(e)||Ct(e):!1}var pa=U[At][mt].toString(),as=new WeakMap;function fs(e){if(!e||!Er(e))return!1;let t=Ae(e);if(t===null||t===U[At])return!0;let r=U.hasOwnProperty.call(t,mt)&&t[mt];if(r===Object)return!0;if(!ve(r))return!1;let n=as.get(r);return n===void 0&&(n=Function.toString.call(r),as.set(r,n)),n===pa}function bt(e,t,r=!0){ze(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function ze(e){let t=e[k];return t?t.type_:_t(e)?1:xt(e)?2:Ct(e)?3:0}var cr=(e,t,r=ze(e))=>r===2?e.has(t):U[At].hasOwnProperty.call(e,t),pr=(e,t,r=ze(e))=>r===2?e.get(t):e[t],gt=(e,t,r,n=ze(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ha(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _t=Array.isArray,xt=e=>e instanceof Map,Ct=e=>e instanceof Set,Er=e=>typeof e=="object",ve=e=>typeof e=="function",lr=e=>typeof e=="boolean";function fa(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var G=e=>e.copy_||e.base_;var vr=e=>e.modified_?e.copy_:e.base_;function hr(e,t){if(xt(e))return new Map(e);if(Ct(e))return new Set(e);if(_t(e))return Array[At].slice.call(e);let r=fs(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[k];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[ht]===!1&&(o[ht]=!0,o[dr]=!0),(o.get||o.set)&&(n[a]={[dr]:!0,[ht]:!0,[yt]:o[yt],[Ve]:e[a]})}return U.create(Ae(e),n)}else{let n=Ae(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function Ar(e,t=!1){return wt(e)||W(e)||!$(e)||(ze(e)>1&&U.defineProperties(e,{set:pt,add:pt,clear:pt,delete:pt}),U.freeze(e),t&&bt(e,(r,n)=>{Ar(n,!0)},!1)),e}function ma(){j(2)}var pt={[Ve]:ma};function wt(e){return e===null||!Er(e)?!0:U.isFrozen(e)}var St="MapSet",fr="Patches",os="ArrayMethods",ms={};function ie(e){let t=ms[e];return t||j(0,e),t}var cs=e=>!!ms[e];var je,ys=()=>je,ya=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:cs(St)?ie(St):void 0,arrayMethodsPlugin_:cs(os)?ie(os):void 0});function ls(e,t){t&&(e.patchPlugin_=ie(fr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mr(e){yr(e),e.drafts_.forEach(ga),e.drafts_=null}function yr(e){e===je&&(je=e.parent_)}var us=e=>je=ya(je,e);function ga(e){let t=e[k];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ds(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[k].modified_&&(mr(t),j(4)),$(e)&&(e=ps(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[k].base_,e,t)}else e=ps(t,r);return Sa(t,e,!0),mr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hs?e:void 0}function ps(e,t){if(wt(t))return t;let r=t[k];if(!r)return Et(t,e.handledSet_,e);if(!Tt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Es(r,e)}return r.copy_}function Sa(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ar(t,r)}function gs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Tt=(e,t)=>e.scope_===t,Ea=[];function Ss(e,t,r,n){let s=G(e),i=e.type_;if(n!==void 0&&pr(s,n,i)===t){gt(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;bt(s,(c,l)=>{if(W(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??Ea;for(let o of a)gt(s,o,r,i)}function va(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Tt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=vr(i);Ss(e,i.draft_??i,a,r),Es(i,s)})}function Es(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}gs(e)}}function Aa(e,t,r){let{scope_:n}=e;if(W(r)){let s=r[k];Tt(s,n)&&s.callbacks_.push(function(){ft(e);let a=vr(s);Ss(e,r,a,t)})}else $(r)&&e.callbacks_.push(function(){let i=G(e);e.type_===3?i.has(r)&&Et(r,n.handledSet_,n):pr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Et(pr(e.copy_,t,e.type_),n.handledSet_,n)})}function Et(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||W(e)||t.has(e)||!$(e)||wt(e)||(t.add(e),bt(e,(n,s)=>{if(W(s)){let i=s[k];if(Tt(i,r)){let a=vr(i);gt(e,n,a,e.type_),gs(i)}}else $(s)&&Et(s,t,r)})),e}function ba(e,t){let r=_t(e),n={type_:r?1:0,scope_:t?t.scope_:ys(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=vt;r&&(s=[n],i=qe);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var vt={get(e,t){if(t===k)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=G(e);if(!cr(s,t,e.type_))return xa(e,s,t);let i=s[t];if(e.finalized_||!$(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&fa(t))return i;if(i===ur(e.base_,t)||_a(e,t,i)){ft(e);let a=e.type_===1?+t:t,o=Sr(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in G(e)},ownKeys(e){return Reflect.ownKeys(G(e))},set(e,t,r){let n=vs(G(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=ur(G(e),t),i=s?.[k];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ha(r,s)&&(r!==void 0||cr(e.base_,t,e.type_)))return!0;ft(e),gr(e)}return e.copy_[t]===r&&(r!==void 0||cr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Aa(e,t,r)),!0},deleteProperty(e,t){return ft(e),ur(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),gr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=G(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ht]:!0,[dr]:e.type_!==1||t!=="length",[yt]:n[yt],[Ve]:r[t]}},defineProperty(){j(11)},getPrototypeOf(e){return Ae(e.base_)},setPrototypeOf(){j(12)}},qe={};for(let e in vt){let t=vt[e];qe[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}qe.deleteProperty=function(e,t){return qe.set.call(this,e,t,void 0)};qe.set=function(e,t,r){return vt.set.call(this,e[0],t,r,e[0])};function ur(e,t){let r=e[k];return(r?G(r):e)[t]}function _a(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(r)||r[k]?!1:e.baseRefs_.has(r)}function xa(e,t,r){let n=vs(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function vs(e,t){if(!(t in e))return;let r=Ae(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ae(r)}}function gr(e){e.modified_||(e.modified_=!0,e.parent_&&gr(e.parent_))}function ft(e){e.copy_||(e.assigned_=new Map,e.copy_=hr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ca=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ve(t)&&!ve(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}ve(r)||j(6),n!==void 0&&!ve(n)&&j(7);let s;if($(t)){let i=us(this),a=Sr(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?mr(i):yr(i)}return ls(i,n),ds(s,i)}else if(!t||!Er(t)){if(s=r(t),s===void 0&&(s=t),s===hs&&(s=void 0),this.autoFreeze_&&Ar(s,!0),n){let i=[],a=[];ie(fr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else j(1,t)},this.produceWithPatches=(t,r)=>{if(ve(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},lr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),lr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),lr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||j(8),W(e)&&(e=As(e));let t=us(this),r=Sr(t,e,void 0);return r[k].isManual_=!0,yr(t),r}finishDraft(e,t){let r=e&&e[k];(!r||!r.isManual_)&&j(9);let{scope_:n}=r;return ls(n,t),ds(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ie(fr).applyPatches_;return W(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Sr(e,t,r,n){let[s,i]=xt(t)?ie(St).proxyMap_(t,r):Ct(t)?ie(St).proxySet_(t,r):ba(t,r);return(r?.scope_??ys()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?va(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function As(e){return W(e)||j(10,e),bs(e)}function bs(e){if(!$(e)||wt(e))return e;let t=e[k],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=hr(e,!0);return bt(r,(s,i)=>{gt(r,s,bs(i))},n),t&&(t.finalized_=!1),r}var wa=globalThis.Iterator,yc=typeof wa?.from=="function";var Ta=new Ca,br=Ta.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var xs=_s(),Cs=_s;var Oa=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},_c=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ra=e=>e&&typeof e.match=="function";function ee(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(Q(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ss(n)&&n.type===e,r}var Is=class Ke extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ke.prototype)}static get[Symbol.species](){return Ke}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ke(...t[0].concat(this)):new Ke(...t.concat(this))}};function ws(e){return $(e)?br(e,()=>{}):e}function Ot(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Ia(e){return typeof e=="boolean"}var Ma=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new Is;return r&&(Ia(r)?a.push(xs):a.push(Cs(r.extraArgument))),a},Na="RTK_autoBatch";var Ts=e=>t=>{setTimeout(t,e)},ka=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},Da=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ka(window.requestAnimationFrame,100):Ts(10):e.type==="callback"?e.queueNotification:Ts(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),h=n.subscribe(d);return o.add(u),()=>{h(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Na],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},La=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Is(e);return n&&s.push(Da(typeof n=="object"?n:void 0)),s};function Ms(e){let t=Ma(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(dt(r))c=rs(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=Be;s&&(u=Oa({trace:!1,...typeof s=="object"&&s}));let d=ns(...l),h=La(d),S=typeof o=="function"?o(h):h(),v=u(...S);return or(c,a,v)}function Ns(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(Q(28));if(o in t)throw new Error(Q(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Pa(e){return typeof e=="function"}function Fa(e,t){let[r,n,s]=Ns(t),i;if(Pa(e))i=()=>ws(e());else{let o=ws(e);i=()=>o}function a(o=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(W(u)){let S=d(u,c);return S===void 0?u:S}else{if($(u))return br(u,h=>d(h,c));{let h=d(u,c);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},o)}return a.getInitialState=i,a}var Ua=(e,t)=>Ra(e)?e.match(t):e(t);function $a(...e){return t=>e.some(r=>Ua(r,t))}var Ha="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ba=(e=21)=>{let t="",r=e;for(;r--;)t+=Ha[Math.random()*64|0];return t},Va=["name","message","stack","code"],_r=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Os=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ja=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Va)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Rs="External signal was aborted",qa=(()=>{function e(t,r,n){let s=ee(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ee(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ee(t+"/rejected",(c,l,u,d,h)=>({payload:d,error:(n&&n.serializeError||ja)(c||"Rejected"),meta:{...h||{},arg:u,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,d,h)=>{let S=n?.idGenerator?n.idGenerator(c):Ba(),v=new AbortController,I,E;function M(g){E=g,v.abort()}l&&(l.aborted?M(Rs):l.addEventListener("abort",()=>M(Rs),{once:!0}));let F=(async function(){let g;try{let b=n?.condition?.(c,{getState:d,extra:h});if(Ka(b)&&(b=await b),b===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let q=new Promise((C,T)=>{I=()=>{T({name:"AbortError",message:E||"Aborted"})},v.signal.addEventListener("abort",I,{once:!0})});u(i(S,c,n?.getPendingMeta?.({requestId:S,arg:c},{getState:d,extra:h}))),g=await Promise.race([q,Promise.resolve(r(c,{dispatch:u,getState:d,extra:h,requestId:S,signal:v.signal,abort:M,rejectWithValue:((C,T)=>new _r(C,T)),fulfillWithValue:((C,T)=>new Os(C,T))})).then(C=>{if(C instanceof _r)throw C;return C instanceof Os?s(C.payload,S,c,C.meta):s(C,S,c)})])}catch(b){g=b instanceof _r?a(null,S,c,b.payload,b.meta):a(b,S,c)}finally{I&&v.signal.removeEventListener("abort",I)}return n&&!n.dispatchConditionRejection&&a.match(g)&&g.meta.condition||u(g),g})();return Object.assign(F,{abort:M,requestId:S,arg:c,unwrap(){return F.then(za)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:$a(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function za(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ka(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ks=Symbol.for("rtk-slice-createasyncthunk"),Cc={[ks]:qa};function Wa(e,t){return`${e}/${t}`}function Ga({creators:e}={}){let t=e?.asyncThunk?.[ks];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(Ya()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(g,A){let b=typeof g=="string"?g:g.type;if(!b)throw new Error(Q(12));if(b in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[b]=A,l},addMatcher(g,A){return c.sliceMatchers.push({matcher:g,reducer:A}),l},exposeAction(g,A){return c.actionCreators[g]=A,l},exposeCaseReducer(g,A){return c.sliceCaseReducersByName[g]=A,l}};o.forEach(g=>{let A=a[g],b={reducerName:g,type:Wa(s,g),createNotation:typeof n.reducers=="function"};Ja(A)?eo(b,A,l,t):Xa(b,A,l)});function u(){let[g={},A=[],b=void 0]=typeof n.extraReducers=="function"?Ns(n.extraReducers):[n.extraReducers],q={...g,...c.sliceCaseReducersByType};return Fa(n.initialState,C=>{for(let T in q)C.addCase(T,q[T]);for(let T of c.sliceMatchers)C.addMatcher(T.matcher,T.reducer);for(let T of A)C.addMatcher(T.matcher,T.reducer);b&&C.addDefaultCase(b)})}let d=g=>g,h=new Map,S=new WeakMap,v;function I(g,A){return v||(v=u()),v(g,A)}function E(){return v||(v=u()),v.getInitialState()}function M(g,A=!1){function b(C){let T=C[g];return typeof T>"u"&&A&&(T=Ot(S,b,E)),T}function q(C=d){let T=Ot(h,A,()=>new WeakMap);return Ot(T,C,()=>{let tn={};for(let[Yi,Xi]of Object.entries(n.selectors??{}))tn[Yi]=Qa(Xi,C,()=>Ot(S,C,E),A);return tn})}return{reducerPath:g,getSelectors:q,get selectors(){return q(b)},selectSlice:b}}let F={name:s,reducer:I,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...M(i),injectInto(g,{reducerPath:A,...b}={}){let q=A??i;return g.inject({reducerPath:q,reducer:I},b),{...F,...M(q,!0)}}};return F}}function Qa(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Ds=Ga();function Ya(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Xa({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!Za(n))throw new Error(Q(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ee(e,a):ee(e))}function Ja(e){return e._reducerDefinitionType==="asyncThunk"}function Za(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eo({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),o&&n.addCase(d.pending,o),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:a||Rt,pending:o||Rt,rejected:c||Rt,settled:l||Rt})}function Rt(){}var Ls="listener",Ps="completed",Fs="cancelled",wc=`task-${Fs}`,Tc=`task-${Ps}`,Oc=`${Ls}-${Fs}`,Rc=`${Ls}-${Ps}`;var{assign:Us}=Object;var xr="listenerMiddleware";var to=Us(ee(`${xr}/add`),{withTypes:()=>to}),Ic=ee(`${xr}/removeAll`),ro=Us(ee(`${xr}/remove`),{withTypes:()=>ro});function Q(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var no=st(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),It=class extends no(Object){};window.ftReduxStores||(window.ftReduxStores={});var $s=class e extends It{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(lt(i))return i;if(s==null)return;let a=Ds({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=Ms({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ue(a.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new it,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let d=l(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=c,h=this.getState()[d];ge(h,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}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 Mt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Nt=m(_()),so="ft-app-info",ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ae.eventName="authentication-change";var We=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};We.eventName="ui-locale-changed";var io={session:(e,t)=>{(0,Nt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>y.dispatchEvent(new ae(t.payload)),0))}},y=Nt.FtReduxStore.get({name:so,reducers:io,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Hs=m(_()),kt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},al=(0,Hs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Mt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kt([(0,Cr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),kt([(0,Cr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),kt([ir({store:y.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),kt([ir({store:y.name})],t.prototype,"uiLocale",void 0),t});var Ut=m(_());var wr=m(_());var oe=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=y.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=y.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var be=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:oe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):oe.await()}};var P=class extends be{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new wr.CacheRegistry,this.cache=t?s.commonCache:new wr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Dt=class extends P{async listMySearches(){let{session:t}=y.getState();return nr(t,w.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Lt=class extends P{async listMyBookmarks(){let t=y.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Pt=class extends P{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=y.getState().session;return!!t?.sessionAuthenticated}};var Ft=class extends P{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 t=y.getState().session;return!!t?.sessionAuthenticated}};var ao="ft-user-assets",oo={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(H).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Or(e,r,[...Tr(e,r),s]),Bs(e,r,1,n),Vs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Or(e,r,Tr(e,r).map(s=>s.id===n.id?n:s)),Vs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Or(e,r,Tr(e,r).filter(i=>i.id!==s)),Bs(e,r,-1,n)}},js={[H.SEARCHES]:"savedSearches",[H.BOOKMARKS]:"bookmarks",[H.BOOKS]:void 0,[H.COLLECTIONS]:void 0},Tr=(e,t)=>{var r;let n=js[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Or=(e,t,r)=>{let n=js[t];n&&(e[n]=r)},Bs=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===H.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Vs=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},D=Ut.FtReduxStore.get({name:ao,reducers:oo,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(H).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rr=class{constructor(t=new Pt,r=new Ft){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Lt,this.savedSearchesService=new Dt,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=y.getState();(0,Ut.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&D.getState().assetCounts.allAsset[t]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&D.getState().assetCounts.bookmarkByMap[t]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;t===H.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(r)}}},co=new Rr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=co);var Ir=class{addCommand(t,r=!1){y.commands.add(t,r)}consumeCommand(t){return y.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ir;var B=m(_());var qs,_e=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},lo=Symbol("clearAfterUnitTest"),$t=class extends(0,B.withEventBus)(P){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new B.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=y.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,B.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),a=this.resolveContext(i);return new B.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof B.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new _e({loadedContexts:t})),this.dispatchEvent(new _e({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new _e({loadedContexts:[t]})),this.dispatchEvent(new _e({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,B.delay)(0).then(()=>n()).catch(()=>null)))}};qs=lo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $t{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $t{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zs=window.FluidTopicsI18nService,Bl=window.FluidTopicsCustomI18nService;var Ks=m(_()),Mr=class{highlightHtml(t,r,n){(0,Ks.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Mr;var Ws=m(_());var Nr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=y.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return Ws.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new Nr;var Gs=m(_());var Ge=class{static get(t,r){var n,s,i,a;let o=y.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Gs.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var kr=class{urlToSearchRequest(t){return Ge.get().parse(t)}searchRequestToUrl(t){return Ge.get().serialize(t)}};window.FluidTopicsUrlService=new kr;var Y=m(_());var ce=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ce.eventName="change";var Dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Qs=new Dr;var Ht=class e extends Y.WithEventBus{static build(){return new e(window.history,Qs,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ce(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...i,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(s,[l,a,o]),this.setCurrentState(l,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ce.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ce.eventName,t)}currentItem(){return(0,Y.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Y.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ht.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ys=m(re());var Xs=Ys.css`
2
+ `;var Zs=m(re()),L=m(z()),de=m(_());var le=m(_());function Js(e,t){let{authenticationRequired:r,session:n}=y.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Bt=class extends be{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Lr=class e extends le.FtStateManager{static build(t){return new e(y,t)}constructor(t,r){super(),this.store=t,this.cache=new le.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Bt,this.cleanSessionDebouncer=new le.Debouncer,this.reloadDebouncer=new le.Debouncer(500),this.apiProvider=r??(()=>oe.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(ae.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 t=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(t)}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 t;let r=await this.cache.get("availableContentLocales",()=>Js(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new We(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Pr=Lr.build();var ue=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Qe=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new ue(t.context,a,o,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var R=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},x=class extends de.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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Pr,this.contextRoot=new Qe}render(){return Zs.html`
3
3
  <slot></slot>
4
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>zs.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};x.elementDefinitions={};x.styles=Xs;N([(0,P.property)()],x.prototype,"baseUrl",void 0);N([(0,P.property)()],x.prototype,"tenantId",void 0);N([(0,P.property)()],x.prototype,"apiIntegrationIdentifier",void 0);N([(0,P.property)()],x.prototype,"apiIntegrationAppVersion",void 0);N([(0,P.property)()],x.prototype,"uiLocale",void 0);N([(0,de.jsonProperty)(null)],x.prototype,"availableUiLocales",void 0);N([(0,de.jsonProperty)(null)],x.prototype,"metadataConfiguration",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"editorMode",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"noCustom",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"openExternalDocumentInNewTab",void 0);N([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomComponent",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"withManualResources",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"navigatorOnline",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"forcedOffline",void 0);N([(0,P.property)({type:Boolean})],x.prototype,"authenticationRequired",void 0);N([(0,de.jsonProperty)([])],x.prototype,"messageContexts",void 0);N([(0,de.jsonProperty)(void 0)],x.prototype,"session",void 0);var ti=m(_());var ei={"ft-app-context":x};(0,ti.customElements)(ei);var Vt=class extends CustomEvent{constructor(t,r){super("ft-search-result-click",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}},jt=class extends CustomEvent{constructor(t,r){super("ft-search-result-open-context-menu",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}};var qt=class e extends Event{constructor(){super(e.eventName)}};qt.eventName="search-context-clear-all-filters";var ri=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$r=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ni=Symbol("registerInterval"),Fr=Symbol("registerAttempts"),po=40,ho=(0,xe.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,a;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(i=n.get("neededSearchRequests"))!==null&&i!==void 0?i:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fr]=0,this.tryToRegisterToContext(),this[ni]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Fr]>po?window.clearInterval(this[ni]):(this[Fr]++,this.dispatchEvent(new $r))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ri([(0,Ur.state)()],t.prototype,"stateManager",void 0),ri([(0,Ur.state)({hasChanged:xe.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),zt=class extends ho(xe.FtLitElementRedux){};var Wt=m(z()),Kt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Br=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Hr=Symbol("registerInterval"),fo=(0,Qt.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Hr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Hr]):this.dispatchEvent(new Br)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return t=Hr,Kt([(0,Wt.property)({attribute:!1})],r.prototype,"cluster",void 0),Kt([(0,Wt.property)({attribute:!1})],r.prototype,"result",void 0),Kt([(0,Qt.numberProperty)()],r.prototype,"rank",void 0),Kt([(0,Wt.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Gt=class extends fo(zt){};var si=m(re()),ii=m(_()),mo={highlightBackgroundColor:ii.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},ai=si.css`
4
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>zs.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};x.elementDefinitions={};x.styles=Xs;R([(0,L.property)()],x.prototype,"baseUrl",void 0);R([(0,L.property)()],x.prototype,"tenantId",void 0);R([(0,L.property)()],x.prototype,"apiIntegrationIdentifier",void 0);R([(0,L.property)()],x.prototype,"apiIntegrationAppVersion",void 0);R([(0,L.property)()],x.prototype,"uiLocale",void 0);R([(0,de.jsonProperty)(null)],x.prototype,"availableUiLocales",void 0);R([(0,de.jsonProperty)(null)],x.prototype,"metadataConfiguration",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"editorMode",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"noCustom",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"openExternalDocumentInNewTab",void 0);R([(0,L.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomComponent",void 0);R([(0,L.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomCode",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"withManualResources",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"navigatorOnline",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"forcedOffline",void 0);R([(0,L.property)({type:Boolean})],x.prototype,"authenticationRequired",void 0);R([(0,de.jsonProperty)([])],x.prototype,"messageContexts",void 0);R([(0,de.jsonProperty)(void 0)],x.prototype,"session",void 0);var ti=m(_());var ei={"ft-app-context":x};(0,ti.customElements)(ei);var Vt=class extends CustomEvent{constructor(t,r){super("ft-search-result-click",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}},jt=class extends CustomEvent{constructor(t,r){super("ft-search-result-open-context-menu",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}};var qt=class e extends Event{constructor(){super(e.eventName)}};qt.eventName="search-context-clear-all-filters";var ri=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$r=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ni=Symbol("registerInterval"),Fr=Symbol("registerAttempts"),ho=40,fo=(0,xe.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,a;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(i=n.get("neededSearchRequests"))!==null&&i!==void 0?i:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fr]=0,this.tryToRegisterToContext(),this[ni]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Fr]>ho?window.clearInterval(this[ni]):(this[Fr]++,this.dispatchEvent(new $r))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ri([(0,Ur.state)()],t.prototype,"stateManager",void 0),ri([(0,Ur.state)({hasChanged:xe.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),zt=class extends fo(xe.FtLitElementRedux){};var Wt=m(z()),Kt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Br=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Hr=Symbol("registerInterval"),mo=(0,Qt.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Hr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Hr]):this.dispatchEvent(new Br)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return t=Hr,Kt([(0,Wt.property)({attribute:!1})],r.prototype,"cluster",void 0),Kt([(0,Wt.property)({attribute:!1})],r.prototype,"result",void 0),Kt([(0,Qt.numberProperty)()],r.prototype,"rank",void 0),Kt([(0,Wt.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Gt=class extends mo(zt){};var si=m(re()),ii=m(_()),yo={highlightBackgroundColor:ii.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},ai=si.css`
5
5
  .kwicmatch {
6
6
  font-weight: 700;
7
- background-color: ${mo.highlightBackgroundColor};
7
+ background-color: ${yo.highlightBackgroundColor};
8
8
  }
9
9
 
10
10
  a {
@@ -15,9 +15,9 @@
15
15
  a:focus {
16
16
  outline: revert;
17
17
  }
18
- `;var Gr=globalThis,oi=e=>e,Yt=Gr.trustedTypes,ci=Yt?Yt.createPolicy("lit-html",{createHTML:e=>e}):void 0,fi="$lit$",te=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+te,yo=`<${mi}>`,me=document,Xt=()=>me.createComment(""),Xe=e=>e===null||typeof e!="object"&&typeof e!="function",Qr=Array.isArray,go=e=>Qr(e)||typeof e?.[Symbol.iterator]=="function",Vr=`[
18
+ `;var Gr=globalThis,oi=e=>e,Yt=Gr.trustedTypes,ci=Yt?Yt.createPolicy("lit-html",{createHTML:e=>e}):void 0,fi="$lit$",te=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+te,go=`<${mi}>`,me=document,Xt=()=>me.createComment(""),Xe=e=>e===null||typeof e!="object"&&typeof e!="function",Qr=Array.isArray,So=e=>Qr(e)||typeof e?.[Symbol.iterator]=="function",Vr=`[
19
19
  \f\r]`,Ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,li=/-->/g,ui=/>/g,he=RegExp(`>|${Vr}(?:([^\\s"'>=/]+)(${Vr}*=${Vr}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),di=/'/g,pi=/"/g,yi=/^(?:script|style|textarea|title)$/i,Yr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),gi=Yr(1),Si=Yr(2),Ei=Yr(3),Je=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),hi=new WeakMap,fe=me.createTreeWalker(me,129);function vi(e,t){if(!Qr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ci!==void 0?ci.createHTML(t):t}var So=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",a=Ye;for(let o=0;o<r;o++){let c=e[o],l,u,d=-1,h=0;for(;h<c.length&&(a.lastIndex=h,u=a.exec(c),u!==null);)h=a.lastIndex,a===Ye?u[1]==="!--"?a=li:u[1]!==void 0?a=ui:u[2]!==void 0?(yi.test(u[2])&&(s=RegExp("</"+u[2],"g")),a=he):u[3]!==void 0&&(a=he):a===he?u[0]===">"?(a=s??Ye,d=-1):u[1]===void 0?d=-2:(d=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?he:u[3]==='"'?pi:di):a===pi||a===di?a=he:a===li||a===ui?a=Ye:(a=he,s=void 0);let S=a===he&&e[o+1].startsWith("/>")?" ":"";i+=a===Ye?c+yo:d>=0?(n.push(l),c.slice(0,d)+fi+c.slice(d)+te+S):c+te+(d===-2?o:S)}return[vi(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Ze=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=t.length-1,c=this.parts,[l,u]=So(t,r);if(this.el=e.createElement(l,n),fe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=fe.nextNode())!==null&&c.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(fi)){let h=u[a++],S=s.getAttribute(d).split(te),v=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?qr:v[1]==="?"?zr:v[1]==="@"?Kr:we}),s.removeAttribute(d)}else d.startsWith(te)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(yi.test(s.tagName)){let d=s.textContent.split(te),h=d.length-1;if(h>0){s.textContent=Yt?Yt.emptyScript:"";for(let S=0;S<h;S++)s.append(d[S],Xt()),fe.nextNode(),c.push({type:2,index:++i});s.append(d[h],Xt())}}}else if(s.nodeType===8)if(s.data===mi)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(te,d+1))!==-1;)c.push({type:7,index:i}),d+=te.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Ce(e,t,r=e,n){if(t===Je)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=Xe(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Ce(e,s._$AS(e,t.values),s,n)),t}var jr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??me).importNode(r,!0);fe.currentNode=s;let i=fe.nextNode(),a=0,o=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new Jt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Wr(i,this,t)),this._$AV.push(l),c=n[++o]}a!==c?.index&&(i=fe.nextNode(),a++)}return fe.currentNode=me,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Jt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ce(this,t,r),Xe(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):go(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==O&&Xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ze.createElement(vi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new jr(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=hi.get(t.strings);return r===void 0&&hi.set(t.strings,r=new Ze(t)),r}k(t){Qr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Xt()),this.O(Xt()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=oi(t).nextSibling;oi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}_$AI(t,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)t=Ce(this,t,r,0),a=!Xe(t)||t!==this._$AH&&t!==Je,a&&(this._$AH=t);else{let o=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Ce(this,o[n+c],r,c),l===Je&&(l=this._$AH[c]),a||=!Xe(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},qr=class extends we{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},zr=class extends we{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},Kr=class extends we{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Ce(this,t,r,0)??O)===Je)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Wr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ce(this,t)}};var Eo=Gr.litHtmlPolyfillSupport;Eo?.(Ze,Jt),(Gr.litHtmlVersions??=[]).push("3.3.3");var bi=Symbol.for(""),vo=e=>{if(e?.r===bi)return e?._$litStatic$},Xr=e=>({_$litStatic$:e,r:bi});var Ai=new Map,Jr=e=>(t,...r)=>{let n=r.length,s,i,a=[],o=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=vo(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&o.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),u){let d=a.join("$$lit$$");(t=Ai.get(d))===void 0&&(a.raw=a,Ai.set(d,t=a)),r=o}return e(t,...r)},Zr=Jr(gi),Vd=Jr(Si),jd=Jr(Ei);var en=m(z()),Pi=m(_());var Te;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Te||(Te={}));var V=m(re()),p=m(_()),_i=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),X=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:X,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Oe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_i),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit")},Re={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_i),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit")},Ie={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit")},Me={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit")},Ne={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit")},ke={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit")},De={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit")},Le={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit")},Pe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase")},Fe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase")},xi=V.css`
20
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),di=/'/g,pi=/"/g,yi=/^(?:script|style|textarea|title)$/i,Yr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),gi=Yr(1),Si=Yr(2),Ei=Yr(3),Je=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),hi=new WeakMap,fe=me.createTreeWalker(me,129);function vi(e,t){if(!Qr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ci!==void 0?ci.createHTML(t):t}var Eo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",a=Ye;for(let o=0;o<r;o++){let c=e[o],l,u,d=-1,h=0;for(;h<c.length&&(a.lastIndex=h,u=a.exec(c),u!==null);)h=a.lastIndex,a===Ye?u[1]==="!--"?a=li:u[1]!==void 0?a=ui:u[2]!==void 0?(yi.test(u[2])&&(s=RegExp("</"+u[2],"g")),a=he):u[3]!==void 0&&(a=he):a===he?u[0]===">"?(a=s??Ye,d=-1):u[1]===void 0?d=-2:(d=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?he:u[3]==='"'?pi:di):a===pi||a===di?a=he:a===li||a===ui?a=Ye:(a=he,s=void 0);let S=a===he&&e[o+1].startsWith("/>")?" ":"";i+=a===Ye?c+go:d>=0?(n.push(l),c.slice(0,d)+fi+c.slice(d)+te+S):c+te+(d===-2?o:S)}return[vi(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Ze=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=t.length-1,c=this.parts,[l,u]=Eo(t,r);if(this.el=e.createElement(l,n),fe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=fe.nextNode())!==null&&c.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(fi)){let h=u[a++],S=s.getAttribute(d).split(te),v=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?qr:v[1]==="?"?zr:v[1]==="@"?Kr:we}),s.removeAttribute(d)}else d.startsWith(te)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(yi.test(s.tagName)){let d=s.textContent.split(te),h=d.length-1;if(h>0){s.textContent=Yt?Yt.emptyScript:"";for(let S=0;S<h;S++)s.append(d[S],Xt()),fe.nextNode(),c.push({type:2,index:++i});s.append(d[h],Xt())}}}else if(s.nodeType===8)if(s.data===mi)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(te,d+1))!==-1;)c.push({type:7,index:i}),d+=te.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Ce(e,t,r=e,n){if(t===Je)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=Xe(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Ce(e,s._$AS(e,t.values),s,n)),t}var jr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??me).importNode(r,!0);fe.currentNode=s;let i=fe.nextNode(),a=0,o=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new Jt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Wr(i,this,t)),this._$AV.push(l),c=n[++o]}a!==c?.index&&(i=fe.nextNode(),a++)}return fe.currentNode=me,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Jt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ce(this,t,r),Xe(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):So(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==O&&Xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ze.createElement(vi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new jr(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=hi.get(t.strings);return r===void 0&&hi.set(t.strings,r=new Ze(t)),r}k(t){Qr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Xt()),this.O(Xt()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=oi(t).nextSibling;oi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}_$AI(t,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)t=Ce(this,t,r,0),a=!Xe(t)||t!==this._$AH&&t!==Je,a&&(this._$AH=t);else{let o=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Ce(this,o[n+c],r,c),l===Je&&(l=this._$AH[c]),a||=!Xe(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},qr=class extends we{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},zr=class extends we{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},Kr=class extends we{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Ce(this,t,r,0)??O)===Je)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Wr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ce(this,t)}};var vo=Gr.litHtmlPolyfillSupport;vo?.(Ze,Jt),(Gr.litHtmlVersions??=[]).push("3.3.3");var bi=Symbol.for(""),Ao=e=>{if(e?.r===bi)return e?._$litStatic$},Xr=e=>({_$litStatic$:e,r:bi});var Ai=new Map,Jr=e=>(t,...r)=>{let n=r.length,s,i,a=[],o=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=Ao(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&o.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),u){let d=a.join("$$lit$$");(t=Ai.get(d))===void 0&&(a.raw=a,Ai.set(d,t=a)),r=o}return e(t,...r)},Zr=Jr(gi),qd=Jr(Si),zd=Jr(Ei);var en=m(z()),Pi=m(_());var Te;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Te||(Te={}));var V=m(re()),p=m(_()),_i=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),X=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:X,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Oe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_i),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit")},Re={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_i),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit")},Ie={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit")},Me={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit")},Ne={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit")},ke={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit")},De={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit")},Le={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit")},Pe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase")},Fe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase")},xi=V.css`
21
21
  .ft-typography--title {
22
22
  font-family: ${Oe.fontFamily};
23
23
  font-size: ${Oe.fontSize};
@@ -120,7 +120,7 @@
120
120
  </${Xr(this.element)}>
121
121
  `:Zr`
122
122
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
123
- `}};J.styles=[xi,Ci,wi,Ti,Oi,Ri,Ii,Mi,Ni,ki,Di];Li([(0,en.property)()],J.prototype,"element",void 0);Li([(0,en.property)()],J.prototype,"variant",void 0);var Ui=m(_());var Fi={"ft-typography":J};(0,Ui.customElements)(Fi);var Wi=m(Hi());var Bi=e=>e??O;var et=m(_());function Vi(e){var t;return((t=(0,et.accessResult)(e))===null||t===void 0?void 0:t.openMode)===nt.EXTERNAL}function ji(e){return Vi(e)?(0,et.accessResult)(e).originUrl:(0,et.accessResultUrl)(e)}function qi(e,t){return Bi(t&&Vi(e)?"_blank":void 0)}var Ao=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ye=class extends Gt{constructor(){super(...arguments),this.withoutLink=!1}render(){var t;return this.result?this.withoutLink?this.renderTitle():tt.html`
123
+ `}};J.styles=[xi,Ci,wi,Ti,Oi,Ri,Ii,Mi,Ni,ki,Di];Li([(0,en.property)()],J.prototype,"element",void 0);Li([(0,en.property)()],J.prototype,"variant",void 0);var Ui=m(_());var Fi={"ft-typography":J};(0,Ui.customElements)(Fi);var Wi=m(Hi());var Bi=e=>e??O;var et=m(_());function Vi(e){var t;return((t=(0,et.accessResult)(e))===null||t===void 0?void 0:t.openMode)===nt.EXTERNAL}function ji(e){return Vi(e)?(0,et.accessResult)(e).originUrl:(0,et.accessResultUrl)(e)}function qi(e,t){return Bi(t&&Vi(e)?"_blank":void 0)}var bo=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ye=class extends Gt{constructor(){super(...arguments),this.withoutLink=!1}render(){var t;return this.result?this.withoutLink?this.renderTitle():tt.html`
124
124
  <a href="${ji(this.result)}"
125
125
  @click=${this.onResultClick}
126
126
  @auxclick=${r=>this.onAuxClick(r)}
@@ -131,7 +131,7 @@
131
131
  </a>
132
132
  `:tt.nothing}onAuxClick(t){t.button==1&&this.onResultClick()}renderTitle(){var t;return tt.html`
133
133
  <ft-typography variant="${Te.title}" part="text">${(0,Wi.unsafeHTML)((t=(0,Ki.accessResult)(this.result))===null||t===void 0?void 0:t.htmlTitle)}</ft-typography>
134
- `}onResultClick(){this.dispatchEvent(new Vt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new jt(this.result,this.rank))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&t.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ye.elementDefinitions={"ft-typography":J};ye.styles=ai;Ao([(0,zi.property)({type:Boolean})],ye.prototype,"withoutLink",void 0);var Gi={"ft-search-result-title":ye};(0,Qi.customElements)(Gi);})();
134
+ `}onResultClick(){this.dispatchEvent(new Vt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new jt(this.result,this.rank))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&t.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ye.elementDefinitions={"ft-typography":J};ye.styles=ai;bo([(0,zi.property)({type:Boolean})],ye.prototype,"withoutLink",void 0);var Gi={"ft-search-result-title":ye};(0,Qi.customElements)(Gi);})();
135
135
  /*! Bundled license information:
136
136
 
137
137
  @lit/reactive-element/css-tag.js: