@fluid-topics/ft-reader-attachments 1.1.68 → 1.1.70

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.
@@ -229,7 +229,7 @@
229
229
  `,I=e.css`
230
230
  `,E=o.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class U{static get(t){const{baseUrl:o,apiIntegrationIdentifier:e}=E.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static await(t){return new Promise((o=>{let e=U.get(t);if(e)o(e);else{const r=E.subscribe((()=>{e=U.get(t),e&&(r(),o(e))}))}}))}}class W{constructor(t=!0,e){var r;this.overrideApi=e;let a=this.constructor;a.commonCache=null!==(r=a.commonCache)&&void 0!==r?r:new o.CacheRegistry,this.cache=t?a.commonCache:new o.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:U.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:U.await()}clearCache(){this.cache.clearAll()}}var R;const k=Symbol("clearAfterUnitTest");class Z extends W{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[R]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const a={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var a,i,n;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(i=null===(a=this.cache.getNow(t))||void 0===a?void 0:a.messages)&&void 0!==i?i:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}R=k,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Z{constructor(){super((async(t,o)=>(await this.awaitApi).getFluidTopicsMessageContext(t,o)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Z{constructor(){super((async(t,o)=>(await this.awaitApi).getCustomMessageContext(t,o)))}});const L=window.FluidTopicsI18nService,z=window.FluidTopicsCustomI18nService;var $=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class K extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>U.get(),this.messageContexts=[],this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
231
231
  <slot></slot>
232
- `}update(t){super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("availableUiLocales")&&E.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>L.addContext(t))),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}K.elementDefinitions={},K.styles=I,$([r.property()],K.prototype,"baseUrl",void 0),$([r.property()],K.prototype,"apiIntegrationIdentifier",void 0),$([r.property()],K.prototype,"uiLocale",void 0),$([o.jsonProperty(null)],K.prototype,"availableUiLocales",void 0),$([o.jsonProperty(null)],K.prototype,"metadataConfiguration",void 0),$([r.property({type:Boolean})],K.prototype,"editorMode",void 0),$([r.property({type:Boolean})],K.prototype,"noCustom",void 0),$([r.property({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0),$([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],K.prototype,"noCustomComponent",void 0),$([r.property({type:Boolean})],K.prototype,"withManualResources",void 0),$([r.property({type:Boolean})],K.prototype,"navigatorOnline",void 0),$([r.property({type:Boolean})],K.prototype,"forcedOffline",void 0),$([r.property({type:Object})],K.prototype,"apiProvider",void 0),$([o.jsonProperty([])],K.prototype,"messageContexts",void 0),$([o.jsonProperty(void 0)],K.prototype,"session",void 0);class F extends W{async listMySearches(){let t=E.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class B extends W{async listMyBookmarks(){let t=E.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const D=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new B,this.savedSearchesService=new F,E.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=E.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}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();const t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(o)}}},o.customElement("ft-app-context")(K);var A=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};const H=Symbol("i18nAttributes"),G=Symbol("i18nProperties"),M=Symbol("i18nUnsubs");function j(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?z:L}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const a=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o,e;null===(o=this[H])||void 0===o||o.forEach(((o,e)=>{var r;const a=this.getI18nAttributeValue(e);(null===(r=null==a?void 0:a.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(e,a,o)})),null===(e=this[G])||void 0===e||e.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,o,e){this[t]={...o,message:this.i18n({context:o.context,key:o.key,...e})}}update(t){var o,e;super.update(t),null===(o=this[H])||void 0===o||o.forEach(((o,e)=>{const r=this.getI18nAttributeValue(e);(null==r?void 0:r.context)&&r.key&&(t.has(e)||null!=o.argsProvider)&&(t.has(e)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(e,r,o))})),null===(e=this[G])||void 0===e||e.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,o,e,r;super.connectedCallback(),new Set([...null!==(o=null===(t=this[G])||void 0===t?void 0:t.values())&&void 0!==o?o:[],...[...null!==(r=null===(e=this[H])||void 0===e?void 0:e.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[M].has(t)||this[M].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages("string"==typeof t?t:t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[M].forEach((t=>t())),this[M].clear()}}return o=M,A([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class P extends(j(o.FtLitElement)){}class T extends(j(o.FtLitElementRedux)){}var _=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Y extends T{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return this.key&&this.context?e.html`
232
+ `}update(t){super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("availableUiLocales")&&E.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>L.addContext(t))),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}K.elementDefinitions={},K.styles=I,$([r.property()],K.prototype,"baseUrl",void 0),$([r.property()],K.prototype,"apiIntegrationIdentifier",void 0),$([r.property()],K.prototype,"uiLocale",void 0),$([o.jsonProperty(null)],K.prototype,"availableUiLocales",void 0),$([o.jsonProperty(null)],K.prototype,"metadataConfiguration",void 0),$([r.property({type:Boolean})],K.prototype,"editorMode",void 0),$([r.property({type:Boolean})],K.prototype,"noCustom",void 0),$([r.property({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0),$([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],K.prototype,"noCustomComponent",void 0),$([r.property({type:Boolean})],K.prototype,"withManualResources",void 0),$([r.property({type:Boolean})],K.prototype,"navigatorOnline",void 0),$([r.property({type:Boolean})],K.prototype,"forcedOffline",void 0),$([r.property({type:Object})],K.prototype,"apiProvider",void 0),$([o.jsonProperty([])],K.prototype,"messageContexts",void 0),$([o.jsonProperty(void 0)],K.prototype,"session",void 0);class F extends W{async listMySearches(){let t=E.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class B extends W{async listMyBookmarks(){let t=E.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const D=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new B,this.savedSearchesService=new F,E.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=E.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}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();const t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(o)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,o=!1){E.commands.add(t,o)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){o.highlightHtml(t,e)}},o.customElement("ft-app-context")(K);var A=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};const H=Symbol("i18nAttributes"),G=Symbol("i18nProperties"),M=Symbol("i18nUnsubs");function j(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?z:L}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const a=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o,e;null===(o=this[H])||void 0===o||o.forEach(((o,e)=>{var r;const a=this.getI18nAttributeValue(e);(null===(r=null==a?void 0:a.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(e,a,o)})),null===(e=this[G])||void 0===e||e.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,o,e){this[t]={...o,message:this.i18n({context:o.context,key:o.key,...e})}}update(t){var o,e;super.update(t),null===(o=this[H])||void 0===o||o.forEach(((o,e)=>{const r=this.getI18nAttributeValue(e);(null==r?void 0:r.context)&&r.key&&(t.has(e)||null!=o.argsProvider)&&(t.has(e)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(e,r,o))})),null===(e=this[G])||void 0===e||e.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,o,e,r;super.connectedCallback(),new Set([...null!==(o=null===(t=this[G])||void 0===t?void 0:t.values())&&void 0!==o?o:[],...[...null!==(r=null===(e=this[H])||void 0===e?void 0:e.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[M].has(t)||this[M].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages("string"==typeof t?t:t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[M].forEach((t=>t())),this[M].clear()}}return o=M,A([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class P extends(j(o.FtLitElement)){}class T extends(j(o.FtLitElementRedux)){}var _=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Y extends T{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return this.key&&this.context?e.html`
233
233
  <span class="ft-i18n">
234
234
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
235
235
  </span>
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,l=new WeakMap;let s;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=i.prototype.attributeChangedCallback,s=new Set(i.observedAttributes||[]);d(i,s,l);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=s;if(e)return s=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},h=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):h(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),s=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ls){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,l=new WeakMap;let s;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=i.prototype.attributeChangedCallback,s=new Set(i.observedAttributes||[]);d(i,s,l);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=s;if(e)return s=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},h=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):h(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),s=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ss){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -141,7 +141,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
141
141
  .highlight-html-match {
142
142
  background: ${Ki};
143
143
  }
144
- `,Di={className:"highlight-html-match"};var Hi=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Mi(t);if(r.unmark(Di),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Di,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Di,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:Ki,highlightHtmlStyles:Zi});const Ti=dt`
144
+ `,Di={className:"highlight-html-match"};function Hi(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Mi(t);if(r.unmark(Di),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Di,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Di,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")}var Ti=Object.freeze({__proto__:null,highlightHtml:Hi,highlightHtmlColorCssVariable:Ki,highlightHtmlStyles:Zi});const Gi=dt`
145
145
  .ft-no-text-select {
146
146
  -webkit-touch-callout: none;
147
147
  -webkit-user-select: none;
@@ -150,7 +150,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
150
150
  -ms-user-select: none;
151
151
  user-select: none;
152
152
  }
153
- `,Gi=dt`
153
+ `,Vi=dt`
154
154
  .ft-word-wrap {
155
155
  white-space: normal;
156
156
  word-wrap: break-word;
@@ -162,7 +162,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
162
162
  -webkit-hyphens: auto;
163
163
  hyphens: auto
164
164
  }
165
- `,Vi=dt`
165
+ `,qi=dt`
166
166
  .ft-safari-ellipsis-fix {
167
167
  margin-right: 0;
168
168
 
@@ -173,7 +173,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
173
173
  display: inline-block;
174
174
  width: 0;
175
175
  }
176
- `;var qi=Object.freeze({__proto__:null,noTextSelect:Ti,safariEllipsisFix:Vi,wordWrap:Gi}),Yi=Object.freeze({__proto__:null});class Ji{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var Xi=Object.freeze({__proto__:null,ParametrizedLabelResolver:Ji});const Qi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!co(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class tn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function en(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var on,rn,nn;const an=Symbol("internalReduxEventsUnsubscribers"),ln=Symbol("internalStoresUnsubscribers"),sn=Symbol("internalStores");class cn extends Ai{constructor(){super(...arguments),this[on]=new Map,this[rn]=new Map,this[nn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[sn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[sn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:en(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[sn].delete(e)}setupStore(t,e){this[sn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[sn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ln].has(t.store):this[ln].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ln].set(t,e.subscribe((()=>this.updateFromStores()))),en(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[an].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ln].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[an].forEach((t=>t())),this[an]=[]}unsubscribeFromStore(t){this[ln].has(t)&&this[ln].get(t)(),this[ln].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function fn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function pn(t){return!!t&&!!t[Jn]}function dn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Xn}(t)||Array.isArray(t)||!!t[Yn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Yn])||mn(t)||vn(t))}function hn(t,e,o){void 0===o&&(o=!1),0===un(t)?(o?Object.keys:Qn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function un(t){var e=t[Jn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:mn(t)?2:vn(t)?3:0}function yn(t,e){return 2===un(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gn(t,e,o){var r=un(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function bn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function mn(t){return Tn&&t instanceof Map}function vn(t){return Gn&&t instanceof Set}function xn(t){return t.o||t.t}function On(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ta(t);delete e[Jn];for(var o=Qn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function wn(t,e){return void 0===e&&(e=!1),Cn(t)||pn(t)||!dn(t)||(un(t)>1&&(t.set=t.add=t.clear=t.delete=Sn),Object.freeze(t),e&&hn(t,(function(t,e){return wn(e,!0)}),!0)),t}function Sn(){fn(2)}function Cn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Nn(t){var e=ea[t];return e||fn(18,t),e}function En(){return Dn}function In(t,e){e&&(Nn("Patches"),t.u=[],t.s=[],t.v=e)}function Rn(t){kn(t),t.p.forEach(Un),t.p=null}function kn(t){t===Dn&&(Dn=t.l)}function Ln(t){return Dn={p:[],l:Dn,h:t,m:!0,_:0}}function Un(t){var e=t[Jn];0===e.i||1===e.i?e.j():e.g=!0}function Wn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Nn("ES5").S(e,t,r),r?(o[Jn].P&&(Rn(e),fn(4)),dn(t)&&(t=$n(e,t),e.l||zn(e,t)),e.u&&Nn("Patches").M(o[Jn].t,t,e.u,e.s)):t=$n(e,o,[]),Rn(e),e.u&&e.v(e.u,e.s),t!==qn?t:void 0}function $n(t,e,o){if(Cn(e))return e;var r=e[Jn];if(!r)return hn(e,(function(i,n){return Bn(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return zn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=On(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),hn(n,(function(e,n){return Bn(t,r,i,e,n,o,a)})),zn(t,i,!1),o&&t.u&&Nn("Patches").N(r,o,t.u,t.s)}return r.o}function Bn(t,e,o,r,i,n,a){if(pn(i)){var l=$n(t,i,n&&e&&3!==e.i&&!yn(e.R,r)?n.concat(r):void 0);if(gn(o,r,l),!pn(l))return;t.m=!1}else a&&o.add(i);if(dn(i)&&!Cn(i)){if(!t.h.D&&t._<1)return;$n(t,i),e&&e.A.l||zn(t,i)}}function zn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&wn(e,o)}function Fn(t,e){var o=t[Jn];return(o?xn(o):t)[e]}function An(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function jn(t){t.P||(t.P=!0,t.l&&jn(t.l))}function _n(t){t.o||(t.o=On(t.t))}function Pn(t,e,o){var r=mn(e)?Nn("MapSet").F(e,o):vn(e)?Nn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:En(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=oa;o&&(i=[r],n=ra);var a=Proxy.revocable(i,n),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(e,o):Nn("ES5").J(e,o);return(o?o.A:En()).p.push(r),r}function Mn(t){return pn(t)||fn(22,t),function t(e){if(!dn(e))return e;var o,r=e[Jn],i=un(e);if(r){if(!r.P&&(r.i<4||!Nn("ES5").K(r)))return r.t;r.I=!0,o=Kn(e,i),r.I=!1}else o=Kn(e,i);return hn(o,(function(e,i){r&&function(t,e){return 2===un(t)?t.get(e):t[e]}(r.t,e)===i||gn(o,e,t(i))})),3===i?new Set(o):o}(t)}function Kn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return On(t)}on=ln,rn=sn,nn=an,cn.reduxProperties=new Map,cn.reduxReactiveProperties=new Set,cn.reduxEventListeners=new Map;var Zn,Dn,Hn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Tn="undefined"!=typeof Map,Gn="undefined"!=typeof Set,Vn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,qn=Hn?Symbol.for("immer-nothing"):((Zn={})["immer-nothing"]=!0,Zn),Yn=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",Jn=Hn?Symbol.for("immer-state"):"__$immer_state",Xn=""+Object.prototype.constructor,Qn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ta=Object.getOwnPropertyDescriptors||function(t){var e={};return Qn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},ea={},oa={get:function(t,e){if(e===Jn)return t;var o=xn(t);if(!yn(o,e))return function(t,e,o){var r,i=An(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!dn(r)?r:r===Fn(t.t,e)?(_n(t),t.o[e]=Pn(t.A.h,r,t)):r},has:function(t,e){return e in xn(t)},ownKeys:function(t){return Reflect.ownKeys(xn(t))},set:function(t,e,o){var r=An(xn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Fn(xn(t),e),n=null==i?void 0:i[Jn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(bn(o,i)&&(void 0!==o||yn(t.t,e)))return!0;_n(t),jn(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Fn(t.t,e)||e in t.t?(t.R[e]=!1,_n(t),jn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=xn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){fn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){fn(12)}},ra={};hn(oa,(function(t,e){ra[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ra.deleteProperty=function(t,e){return ra.set.call(this,t,e,void 0)},ra.set=function(t,e,o){return oa.set.call(this,t[0],e,o,t[0])};var ia=function(){function t(t){var e=this;this.O=Vn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&fn(6),void 0!==r&&"function"!=typeof r&&fn(7),dn(t)){var l=Ln(e),s=Pn(e,t,void 0),c=!0;try{a=o(s),c=!1}finally{c?Rn(l):kn(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return In(l,r),Wn(t,l)}),(function(t){throw Rn(l),t})):(In(l,r),Wn(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===qn&&(a=void 0),e.D&&wn(a,!0),r){var f=[],p=[];Nn("Patches").M(t,a,f,p),r(f,p)}return a}fn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){dn(t)||fn(8),pn(t)&&(t=Mn(t));var e=Ln(this),o=Pn(this,t,void 0);return o[Jn].C=!0,kn(e),o},e.finishDraft=function(t,e){var o=(t&&t[Jn]).A;return In(o,e),Wn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vn&&fn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Nn("Patches").$;return pn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),na=new ia,aa=na.produce;function la(t){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(t)}function sa(t){var e=function(t,e){if("object"!==la(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==la(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===la(e)?e:String(e)}function ca(t,e,o){return(e=sa(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function fa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function pa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?fa(Object(o),!0).forEach((function(e){ca(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):fa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function da(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}na.produceWithPatches.bind(na),na.setAutoFreeze.bind(na),na.setUseProxies.bind(na),na.applyPatches.bind(na),na.createDraft.bind(na),na.finishDraft.bind(na);var ha="function"==typeof Symbol&&Symbol.observable||"@@observable",ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},ya={INIT:"@@redux/INIT"+ua(),REPLACE:"@@redux/REPLACE"+ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ua()}};function ga(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(da(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(da(1));return o(ga)(t,e)}if("function"!=typeof t)throw new Error(da(2));var i=t,n=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(da(3));return n}function p(t){if("function"!=typeof t)throw new Error(da(4));if(s)throw new Error(da(5));var e=!0;return c(),l.push(t),function(){if(e){if(s)throw new Error(da(6));e=!1,c();var o=l.indexOf(t);l.splice(o,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(da(7));if(void 0===t.type)throw new Error(da(8));if(s)throw new Error(da(9));try{s=!0,n=i(n,t)}finally{s=!1}for(var e=a=l,o=0;o<e.length;o++){(0,e[o])()}return t}return d({type:ya.INIT}),(r={dispatch:d,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(da(10));i=t,d({type:ya.REPLACE})}})[ha]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(da(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ha]=function(){return this},t},r}function ba(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ya.INIT}))throw new Error(da(12));if(void 0===o(void 0,{type:ya.PROBE_UNKNOWN_ACTION()}))throw new Error(da(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},l=0;l<a.length;l++){var s=a[l],c=o[s],f=t[s],p=c(f,e);if(void 0===p)throw e&&e.type,new Error(da(14));i[s]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function ma(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function va(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(da(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=ma.apply(void 0,n)(o.dispatch),pa(pa({},o),{},{dispatch:r})}}}function xa(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var Oa=xa();Oa.withExtraArgument=xa;var wa,Sa=Oa,Ca=(wa=function(t,e){return wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},wa(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}wa(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Na=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}},Ea=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Ia=Object.defineProperty,Ra=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,$a=function(t,e,o){return e in t?Ia(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ba=function(t,e){for(var o in e||(e={}))Ua.call(e,o)&&$a(t,o,e[o]);if(La)for(var r=0,i=La(e);r<i.length;r++){o=i[r];Wa.call(e,o)&&$a(t,o,e[o])}return t},za=function(t,e){return Ra(t,ka(e))},Fa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ma:ma.apply(null,arguments)};var Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Ca(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ea([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ea([void 0],t.concat(this))))},e}(Array),ja=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Ca(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ea([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ea([void 0],t.concat(this))))},e}(Array);function _a(t){return dn(t)?aa(t,(function(){})):t}function Pa(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Aa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(Sa.withExtraArgument(o.extraArgument)):r.push(Sa));return r}(t)}}function Ma(t){var e,o=Pa(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,l=void 0===a?o():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,p=void 0===f?void 0:f,d=r.enhancers,h=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ba(n)}var u=l;"function"==typeof u&&(u=u(o));var y=va.apply(void 0,u),g=ma;c&&(g=Fa(Ba({trace:!1},"object"==typeof c&&c)));var b=new ja(y),m=b;return Array.isArray(h)?m=Ea([y],h):"function"==typeof h&&(m=h(b)),ga(e,p,g.apply(void 0,m))}function Ka(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ba(Ba({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Za(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Da(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:_a(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};function c(){var e="function"==typeof t.extraReducers?Za(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,s=e[2],c=void 0===s?void 0:s,f=Ba(Ba({},i),l);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Za(e):[e,o,r],a=n[0],l=n[1],s=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return _a(t())};else{var c=_a(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=Ea([a[e.type]],l.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[s]),o.reduce((function(t,o){if(o){var r;if(pn(t))return void 0===(r=o(t,e))?t:r;if(dn(t))return aa(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,l[c]=o,s[t]=r?Ka(c,r):Ka(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:s,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ha=["name","message","stack","code"],Ta=function(t,e){this.payload=t,this.meta=e},Ga=function(t,e){this.payload=t,this.meta=e},Va=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ha;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function qa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Ka(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:za(Ba({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ka(t+"/pending",(function(t,e,o){return{payload:void 0,meta:za(Ba({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ka(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Va)(t||"Rejected"),meta:za(Ba({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(l,s,c){var f,p=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function h(t){f=t,d.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return Na(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:s,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),l(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:l,getState:s,extra:c,requestId:p,signal:d.signal,abort:h,rejectWithValue:function(t,e){return new Ta(t,e)},fulfillWithValue:function(t,e){return new Ga(t,e)}})).then((function(e){if(e instanceof Ta)throw e;return e instanceof Ga?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ta?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||l(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:h,requestId:p,arg:t,unwrap:function(){return u.then(qa)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ya="listenerMiddleware";Ka(Ya+"/add"),Ka(Ya+"/removeAll"),Ka(Ya+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Jn];return oa.get(e,t)},set:function(e){var o=this[Jn];oa.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Jn];if(!i.P)switch(i.i){case 5:r(i)&&jn(i);break;case 4:o(i)&&jn(i)}}}function o(t){for(var e=t.t,o=t.k,r=Qn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Jn){var a=e[n];if(void 0===a&&!yn(e,n))return!0;var l=o[n],s=l&&l[Jn];if(s?s.t!==a:!bn(l,a))return!0}}var c=!!e[Jn];return r.length!==Qn(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){ea[t]||(ea[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=ta(o);delete n[Jn];for(var a=Qn(n),l=0;l<a.length;l++){var s=a[l];n[s]=t(s,e||!!n[s].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:En(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Jn,{value:n,writable:!0}),i},S:function(t,o,i){i?pn(o)&&o[Jn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Jn];if(o){var i=o.t,n=o.k,a=o.R,l=o.i;if(4===l)hn(n,(function(e){e!==Jn&&(void 0!==i[e]||yn(i,e)?a[e]||t(n[e]):(a[e]=!0,jn(o)))})),hn(i,(function(t){void 0!==n[t]||yn(n,t)||(a[t]=!1,jn(o))}));else if(5===l){if(r(o)&&(jn(o),a.length=!0),n.length<i.length)for(var s=n.length;s<i.length;s++)a[s]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ja{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(en(i))return i;if(null==r)return;const n=Da({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ma({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new Ja(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new tn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}}var Xa=Object.freeze({__proto__:null,FtCommandQueue:tn,FtLitElementRedux:cn,FtReduxStore:Ja,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))en(e)&&e.clear()},isFtReduxStore:en,redux:Qi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var Qa=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const tl=Symbol("elementInternals");var el,ol,rl,il,nl=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[tl].form}constructor(...t){super(t),this[tl]=this.attachInternals(),this[tl].role=e}setFormValue(t){this[tl].setFormValue(t)}}}});const al=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(rl=null===(ol=null===(el=window.safari)||void 0===el?void 0:el.pushNotification)||void 0===ol?void 0:ol.toString())&&void 0!==rl?rl:""),ll="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(il=window.ftGlobals)&&void 0!==il?il:{lit:ve,litDecorators:Ie,litRepeat:Pe,litClassMap:Ke,litStyleMap:Te,litUnsafeHTML:qe,wcUtils:{...eo,...Qe,...ro,...no,...go,...Or,...Nr,...Ii,...vr,...ji,..._i,...po,...Hi,...qi,...Yi,...Xi,...Xa,...Wi,...Qa,...nl,isSafari:al,isTouchScreen:ll}};const sl=mo.extend("--ft-ripple-color","",xr.colorContent),cl={color:sl,backgroundColor:mo.extend("--ft-ripple-background-color","",sl),opacityContentOnSurfacePressed:mo.external(xr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mo.external(xr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mo.external(xr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mo.external(xr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:mo.create("--ft-ripple-border-radius","","SIZE","0px")},fl=mo.extend("--ft-ripple-color","",xr.colorPrimary),pl=fl,dl=mo.extend("--ft-ripple-background-color","",fl),hl=mo.extend("--ft-ripple-color","",xr.colorSecondary),ul=hl,yl=mo.extend("--ft-ripple-background-color","",hl),gl=dt`
176
+ `;var Yi=Object.freeze({__proto__:null,noTextSelect:Gi,safariEllipsisFix:qi,wordWrap:Vi}),Ji=Object.freeze({__proto__:null});class Xi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var Qi=Object.freeze({__proto__:null,ParametrizedLabelResolver:Xi});const tn=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!co(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class en{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function on(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var rn,nn,an;const ln=Symbol("internalReduxEventsUnsubscribers"),sn=Symbol("internalStoresUnsubscribers"),cn=Symbol("internalStores");class fn extends Ai{constructor(){super(...arguments),this[rn]=new Map,this[nn]=new Map,this[an]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[cn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[cn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[cn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:on(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[cn].delete(e)}setupStore(t,e){this[cn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[cn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[sn].has(t.store):this[sn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[sn].set(t,e.subscribe((()=>this.updateFromStores()))),on(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[ln].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[sn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ln].forEach((t=>t())),this[ln]=[]}unsubscribeFromStore(t){this[sn].has(t)&&this[sn].get(t)(),this[sn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function pn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dn(t){return!!t&&!!t[Xn]}function hn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Qn}(t)||Array.isArray(t)||!!t[Jn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Jn])||vn(t)||xn(t))}function un(t,e,o){void 0===o&&(o=!1),0===yn(t)?(o?Object.keys:ta)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function yn(t){var e=t[Xn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vn(t)?2:xn(t)?3:0}function gn(t,e){return 2===yn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function bn(t,e,o){var r=yn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function mn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function vn(t){return Gn&&t instanceof Map}function xn(t){return Vn&&t instanceof Set}function On(t){return t.o||t.t}function wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ea(t);delete e[Xn];for(var o=ta(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Sn(t,e){return void 0===e&&(e=!1),Nn(t)||dn(t)||!hn(t)||(yn(t)>1&&(t.set=t.add=t.clear=t.delete=Cn),Object.freeze(t),e&&un(t,(function(t,e){return Sn(e,!0)}),!0)),t}function Cn(){pn(2)}function Nn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function En(t){var e=oa[t];return e||pn(18,t),e}function In(){return Hn}function Rn(t,e){e&&(En("Patches"),t.u=[],t.s=[],t.v=e)}function kn(t){Ln(t),t.p.forEach(Wn),t.p=null}function Ln(t){t===Hn&&(Hn=t.l)}function Un(t){return Hn={p:[],l:Hn,h:t,m:!0,_:0}}function Wn(t){var e=t[Xn];0===e.i||1===e.i?e.j():e.g=!0}function $n(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||En("ES5").S(e,t,r),r?(o[Xn].P&&(kn(e),pn(4)),hn(t)&&(t=Bn(e,t),e.l||Fn(e,t)),e.u&&En("Patches").M(o[Xn].t,t,e.u,e.s)):t=Bn(e,o,[]),kn(e),e.u&&e.v(e.u,e.s),t!==Yn?t:void 0}function Bn(t,e,o){if(Nn(e))return e;var r=e[Xn];if(!r)return un(e,(function(i,n){return zn(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Fn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=wn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),un(n,(function(e,n){return zn(t,r,i,e,n,o,a)})),Fn(t,i,!1),o&&t.u&&En("Patches").N(r,o,t.u,t.s)}return r.o}function zn(t,e,o,r,i,n,a){if(dn(i)){var l=Bn(t,i,n&&e&&3!==e.i&&!gn(e.R,r)?n.concat(r):void 0);if(bn(o,r,l),!dn(l))return;t.m=!1}else a&&o.add(i);if(hn(i)&&!Nn(i)){if(!t.h.D&&t._<1)return;Bn(t,i),e&&e.A.l||Fn(t,i)}}function Fn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&Sn(e,o)}function An(t,e){var o=t[Xn];return(o?On(o):t)[e]}function jn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function _n(t){t.P||(t.P=!0,t.l&&_n(t.l))}function Pn(t){t.o||(t.o=wn(t.t))}function Mn(t,e,o){var r=vn(e)?En("MapSet").F(e,o):xn(e)?En("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:In(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=ra;o&&(i=[r],n=ia);var a=Proxy.revocable(i,n),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(e,o):En("ES5").J(e,o);return(o?o.A:In()).p.push(r),r}function Kn(t){return dn(t)||pn(22,t),function t(e){if(!hn(e))return e;var o,r=e[Xn],i=yn(e);if(r){if(!r.P&&(r.i<4||!En("ES5").K(r)))return r.t;r.I=!0,o=Zn(e,i),r.I=!1}else o=Zn(e,i);return un(o,(function(e,i){r&&function(t,e){return 2===yn(t)?t.get(e):t[e]}(r.t,e)===i||bn(o,e,t(i))})),3===i?new Set(o):o}(t)}function Zn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wn(t)}rn=sn,nn=cn,an=ln,fn.reduxProperties=new Map,fn.reduxReactiveProperties=new Set,fn.reduxEventListeners=new Map;var Dn,Hn,Tn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Gn="undefined"!=typeof Map,Vn="undefined"!=typeof Set,qn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Yn=Tn?Symbol.for("immer-nothing"):((Dn={})["immer-nothing"]=!0,Dn),Jn=Tn?Symbol.for("immer-draftable"):"__$immer_draftable",Xn=Tn?Symbol.for("immer-state"):"__$immer_state",Qn=""+Object.prototype.constructor,ta="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ea=Object.getOwnPropertyDescriptors||function(t){var e={};return ta(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},oa={},ra={get:function(t,e){if(e===Xn)return t;var o=On(t);if(!gn(o,e))return function(t,e,o){var r,i=jn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!hn(r)?r:r===An(t.t,e)?(Pn(t),t.o[e]=Mn(t.A.h,r,t)):r},has:function(t,e){return e in On(t)},ownKeys:function(t){return Reflect.ownKeys(On(t))},set:function(t,e,o){var r=jn(On(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=An(On(t),e),n=null==i?void 0:i[Xn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(mn(o,i)&&(void 0!==o||gn(t.t,e)))return!0;Pn(t),_n(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==An(t.t,e)||e in t.t?(t.R[e]=!1,Pn(t),_n(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=On(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){pn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pn(12)}},ia={};un(ra,(function(t,e){ia[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ia.deleteProperty=function(t,e){return ia.set.call(this,t,e,void 0)},ia.set=function(t,e,o){return ra.set.call(this,t[0],e,o,t[0])};var na=function(){function t(t){var e=this;this.O=qn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&pn(6),void 0!==r&&"function"!=typeof r&&pn(7),hn(t)){var l=Un(e),s=Mn(e,t,void 0),c=!0;try{a=o(s),c=!1}finally{c?kn(l):Ln(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Rn(l,r),$n(t,l)}),(function(t){throw kn(l),t})):(Rn(l,r),$n(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Yn&&(a=void 0),e.D&&Sn(a,!0),r){var f=[],p=[];En("Patches").M(t,a,f,p),r(f,p)}return a}pn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){hn(t)||pn(8),dn(t)&&(t=Kn(t));var e=Un(this),o=Mn(this,t,void 0);return o[Xn].C=!0,Ln(e),o},e.finishDraft=function(t,e){var o=(t&&t[Xn]).A;return Rn(o,e),$n(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!qn&&pn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=En("Patches").$;return dn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),aa=new na,la=aa.produce;function sa(t){return sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(t)}function ca(t){var e=function(t,e){if("object"!==sa(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==sa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sa(e)?e:String(e)}function fa(t,e,o){return(e=ca(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function da(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?pa(Object(o),!0).forEach((function(e){fa(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ha(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}aa.produceWithPatches.bind(aa),aa.setAutoFreeze.bind(aa),aa.setUseProxies.bind(aa),aa.applyPatches.bind(aa),aa.createDraft.bind(aa),aa.finishDraft.bind(aa);var ua="function"==typeof Symbol&&Symbol.observable||"@@observable",ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},ga={INIT:"@@redux/INIT"+ya(),REPLACE:"@@redux/REPLACE"+ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ya()}};function ba(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ha(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ha(1));return o(ba)(t,e)}if("function"!=typeof t)throw new Error(ha(2));var i=t,n=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(ha(3));return n}function p(t){if("function"!=typeof t)throw new Error(ha(4));if(s)throw new Error(ha(5));var e=!0;return c(),l.push(t),function(){if(e){if(s)throw new Error(ha(6));e=!1,c();var o=l.indexOf(t);l.splice(o,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ha(7));if(void 0===t.type)throw new Error(ha(8));if(s)throw new Error(ha(9));try{s=!0,n=i(n,t)}finally{s=!1}for(var e=a=l,o=0;o<e.length;o++){(0,e[o])()}return t}return d({type:ga.INIT}),(r={dispatch:d,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ha(10));i=t,d({type:ga.REPLACE})}})[ua]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ha(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ua]=function(){return this},t},r}function ma(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ga.INIT}))throw new Error(ha(12));if(void 0===o(void 0,{type:ga.PROBE_UNKNOWN_ACTION()}))throw new Error(ha(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},l=0;l<a.length;l++){var s=a[l],c=o[s],f=t[s],p=c(f,e);if(void 0===p)throw e&&e.type,new Error(ha(14));i[s]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function va(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function xa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(ha(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=va.apply(void 0,n)(o.dispatch),da(da({},o),{},{dispatch:r})}}}function Oa(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var wa=Oa();wa.withExtraArgument=Oa;var Sa,Ca=wa,Na=(Sa=function(t,e){return Sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},Sa(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Sa(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ea=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}},Ia=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Ra=Object.defineProperty,ka=Object.defineProperties,La=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Ba=function(t,e,o){return e in t?Ra(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},za=function(t,e){for(var o in e||(e={}))Wa.call(e,o)&&Ba(t,o,e[o]);if(Ua)for(var r=0,i=Ua(e);r<i.length;r++){o=i[r];$a.call(e,o)&&Ba(t,o,e[o])}return t},Fa=function(t,e){return ka(t,La(e))},Aa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?va:va.apply(null,arguments)};var ja=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Na(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ia([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ia([void 0],t.concat(this))))},e}(Array),_a=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Na(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ia([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ia([void 0],t.concat(this))))},e}(Array);function Pa(t){return hn(t)?la(t,(function(){})):t}function Ma(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new ja;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(Ca.withExtraArgument(o.extraArgument)):r.push(Ca));return r}(t)}}function Ka(t){var e,o=Ma(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,l=void 0===a?o():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,p=void 0===f?void 0:f,d=r.enhancers,h=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ma(n)}var u=l;"function"==typeof u&&(u=u(o));var y=xa.apply(void 0,u),g=va;c&&(g=Aa(za({trace:!1},"object"==typeof c&&c)));var b=new _a(y),m=b;return Array.isArray(h)?m=Ia([y],h):"function"==typeof h&&(m=h(b)),ba(e,p,g.apply(void 0,m))}function Za(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return za(za({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Da(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ha(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Pa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};function c(){var e="function"==typeof t.extraReducers?Da(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,s=e[2],c=void 0===s?void 0:s,f=za(za({},i),l);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Da(e):[e,o,r],a=n[0],l=n[1],s=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Pa(t())};else{var c=Pa(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=Ia([a[e.type]],l.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[s]),o.reduce((function(t,o){if(o){var r;if(dn(t))return void 0===(r=o(t,e))?t:r;if(hn(t))return la(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,l[c]=o,s[t]=r?Za(c,r):Za(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:s,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ta=["name","message","stack","code"],Ga=function(t,e){this.payload=t,this.meta=e},Va=function(t,e){this.payload=t,this.meta=e},qa=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ta;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ya(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Za(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Fa(za({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Za(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Fa(za({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Za(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||qa)(t||"Rejected"),meta:Fa(za({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(l,s,c){var f,p=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function h(t){f=t,d.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return Ea(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:s,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),l(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:l,getState:s,extra:c,requestId:p,signal:d.signal,abort:h,rejectWithValue:function(t,e){return new Ga(t,e)},fulfillWithValue:function(t,e){return new Va(t,e)}})).then((function(e){if(e instanceof Ga)throw e;return e instanceof Va?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ga?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||l(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:h,requestId:p,arg:t,unwrap:function(){return u.then(Ya)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ja="listenerMiddleware";Za(Ja+"/add"),Za(Ja+"/removeAll"),Za(Ja+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Xn];return ra.get(e,t)},set:function(e){var o=this[Xn];ra.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Xn];if(!i.P)switch(i.i){case 5:r(i)&&_n(i);break;case 4:o(i)&&_n(i)}}}function o(t){for(var e=t.t,o=t.k,r=ta(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Xn){var a=e[n];if(void 0===a&&!gn(e,n))return!0;var l=o[n],s=l&&l[Xn];if(s?s.t!==a:!mn(l,a))return!0}}var c=!!e[Xn];return r.length!==ta(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){oa[t]||(oa[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=ea(o);delete n[Xn];for(var a=ta(n),l=0;l<a.length;l++){var s=a[l];n[s]=t(s,e||!!n[s].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:In(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Xn,{value:n,writable:!0}),i},S:function(t,o,i){i?dn(o)&&o[Xn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Xn];if(o){var i=o.t,n=o.k,a=o.R,l=o.i;if(4===l)un(n,(function(e){e!==Xn&&(void 0!==i[e]||gn(i,e)?a[e]||t(n[e]):(a[e]=!0,_n(o)))})),un(i,(function(t){void 0!==n[t]||gn(n,t)||(a[t]=!1,_n(o))}));else if(5===l){if(r(o)&&(_n(o),a.length=!0),n.length<i.length)for(var s=n.length;s<i.length;s++)a[s]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Xa{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(on(i))return i;if(null==r)return;const n=Ha({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ka({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new Xa(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new en,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}}var Qa=Object.freeze({__proto__:null,FtCommandQueue:en,FtLitElementRedux:fn,FtReduxStore:Xa,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))on(e)&&e.clear()},isFtReduxStore:on,redux:tn,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var tl=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const el=Symbol("elementInternals");var ol,rl,il,nl,al=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[el].form}constructor(...t){super(t),this[el]=this.attachInternals(),this[el].role=e}setFormValue(t){this[el].setFormValue(t)}}}});const ll=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(il=null===(rl=null===(ol=window.safari)||void 0===ol?void 0:ol.pushNotification)||void 0===rl?void 0:rl.toString())&&void 0!==il?il:""),sl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(nl=window.ftGlobals)&&void 0!==nl?nl:{lit:ve,litDecorators:Ie,litRepeat:Pe,litClassMap:Ke,litStyleMap:Te,litUnsafeHTML:qe,wcUtils:{...eo,...Qe,...ro,...no,...go,...Or,...Nr,...Ii,...vr,...ji,..._i,...po,...Ti,...Yi,...Ji,...Qi,...Qa,...Wi,...tl,...al,isSafari:ll,isTouchScreen:sl}};const cl=mo.extend("--ft-ripple-color","",xr.colorContent),fl={color:cl,backgroundColor:mo.extend("--ft-ripple-background-color","",cl),opacityContentOnSurfacePressed:mo.external(xr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mo.external(xr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mo.external(xr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mo.external(xr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:mo.create("--ft-ripple-border-radius","","SIZE","0px")},pl=mo.extend("--ft-ripple-color","",xr.colorPrimary),dl=pl,hl=mo.extend("--ft-ripple-background-color","",pl),ul=mo.extend("--ft-ripple-color","",xr.colorSecondary),yl=ul,gl=mo.extend("--ft-ripple-background-color","",ul),bl=dt`
177
177
  :host {
178
178
  display: contents;
179
179
  }
@@ -186,7 +186,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
186
186
 
187
187
  .ft-ripple:not(.ft-ripple--unbounded) {
188
188
  overflow: hidden;
189
- border-radius: ${cl.borderRadius};
189
+ border-radius: ${fl.borderRadius};
190
190
  }
191
191
 
192
192
  .ft-ripple .ft-ripple--background,
@@ -220,27 +220,27 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
220
220
  }
221
221
 
222
222
  .ft-ripple .ft-ripple--background {
223
- background-color: ${cl.backgroundColor};
223
+ background-color: ${fl.backgroundColor};
224
224
  }
225
225
 
226
226
  .ft-ripple .ft-ripple--effect {
227
- background-color: ${cl.color};
227
+ background-color: ${fl.color};
228
228
  }
229
229
 
230
230
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
231
- background-color: ${yl};
231
+ background-color: ${gl};
232
232
  }
233
233
 
234
234
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
235
- background-color: ${ul};
235
+ background-color: ${yl};
236
236
  }
237
237
 
238
238
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
239
- background-color: ${dl};
239
+ background-color: ${hl};
240
240
  }
241
241
 
242
242
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
243
- background-color: ${pl};
243
+ background-color: ${dl};
244
244
  }
245
245
 
246
246
  .ft-ripple .ft-ripple--background {
@@ -270,22 +270,22 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
270
270
  }
271
271
 
272
272
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
273
- opacity: ${cl.opacityContentOnSurfaceHover};
273
+ opacity: ${fl.opacityContentOnSurfaceHover};
274
274
  }
275
275
 
276
276
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
277
- opacity: ${cl.opacityContentOnSurfaceSelected};
277
+ opacity: ${fl.opacityContentOnSurfaceSelected};
278
278
  }
279
279
 
280
280
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
281
- opacity: ${cl.opacityContentOnSurfaceFocused};
281
+ opacity: ${fl.opacityContentOnSurfaceFocused};
282
282
  }
283
283
 
284
284
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
285
- opacity: ${cl.opacityContentOnSurfacePressed};
285
+ opacity: ${fl.opacityContentOnSurfacePressed};
286
286
  transform: translate(-50%, -50%) scale(1);
287
287
  }
288
- `,bl={size:mo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:mo.extend("--ft-icon-fluid-topics-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:mo.extend("--ft-icon-file-format-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:mo.extend("--ft-icon-material-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:mo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ml=dt`
288
+ `,ml={size:mo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:mo.extend("--ft-icon-fluid-topics-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:mo.extend("--ft-icon-file-format-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:mo.extend("--ft-icon-material-font-family","",mo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:mo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vl=dt`
289
289
  :host, i.ft-icon {
290
290
  display: inline-flex;
291
291
  align-items: center;
@@ -294,14 +294,14 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
294
294
  }
295
295
 
296
296
  :host {
297
- width: ${bl.size};
298
- height: ${bl.size};
297
+ width: ${ml.size};
298
+ height: ${ml.size};
299
299
  }
300
300
 
301
301
  i.ft-icon {
302
302
  width: 100%;
303
303
  height: 100%;
304
- font-size: ${bl.size};
304
+ font-size: ${ml.size};
305
305
  line-height: 1;
306
306
  font-weight: normal;
307
307
  text-transform: none;
@@ -312,40 +312,40 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
312
312
  text-rendering: auto;
313
313
  -webkit-font-smoothing: antialiased;
314
314
  -moz-osx-font-smoothing: grayscale;
315
- vertical-align: ${bl.verticalAlign};
315
+ vertical-align: ${ml.verticalAlign};
316
316
  }
317
317
 
318
318
  i.ft-icon.ft-icon--fluid-topics {
319
- font-family: ${bl.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
319
+ font-family: ${ml.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
320
320
 
321
321
  /* Ugly fix because font is broken */
322
- font-size: calc(0.75 * ${bl.size});
323
- line-height: ${bl.size};
322
+ font-size: calc(0.75 * ${ml.size});
323
+ line-height: ${ml.size};
324
324
  position: relative;
325
325
  top: -4%;
326
326
  justify-content: center;
327
327
  }
328
328
 
329
329
  .ft-icon--file-format {
330
- font-family: ${bl.fileFormatFontFamily}, ft-mime, sans-serif;
330
+ font-family: ${ml.fileFormatFontFamily}, ft-mime, sans-serif;
331
331
  }
332
332
 
333
333
  .ft-icon--material {
334
- font-family: ${bl.materialFontFamily}, "Material Icons", sans-serif;
334
+ font-family: ${ml.materialFontFamily}, "Material Icons", sans-serif;
335
335
  }
336
- `,vl={itemsGap:mo.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:mo.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:mo.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:mo.extend("--ft-reader-attachments-item-border-color","",xr.colorOutline),itemBorderRadius:mo.extend("--ft-reader-attachments-item-border-radius","",xr.borderRadiusS),itemBackgroundColor:mo.extend("--ft-reader-attachments-item-background-color","",xr.colorSurface),itemTextColor:mo.extend("--ft-reader-attachments-item-text-color","",xr.colorOnSurfaceMedium),itemHoverBackgroundColor:mo.extend("--ft-reader-attachments-item-hover-background-color","",xr.colorPrimary),itemHoverTextColor:mo.extend("--ft-reader-attachments-item-hover-text-color","",xr.colorOnSurfaceHigh),fileFormatIconSize:mo.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:mo.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")},xl=dt`
336
+ `,xl={itemsGap:mo.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:mo.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:mo.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:mo.extend("--ft-reader-attachments-item-border-color","",xr.colorOutline),itemBorderRadius:mo.extend("--ft-reader-attachments-item-border-radius","",xr.borderRadiusS),itemBackgroundColor:mo.extend("--ft-reader-attachments-item-background-color","",xr.colorSurface),itemTextColor:mo.extend("--ft-reader-attachments-item-text-color","",xr.colorOnSurfaceMedium),itemHoverBackgroundColor:mo.extend("--ft-reader-attachments-item-hover-background-color","",xr.colorPrimary),itemHoverTextColor:mo.extend("--ft-reader-attachments-item-hover-text-color","",xr.colorOnSurfaceHigh),fileFormatIconSize:mo.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:mo.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")},Ol=dt`
337
337
  [part="container"] {
338
338
  display: flex;
339
339
  flex-direction: column;
340
- gap: ${vl.itemsGap};
340
+ gap: ${xl.itemsGap};
341
341
  }
342
342
 
343
343
  [part="attachment"] {
344
344
  border-style: solid;
345
- border-width: ${vl.itemBorderWidth};
346
- border-color: ${vl.itemBorderColor};
347
- border-radius: ${vl.itemBorderRadius};
348
- background-color: ${vl.itemBackgroundColor};
345
+ border-width: ${xl.itemBorderWidth};
346
+ border-color: ${xl.itemBorderColor};
347
+ border-radius: ${xl.itemBorderRadius};
348
+ background-color: ${xl.itemBackgroundColor};
349
349
  }
350
350
 
351
351
  [part="attachment"], [part="viewer-link"], [part="download-link"] {
@@ -355,14 +355,14 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
355
355
 
356
356
  [part="viewer-link"], [part="download-link"] {
357
357
  position: relative;
358
- color: ${vl.itemTextColor};
358
+ color: ${xl.itemTextColor};
359
359
  text-decoration: none;
360
- padding: ${vl.itemPadding};
360
+ padding: ${xl.itemPadding};
361
361
  align-items: center;
362
362
  }
363
363
 
364
364
  [part="viewer-link"]:hover, [part="download-link"]:hover {
365
- color: ${vl.itemHoverTextColor};
365
+ color: ${xl.itemHoverTextColor};
366
366
  }
367
367
 
368
368
  [part="viewer-link"] {
@@ -377,16 +377,16 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
377
377
  }
378
378
 
379
379
  [part~="ripple"] {
380
- ${vo(cl.color,vl.itemHoverBackgroundColor)};
381
- ${vo(cl.borderRadius,vl.itemBorderRadius)};
380
+ ${vo(fl.color,xl.itemHoverBackgroundColor)};
381
+ ${vo(fl.borderRadius,xl.itemBorderRadius)};
382
382
  }
383
383
 
384
384
  [part="file-format-icon"] {
385
- ${vo(bl.size,vl.fileFormatIconSize)};
385
+ ${vo(ml.size,xl.fileFormatIconSize)};
386
386
  }
387
387
 
388
388
  [part="download-icon"] {
389
- ${vo(bl.size,vl.downloadIconSize)};
389
+ ${vo(ml.size,xl.downloadIconSize)};
390
390
  }
391
391
 
392
392
  .hide-file-format-icon [part="file-format-icon"] {
@@ -400,121 +400,121 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
400
400
  .hide-download-icon [part="download-link"] {
401
401
  display: none;
402
402
  }
403
- `;var Ol;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Ol||(Ol={}));var wl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sl extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Cl=Symbol("registerInterval");class Nl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Cl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Cl]):this.dispatchEvent(new Sl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Cl,wl([Se()],o.prototype,"stateManager",void 0),o}(cn)){}const El=dt`
404
- `,Il=dt`
405
- `,Rl=Ja.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class kl{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Rl.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static await(t){return new Promise((e=>{let o=kl.get(t);if(o)e(o);else{const r=Rl.subscribe((()=>{o=kl.get(t),o&&(r(),e(o))}))}}))}}class Ll{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new to,this.cache=t?r.commonCache:new to}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:kl.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:kl.await()}clearCache(){this.cache.clearAll()}}var Ul;const Wl=Symbol("clearAfterUnitTest");class $l extends Ll{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ul]=()=>{this.defaultMessages={},this.cache=new to,this.listeners={}},this.currentUiLocale=Rl.getState().uiLocale,Rl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Rl.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};co(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Ji(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ao(0).then((()=>t())).catch((()=>null)))))}}Ul=Wl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends $l{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends $l{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Bl=window.FluidTopicsI18nService,zl=window.FluidTopicsCustomI18nService;var Fl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Al extends Ai{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>kl.get(),this.messageContexts=[],this.cache=new to,this.cleanSessionDebouncer=new io}render(){return Jt`
403
+ `;var wl;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(wl||(wl={}));var Sl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cl extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Nl=Symbol("registerInterval");class El extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Nl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Nl]):this.dispatchEvent(new Cl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Nl,Sl([Se()],o.prototype,"stateManager",void 0),o}(fn)){}const Il=dt`
404
+ `,Rl=dt`
405
+ `,kl=Xa.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class Ll{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=kl.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static await(t){return new Promise((e=>{let o=Ll.get(t);if(o)e(o);else{const r=kl.subscribe((()=>{o=Ll.get(t),o&&(r(),e(o))}))}}))}}class Ul{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new to,this.cache=t?r.commonCache:new to}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ll.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ll.await()}clearCache(){this.cache.clearAll()}}var Wl;const $l=Symbol("clearAfterUnitTest");class Bl extends Ul{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wl]=()=>{this.defaultMessages={},this.cache=new to,this.listeners={}},this.currentUiLocale=kl.getState().uiLocale,kl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kl.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};co(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Xi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ao(0).then((()=>t())).catch((()=>null)))))}}Wl=$l,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Bl{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Bl{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const zl=window.FluidTopicsI18nService,Fl=window.FluidTopicsCustomI18nService;var Al=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jl extends Ai{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ll.get(),this.messageContexts=[],this.cache=new to,this.cleanSessionDebouncer=new io}render(){return Jt`
406
406
  <slot></slot>
407
- `}update(t){super.update(t),t.has("baseUrl")&&(Rl.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Rl.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Rl.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Rl.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Rl.actions.noCustom(this.noCustom),t.has("editorMode")&&Rl.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Rl.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Rl.actions.session(this.session),t.has("availableUiLocales")&&Rl.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Bl.addContext(t))),t.has("openExternalDocumentInNewTab")&&Rl.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Rl.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Rl.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Al.elementDefinitions={},Al.styles=Il,Fl([we()],Al.prototype,"baseUrl",void 0),Fl([we()],Al.prototype,"apiIntegrationIdentifier",void 0),Fl([we()],Al.prototype,"uiLocale",void 0),Fl([uo(null)],Al.prototype,"availableUiLocales",void 0),Fl([uo(null)],Al.prototype,"metadataConfiguration",void 0),Fl([we({type:Boolean})],Al.prototype,"editorMode",void 0),Fl([we({type:Boolean})],Al.prototype,"noCustom",void 0),Fl([we({type:Boolean})],Al.prototype,"openExternalDocumentInNewTab",void 0),Fl([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Al.prototype,"noCustomComponent",void 0),Fl([we({type:Boolean})],Al.prototype,"withManualResources",void 0),Fl([we({type:Boolean})],Al.prototype,"navigatorOnline",void 0),Fl([we({type:Boolean})],Al.prototype,"forcedOffline",void 0),Fl([we({type:Object})],Al.prototype,"apiProvider",void 0),Fl([uo([])],Al.prototype,"messageContexts",void 0),Fl([uo(void 0)],Al.prototype,"session",void 0);class jl extends Ll{async listMySearches(){let t=Rl.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class _l extends Ll{async listMyBookmarks(){let t=Rl.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Pl=Ja.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Rl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _l,this.savedSearchesService=new jl,Rl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Rl.getState();co(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pl.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pl.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Pl.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Pl.actions.bookmarks(e)}}},ho("ft-app-context")(Al);var Ml=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Kl=Symbol("i18nAttributes"),Zl=Symbol("i18nProperties"),Dl=Symbol("i18nUnsubs");function Hl(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?zl:Bl}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e,o;null===(e=this[Kl])||void 0===e||e.forEach(((e,o)=>{var r;const i=this.getI18nAttributeValue(o);(null===(r=null==i?void 0:i.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,i,e)})),null===(o=this[Zl])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Kl])||void 0===e||e.forEach(((e,o)=>{const r=this.getI18nAttributeValue(o);(null==r?void 0:r.context)&&r.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(o,r,e))})),null===(o=this[Zl])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,r;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Zl])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(r=null===(o=this[Kl])||void 0===o?void 0:o.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Dl].has(t)||this[Dl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Dl].forEach((t=>t())),this[Dl].clear()}}return e=Dl,Ml([we({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Tl extends(Hl(Ai)){}class Gl extends(Hl(cn)){}var Vl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ql extends Gl{constructor(){super(),this.editorMode=!1,this.addStore(Rl)}render(){return this.key&&this.context?Jt`
407
+ `}update(t){super.update(t),t.has("baseUrl")&&(kl.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&kl.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kl.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&kl.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&kl.actions.noCustom(this.noCustom),t.has("editorMode")&&kl.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&kl.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&kl.actions.session(this.session),t.has("availableUiLocales")&&kl.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zl.addContext(t))),t.has("openExternalDocumentInNewTab")&&kl.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&kl.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&kl.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}jl.elementDefinitions={},jl.styles=Rl,Al([we()],jl.prototype,"baseUrl",void 0),Al([we()],jl.prototype,"apiIntegrationIdentifier",void 0),Al([we()],jl.prototype,"uiLocale",void 0),Al([uo(null)],jl.prototype,"availableUiLocales",void 0),Al([uo(null)],jl.prototype,"metadataConfiguration",void 0),Al([we({type:Boolean})],jl.prototype,"editorMode",void 0),Al([we({type:Boolean})],jl.prototype,"noCustom",void 0),Al([we({type:Boolean})],jl.prototype,"openExternalDocumentInNewTab",void 0),Al([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jl.prototype,"noCustomComponent",void 0),Al([we({type:Boolean})],jl.prototype,"withManualResources",void 0),Al([we({type:Boolean})],jl.prototype,"navigatorOnline",void 0),Al([we({type:Boolean})],jl.prototype,"forcedOffline",void 0),Al([we({type:Object})],jl.prototype,"apiProvider",void 0),Al([uo([])],jl.prototype,"messageContexts",void 0),Al([uo(void 0)],jl.prototype,"session",void 0);class _l extends Ul{async listMySearches(){let t=kl.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Pl extends Ul{async listMyBookmarks(){let t=kl.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Ml=Xa.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=kl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Pl,this.savedSearchesService=new _l,kl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=kl.getState();co(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ml.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ml.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Ml.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ml.actions.bookmarks(e)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,e=!1){kl.commands.add(t,e)}consumeCommand(t){return kl.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){Hi(t,e)}},ho("ft-app-context")(jl);var Kl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Zl=Symbol("i18nAttributes"),Dl=Symbol("i18nProperties"),Hl=Symbol("i18nUnsubs");function Tl(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Fl:zl}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e,o;null===(e=this[Zl])||void 0===e||e.forEach(((e,o)=>{var r;const i=this.getI18nAttributeValue(o);(null===(r=null==i?void 0:i.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,i,e)})),null===(o=this[Dl])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Zl])||void 0===e||e.forEach(((e,o)=>{const r=this.getI18nAttributeValue(o);(null==r?void 0:r.context)&&r.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(o,r,e))})),null===(o=this[Dl])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,r;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Dl])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(r=null===(o=this[Zl])||void 0===o?void 0:o.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Hl].has(t)||this[Hl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Hl].forEach((t=>t())),this[Hl].clear()}}return e=Hl,Kl([we({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Gl extends(Tl(Ai)){}class Vl extends(Tl(fn)){}var ql=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yl extends Vl{constructor(){super(),this.editorMode=!1,this.addStore(kl)}render(){return this.key&&this.context?Jt`
408
408
  <span class="ft-i18n">
409
409
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
410
410
  </span>
411
- `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}ql.elementDefinitions={},ql.styles=El,Vl([Qi()],ql.prototype,"editorMode",void 0),Vl([we()],ql.prototype,"context",void 0),Vl([we()],ql.prototype,"key",void 0),Vl([uo([])],ql.prototype,"args",void 0),Vl([we()],ql.prototype,"defaultMessage",void 0);class Yl{static build(t){return new Yl(t)}static fromGwt(t){return new Yl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Bl.resolveMessage(this.name,e,...t)})}}ho("ft-i18n")(ql);const Jl=Yl.build("designedReaderAttachments"),Xl={download:"Download “{0}”"};var Ql,ts;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(Ql||(Ql={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ts||(ts={}));const es=new Map([...["abw"].map((t=>[t,ts.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ts.AUDIO])),...["avi"].map((t=>[t,ts.AVI])),...["chm","xhs"].map((t=>[t,ts.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ts.CODE])),...["csv"].map((t=>[t,ts.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ts.DITA])),...["epub"].map((t=>[t,ts.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ts.EXCEL])),...["flac"].map((t=>[t,ts.FLAC])),...["gif"].map((t=>[t,ts.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ts.GZIP])),...["html","htm","xhtml"].map((t=>[t,ts.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,ts.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ts.JPEG])),...["json"].map((t=>[t,ts.JSON])),...["m4a","m4p"].map((t=>[t,ts.M4A])),...["mov","qt"].map((t=>[t,ts.MOV])),...["mp3"].map((t=>[t,ts.MP3])),...["mp4","m4v"].map((t=>[t,ts.MP4])),...["ogg","oga"].map((t=>[t,ts.OGG])),...["pdf","ps"].map((t=>[t,ts.PDF])),...["png"].map((t=>[t,ts.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ts.POWERPOINT])),...["rar"].map((t=>[t,ts.RAR])),...["stp"].map((t=>[t,ts.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ts.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ts.VIDEO])),...["wav"].map((t=>[t,ts.WAV])),...["wma"].map((t=>[t,ts.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ts.WORD])),...["xml","xsl","rdf"].map((t=>[t,ts.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ts.YAML])),...["zip"].map((t=>[t,ts.ZIP]))]),os=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const rs={[ts.ABW]:"#91ABC6",[ts.AUDIO]:"#1795E3",[ts.AVI]:"#E63324",[ts.CHM]:"#71C3EB",[ts.CODE]:"#71C3EB",[ts.CSV]:"#1F7345",[ts.DITA]:"#71C3EB",[ts.EPUB]:"#85B926",[ts.EXCEL]:"#1F7345",[ts.FLAC]:"#1795E3",[ts.GIF]:"#59B031",[ts.GZIP]:"#F8AB36",[ts.HTML]:"#71C3EB",[ts.IMAGE]:"#59B031",[ts.JPEG]:"#59B031",[ts.JSON]:"#71C3EB",[ts.M4A]:"#1795E3",[ts.MOV]:"#E63324",[ts.MP3]:"#1795E3",[ts.MP4]:"#E63324",[ts.OGG]:"#1795E3",[ts.PDF]:"#E44948",[ts.PNG]:"#59B031",[ts.POWERPOINT]:"#B54A2B",[ts.RAR]:"#F8AB36",[ts.STP]:"#3764B1",[ts.TEXT]:"#3162AB",[ts.UNKNOWN]:"#999999",[ts.VIDEO]:"#E63324",[ts.WAV]:"#1795E3",[ts.WMA]:"#1795E3",[ts.WORD]:"#3162AB",[ts.XML]:"#71C3EB",[ts.YAML]:"#71C3EB",[ts.ZIP]:"#F8AB36"};var is;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(is||(is={}));var ns=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class as extends Ai{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(is).includes(this.variant)?this.variant:is.fluid_topics,e=t!==is.material||!!this.value;return Jt`
411
+ `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Yl.elementDefinitions={},Yl.styles=Il,ql([tn()],Yl.prototype,"editorMode",void 0),ql([we()],Yl.prototype,"context",void 0),ql([we()],Yl.prototype,"key",void 0),ql([uo([])],Yl.prototype,"args",void 0),ql([we()],Yl.prototype,"defaultMessage",void 0);class Jl{static build(t){return new Jl(t)}static fromGwt(t){return new Jl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>zl.resolveMessage(this.name,e,...t)})}}ho("ft-i18n")(Yl);const Xl=Jl.build("designedReaderAttachments"),Ql={download:"Download “{0}”"};var ts,es;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(ts||(ts={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(es||(es={}));const os=new Map([...["abw"].map((t=>[t,es.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,es.AUDIO])),...["avi"].map((t=>[t,es.AVI])),...["chm","xhs"].map((t=>[t,es.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,es.CODE])),...["csv"].map((t=>[t,es.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,es.DITA])),...["epub"].map((t=>[t,es.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,es.EXCEL])),...["flac"].map((t=>[t,es.FLAC])),...["gif"].map((t=>[t,es.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,es.GZIP])),...["html","htm","xhtml"].map((t=>[t,es.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,es.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,es.JPEG])),...["json"].map((t=>[t,es.JSON])),...["m4a","m4p"].map((t=>[t,es.M4A])),...["mov","qt"].map((t=>[t,es.MOV])),...["mp3"].map((t=>[t,es.MP3])),...["mp4","m4v"].map((t=>[t,es.MP4])),...["ogg","oga"].map((t=>[t,es.OGG])),...["pdf","ps"].map((t=>[t,es.PDF])),...["png"].map((t=>[t,es.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,es.POWERPOINT])),...["rar"].map((t=>[t,es.RAR])),...["stp"].map((t=>[t,es.STP])),...["txt","rtf","md","mdown"].map((t=>[t,es.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,es.VIDEO])),...["wav"].map((t=>[t,es.WAV])),...["wma"].map((t=>[t,es.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,es.WORD])),...["xml","xsl","rdf"].map((t=>[t,es.XML])),...["yaml","yml","x-yaml"].map((t=>[t,es.YAML])),...["zip"].map((t=>[t,es.ZIP]))]),rs=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const is={[es.ABW]:"#91ABC6",[es.AUDIO]:"#1795E3",[es.AVI]:"#E63324",[es.CHM]:"#71C3EB",[es.CODE]:"#71C3EB",[es.CSV]:"#1F7345",[es.DITA]:"#71C3EB",[es.EPUB]:"#85B926",[es.EXCEL]:"#1F7345",[es.FLAC]:"#1795E3",[es.GIF]:"#59B031",[es.GZIP]:"#F8AB36",[es.HTML]:"#71C3EB",[es.IMAGE]:"#59B031",[es.JPEG]:"#59B031",[es.JSON]:"#71C3EB",[es.M4A]:"#1795E3",[es.MOV]:"#E63324",[es.MP3]:"#1795E3",[es.MP4]:"#E63324",[es.OGG]:"#1795E3",[es.PDF]:"#E44948",[es.PNG]:"#59B031",[es.POWERPOINT]:"#B54A2B",[es.RAR]:"#F8AB36",[es.STP]:"#3764B1",[es.TEXT]:"#3162AB",[es.UNKNOWN]:"#999999",[es.VIDEO]:"#E63324",[es.WAV]:"#1795E3",[es.WMA]:"#1795E3",[es.WORD]:"#3162AB",[es.XML]:"#71C3EB",[es.YAML]:"#71C3EB",[es.ZIP]:"#F8AB36"};var ns;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ls extends Ai{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return Jt`
412
412
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
413
413
  ${Ve(this.resolvedIcon)}
414
414
  <slot ?hidden=${e}></slot>
415
415
  </i>
416
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case is.file_format:this.resolvedIcon=null!==(t=ts[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case is.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=Ql[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}as.elementDefinitions={},as.styles=ml,ns([we()],as.prototype,"variant",void 0),ns([we()],as.prototype,"value",void 0),ns([Se()],as.prototype,"resolvedIcon",void 0),ns([Ne("slot")],as.prototype,"slottedContent",void 0),ho("ft-icon")(as);
416
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ns.file_format:this.resolvedIcon=null!==(t=es[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ns.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=ts[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ls.elementDefinitions={},ls.styles=vl,as([we()],ls.prototype,"variant",void 0),as([we()],ls.prototype,"value",void 0),as([Se()],ls.prototype,"resolvedIcon",void 0),as([Ne("slot")],ls.prototype,"slottedContent",void 0),ho("ft-icon")(ls);
417
417
  /**
418
418
  * @license
419
419
  * Copyright 2020 Google LLC
420
420
  * SPDX-License-Identifier: BSD-3-Clause
421
421
  */
422
- const ls=Symbol.for(""),ss=t=>{if(t?.r===ls)return t?._$litStatic$},cs=t=>({_$litStatic$:t,r:ls}),fs=new Map,ps=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],l=[];let s,c=0,f=!1;for(;c<r;){for(s=e[c];c<r&&void 0!==(n=o[c],i=ss(n));)s+=i+e[++c],f=!0;c!==r&&l.push(n),a.push(s),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=fs.get(t))&&(a.raw=a,fs.set(t,e=a)),o=l}return t(e,...o)})(K);var ds;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ds||(ds={}));const hs=mo.extend("--ft-typography-font-family","",xr.titleFont),us=mo.extend("--ft-typography-font-family","",xr.contentFont),ys={fontFamily:us,fontSize:mo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:mo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:mo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:mo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:mo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gs=mo.extend("--ft-typography-title-font-family","",hs),bs=mo.extend("--ft-typography-title-font-size","",ys.fontSize,"20px"),ms=mo.extend("--ft-typography-title-font-weight","",ys.fontWeight,"normal"),vs=mo.extend("--ft-typography-title-letter-spacing","",ys.letterSpacing,"0.15px"),xs=mo.extend("--ft-typography-title-line-height","",ys.lineHeight,"1.2"),Os=mo.extend("--ft-typography-title-text-transform","",ys.textTransform,"inherit"),ws=mo.extend("--ft-typography-title-dense-font-family","",hs),Ss=mo.extend("--ft-typography-title-dense-font-size","",ys.fontSize,"14px"),Cs=mo.extend("--ft-typography-title-dense-font-weight","",ys.fontWeight,"normal"),Ns=mo.extend("--ft-typography-title-dense-letter-spacing","",ys.letterSpacing,"0.105px"),Es=mo.extend("--ft-typography-title-dense-line-height","",ys.lineHeight,"1.7"),Is=mo.extend("--ft-typography-title-dense-text-transform","",ys.textTransform,"inherit"),Rs=mo.extend("--ft-typography-subtitle1-font-family","",us),ks=mo.extend("--ft-typography-subtitle1-font-size","",ys.fontSize,"16px"),Ls=mo.extend("--ft-typography-subtitle1-font-weight","",ys.fontWeight,"600"),Us=mo.extend("--ft-typography-subtitle1-letter-spacing","",ys.letterSpacing,"0.144px"),Ws=mo.extend("--ft-typography-subtitle1-line-height","",ys.lineHeight,"1.5"),$s=mo.extend("--ft-typography-subtitle1-text-transform","",ys.textTransform,"inherit"),Bs=mo.extend("--ft-typography-subtitle2-font-family","",us),zs=mo.extend("--ft-typography-subtitle2-font-size","",ys.fontSize,"14px"),Fs=mo.extend("--ft-typography-subtitle2-font-weight","",ys.fontWeight,"normal"),As=mo.extend("--ft-typography-subtitle2-letter-spacing","",ys.letterSpacing,"0.098px"),js=mo.extend("--ft-typography-subtitle2-line-height","",ys.lineHeight,"1.7"),_s=mo.extend("--ft-typography-subtitle2-text-transform","",ys.textTransform,"inherit"),Ps=mo.extend("--ft-typography-body1-font-family","",us),Ms=mo.extend("--ft-typography-body1-font-size","",ys.fontSize,"16px"),Ks=mo.extend("--ft-typography-body1-font-weight","",ys.fontWeight,"normal"),Zs=mo.extend("--ft-typography-body1-letter-spacing","",ys.letterSpacing,"0.496px"),Ds=mo.extend("--ft-typography-body1-line-height","",ys.lineHeight,"1.5"),Hs=mo.extend("--ft-typography-body1-text-transform","",ys.textTransform,"inherit"),Ts=mo.extend("--ft-typography-body2-font-family","",us),Gs=mo.extend("--ft-typography-body2-font-size","",ys.fontSize,"14px"),Vs=mo.extend("--ft-typography-body2-font-weight","",ys.fontWeight,"normal"),qs=mo.extend("--ft-typography-body2-letter-spacing","",ys.letterSpacing,"0.252px"),Ys=mo.extend("--ft-typography-body2-line-height","",ys.lineHeight,"1.4"),Js=mo.extend("--ft-typography-body2-text-transform","",ys.textTransform,"inherit"),Xs=mo.extend("--ft-typography-caption-font-family","",us),Qs=mo.extend("--ft-typography-caption-font-size","",ys.fontSize,"12px"),tc=mo.extend("--ft-typography-caption-font-weight","",ys.fontWeight,"normal"),ec=mo.extend("--ft-typography-caption-letter-spacing","",ys.letterSpacing,"0.396px"),oc=mo.extend("--ft-typography-caption-line-height","",ys.lineHeight,"1.33"),rc=mo.extend("--ft-typography-caption-text-transform","",ys.textTransform,"inherit"),ic=mo.extend("--ft-typography-breadcrumb-font-family","",us),nc=mo.extend("--ft-typography-breadcrumb-font-size","",ys.fontSize,"10px"),ac=mo.extend("--ft-typography-breadcrumb-font-weight","",ys.fontWeight,"normal"),lc=mo.extend("--ft-typography-breadcrumb-letter-spacing","",ys.letterSpacing,"0.33px"),sc=mo.extend("--ft-typography-breadcrumb-line-height","",ys.lineHeight,"1.6"),cc=mo.extend("--ft-typography-breadcrumb-text-transform","",ys.textTransform,"inherit"),fc=mo.extend("--ft-typography-overline-font-family","",us),pc=mo.extend("--ft-typography-overline-font-size","",ys.fontSize,"10px"),dc=mo.extend("--ft-typography-overline-font-weight","",ys.fontWeight,"normal"),hc=mo.extend("--ft-typography-overline-letter-spacing","",ys.letterSpacing,"1.5px"),uc=mo.extend("--ft-typography-overline-line-height","",ys.lineHeight,"1.6"),yc=mo.extend("--ft-typography-overline-text-transform","",ys.textTransform,"uppercase"),gc=mo.extend("--ft-typography-button-font-family","",us),bc=mo.extend("--ft-typography-button-font-size","",ys.fontSize,"14px"),mc=mo.extend("--ft-typography-button-font-weight","",ys.fontWeight,"600"),vc=mo.extend("--ft-typography-button-letter-spacing","",ys.letterSpacing,"1.246px"),xc=mo.extend("--ft-typography-button-line-height","",ys.lineHeight,"1.15"),Oc=mo.extend("--ft-typography-button-text-transform","",ys.textTransform,"uppercase"),wc=dt`
422
+ const ss=Symbol.for(""),cs=t=>{if(t?.r===ss)return t?._$litStatic$},fs=t=>({_$litStatic$:t,r:ss}),ps=new Map,ds=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],l=[];let s,c=0,f=!1;for(;c<r;){for(s=e[c];c<r&&void 0!==(n=o[c],i=cs(n));)s+=i+e[++c],f=!0;c!==r&&l.push(n),a.push(s),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=ps.get(t))&&(a.raw=a,ps.set(t,e=a)),o=l}return t(e,...o)})(K);var hs;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(hs||(hs={}));const us=mo.extend("--ft-typography-font-family","",xr.titleFont),ys=mo.extend("--ft-typography-font-family","",xr.contentFont),gs={fontFamily:ys,fontSize:mo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:mo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:mo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:mo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:mo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},bs=mo.extend("--ft-typography-title-font-family","",us),ms=mo.extend("--ft-typography-title-font-size","",gs.fontSize,"20px"),vs=mo.extend("--ft-typography-title-font-weight","",gs.fontWeight,"normal"),xs=mo.extend("--ft-typography-title-letter-spacing","",gs.letterSpacing,"0.15px"),Os=mo.extend("--ft-typography-title-line-height","",gs.lineHeight,"1.2"),ws=mo.extend("--ft-typography-title-text-transform","",gs.textTransform,"inherit"),Ss=mo.extend("--ft-typography-title-dense-font-family","",us),Cs=mo.extend("--ft-typography-title-dense-font-size","",gs.fontSize,"14px"),Ns=mo.extend("--ft-typography-title-dense-font-weight","",gs.fontWeight,"normal"),Es=mo.extend("--ft-typography-title-dense-letter-spacing","",gs.letterSpacing,"0.105px"),Is=mo.extend("--ft-typography-title-dense-line-height","",gs.lineHeight,"1.7"),Rs=mo.extend("--ft-typography-title-dense-text-transform","",gs.textTransform,"inherit"),ks=mo.extend("--ft-typography-subtitle1-font-family","",ys),Ls=mo.extend("--ft-typography-subtitle1-font-size","",gs.fontSize,"16px"),Us=mo.extend("--ft-typography-subtitle1-font-weight","",gs.fontWeight,"600"),Ws=mo.extend("--ft-typography-subtitle1-letter-spacing","",gs.letterSpacing,"0.144px"),$s=mo.extend("--ft-typography-subtitle1-line-height","",gs.lineHeight,"1.5"),Bs=mo.extend("--ft-typography-subtitle1-text-transform","",gs.textTransform,"inherit"),zs=mo.extend("--ft-typography-subtitle2-font-family","",ys),Fs=mo.extend("--ft-typography-subtitle2-font-size","",gs.fontSize,"14px"),As=mo.extend("--ft-typography-subtitle2-font-weight","",gs.fontWeight,"normal"),js=mo.extend("--ft-typography-subtitle2-letter-spacing","",gs.letterSpacing,"0.098px"),_s=mo.extend("--ft-typography-subtitle2-line-height","",gs.lineHeight,"1.7"),Ps=mo.extend("--ft-typography-subtitle2-text-transform","",gs.textTransform,"inherit"),Ms=mo.extend("--ft-typography-body1-font-family","",ys),Ks=mo.extend("--ft-typography-body1-font-size","",gs.fontSize,"16px"),Zs=mo.extend("--ft-typography-body1-font-weight","",gs.fontWeight,"normal"),Ds=mo.extend("--ft-typography-body1-letter-spacing","",gs.letterSpacing,"0.496px"),Hs=mo.extend("--ft-typography-body1-line-height","",gs.lineHeight,"1.5"),Ts=mo.extend("--ft-typography-body1-text-transform","",gs.textTransform,"inherit"),Gs=mo.extend("--ft-typography-body2-font-family","",ys),Vs=mo.extend("--ft-typography-body2-font-size","",gs.fontSize,"14px"),qs=mo.extend("--ft-typography-body2-font-weight","",gs.fontWeight,"normal"),Ys=mo.extend("--ft-typography-body2-letter-spacing","",gs.letterSpacing,"0.252px"),Js=mo.extend("--ft-typography-body2-line-height","",gs.lineHeight,"1.4"),Xs=mo.extend("--ft-typography-body2-text-transform","",gs.textTransform,"inherit"),Qs=mo.extend("--ft-typography-caption-font-family","",ys),tc=mo.extend("--ft-typography-caption-font-size","",gs.fontSize,"12px"),ec=mo.extend("--ft-typography-caption-font-weight","",gs.fontWeight,"normal"),oc=mo.extend("--ft-typography-caption-letter-spacing","",gs.letterSpacing,"0.396px"),rc=mo.extend("--ft-typography-caption-line-height","",gs.lineHeight,"1.33"),ic=mo.extend("--ft-typography-caption-text-transform","",gs.textTransform,"inherit"),nc=mo.extend("--ft-typography-breadcrumb-font-family","",ys),ac=mo.extend("--ft-typography-breadcrumb-font-size","",gs.fontSize,"10px"),lc=mo.extend("--ft-typography-breadcrumb-font-weight","",gs.fontWeight,"normal"),sc=mo.extend("--ft-typography-breadcrumb-letter-spacing","",gs.letterSpacing,"0.33px"),cc=mo.extend("--ft-typography-breadcrumb-line-height","",gs.lineHeight,"1.6"),fc=mo.extend("--ft-typography-breadcrumb-text-transform","",gs.textTransform,"inherit"),pc=mo.extend("--ft-typography-overline-font-family","",ys),dc=mo.extend("--ft-typography-overline-font-size","",gs.fontSize,"10px"),hc=mo.extend("--ft-typography-overline-font-weight","",gs.fontWeight,"normal"),uc=mo.extend("--ft-typography-overline-letter-spacing","",gs.letterSpacing,"1.5px"),yc=mo.extend("--ft-typography-overline-line-height","",gs.lineHeight,"1.6"),gc=mo.extend("--ft-typography-overline-text-transform","",gs.textTransform,"uppercase"),bc=mo.extend("--ft-typography-button-font-family","",ys),mc=mo.extend("--ft-typography-button-font-size","",gs.fontSize,"14px"),vc=mo.extend("--ft-typography-button-font-weight","",gs.fontWeight,"600"),xc=mo.extend("--ft-typography-button-letter-spacing","",gs.letterSpacing,"1.246px"),Oc=mo.extend("--ft-typography-button-line-height","",gs.lineHeight,"1.15"),wc=mo.extend("--ft-typography-button-text-transform","",gs.textTransform,"uppercase"),Sc=dt`
423
423
  .ft-typography--title {
424
- font-family: ${gs};
425
- font-size: ${bs};
426
- font-weight: ${ms};
427
- letter-spacing: ${vs};
428
- line-height: ${xs};
429
- text-transform: ${Os};
430
- }
431
- `,Sc=dt`
432
- .ft-typography--title-dense {
433
- font-family: ${ws};
434
- font-size: ${Ss};
435
- font-weight: ${Cs};
436
- letter-spacing: ${Ns};
437
- line-height: ${Es};
438
- text-transform: ${Is};
424
+ font-family: ${bs};
425
+ font-size: ${ms};
426
+ font-weight: ${vs};
427
+ letter-spacing: ${xs};
428
+ line-height: ${Os};
429
+ text-transform: ${ws};
439
430
  }
440
431
  `,Cc=dt`
441
- .ft-typography--subtitle1 {
442
- font-family: ${Rs};
443
- font-size: ${ks};
444
- font-weight: ${Ls};
445
- letter-spacing: ${Us};
446
- line-height: ${Ws};
447
- text-transform: ${$s};
432
+ .ft-typography--title-dense {
433
+ font-family: ${Ss};
434
+ font-size: ${Cs};
435
+ font-weight: ${Ns};
436
+ letter-spacing: ${Es};
437
+ line-height: ${Is};
438
+ text-transform: ${Rs};
448
439
  }
449
440
  `,Nc=dt`
450
- .ft-typography--subtitle2 {
451
- font-family: ${Bs};
452
- font-size: ${zs};
453
- font-weight: ${Fs};
454
- letter-spacing: ${As};
455
- line-height: ${js};
456
- text-transform: ${_s};
441
+ .ft-typography--subtitle1 {
442
+ font-family: ${ks};
443
+ font-size: ${Ls};
444
+ font-weight: ${Us};
445
+ letter-spacing: ${Ws};
446
+ line-height: ${$s};
447
+ text-transform: ${Bs};
457
448
  }
458
-
459
449
  `,Ec=dt`
460
- .ft-typography--body1 {
461
- font-family: ${Ps};
462
- font-size: ${Ms};
463
- font-weight: ${Ks};
464
- letter-spacing: ${Zs};
465
- line-height: ${Ds};
466
- text-transform: ${Hs};
450
+ .ft-typography--subtitle2 {
451
+ font-family: ${zs};
452
+ font-size: ${Fs};
453
+ font-weight: ${As};
454
+ letter-spacing: ${js};
455
+ line-height: ${_s};
456
+ text-transform: ${Ps};
467
457
  }
458
+
468
459
  `,Ic=dt`
469
- .ft-typography--body2 {
470
- font-family: ${Ts};
471
- font-size: ${Gs};
472
- font-weight: ${Vs};
473
- letter-spacing: ${qs};
474
- line-height: ${Ys};
475
- text-transform: ${Js};
460
+ .ft-typography--body1 {
461
+ font-family: ${Ms};
462
+ font-size: ${Ks};
463
+ font-weight: ${Zs};
464
+ letter-spacing: ${Ds};
465
+ line-height: ${Hs};
466
+ text-transform: ${Ts};
476
467
  }
477
468
  `,Rc=dt`
478
- .ft-typography--caption {
479
- font-family: ${Xs};
480
- font-size: ${Qs};
481
- font-weight: ${tc};
482
- letter-spacing: ${ec};
483
- line-height: ${oc};
484
- text-transform: ${rc};
469
+ .ft-typography--body2 {
470
+ font-family: ${Gs};
471
+ font-size: ${Vs};
472
+ font-weight: ${qs};
473
+ letter-spacing: ${Ys};
474
+ line-height: ${Js};
475
+ text-transform: ${Xs};
485
476
  }
486
477
  `,kc=dt`
487
- .ft-typography--breadcrumb {
488
- font-family: ${ic};
489
- font-size: ${nc};
490
- font-weight: ${ac};
491
- letter-spacing: ${lc};
492
- line-height: ${sc};
493
- text-transform: ${cc};
478
+ .ft-typography--caption {
479
+ font-family: ${Qs};
480
+ font-size: ${tc};
481
+ font-weight: ${ec};
482
+ letter-spacing: ${oc};
483
+ line-height: ${rc};
484
+ text-transform: ${ic};
494
485
  }
495
486
  `,Lc=dt`
496
- .ft-typography--overline {
497
- font-family: ${fc};
498
- font-size: ${pc};
499
- font-weight: ${dc};
500
- letter-spacing: ${hc};
501
- line-height: ${uc};
502
- text-transform: ${yc};
487
+ .ft-typography--breadcrumb {
488
+ font-family: ${nc};
489
+ font-size: ${ac};
490
+ font-weight: ${lc};
491
+ letter-spacing: ${sc};
492
+ line-height: ${cc};
493
+ text-transform: ${fc};
503
494
  }
504
495
  `,Uc=dt`
505
- .ft-typography--button {
506
- font-family: ${gc};
507
- font-size: ${bc};
508
- font-weight: ${mc};
509
- letter-spacing: ${vc};
510
- line-height: ${xc};
511
- text-transform: ${Oc};
496
+ .ft-typography--overline {
497
+ font-family: ${pc};
498
+ font-size: ${dc};
499
+ font-weight: ${hc};
500
+ letter-spacing: ${uc};
501
+ line-height: ${yc};
502
+ text-transform: ${gc};
512
503
  }
513
504
  `,Wc=dt`
505
+ .ft-typography--button {
506
+ font-family: ${bc};
507
+ font-size: ${mc};
508
+ font-weight: ${vc};
509
+ letter-spacing: ${xc};
510
+ line-height: ${Oc};
511
+ text-transform: ${wc};
512
+ }
513
+ `,$c=dt`
514
514
  .ft-typography {
515
515
  vertical-align: inherit;
516
516
  }
517
- `,$c=[Object.keys(Go).map((t=>function(t){const e=Go[t];return dt`
517
+ `,Bc=[Object.keys(Go).map((t=>function(t){const e=Go[t];return dt`
518
518
  .ft-typography--${pt(t)} {
519
519
  font-family: ${e.fontFamily};
520
520
  font-size: ${e.fontSize};
@@ -523,14 +523,14 @@ const ls=Symbol.for(""),ss=t=>{if(t?.r===ls)return t?._$litStatic$},cs=t=>({_$li
523
523
  line-height: ${e.lineHeight};
524
524
  text-transform: ${e.textCase};
525
525
  }
526
- `}(t)))];var Bc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zc extends Ai{constructor(){super(...arguments),this.variant=ds.body1}render(){return this.element?ps`
527
- <${cs(this.element)}
526
+ `}(t)))];var zc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fc extends Ai{constructor(){super(...arguments),this.variant=hs.body1}render(){return this.element?ds`
527
+ <${fs(this.element)}
528
528
  class="ft-typography ft-typography--${this.variant}">
529
529
  <slot></slot>
530
- </${cs(this.element)}>
531
- `:ps`
530
+ </${fs(this.element)}>
531
+ `:ds`
532
532
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
533
- `}}zc.styles=[wc,Sc,Cc,Nc,Ec,Ic,Rc,kc,Lc,Uc,Wc,...$c],Bc([we()],zc.prototype,"element",void 0),Bc([we()],zc.prototype,"variant",void 0),ho("ft-typography")(zc);var Fc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ac extends Ai{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new io(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new io(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
533
+ `}}Fc.styles=[Sc,Cc,Nc,Ec,Ic,Rc,kc,Lc,Uc,Wc,$c,...Bc],zc([we()],Fc.prototype,"element",void 0),zc([we()],Fc.prototype,"variant",void 0),ho("ft-typography")(Fc);var Ac=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jc extends Ai{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new io(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new io(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
534
534
  <style>
535
535
  .ft-ripple .ft-ripple--effect {
536
536
  left: ${this.originX}px;
@@ -541,22 +541,22 @@ const ls=Symbol.for(""),ss=t=>{if(t?.r===ls)return t?._$litStatic$},cs=t=>({_$li
541
541
  <div class="ft-ripple--background"></div>
542
542
  <div class="ft-ripple--effect"></div>
543
543
  </div>
544
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ac.elementDefinitions={},Ac.styles=gl,Fc([we({type:Boolean})],Ac.prototype,"primary",void 0),Fc([we({type:Boolean})],Ac.prototype,"secondary",void 0),Fc([we({type:Boolean})],Ac.prototype,"unbounded",void 0),Fc([we({type:Boolean})],Ac.prototype,"activated",void 0),Fc([we({type:Boolean})],Ac.prototype,"selected",void 0),Fc([we({type:Boolean})],Ac.prototype,"disabled",void 0),Fc([Se()],Ac.prototype,"hovered",void 0),Fc([Se()],Ac.prototype,"focused",void 0),Fc([Se()],Ac.prototype,"pressed",void 0),Fc([Se()],Ac.prototype,"rippling",void 0),Fc([Se()],Ac.prototype,"originX",void 0),Fc([Se()],Ac.prototype,"originY",void 0),Fc([Ne(".ft-ripple")],Ac.prototype,"ripple",void 0),Fc([Ne(".ft-ripple--effect")],Ac.prototype,"rippleEffect",void 0),ho("ft-ripple")(Ac);var jc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _c extends(Hl(Nl)){constructor(){super(),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1,this.addI18nContext(Jl,Xl)}render(){var t,e;if((null!==(e=null===(t=this.attachments)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>0){const t={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return Jt`
544
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}jc.elementDefinitions={},jc.styles=bl,Ac([we({type:Boolean})],jc.prototype,"primary",void 0),Ac([we({type:Boolean})],jc.prototype,"secondary",void 0),Ac([we({type:Boolean})],jc.prototype,"unbounded",void 0),Ac([we({type:Boolean})],jc.prototype,"activated",void 0),Ac([we({type:Boolean})],jc.prototype,"selected",void 0),Ac([we({type:Boolean})],jc.prototype,"disabled",void 0),Ac([Se()],jc.prototype,"hovered",void 0),Ac([Se()],jc.prototype,"focused",void 0),Ac([Se()],jc.prototype,"pressed",void 0),Ac([Se()],jc.prototype,"rippling",void 0),Ac([Se()],jc.prototype,"originX",void 0),Ac([Se()],jc.prototype,"originY",void 0),Ac([Ne(".ft-ripple")],jc.prototype,"ripple",void 0),Ac([Ne(".ft-ripple--effect")],jc.prototype,"rippleEffect",void 0),ho("ft-ripple")(jc);var _c=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pc extends(Tl(El)){constructor(){super(),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1,this.addI18nContext(Xl,Ql)}render(){var t,e;if((null!==(e=null===(t=this.attachments)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>0){const t={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return Jt`
545
545
  <div part="container" class="${Me(t)}">
546
- ${_e(this.attachments,(t=>t.id),(t=>{var e,o,r,i;const n=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,l]=((null!==(o=os.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=es.get(l))&&void 0!==r?r:es.get(e))&&void 0!==i?i:es.get(a))&&void 0!==n?n:ts.UNKNOWN}(t.mimeType,fo(t.file.split("."))),a=t.externalLink?t.viewerUrl:null===(e=this.service)||void 0===e?void 0:e.makeAbsolute(null!==(o=t.viewerUrl)&&void 0!==o?o:"");return Jt`
546
+ ${_e(this.attachments,(t=>t.id),(t=>{var e,o,r,i;const n=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,l]=((null!==(o=rs.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=os.get(l))&&void 0!==r?r:os.get(e))&&void 0!==i?i:os.get(a))&&void 0!==n?n:es.UNKNOWN}(t.mimeType,fo(t.file.split("."))),a=t.externalLink?t.viewerUrl:null===(e=this.service)||void 0===e?void 0:e.makeAbsolute(null!==(o=t.viewerUrl)&&void 0!==o?o:"");return Jt`
547
547
  <div part="attachment">
548
548
  <a part="viewer-link" href="${a}">
549
549
  <ft-ripple part="ripple viewer-link-ripple"></ft-ripple>
550
550
  <ft-icon part="file-format-icon"
551
551
  variant="file-format"
552
552
  value="${n}"
553
- style="color: ${null!==(r=rs[n])&&void 0!==r?r:rs[ts.UNKNOWN]}"></ft-icon>
553
+ style="color: ${null!==(r=is[n])&&void 0!==r?r:is[es.UNKNOWN]}"></ft-icon>
554
554
  <ft-typography part="name" variant="body2">${t.name}</ft-typography>
555
555
  </a>
556
556
  ${t.externalLink?te:Jt`
557
557
  <a part="download-link"
558
558
  href="${null===(i=this.service)||void 0===i?void 0:i.getAttachmentDownloadLink(t.id)}"
559
- title="${Jl.messages.download(t.file)}">
559
+ title="${Xl.messages.download(t.file)}">
560
560
  <ft-ripple part="ripple download-link-ripple"></ft-ripple>
561
561
  <ft-icon part="download-icon">DOWNLOAD</ft-icon>
562
562
  </a>
@@ -564,4 +564,4 @@ const ls=Symbol.for(""),ss=t=>{if(t?.r===ls)return t?._$litStatic$},cs=t=>({_$li
564
564
  </div>
565
565
  `}))}
566
566
  </div>
567
- `}return te}update(t){var e;super.update(t),t.has("map")&&(this.map?null===(e=this.service)||void 0===e||e.getAttachments().then((t=>this.attachments=t)):this.attachments=void 0)}}_c.elementDefinitions={"ft-icon":as,"ft-ripple":Ac,"ft-typography":zc},_c.styles=xl,jc([we({type:Boolean})],_c.prototype,"hideFileFormatIcon",void 0),jc([we({type:Boolean})],_c.prototype,"hideFilename",void 0),jc([we({type:Boolean})],_c.prototype,"hideDownloadIcon",void 0),jc([Qi({store:"reader"})],_c.prototype,"map",void 0),jc([Se()],_c.prototype,"attachments",void 0),ho("ft-reader-attachments")(_c),t.FtReaderAttachments=_c,t.FtReaderAttachmentsCssVariables=vl,t.styles=xl}({});
567
+ `}return te}update(t){var e;super.update(t),t.has("map")&&(this.map?null===(e=this.service)||void 0===e||e.getAttachments().then((t=>this.attachments=t)):this.attachments=void 0)}}Pc.elementDefinitions={"ft-icon":ls,"ft-ripple":jc,"ft-typography":Fc},Pc.styles=Ol,_c([we({type:Boolean})],Pc.prototype,"hideFileFormatIcon",void 0),_c([we({type:Boolean})],Pc.prototype,"hideFilename",void 0),_c([we({type:Boolean})],Pc.prototype,"hideDownloadIcon",void 0),_c([tn({store:"reader"})],Pc.prototype,"map",void 0),_c([Se()],Pc.prototype,"attachments",void 0),ho("ft-reader-attachments")(Pc),t.FtReaderAttachments=Pc,t.FtReaderAttachmentsCssVariables=xl,t.styles=Ol}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-attachments",
3
- "version": "1.1.68",
3
+ "version": "1.1.70",
4
4
  "description": "Reader component to list map attachments",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,15 +19,15 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.1.68",
23
- "@fluid-topics/ft-i18n": "1.1.68",
24
- "@fluid-topics/ft-icon": "1.1.68",
25
- "@fluid-topics/ft-reader-context": "1.1.68",
26
- "@fluid-topics/ft-ripple": "1.1.68",
27
- "@fluid-topics/ft-typography": "1.1.68",
28
- "@fluid-topics/ft-wc-utils": "1.1.68",
29
- "@fluid-topics/public-api": "1.0.67",
22
+ "@fluid-topics/ft-app-context": "1.1.70",
23
+ "@fluid-topics/ft-i18n": "1.1.70",
24
+ "@fluid-topics/ft-icon": "1.1.70",
25
+ "@fluid-topics/ft-reader-context": "1.1.70",
26
+ "@fluid-topics/ft-ripple": "1.1.70",
27
+ "@fluid-topics/ft-typography": "1.1.70",
28
+ "@fluid-topics/ft-wc-utils": "1.1.70",
29
+ "@fluid-topics/public-api": "1.0.68",
30
30
  "lit": "3.1.0"
31
31
  },
32
- "gitHead": "d10171ba718cee726044d0cc44820ebbb1ab7cbc"
32
+ "gitHead": "491d226f1e94018f6daf64b3831693326b1bd44e"
33
33
  }