@fluid-topics/ft-search-results 1.1.3 → 1.1.4
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.
|
@@ -162,7 +162,7 @@ const Kt=Symbol.for(""),kt=t=>{if(t?.r===Kt)return t?._$litStatic$},$t=t=>({_$li
|
|
|
162
162
|
<span class="ft-i18n">
|
|
163
163
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
164
164
|
</span>
|
|
165
|
-
`:this.editorMode?"Select a context and a label key.":r.nothing}update(t){super.update(t),this.context&&this.key&&this.
|
|
165
|
+
`:this.editorMode?"Select a context and a label key.":r.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}xr.elementDefinitions={},xr.styles=br,wr([o.redux()],xr.prototype,"editorMode",void 0),wr([a.property()],xr.prototype,"context",void 0),wr([a.property()],xr.prototype,"key",void 0),wr([o.jsonProperty([])],xr.prototype,"args",void 0),wr([a.property()],xr.prototype,"defaultMessage",void 0);class Rr{static build(t){return new Rr(t)}static fromGwt(t){return new Rr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const r=o;return t=>({context:this.name,key:r,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>E.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(xr);const Er=Rr.build("searchResultsNumber");var Ur=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class Ir extends(Sr(F)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>r.html`
|
|
166
166
|
<ft-search-result-title></ft-search-result-title>
|
|
167
167
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
168
168
|
`,this.addI18nContext(Er)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?r.html`
|
|
@@ -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,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}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=c;if(e)return c=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),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=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,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(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&&s.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===n.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 i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),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=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}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=c;if(e)return c=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),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=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,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(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&&s.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===n.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 i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),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=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(ba){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)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -102,18 +102,18 @@ let Oe=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
102
102
|
display: inline-block;
|
|
103
103
|
width: 0;
|
|
104
104
|
}
|
|
105
|
-
`;class Fe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}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()}}}function Me(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var De,Te,Ze;const _e=Symbol("internalReduxEventsUnsubscribers"),Be=Symbol("internalStoresUnsubscribers"),ze=Symbol("internalStores");class He extends Pe{constructor(){super(...arguments),this[De]=new Map,this[Te]=new Map,this[Ze]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ze].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ze].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Me(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[ze].delete(e)}setupStore(t,e){this[ze].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ze].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[Be].has(t.store):this[Be].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Be].set(t,e.subscribe((()=>this.updateFromStores()))),Me(e)&&e.eventBus&&(null===(o=this.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[_e].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Be].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[_e].forEach((t=>t())),this[_e]=[]}unsubscribeFromStore(t){this[Be].has(t)&&this[Be].get(t)(),this[Be].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ge(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 qe(t){return!!t&&!!t[Ko]}function Ve(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)===Po}(t)||Array.isArray(t)||!!t[$o]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$o])||eo(t)||oo(t))}function Ye(t,e,o){void 0===o&&(o=!1),0===Xe(t)?(o?Object.keys:jo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Xe(t){var e=t[Ko];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:eo(t)?2:oo(t)?3:0}function Je(t,e){return 2===Xe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qe(t,e,o){var r=Xe(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function to(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function eo(t){return Lo&&t instanceof Map}function oo(t){return Ao&&t instanceof Set}function ro(t){return t.o||t.t}function no(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Fo(t);delete e[Ko];for(var o=jo(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function io(t,e){return void 0===e&&(e=!1),so(t)||qe(t)||!Ve(t)||(Xe(t)>1&&(t.set=t.add=t.clear=t.delete=ao),Object.freeze(t),e&&Ye(t,(function(t,e){return io(e,!0)}),!0)),t}function ao(){Ge(2)}function so(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function co(t){var e=Mo[t];return e||Ge(18,t),e}function lo(){return Uo}function fo(t,e){e&&(co("Patches"),t.u=[],t.s=[],t.v=e)}function ho(t){uo(t),t.p.forEach(yo),t.p=null}function uo(t){t===Uo&&(Uo=t.l)}function po(t){return Uo={p:[],l:Uo,h:t,m:!0,_:0}}function yo(t){var e=t[Ko];0===e.i||1===e.i?e.j():e.g=!0}function go(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||co("ES5").S(e,t,r),r?(o[Ko].P&&(ho(e),Ge(4)),Ve(t)&&(t=bo(e,t),e.l||vo(e,t)),e.u&&co("Patches").M(o[Ko].t,t,e.u,e.s)):t=bo(e,o,[]),ho(e),e.u&&e.v(e.u,e.s),t!==ko?t:void 0}function bo(t,e,o){if(so(e))return e;var r=e[Ko];if(!r)return Ye(e,(function(n,i){return mo(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return vo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=no(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Ye(i,(function(e,i){return mo(t,r,n,e,i,o,a)})),vo(t,n,!1),o&&t.u&&co("Patches").N(r,o,t.u,t.s)}return r.o}function mo(t,e,o,r,n,i,a){if(qe(n)){var s=bo(t,n,i&&e&&3!==e.i&&!Je(e.R,r)?i.concat(r):void 0);if(Qe(o,r,s),!qe(s))return;t.m=!1}else a&&o.add(n);if(Ve(n)&&!so(n)){if(!t.h.D&&t._<1)return;bo(t,n),e&&e.A.l||vo(t,n)}}function vo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&io(e,o)}function Oo(t,e){var o=t[Ko];return(o?ro(o):t)[e]}function wo(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 So(t){t.P||(t.P=!0,t.l&&So(t.l))}function No(t){t.o||(t.o=no(t.t))}function xo(t,e,o){var r=eo(e)?co("MapSet").F(e,o):oo(e)?co("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:lo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Do;o&&(n=[r],i=To);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):co("ES5").J(e,o);return(o?o.A:lo()).p.push(r),r}function Co(t){return qe(t)||Ge(22,t),function t(e){if(!Ve(e))return e;var o,r=e[Ko],n=Xe(e);if(r){if(!r.P&&(r.i<4||!co("ES5").K(r)))return r.t;r.I=!0,o=Eo(e,n),r.I=!1}else o=Eo(e,n);return Ye(o,(function(e,n){r&&function(t,e){return 2===Xe(t)?t.get(e):t[e]}(r.t,e)===n||Qe(o,e,t(n))})),3===n?new Set(o):o}(t)}function Eo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return no(t)}De=Be,Te=ze,Ze=_e;var Ro,Uo,Io="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Lo="undefined"!=typeof Map,Ao="undefined"!=typeof Set,Wo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ko=Io?Symbol.for("immer-nothing"):((Ro={})["immer-nothing"]=!0,Ro),$o=Io?Symbol.for("immer-draftable"):"__$immer_draftable",Ko=Io?Symbol.for("immer-state"):"__$immer_state",Po=""+Object.prototype.constructor,jo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Fo=Object.getOwnPropertyDescriptors||function(t){var e={};return jo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Mo={},Do={get:function(t,e){if(e===Ko)return t;var o=ro(t);if(!Je(o,e))return function(t,e,o){var r,n=wo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Ve(r)?r:r===Oo(t.t,e)?(No(t),t.o[e]=xo(t.A.h,r,t)):r},has:function(t,e){return e in ro(t)},ownKeys:function(t){return Reflect.ownKeys(ro(t))},set:function(t,e,o){var r=wo(ro(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Oo(ro(t),e),i=null==n?void 0:n[Ko];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(to(o,n)&&(void 0!==o||Je(t.t,e)))return!0;No(t),So(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!==Oo(t.t,e)||e in t.t?(t.R[e]=!1,No(t),So(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ro(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(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},To={};Ye(Do,(function(t,e){To[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)},To.set=function(t,e,o){return Do.set.call(this,t[0],e,o,t[0])};var Zo=function(){function t(t){var e=this;this.O=Wo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Ge(6),void 0!==r&&"function"!=typeof r&&Ge(7),Ve(t)){var s=po(e),c=xo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?ho(s):uo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return fo(s,r),go(t,s)}),(function(t){throw ho(s),t})):(fo(s,r),go(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ko&&(a=void 0),e.D&&io(a,!0),r){var f=[],h=[];co("Patches").M(t,a,f,h),r(f,h)}return a}Ge(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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){Ve(t)||Ge(8),qe(t)&&(t=Co(t));var e=po(this),o=xo(this,t,void 0);return o[Ko].C=!0,uo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Ko]).A;return fo(o,e),go(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Wo&&Ge(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 n=co("Patches").$;return qe(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),_o=new Zo,Bo=_o.produce;function zo(t){return zo="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},zo(t)}function Ho(t){var e=function(t,e){if("object"!==zo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==zo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zo(e)?e:String(e)}function Go(t,e,o){return(e=Ho(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function qo(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 Vo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?qo(Object(o),!0).forEach((function(e){Go(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Yo(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. "}_o.produceWithPatches.bind(_o),_o.setAutoFreeze.bind(_o),_o.setUseProxies.bind(_o),_o.applyPatches.bind(_o),_o.createDraft.bind(_o),_o.finishDraft.bind(_o);var Xo="function"==typeof Symbol&&Symbol.observable||"@@observable",Jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qo={INIT:"@@redux/INIT"+Jo(),REPLACE:"@@redux/REPLACE"+Jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jo()}};function tr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Yo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Yo(1));return o(tr)(t,e)}if("function"!=typeof t)throw new Error(Yo(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Yo(3));return i}function h(t){if("function"!=typeof t)throw new Error(Yo(4));if(c)throw new Error(Yo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Yo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(Yo(7));if(void 0===t.type)throw new Error(Yo(8));if(c)throw new Error(Yo(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:Qo.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Yo(10));n=t,u({type:Qo.REPLACE})}})[Xo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Yo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Xo]=function(){return this},t},r}function er(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Qo.INIT}))throw new Error(Yo(12));if(void 0===o(void 0,{type:Qo.PROBE_UNKNOWN_ACTION()}))throw new Error(Yo(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Yo(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function or(){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 rr(){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(Yo(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=or.apply(void 0,i)(o.dispatch),Vo(Vo({},o),{},{dispatch:r})}}}function nr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var ir=nr();ir.withExtraArgument=nr;var ar,sr=ir,cr=(ar=function(t,e){return ar=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])},ar(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}ar(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),lr=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},fr=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},hr=Object.defineProperty,ur=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,br=function(t,e,o){return e in t?hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},mr=function(t,e){for(var o in e||(e={}))yr.call(e,o)&&br(t,o,e[o]);if(dr)for(var r=0,n=dr(e);r<n.length;r++){o=n[r];gr.call(e,o)&&br(t,o,e[o])}return t},vr=function(t,e){return ur(t,pr(e))},Or="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?or:or.apply(null,arguments)};var wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return cr(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,fr([void 0],t[0].concat(this)))):new(e.bind.apply(e,fr([void 0],t.concat(this))))},e}(Array),Sr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return cr(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,fr([void 0],t[0].concat(this)))):new(e.bind.apply(e,fr([void 0],t.concat(this))))},e}(Array);function Nr(t){return Ve(t)?Bo(t,(function(){})):t}function xr(){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 wr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(sr.withExtraArgument(o.extraArgument)):r.push(sr));return r}(t)}}function Cr(t){var e,o=xr(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;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}(i))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=er(i)}var d=s;"function"==typeof d&&(d=d(o));var y=rr.apply(void 0,d),g=or;l&&(g=Or(mr({trace:!1},"object"==typeof l&&l)));var b=new Sr(y),m=b;return Array.isArray(p)?m=fr([y],p):"function"==typeof p&&(m=p(b)),tr(e,h,g.apply(void 0,m))}function Er(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return mr(mr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.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 Rr(t){var e,o={},r=[],n={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,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Ur(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:Nr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Rr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=mr(mr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Rr(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Nr(t())};else{var l=Nr(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=fr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(qe(t))return void 0===(r=o(t,e))?t:r;if(Ve(t))return Bo(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=n,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 n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?Er(l,r):Er(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ir=["name","message","stack","code"],Lr=function(t,e){this.payload=t,this.meta=e},Ar=function(t,e){this.payload=t,this.meta=e},Wr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ir;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function kr(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=Er(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:vr(mr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=Er(t+"/pending",(function(t,e,o){return{payload:void 0,meta:vr(mr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=Er(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Wr)(t||"Rejected"),meta:vr(mr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,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(s,c,l){var f,h=(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}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return lr(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:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Lr(t,e)},fulfillWithValue:function(t,e){return new Ar(t,e)}})).then((function(e){if(e instanceof Lr)throw e;return e instanceof Ar?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Lr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(kr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var $r="listenerMiddleware";Er($r+"/add"),Er($r+"/removeAll"),Er($r+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Ko];return Do.get(e,t)},set:function(e){var o=this[Ko];Do.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Ko];if(!n.P)switch(n.i){case 5:r(n)&&So(n);break;case 4:o(n)&&So(n)}}}function o(t){for(var e=t.t,o=t.k,r=jo(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Ko){var a=e[i];if(void 0===a&&!Je(e,i))return!0;var s=o[i],c=s&&s[Ko];if(c?c.t!==a:!to(s,a))return!0}}var l=!!e[Ko];return r.length!==jo(e).length+(l?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 n={};!function(t,e){Mo[t]||(Mo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=Fo(o);delete i[Ko];for(var a=jo(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:lo(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Ko,{value:i,writable:!0}),n},S:function(t,o,n){n?qe(o)&&o[Ko].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Ko];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)Ye(i,(function(e){e!==Ko&&(void 0!==n[e]||Je(n,e)?a[e]||t(i[e]):(a[e]=!0,So(o)))})),Ye(n,(function(t){void 0!==i[t]||Je(i,t)||(a[t]=!1,So(o))}));else if(5===s){if(r(o)&&(So(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Kr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Me(n))return n;if(null==r)return;const i=Ur({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Cr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Kr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...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_STATE_FIELDS_VALUES_SETTER",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()}}const Pr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};var jr,Fr;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Fr=null===(jr=window.safari)||void 0===jr?void 0:jr.pushNotification)||void 0===Fr||Fr.toString());
|
|
105
|
+
`;class Fe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}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()}}}const Me=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class De{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Te(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ze,_e,Be;const ze=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),Ge=Symbol("internalStores");class qe extends Pe{constructor(){super(...arguments),this[Ze]=new Map,this[_e]=new Map,this[Be]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ge].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ge].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ge].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Te(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[Ge].delete(e)}setupStore(t,e){this[Ge].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ge].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[He].has(t.store):this[He].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[He].set(t,e.subscribe((()=>this.updateFromStores()))),Te(e)&&e.eventBus&&(null===(o=this.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[ze].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[He].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ze].forEach((t=>t())),this[ze]=[]}unsubscribeFromStore(t){this[He].has(t)&&this[He].get(t)(),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ve(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 Ye(t){return!!t&&!!t[jo]}function Xe(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)===Fo}(t)||Array.isArray(t)||!!t[Po]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Po])||ro(t)||no(t))}function Je(t,e,o){void 0===o&&(o=!1),0===Qe(t)?(o?Object.keys:Mo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Qe(t){var e=t[jo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ro(t)?2:no(t)?3:0}function to(t,e){return 2===Qe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function eo(t,e,o){var r=Qe(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function oo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ro(t){return Wo&&t instanceof Map}function no(t){return ko&&t instanceof Set}function io(t){return t.o||t.t}function ao(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Do(t);delete e[jo];for(var o=Mo(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function so(t,e){return void 0===e&&(e=!1),lo(t)||Ye(t)||!Xe(t)||(Qe(t)>1&&(t.set=t.add=t.clear=t.delete=co),Object.freeze(t),e&&Je(t,(function(t,e){return so(e,!0)}),!0)),t}function co(){Ve(2)}function lo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function fo(t){var e=To[t];return e||Ve(18,t),e}function ho(){return Lo}function uo(t,e){e&&(fo("Patches"),t.u=[],t.s=[],t.v=e)}function po(t){yo(t),t.p.forEach(bo),t.p=null}function yo(t){t===Lo&&(Lo=t.l)}function go(t){return Lo={p:[],l:Lo,h:t,m:!0,_:0}}function bo(t){var e=t[jo];0===e.i||1===e.i?e.j():e.g=!0}function mo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||fo("ES5").S(e,t,r),r?(o[jo].P&&(po(e),Ve(4)),Xe(t)&&(t=vo(e,t),e.l||wo(e,t)),e.u&&fo("Patches").M(o[jo].t,t,e.u,e.s)):t=vo(e,o,[]),po(e),e.u&&e.v(e.u,e.s),t!==Ko?t:void 0}function vo(t,e,o){if(lo(e))return e;var r=e[jo];if(!r)return Je(e,(function(n,i){return Oo(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return wo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=ao(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Je(i,(function(e,i){return Oo(t,r,n,e,i,o,a)})),wo(t,n,!1),o&&t.u&&fo("Patches").N(r,o,t.u,t.s)}return r.o}function Oo(t,e,o,r,n,i,a){if(Ye(n)){var s=vo(t,n,i&&e&&3!==e.i&&!to(e.R,r)?i.concat(r):void 0);if(eo(o,r,s),!Ye(s))return;t.m=!1}else a&&o.add(n);if(Xe(n)&&!lo(n)){if(!t.h.D&&t._<1)return;vo(t,n),e&&e.A.l||wo(t,n)}}function wo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&so(e,o)}function So(t,e){var o=t[jo];return(o?io(o):t)[e]}function No(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 xo(t){t.P||(t.P=!0,t.l&&xo(t.l))}function Co(t){t.o||(t.o=ao(t.t))}function Eo(t,e,o){var r=ro(e)?fo("MapSet").F(e,o):no(e)?fo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:ho(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Zo;o&&(n=[r],i=_o);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):fo("ES5").J(e,o);return(o?o.A:ho()).p.push(r),r}function Ro(t){return Ye(t)||Ve(22,t),function t(e){if(!Xe(e))return e;var o,r=e[jo],n=Qe(e);if(r){if(!r.P&&(r.i<4||!fo("ES5").K(r)))return r.t;r.I=!0,o=Uo(e,n),r.I=!1}else o=Uo(e,n);return Je(o,(function(e,n){r&&function(t,e){return 2===Qe(t)?t.get(e):t[e]}(r.t,e)===n||eo(o,e,t(n))})),3===n?new Set(o):o}(t)}function Uo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ao(t)}Ze=He,_e=Ge,Be=ze;var Io,Lo,Ao="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Wo="undefined"!=typeof Map,ko="undefined"!=typeof Set,$o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=Ao?Symbol.for("immer-nothing"):((Io={})["immer-nothing"]=!0,Io),Po=Ao?Symbol.for("immer-draftable"):"__$immer_draftable",jo=Ao?Symbol.for("immer-state"):"__$immer_state",Fo=""+Object.prototype.constructor,Mo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Do=Object.getOwnPropertyDescriptors||function(t){var e={};return Mo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},To={},Zo={get:function(t,e){if(e===jo)return t;var o=io(t);if(!to(o,e))return function(t,e,o){var r,n=No(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Xe(r)?r:r===So(t.t,e)?(Co(t),t.o[e]=Eo(t.A.h,r,t)):r},has:function(t,e){return e in io(t)},ownKeys:function(t){return Reflect.ownKeys(io(t))},set:function(t,e,o){var r=No(io(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=So(io(t),e),i=null==n?void 0:n[jo];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(oo(o,n)&&(void 0!==o||to(t.t,e)))return!0;Co(t),xo(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!==So(t.t,e)||e in t.t?(t.R[e]=!1,Co(t),xo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=io(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(){Ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ve(12)}},_o={};Je(Zo,(function(t,e){_o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_o.deleteProperty=function(t,e){return _o.set.call(this,t,e,void 0)},_o.set=function(t,e,o){return Zo.set.call(this,t[0],e,o,t[0])};var Bo=function(){function t(t){var e=this;this.O=$o,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Ve(6),void 0!==r&&"function"!=typeof r&&Ve(7),Xe(t)){var s=go(e),c=Eo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?po(s):yo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return uo(s,r),mo(t,s)}),(function(t){throw po(s),t})):(uo(s,r),mo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ko&&(a=void 0),e.D&&so(a,!0),r){var f=[],h=[];fo("Patches").M(t,a,f,h),r(f,h)}return a}Ve(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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){Xe(t)||Ve(8),Ye(t)&&(t=Ro(t));var e=go(this),o=Eo(this,t,void 0);return o[jo].C=!0,yo(e),o},e.finishDraft=function(t,e){var o=(t&&t[jo]).A;return uo(o,e),mo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!$o&&Ve(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 n=fo("Patches").$;return Ye(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),zo=new Bo,Ho=zo.produce;function Go(t){return Go="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},Go(t)}function qo(t){var e=function(t,e){if("object"!==Go(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Go(e)?e:String(e)}function Vo(t,e,o){return(e=qo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Yo(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 Xo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Yo(Object(o),!0).forEach((function(e){Vo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Yo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Jo(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. "}zo.produceWithPatches.bind(zo),zo.setAutoFreeze.bind(zo),zo.setUseProxies.bind(zo),zo.applyPatches.bind(zo),zo.createDraft.bind(zo),zo.finishDraft.bind(zo);var Qo="function"==typeof Symbol&&Symbol.observable||"@@observable",tr=function(){return Math.random().toString(36).substring(7).split("").join(".")},er={INIT:"@@redux/INIT"+tr(),REPLACE:"@@redux/REPLACE"+tr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tr()}};function or(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Jo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Jo(1));return o(or)(t,e)}if("function"!=typeof t)throw new Error(Jo(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Jo(3));return i}function h(t){if("function"!=typeof t)throw new Error(Jo(4));if(c)throw new Error(Jo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Jo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(Jo(7));if(void 0===t.type)throw new Error(Jo(8));if(c)throw new Error(Jo(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:er.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Jo(10));n=t,u({type:er.REPLACE})}})[Qo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Jo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Qo]=function(){return this},t},r}function rr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:er.INIT}))throw new Error(Jo(12));if(void 0===o(void 0,{type:er.PROBE_UNKNOWN_ACTION()}))throw new Error(Jo(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Jo(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function nr(){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 ir(){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(Jo(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=nr.apply(void 0,i)(o.dispatch),Xo(Xo({},o),{},{dispatch:r})}}}function ar(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var sr=ar();sr.withExtraArgument=ar;var cr,lr=sr,fr=(cr=function(t,e){return cr=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])},cr(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}cr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),hr=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ur=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},pr=Object.defineProperty,dr=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,gr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,vr=function(t,e,o){return e in t?pr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Or=function(t,e){for(var o in e||(e={}))br.call(e,o)&&vr(t,o,e[o]);if(gr)for(var r=0,n=gr(e);r<n.length;r++){o=n[r];mr.call(e,o)&&vr(t,o,e[o])}return t},wr=function(t,e){return dr(t,yr(e))},Sr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?nr:nr.apply(null,arguments)};var Nr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return fr(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,ur([void 0],t[0].concat(this)))):new(e.bind.apply(e,ur([void 0],t.concat(this))))},e}(Array),xr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return fr(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,ur([void 0],t[0].concat(this)))):new(e.bind.apply(e,ur([void 0],t.concat(this))))},e}(Array);function Cr(t){return Xe(t)?Ho(t,(function(){})):t}function Er(){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 Nr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(lr.withExtraArgument(o.extraArgument)):r.push(lr));return r}(t)}}function Rr(t){var e,o=Er(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;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}(i))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=rr(i)}var d=s;"function"==typeof d&&(d=d(o));var y=ir.apply(void 0,d),g=nr;l&&(g=Sr(Or({trace:!1},"object"==typeof l&&l)));var b=new xr(y),m=b;return Array.isArray(p)?m=ur([y],p):"function"==typeof p&&(m=p(b)),or(e,h,g.apply(void 0,m))}function Ur(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return Or(Or({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.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 Ir(t){var e,o={},r=[],n={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,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Lr(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:Cr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ir(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=Or(Or({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Ir(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Cr(t())};else{var l=Cr(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=ur([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Ye(t))return void 0===(r=o(t,e))?t:r;if(Xe(t))return Ho(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=n,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 n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?Ur(l,r):Ur(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ar=["name","message","stack","code"],Wr=function(t,e){this.payload=t,this.meta=e},kr=function(t,e){this.payload=t,this.meta=e},$r=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ar;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Kr(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=Ur(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:wr(Or({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=Ur(t+"/pending",(function(t,e,o){return{payload:void 0,meta:wr(Or({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=Ur(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||$r)(t||"Rejected"),meta:wr(Or({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,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(s,c,l){var f,h=(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}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return hr(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:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Wr(t,e)},fulfillWithValue:function(t,e){return new kr(t,e)}})).then((function(e){if(e instanceof Wr)throw e;return e instanceof kr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Wr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Kr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Pr,jr,Fr="listenerMiddleware";Ur(Fr+"/add"),Ur(Fr+"/removeAll"),Ur(Fr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[jo];return Zo.get(e,t)},set:function(e){var o=this[jo];Zo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][jo];if(!n.P)switch(n.i){case 5:r(n)&&xo(n);break;case 4:o(n)&&xo(n)}}}function o(t){for(var e=t.t,o=t.k,r=Mo(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==jo){var a=e[i];if(void 0===a&&!to(e,i))return!0;var s=o[i],c=s&&s[jo];if(c?c.t!==a:!oo(s,a))return!0}}var l=!!e[jo];return r.length!==Mo(e).length+(l?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 n={};!function(t,e){To[t]||(To[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=Do(o);delete i[jo];for(var a=Mo(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:ho(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,jo,{value:i,writable:!0}),n},S:function(t,o,n){n?Ye(o)&&o[jo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[jo];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)Je(i,(function(e){e!==jo&&(void 0!==n[e]||to(n,e)?a[e]||t(i[e]):(a[e]=!0,xo(o)))})),Je(n,(function(t){void 0!==i[t]||to(i,t)||(a[t]=!1,xo(o))}));else if(5===s){if(r(o)&&(xo(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Te(n))return n;if(null==r)return;const i=Lr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Rr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Mr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new De,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...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_STATE_FIELDS_VALUES_SETTER",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()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(jr=null===(Pr=window.safari)||void 0===Pr?void 0:Pr.pushNotification)||void 0===jr||jr.toString());
|
|
106
106
|
/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2017 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
110
|
*/
|
|
111
|
-
const
|
|
111
|
+
const Dr=2,Tr=t=>(...e)=>({_$litDirective$:t,values:e});let Zr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
112
112
|
/**
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2020 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const{D:
|
|
116
|
+
*/const{D:_r}=yt,Br=()=>document.createComment(""),zr=(t,e,o)=>{const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Br(),n),i=r.insertBefore(Br(),n);o=new _r(e,i,t,t.options)}else{const e=o._$AB.nextSibling,i=o._$AM,a=i!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==i._$AU&&o._$AP(e)}if(e!==n||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return o},Hr=(t,e,o=t)=>(t._$AI(e,o),t),Gr={},qr=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Vr=(t,e,o)=>{const r=new Map;for(let n=e;n<=o;n++)r.set(t[n],n);return r},Yr=Tr(class extends Zr{constructor(t){if(super(t),t.type!==Dr)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const n=[],i=[];let a=0;for(const e of t)n[a]=r?r(e,a):a,i[a]=o(e,a),a++;return{values:i,keys:n}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const n=(t=>t._$AH)(t),{values:i,keys:a}=this.ht(e,o,r);if(!Array.isArray(n))return this.dt=a,i;const s=this.dt??=[],c=[];let l,f,h=0,u=n.length-1,p=0,d=i.length-1;for(;h<=u&&p<=d;)if(null===n[h])h++;else if(null===n[u])u--;else if(s[h]===a[p])c[p]=Hr(n[h],i[p]),h++,p++;else if(s[u]===a[d])c[d]=Hr(n[u],i[d]),u--,d--;else if(s[h]===a[d])c[d]=Hr(n[h],i[d]),zr(t,c[d+1],n[h]),h++,d--;else if(s[u]===a[p])c[p]=Hr(n[u],i[p]),zr(t,n[h],n[u]),u--,p++;else if(void 0===l&&(l=Vr(a,p,d),f=Vr(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=f.get(a[p]),o=void 0!==e?n[e]:null;if(null===o){const e=zr(t,n[h]);Hr(e,i[p]),c[p]=e}else c[p]=Hr(o,i[p]),zr(t,n[h],o),n[e]=null;p++}else qr(n[u]),u--;else qr(n[h]),h++;for(;p<=d;){const e=zr(t,c[d+1]);Hr(e,i[p]),c[p++]=e}for(;h<=u;){const t=n[h++];null!==t&&qr(t)}return this.dt=a,((t,e=Gr)=>{t._$AH=e})(t,c),tt}}),Xr=Nt`
|
|
117
117
|
[part="no-results-message"] {
|
|
118
118
|
text-align: center;
|
|
119
119
|
padding: 12px;
|
|
@@ -123,124 +123,124 @@ const Mr=2,Dr=t=>(...e)=>({_$litDirective$:t,values:e});let Tr=class{constructor
|
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright 2017 Google LLC
|
|
125
125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
|
-
*/var Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,cn,ln,fn,hn;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Xr||(Xr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Jr||(Jr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Qr||(Qr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(tn||(tn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(en||(en={})),function(t){t.ASC="ASC",t.DESC="DESC"}(on||(on={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(rn||(rn={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(nn||(nn={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(an||(an={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(sn||(sn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(cn||(cn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ln||(ln={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(fn||(fn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(hn||(hn={})),hn.PERSONAL_BOOK_SHARE_USER,hn.PERSONAL_BOOK_USER,hn.HTML_EXPORT_USER,hn.PERSONAL_BOOK_USER,hn.PDF_EXPORT_USER,hn.PERSONAL_BOOK_USER,hn.KHUB_ADMIN,hn.CONTENT_PUBLISHER,hn.ADMIN,hn.KHUB_ADMIN,hn.USERS_ADMIN,hn.PORTAL_ADMIN,hn.DEVELOPER,hn.BETA_USER,hn.DEBUG_USER;const un=Nt`
|
|
127
|
-
`,
|
|
126
|
+
*/var Jr,Qr,tn,en,on,rn,nn,an,sn,cn,ln,fn,hn,un;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Jr||(Jr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Qr||(Qr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(tn||(tn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(en||(en={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(on||(on={})),function(t){t.ASC="ASC",t.DESC="DESC"}(rn||(rn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(nn||(nn={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(an||(an={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(sn||(sn={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(cn||(cn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ln||(ln={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(fn||(fn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(hn||(hn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(un||(un={})),un.PERSONAL_BOOK_SHARE_USER,un.PERSONAL_BOOK_USER,un.HTML_EXPORT_USER,un.PERSONAL_BOOK_USER,un.PDF_EXPORT_USER,un.PERSONAL_BOOK_USER,un.KHUB_ADMIN,un.CONTENT_PUBLISHER,un.ADMIN,un.KHUB_ADMIN,un.USERS_ADMIN,un.PORTAL_ADMIN,un.DEVELOPER,un.BETA_USER,un.DEBUG_USER;const pn=Nt`
|
|
127
|
+
`,dn=Mr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class yn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=dn.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?yn.build(t):null!==(e=yn.API)&&void 0!==e?e:yn.API=yn.build()}static await(t){return new Promise((e=>{let o=yn.get(t);if(o)e(o);else{const r=dn.subscribe((()=>{o=yn.get(t),o&&(r(),e(o))}))}}))}}var gn;const bn=Symbol("clearAfterUnitTest");class mn{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[gn]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=dn.getState().uiLocale,dn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=dn.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};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Fe(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}gn=bn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new mn((async(t,e)=>(await yn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new mn((async(t,e)=>(await yn.await()).getCustomMessageContext(t,e))));const vn=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService;var wn=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Sn extends Pe{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>yn.get(),this.cache=new r,this.cleanSessionDebouncer=new I}render(){return ie`
|
|
128
128
|
<slot></slot>
|
|
129
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
129
|
+
`}update(t){super.update(t),t.has("baseUrl")&&dn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&dn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&dn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&dn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&dn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&dn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&dn.actions.setSession(this.session),t.has("availableUiLocales")&&dn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vn.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Sn.elementDefinitions={},Sn.styles=pn,wn([R()],Sn.prototype,"baseUrl",void 0),wn([R()],Sn.prototype,"apiIntegrationIdentifier",void 0),wn([R()],Sn.prototype,"uiLocale",void 0),wn([W([])],Sn.prototype,"availableUiLocales",void 0),wn([R({type:Boolean})],Sn.prototype,"editorMode",void 0),wn([R({type:Boolean})],Sn.prototype,"noCustom",void 0),wn([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Sn.prototype,"noCustomComponent",void 0),wn([R({type:Boolean})],Sn.prototype,"withManualResources",void 0),wn([W([])],Sn.prototype,"messageContexts",void 0),wn([W(void 0)],Sn.prototype,"session",void 0),wn([R({type:Object})],Sn.prototype,"apiProvider",void 0);class Nn{async listMySearches(){var t;return(null===(t=dn.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await yn.await()).listMySearches(dn.getState().session.profile.userId):[]}}const xn=new r;class Cn{async listMyBookmarks(){return xn.get("bookmarks",(async()=>(await yn.await()).listMyBookmarks(dn.getState().session.profile.userId)))}clearCache(){xn.clear("bookmarks")}}const En=Mr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=dn.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Cn,dn.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=dn.getState();L(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(){En.actions.savedSearches(void 0)}clearMyBookmarks(){En.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Nn,e=await t.listMySearches();En.actions.savedSearches(e)}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;En.actions.bookmarks(e)}}},A("ft-app-context")(Sn);class Rn extends Event{constructor(){super(Rn.eventName)}}Rn.eventName="search-context-clear-all-filters";var Un=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class In extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ln=Symbol("registerInterval");class An extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ln]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ln]):this.dispatchEvent(new In)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ln,Un([U()],o.prototype,"stateManager",void 0),o}(qe)){}const Wn=Nt`
|
|
130
130
|
a {
|
|
131
131
|
color: inherit;
|
|
132
132
|
text-decoration: inherit;
|
|
133
133
|
}
|
|
134
|
-
`;var
|
|
134
|
+
`;var kn=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class $n extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class Kn extends Pe{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return ie`
|
|
135
135
|
<a href="${this.url}" @click=${this.onResultClick}>
|
|
136
136
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
137
137
|
</a>
|
|
138
|
-
`}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case
|
|
138
|
+
`}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case fn.MAP:return this.result.map.readerUrl;case fn.DOCUMENT:return this.result.document.viewerUrl;case fn.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new $n(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}Kn.elementDefinitions={},Kn.styles=Wn,kn([R({attribute:!1})],Kn.prototype,"result",void 0),kn([R()],Kn.prototype,"index",void 0),A("ft-search-result-context")(Kn);var Pn=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class jn extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const Fn=Symbol("registerInterval");class Mn extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[Fn]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[Fn]):this.dispatchEvent(new jn)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=Fn,Pn([R({attribute:!1})],o.prototype,"result",void 0),o}(An)){}const Dn=Ne.create("--ft-srt-highlight-background-color","","COLOR","transparent"),Tn=Nt`
|
|
139
139
|
.kwicmatch {
|
|
140
140
|
font-weight: 700;
|
|
141
|
-
background-color: ${
|
|
141
|
+
background-color: ${Dn};
|
|
142
142
|
}
|
|
143
143
|
`
|
|
144
144
|
/**
|
|
145
145
|
* @license
|
|
146
146
|
* Copyright 2020 Google LLC
|
|
147
147
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
148
|
-
*/,
|
|
148
|
+
*/,Zn=Symbol.for(""),_n=t=>{if(t?.r===Zn)return t?._$litStatic$},Bn=t=>({_$litStatic$:t,r:Zn}),zn=new Map,Hn=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=_n(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=zn.get(t))&&(a.raw=a,zn.set(t,e=a)),o=s}return t(e,...o)})(Q);var Gn;!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"}(Gn||(Gn={}));const qn=Ne.extend("--ft-typography-font-family","",Re.titleFont),Vn=Ne.extend("--ft-typography-font-family","",Re.contentFont),Yn={fontFamily:Vn,fontSize:Ne.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ne.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ne.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ne.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ne.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Xn=Ne.extend("--ft-typography-title-font-family","",qn),Jn=Ne.extend("--ft-typography-title-font-size","",Yn.fontSize,"20px"),Qn=Ne.extend("--ft-typography-title-font-weight","",Yn.fontWeight,"normal"),ti=Ne.extend("--ft-typography-title-letter-spacing","",Yn.letterSpacing,"0.15px"),ei=Ne.extend("--ft-typography-title-line-height","",Yn.lineHeight,"1.2"),oi=Ne.extend("--ft-typography-title-text-transform","",Yn.textTransform,"inherit"),ri=Ne.extend("--ft-typography-title-dense-font-family","",qn),ni=Ne.extend("--ft-typography-title-dense-font-size","",Yn.fontSize,"14px"),ii=Ne.extend("--ft-typography-title-dense-font-weight","",Yn.fontWeight,"normal"),ai=Ne.extend("--ft-typography-title-dense-letter-spacing","",Yn.letterSpacing,"0.105px"),si=Ne.extend("--ft-typography-title-dense-line-height","",Yn.lineHeight,"1.7"),ci=Ne.extend("--ft-typography-title-dense-text-transform","",Yn.textTransform,"inherit"),li=Ne.extend("--ft-typography-subtitle1-font-family","",Vn),fi=Ne.extend("--ft-typography-subtitle1-font-size","",Yn.fontSize,"16px"),hi=Ne.extend("--ft-typography-subtitle1-font-weight","",Yn.fontWeight,"600"),ui=Ne.extend("--ft-typography-subtitle1-letter-spacing","",Yn.letterSpacing,"0.144px"),pi=Ne.extend("--ft-typography-subtitle1-line-height","",Yn.lineHeight,"1.5"),di=Ne.extend("--ft-typography-subtitle1-text-transform","",Yn.textTransform,"inherit"),yi=Ne.extend("--ft-typography-subtitle2-font-family","",Vn),gi=Ne.extend("--ft-typography-subtitle2-font-size","",Yn.fontSize,"14px"),bi=Ne.extend("--ft-typography-subtitle2-font-weight","",Yn.fontWeight,"normal"),mi=Ne.extend("--ft-typography-subtitle2-letter-spacing","",Yn.letterSpacing,"0.098px"),vi=Ne.extend("--ft-typography-subtitle2-line-height","",Yn.lineHeight,"1.7"),Oi=Ne.extend("--ft-typography-subtitle2-text-transform","",Yn.textTransform,"inherit"),wi=Ne.extend("--ft-typography-body1-font-family","",Vn),Si=Ne.extend("--ft-typography-body1-font-size","",Yn.fontSize,"16px"),Ni=Ne.extend("--ft-typography-body1-font-weight","",Yn.fontWeight,"normal"),xi=Ne.extend("--ft-typography-body1-letter-spacing","",Yn.letterSpacing,"0.496px"),Ci=Ne.extend("--ft-typography-body1-line-height","",Yn.lineHeight,"1.5"),Ei=Ne.extend("--ft-typography-body1-text-transform","",Yn.textTransform,"inherit"),Ri=Ne.extend("--ft-typography-body2-font-family","",Vn),Ui=Ne.extend("--ft-typography-body2-font-size","",Yn.fontSize,"14px"),Ii=Ne.extend("--ft-typography-body2-font-weight","",Yn.fontWeight,"normal"),Li=Ne.extend("--ft-typography-body2-letter-spacing","",Yn.letterSpacing,"0.252px"),Ai=Ne.extend("--ft-typography-body2-line-height","",Yn.lineHeight,"1.4"),Wi=Ne.extend("--ft-typography-body2-text-transform","",Yn.textTransform,"inherit"),ki=Ne.extend("--ft-typography-caption-font-family","",Vn),$i=Ne.extend("--ft-typography-caption-font-size","",Yn.fontSize,"12px"),Ki=Ne.extend("--ft-typography-caption-font-weight","",Yn.fontWeight,"normal"),Pi=Ne.extend("--ft-typography-caption-letter-spacing","",Yn.letterSpacing,"0.396px"),ji=Ne.extend("--ft-typography-caption-line-height","",Yn.lineHeight,"1.33"),Fi=Ne.extend("--ft-typography-caption-text-transform","",Yn.textTransform,"inherit"),Mi=Ne.extend("--ft-typography-breadcrumb-font-family","",Vn),Di=Ne.extend("--ft-typography-breadcrumb-font-size","",Yn.fontSize,"10px"),Ti=Ne.extend("--ft-typography-breadcrumb-font-weight","",Yn.fontWeight,"normal"),Zi=Ne.extend("--ft-typography-breadcrumb-letter-spacing","",Yn.letterSpacing,"0.33px"),_i=Ne.extend("--ft-typography-breadcrumb-line-height","",Yn.lineHeight,"1.6"),Bi=Ne.extend("--ft-typography-breadcrumb-text-transform","",Yn.textTransform,"inherit"),zi=Ne.extend("--ft-typography-overline-font-family","",Vn),Hi=Ne.extend("--ft-typography-overline-font-size","",Yn.fontSize,"10px"),Gi=Ne.extend("--ft-typography-overline-font-weight","",Yn.fontWeight,"normal"),qi=Ne.extend("--ft-typography-overline-letter-spacing","",Yn.letterSpacing,"1.5px"),Vi=Ne.extend("--ft-typography-overline-line-height","",Yn.lineHeight,"1.6"),Yi=Ne.extend("--ft-typography-overline-text-transform","",Yn.textTransform,"uppercase"),Xi=Ne.extend("--ft-typography-button-font-family","",Vn),Ji=Ne.extend("--ft-typography-button-font-size","",Yn.fontSize,"14px"),Qi=Ne.extend("--ft-typography-button-font-weight","",Yn.fontWeight,"600"),ta=Ne.extend("--ft-typography-button-letter-spacing","",Yn.letterSpacing,"1.246px"),ea=Ne.extend("--ft-typography-button-line-height","",Yn.lineHeight,"1.15"),oa=Ne.extend("--ft-typography-button-text-transform","",Yn.textTransform,"uppercase"),ra=Nt`
|
|
149
149
|
.ft-typography--title {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
150
|
+
font-family: ${Xn};
|
|
151
|
+
font-size: ${Jn};
|
|
152
|
+
font-weight: ${Qn};
|
|
153
|
+
letter-spacing: ${ti};
|
|
154
|
+
line-height: ${ei};
|
|
155
|
+
text-transform: ${oi};
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,na=Nt`
|
|
158
158
|
.ft-typography--title-dense {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
159
|
+
font-family: ${ri};
|
|
160
|
+
font-size: ${ni};
|
|
161
|
+
font-weight: ${ii};
|
|
162
|
+
letter-spacing: ${ai};
|
|
163
|
+
line-height: ${si};
|
|
164
|
+
text-transform: ${ci};
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,ia=Nt`
|
|
167
167
|
.ft-typography--subtitle1 {
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
173
|
-
text-transform: ${
|
|
168
|
+
font-family: ${li};
|
|
169
|
+
font-size: ${fi};
|
|
170
|
+
font-weight: ${hi};
|
|
171
|
+
letter-spacing: ${ui};
|
|
172
|
+
line-height: ${pi};
|
|
173
|
+
text-transform: ${di};
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,aa=Nt`
|
|
176
176
|
.ft-typography--subtitle2 {
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
177
|
+
font-family: ${yi};
|
|
178
|
+
font-size: ${gi};
|
|
179
|
+
font-weight: ${bi};
|
|
180
|
+
letter-spacing: ${mi};
|
|
181
|
+
line-height: ${vi};
|
|
182
|
+
text-transform: ${Oi};
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
`,
|
|
185
|
+
`,sa=Nt`
|
|
186
186
|
.ft-typography--body1 {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
187
|
+
font-family: ${wi};
|
|
188
|
+
font-size: ${Si};
|
|
189
|
+
font-weight: ${Ni};
|
|
190
|
+
letter-spacing: ${xi};
|
|
191
|
+
line-height: ${Ci};
|
|
192
|
+
text-transform: ${Ei};
|
|
193
193
|
}
|
|
194
|
-
`,
|
|
194
|
+
`,ca=Nt`
|
|
195
195
|
.ft-typography--body2 {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
196
|
+
font-family: ${Ri};
|
|
197
|
+
font-size: ${Ui};
|
|
198
|
+
font-weight: ${Ii};
|
|
199
|
+
letter-spacing: ${Li};
|
|
200
|
+
line-height: ${Ai};
|
|
201
|
+
text-transform: ${Wi};
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,la=Nt`
|
|
204
204
|
.ft-typography--caption {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
205
|
+
font-family: ${ki};
|
|
206
|
+
font-size: ${$i};
|
|
207
|
+
font-weight: ${Ki};
|
|
208
|
+
letter-spacing: ${Pi};
|
|
209
|
+
line-height: ${ji};
|
|
210
|
+
text-transform: ${Fi};
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,fa=Nt`
|
|
213
213
|
.ft-typography--breadcrumb {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
214
|
+
font-family: ${Mi};
|
|
215
|
+
font-size: ${Di};
|
|
216
|
+
font-weight: ${Ti};
|
|
217
|
+
letter-spacing: ${Zi};
|
|
218
|
+
line-height: ${_i};
|
|
219
|
+
text-transform: ${Bi};
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,ha=Nt`
|
|
222
222
|
.ft-typography--overline {
|
|
223
|
-
font-family: ${
|
|
224
|
-
font-size: ${
|
|
225
|
-
font-weight: ${
|
|
226
|
-
letter-spacing: ${
|
|
227
|
-
line-height: ${
|
|
228
|
-
text-transform: ${
|
|
223
|
+
font-family: ${zi};
|
|
224
|
+
font-size: ${Hi};
|
|
225
|
+
font-weight: ${Gi};
|
|
226
|
+
letter-spacing: ${qi};
|
|
227
|
+
line-height: ${Vi};
|
|
228
|
+
text-transform: ${Yi};
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,ua=Nt`
|
|
231
231
|
.ft-typography--button {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${
|
|
234
|
-
font-weight: ${
|
|
235
|
-
letter-spacing: ${
|
|
236
|
-
line-height: ${
|
|
237
|
-
text-transform: ${
|
|
232
|
+
font-family: ${Xi};
|
|
233
|
+
font-size: ${Ji};
|
|
234
|
+
font-weight: ${Qi};
|
|
235
|
+
letter-spacing: ${ta};
|
|
236
|
+
line-height: ${ea};
|
|
237
|
+
text-transform: ${oa};
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,pa=Nt`
|
|
240
240
|
.ft-typography {
|
|
241
241
|
vertical-align: inherit;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,da=[Object.keys(Ce).map((t=>function(t){const e=Ce[t];return Nt`
|
|
244
244
|
.ft-typography--${St(t)} {
|
|
245
245
|
font-family: ${e.fontFamily};
|
|
246
246
|
font-size: ${e.fontSize};
|
|
@@ -249,46 +249,46 @@ const Mr=2,Dr=t=>(...e)=>({_$litDirective$:t,values:e});let Tr=class{constructor
|
|
|
249
249
|
line-height: ${e.lineHeight};
|
|
250
250
|
text-transform: ${e.textCase};
|
|
251
251
|
}
|
|
252
|
-
`}(t)))];var
|
|
253
|
-
<${
|
|
252
|
+
`}(t)))];var ya=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ga extends Pe{constructor(){super(...arguments),this.variant=Gn.body1}render(){return this.element?Hn`
|
|
253
|
+
<${Bn(this.element)}
|
|
254
254
|
class="ft-typography ft-typography--${this.variant}">
|
|
255
255
|
<slot></slot>
|
|
256
|
-
</${
|
|
257
|
-
`:
|
|
256
|
+
</${Bn(this.element)}>
|
|
257
|
+
`:Hn`
|
|
258
258
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
259
|
-
`}}
|
|
259
|
+
`}}ga.styles=[ra,na,ia,aa,sa,ca,la,fa,ha,ua,pa,...da],ya([R()],ga.prototype,"element",void 0),ya([R()],ga.prototype,"variant",void 0),A("ft-typography")(ga);
|
|
260
260
|
/**
|
|
261
261
|
* @license
|
|
262
262
|
* Copyright 2017 Google LLC
|
|
263
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
264
|
*/
|
|
265
|
-
class
|
|
266
|
-
<ft-typography variant="title" part="text">${
|
|
267
|
-
`:se}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}
|
|
265
|
+
class ba extends Zr{constructor(t){if(super(t),this.et=et,t.type!==Dr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.vt=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ba.directiveName="unsafeHTML",ba.resultType=1;const ma=Tr(ba);class va extends Mn{render(){return this.result?ie`
|
|
266
|
+
<ft-typography variant="title" part="text">${ma(this.selectTitle(this.result))}</ft-typography>
|
|
267
|
+
`:se}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}va.elementDefinitions={"ft-typography":ga},va.styles=Tn,A("ft-search-result-title")(va);const Oa=Ne.create("--ft-sra-highlight-background-color","","COLOR","transparent"),wa=Nt`
|
|
268
268
|
.kwicmatch {
|
|
269
269
|
font-weight: 700;
|
|
270
|
-
background-color: ${
|
|
270
|
+
background-color: ${Oa};
|
|
271
271
|
}
|
|
272
|
-
`;class
|
|
273
|
-
<ft-typography variant="body1" part="text">${
|
|
272
|
+
`;class Sa extends Mn{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?ie`
|
|
273
|
+
<ft-typography variant="body1" part="text">${ma(t)}</ft-typography>
|
|
274
274
|
`:ie`
|
|
275
275
|
<style>
|
|
276
276
|
:host {
|
|
277
277
|
display: none !important;
|
|
278
278
|
}
|
|
279
279
|
</style>
|
|
280
|
-
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}
|
|
281
|
-
`;var
|
|
280
|
+
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}Sa.elementDefinitions={"ft-typography":ga},Sa.styles=wa,A("ft-search-result-abstract")(Sa);const Na=Nt`
|
|
281
|
+
`;var xa=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Ca=Symbol("i18nProperties"),Ea=Symbol("i18nUnsubs");function Ra(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?On:vn}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Ca])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ca])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ca]&&new Set([...this[Ca].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ea].has(t)||this[Ea].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ea].forEach((t=>t())),this[Ea].clear()}}return e=Ea,xa([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ua extends(Ra(Pe)){}class Ia extends(Ra(qe)){}var La=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Aa extends Ia{constructor(){super(),this.editorMode=!1,this.addStore(dn)}render(){return this.key&&this.context?ie`
|
|
282
282
|
<span class="ft-i18n">
|
|
283
283
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
284
284
|
</span>
|
|
285
|
-
`:this.editorMode?"Select a context and a label key.":se}update(t){super.update(t),this.context&&this.key&&this.
|
|
285
|
+
`:this.editorMode?"Select a context and a label key.":se}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Aa.elementDefinitions={},Aa.styles=Na,La([Me()],Aa.prototype,"editorMode",void 0),La([R()],Aa.prototype,"context",void 0),La([R()],Aa.prototype,"key",void 0),La([W([])],Aa.prototype,"args",void 0),La([R()],Aa.prototype,"defaultMessage",void 0);class Wa{static build(t){return new Wa(t)}static fromGwt(t){return new Wa(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)=>vn.resolveMessage(this.name,e,...t)})}}A("ft-i18n")(Aa);const ka=Wa.build("searchResultsNumber");var $a=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Ka extends(Ra(An)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ie`
|
|
286
286
|
<ft-search-result-title></ft-search-result-title>
|
|
287
287
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
288
|
-
`,this.addI18nContext(
|
|
289
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
290
|
-
`:
|
|
288
|
+
`,this.addI18nContext(ka)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?ie`
|
|
289
|
+
<ft-typography part="no-results-message" variant="body1">${ka.messages.results(0)}</ft-typography>
|
|
290
|
+
`:Yr((null!==(t=this.results)&&void 0!==t?t:[]).flatMap((t=>"display-first-result"==this.clusterPolicy?[t.entries[0]]:t.entries)),(t=>{var e,o,r,n,i;return null!==(n=null!==(o=null===(e=t.document)||void 0===e?void 0:e.documentId)&&void 0!==o?o:null===(r=t.map)||void 0===r?void 0:r.mapId)&&void 0!==n?n:null===(i=t.topic)||void 0===i?void 0:i.tocId}),((t,e)=>ie`
|
|
291
291
|
<ft-search-result-context .result=${t} index="${e}">
|
|
292
292
|
${this.renderResult(t,e)}
|
|
293
293
|
</ft-search-result-context>
|
|
294
|
-
`))}}
|
|
294
|
+
`))}}Ka.styles=Xr,$a([R({type:String,attribute:"cluster-policy"})],Ka.prototype,"clusterPolicy",void 0),$a([R({type:Boolean})],Ka.prototype,"displayNoResultsMessage",void 0),$a([R({attribute:!1})],Ka.prototype,"renderResult",void 0),$a([Me()],Ka.prototype,"results",void 0),A("ft-search-results")(Ka),t.FtSearchResults=Ka,t.FtSearchResultsCssVariables={},t.styles=Xr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-results",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Search result list for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-search-result-context": "1.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-search-result-context": "1.1.4",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.4",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluid-topics/public-api": "1.0.51"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b13ddd3359734158be660854f9ffe5fc5880c430"
|
|
30
30
|
}
|