@fluid-topics/ft-search-saved-searches 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,r=n._getDefinition(e);return r?p(i,r):o.set(i,n),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o,r),i.call(this,o,t,r)}else n.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n),i.call(this,n,t,null)}else r.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(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,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),r=e.get(n)||[];this[+i]=t,r.push(t),e.set(n,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(zr){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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 i&&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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let u=i.call(n,t);u||(u=h(t),e.call(n,t,u)),this===window.customElements&&(s.set(r,c),c.standInClass=u);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,r=n._getDefinition(e);return r?p(i,r):o.set(i,n),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o,r),i.call(this,o,t,r)}else n.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n),i.call(this,n,t,null)}else r.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(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,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),r=e.get(n)||[];this[+i]=t,r.push(t),e.set(n,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(zr){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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 i&&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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -39,7 +39,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var
|
|
42
|
+
*/var u;const h=null!=(null===(u=window.HTMLSlotElement)||void 0===u?void 0:u.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!f(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!f(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=i;0!=n--;){var o=r[n];if(!f(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
@@ -55,13 +55,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var
|
|
58
|
+
var T;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:U}),(null!==(O=E.reactiveElementVersions)&&void 0!==O?O:E.reactiveElementVersions=[]).push("1.6.1");const M=window,P=M.trustedTypes,B=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,L="?"+F,_=`<${L}>`,D=document,z=()=>D.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,H=t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,G=/>/g,X=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),et=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),nt=new WeakMap,rt=D.createTreeWalker(D,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let r,o=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===q?"!--"===l[1]?s=V:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=X):void 0!==l[3]&&(s=X):s===X?">"===l[0]?(s=null!=r?r:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?X:'"'===l[3]?Y:J):s===Y||s===J?s=X:s===V||s===G?s=q:(s=X,r=void 0);const h=s===X&&t[e+1].startsWith("/>")?" ":"";o+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+I+i.slice(c)+F+h):i+F+(-2===c?(n.push(void 0),e):h)}const a=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=st.createElement(l,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(I)||e.startsWith(F)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+I).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?pt:ut})}else a.push({type:6,index:r})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(F),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],z()),rt.nextNode(),a.push({type:2,index:++r});n.append(t[e],z())}}}else if(8===n.nodeType)if(n.data===L)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var r,o,s,a;if(e===et)return e;let l=void 0!==n?null===(r=i._$Co)||void 0===r?void 0:r[n]:i._$Cl;const c=K(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=at(t,l._$AS(t,e.values),l,n)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);rt.currentNode=r;let o=rt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new vt(o,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(o=rt.nextNode(),s++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ct=class t{constructor(t,e,i,n){var r;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),K(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==it&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=st.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new lt(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,r=0;for(const o of e)r===i.length?i.push(n=new t(this.k(z()),this.k(z()),this,this.options)):n=i[r],n._$AI(o),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ut=class{constructor(t,e,i,n,r){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const r=this.strings;let o=!1;if(void 0===r)t=at(this,t,e,0),o=!K(t)||t!==this._$AH&&t!==et,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),o||(o=!K(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const ft=P?P.emptyScript:"";let dt=class extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}},pt=class extends ut{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:it)===et)return;const n=this._$AH,r=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==it&&(n===it||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}};const bt={O:I,P:F,A:L,C:1,M:ot,L:lt,D:H,R:at,I:ct,V:ut,H:dt,N:pt,U:ht,F:vt},yt=M.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(T=M.litHtmlVersions)&&void 0!==T?T:M.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new ct(e.insertBefore(z(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class St{static create(t,e,i){let n=t=>x(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function $t(t,e){return x(`${t.name}: ${e}`)}const Ot={colorPrimary:St.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:St.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:St.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:St.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:St.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:St.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:St.create("--ft-color-error","COLOR","#B00020"),colorOutline:St.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:St.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:St.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:St.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:St.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:St.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:St.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:St.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:St.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:St.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:St.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:St.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:St.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:St.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:St.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:St.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:St.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:St.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:St.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:St.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:St.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:St.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:St.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:St.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:St.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:St.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:St.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:St.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:St.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:St.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:St.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:St.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:St.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:St.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:St.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:St.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:St.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:St.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:St.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:St.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:St.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:St.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:St.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:St.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:St.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:St.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:St.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:St.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:St.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:St.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:St.create("--ft-border-radius-XL","SIZE","16px"),titleFont:St.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:St.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:St.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:St.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return S(i,t.elementStyles),i}}var kt,Ct=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),At=Symbol("exportpartsDebouncer");class Nt extends Et{constructor(){super(),this[kt]=new r(5),this[Rt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[jt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[At].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,r,o,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}kt=At,Ct([s()],Nt.prototype,"exportpartsPrefix",void 0),Ct([p([])],Nt.prototype,"exportpartsPrefixes",void 0),Ct([s()],Nt.prototype,"customStylesheet",void 0);const Ut=w`
|
|
64
|
+
var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new ct(e.insertBefore(z(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class St{static create(t,e,i){let n=t=>x(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function $t(t,e){return x(`${t.name}: ${e}`)}const Ot={colorPrimary:St.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:St.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:St.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:St.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:St.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:St.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:St.create("--ft-color-error","COLOR","#B00020"),colorOutline:St.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:St.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:St.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:St.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:St.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:St.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:St.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:St.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:St.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:St.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:St.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:St.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:St.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:St.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:St.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:St.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:St.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:St.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:St.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:St.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:St.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:St.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:St.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:St.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:St.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:St.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:St.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:St.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:St.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:St.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:St.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:St.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:St.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:St.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:St.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:St.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:St.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:St.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:St.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:St.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:St.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:St.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:St.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:St.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:St.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:St.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:St.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:St.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:St.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:St.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:St.create("--ft-border-radius-XL","SIZE","16px"),titleFont:St.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:St.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:St.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:St.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return S(i,t.elementStyles),i}}var kt,Ct=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),At=Symbol("exportpartsDebouncer");class Nt extends Et{constructor(){super(),this[kt]=new r(5),this[Rt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[jt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[At].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,r,o,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}kt=At,Ct([s()],Nt.prototype,"exportpartsPrefix",void 0),Ct([p([])],Nt.prototype,"exportpartsPrefixes",void 0),Ct([s()],Nt.prototype,"customStylesheet",void 0);const Ut=w`
|
|
65
65
|
.ft-no-text-select {
|
|
66
66
|
-webkit-touch-callout: none;
|
|
67
67
|
-webkit-user-select: none;
|
|
@@ -82,7 +82,7 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
82
82
|
-webkit-hyphens: auto;
|
|
83
83
|
hyphens: auto
|
|
84
84
|
}
|
|
85
|
-
`;const
|
|
85
|
+
`;const Tt=w`
|
|
86
86
|
.ft-safari-ellipsis-fix {
|
|
87
87
|
margin-right: 0;
|
|
88
88
|
|
|
@@ -93,7 +93,7 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
display: inline-block;
|
|
94
94
|
width: 0;
|
|
95
95
|
}
|
|
96
|
-
`;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Tt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Bt(t){return!!t&&!!t[Se]}function It(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===$e}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Kt(t)||Wt(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Lt(t)?(i?Object.keys:Oe)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Lt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Wt(t)?3:0}function _t(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dt(t,e,i){var n=Lt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function zt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ye&&t instanceof Map}function Wt(t){return ge&&t instanceof Set}function Ht(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ee(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Gt(t)||Bt(t)||!It(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=Vt),Object.freeze(t),e&&Ft(t,(function(t,e){return qt(e,!0)}),!0)),t}function Vt(){Tt(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=ke[t];return e||Tt(18,t),e}function Jt(){return ve}function Yt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function Qt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function ne(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Xt("ES5").S(e,t,n),n?(i[Se].P&&(Qt(e),Tt(4)),It(t)&&(t=re(e,t),e.l||se(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),Qt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function re(t,e,i){if(Gt(e))return e;var n=e[Se];if(!n)return Ft(e,(function(r,o){return oe(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Zt(n.k):n.o,o=r,s=!1;3===n.i&&(o=new Set(r),r.clear(),s=!0),Ft(o,(function(e,o){return oe(t,n,r,e,o,i,s)})),se(t,r,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function oe(t,e,i,n,r,o,s){if(Bt(r)){var a=re(t,r,o&&e&&3!==e.i&&!_t(e.R,n)?o.concat(n):void 0);if(Dt(i,n,a),!Bt(a))return;t.m=!1}else s&&i.add(r);if(It(r)&&!Gt(r)){if(!t.h.D&&t._<1)return;re(t,r),e&&e.A.l||se(t,r)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function ae(t,e){var i=t[Se];return(i?Ht(i):t)[e]}function le(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function he(t){t.o||(t.o=Zt(t.t))}function ue(t,e,i){var n=Kt(e)?Xt("MapSet").F(e,i):Wt(e)?Xt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Jt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=Ce;i&&(r=[n],o=je);var s=Proxy.revocable(r,o),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Xt("ES5").J(e,i);return(i?i.A:Jt()).p.push(n),n}function fe(t){return Bt(t)||Tt(22,t),function t(e){if(!It(e))return e;var i,n=e[Se],r=Lt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=de(e,r),n.I=!1}else i=de(e,r);return Ft(i,(function(e,r){n&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(n.t,e)===r||Dt(i,e,t(r))})),3===r?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var pe,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((pe={})["immer-nothing"]=!0,pe),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",Se=be?Symbol.for("immer-state"):"__$immer_state",$e=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ee=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ke={},Ce={get:function(t,e){if(e===Se)return t;var i=Ht(t);if(!_t(i,e))return function(t,e,i){var n,r=le(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!It(n)?n:n===ae(t.t,e)?(he(t),t.o[e]=ue(t.A.h,n,t)):n},has:function(t,e){return e in Ht(t)},ownKeys:function(t){return Reflect.ownKeys(Ht(t))},set:function(t,e,i){var n=le(Ht(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=ae(Ht(t),e),o=null==r?void 0:r[Se];if(o&&o.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(zt(i,r)&&(void 0!==i||_t(t.t,e)))return!0;he(t),ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ae(t.t,e)||e in t.t?(t.R[e]=!1,he(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ht(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},je={};Ft(Ce,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Tt(6),void 0!==n&&"function"!=typeof n&&Tt(7),It(t)){var a=ee(e),l=ue(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Qt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),ne(t,a)}),(function(t){throw Qt(a),t})):(Yt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&qt(s,!0),n){var h=[],u=[];Xt("Patches").M(t,s,h,u),n(h,u)}return s}Tt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"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){It(t)||Tt(8),Bt(t)&&(t=fe(t));var e=ee(this),i=ue(this,t,void 0);return i[Se].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Yt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&Tt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var r=Xt("Patches").$;return Bt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ae=new Re,Ne=Ae.produce;function Ue(t){return Ue="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},Ue(t)}function Me(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Pe(t,e,i){return(e=Me(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Te(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(i),!0).forEach((function(e){Pe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Te(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ie(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. "}Ae.produceWithPatches.bind(Ae),Ae.setAutoFreeze.bind(Ae),Ae.setUseProxies.bind(Ae),Ae.applyPatches.bind(Ae),Ae.createDraft.bind(Ae),Ae.finishDraft.bind(Ae);var Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function De(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ie(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ie(1));return i(De)(t,e)}if("function"!=typeof t)throw new Error(Ie(2));var r=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ie(3));return o}function u(t){if("function"!=typeof t)throw new Error(Ie(4));if(l)throw new Error(Ie(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ie(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(Ie(7));if(void 0===t.type)throw new Error(Ie(8));if(l)throw new Error(Ie(9));try{l=!0,o=r(o,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:_e.INIT}),(n={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ie(10));r=t,f({type:_e.REPLACE})}})[Fe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ie(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},n}function ze(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Ie(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Ie(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ie(14));r[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?r:t}}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ie(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=Ke.apply(void 0,o)(i.dispatch),Be(Be({},i),{},{dispatch:n})}}}function He(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var Ze=He();Ze.withExtraArgument=He;var qe,Ve=Ze,Ge=(qe=function(t,e){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},qe(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 i(){this.constructor=t}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Xe=function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Je=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},Ye=Object.defineProperty,Qe=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},oi=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&ri(t,i,e[i]);if(ei)for(var n=0,r=ei(e);n<r.length;n++){i=r[n];ni.call(e,i)&&ri(t,i,e[i])}return t},si=function(t,e){return Qe(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var li=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array),ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array);function hi(t){return It(t)?Ne(t,(function(){})):t}function ui(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ve.withExtraArgument(i.extraArgument)):n.push(Ve));return n}(t)}}function fi(t){var e,i=ui(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(o))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=ze(o)}var p=a;"function"==typeof p&&(p=p(i));var v=We.apply(void 0,p),b=Ke;c&&(b=ai(oi({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(d)?g=Je([v],d):"function"==typeof d&&(g=d(y)),De(e,u,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return oi(oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function pi(t){var e,i={},n=[],r={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function vi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:hi(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?pi(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,l=e[2],c=void 0===l?void 0:l,h=oi(oi({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?pi(e):[e,i,n],s=o[0],a=o[1],l=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return hi(t())};else{var c=hi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=Je([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Bt(t))return void 0===(n=i(t,e))?t:n;if(It(t))return Ne(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=r,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var r=n[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return o.forEach((function(t){var i,n,o=r[t],c=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var r=n[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function xi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(oi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=di(t+"/rejected",(function(t,e,n,r,o){return{payload:r,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(oi({},o||{}),{arg:n,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function d(t){h=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Xe(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof yi?o(null,u,t,g.payload,g.meta):o(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&o.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},n=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(xi)}})}}),{pending:r,rejected:o,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,Si,$i,Oi="listenerMiddleware";di(Oi+"/add"),di(Oi+"/removeAll"),di(Oi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Se];return Ce.get(e,t)},set:function(e){var i=this[Se];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Se];if(!r.P)switch(r.i){case 5:n(r)&&ce(r);break;case 4:i(r)&&ce(r)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==Se){var s=e[o];if(void 0===s&&!_t(e,o))return!0;var a=i[o],l=a&&a[Se];if(l?l.t!==s:!zt(a,s))return!0}}var c=!!e[Se];return n.length!==Oe(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var r={};!function(t,e){ke[t]||(ke[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=Ee(i);delete o[Se];for(var s=Oe(o),a=0;a<s.length;a++){var l=s[a];o[l]=t(l,e||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:Jt(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Se,{value:o,writable:!0}),r},S:function(t,i,r){r?Bt(i)&&i[Se].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Se];if(i){var r=i.t,o=i.k,s=i.R,a=i.i;if(4===a)Ft(o,(function(e){e!==Se&&(void 0!==r[e]||_t(r,e)?s[e]||t(o[e]):(s[e]=!0,ce(i)))})),Ft(r,(function(t){void 0!==o[t]||_t(o,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var h=Math.min(o.length,r.length),u=0;u<h;u++)o.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(o[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Ei=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(r)(t,i);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},ki=Symbol("internalReduxEventsUnsubscribers"),Ci=Symbol("internalStoresUnsubscribers"),ji=Symbol("internalStores");class Ri extends Nt{constructor(){super(...arguments),this[wi]=new Map,this[Si]=new Map,this[$i]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ji].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ji].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ji].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ai(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ji].delete(e)}setupStore(t,e){this[ji].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ji].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ci].set(t,e.subscribe((()=>this.updateFromStores()))),Ai(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[ki].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ci]).forEach((t=>this.unsubscribeFromStore(t))),this[ki].forEach((t=>t())),this[ki]=[]}unsubscribeFromStore(t){this[Ci].has(t)&&this[Ci].get(t)(),this[Ci].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Ai(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}wi=Ci,Si=ji,$i=ki;class Ni{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ai(n))return n;if(null==i)return;const r=vi(i),o=fi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?r.getInitialState():r.reducer(t,e)});return window.ftReduxStores[i.name]=new Ni(r,o)}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,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ui,Mi,Pi;const Ti=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Pi=null===(Mi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Pi?Pi:""),Bi=1,Ii=2,Fi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
96
|
+
`;class Mt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Pt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Bt,It,Ft;const Lt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class zt extends Nt{constructor(){super(...arguments),this[Bt]=new Map,this[It]=new Map,this[Ft]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Pt(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[_t].set(t,e.subscribe((()=>this.updateFromStores()))),Pt(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Lt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Lt].forEach((t=>t())),this[Lt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Wt(t){return!!t&&!!t[Ae]}function Ht(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ne}(t)||Array.isArray(t)||!!t[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Jt(t)||Yt(t))}function Zt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Jt(t)?2:Yt(t)?3:0}function Vt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Xt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Jt(t){return Ee&&t instanceof Map}function Yt(t){return ke&&t instanceof Set}function Qt(t){return t.o||t.t}function te(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Te(t);delete e[Ae];for(var i=Ue(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function ee(t,e){return void 0===e&&(e=!1),ne(t)||Wt(t)||!Ht(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ie),Object.freeze(t),e&&Zt(t,(function(t,e){return ee(e,!0)}),!0)),t}function ie(){Kt(2)}function ne(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Me[t];return e||Kt(18,t),e}function oe(){return $e}function se(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function ae(t){le(t),t.p.forEach(ue),t.p=null}function le(t){t===$e&&($e=t.l)}function ce(t){return $e={p:[],l:$e,h:t,m:!0,_:0}}function ue(t){var e=t[Ae];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Ae].P&&(ae(e),Kt(4)),Ht(t)&&(t=fe(e,t),e.l||pe(e,t)),e.u&&re("Patches").M(i[Ae].t,t,e.u,e.s)):t=fe(e,i,[]),ae(e),e.u&&e.v(e.u,e.s),t!==je?t:void 0}function fe(t,e,i){if(ne(e))return e;var n=e[Ae];if(!n)return Zt(e,(function(r,o){return de(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return pe(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=te(n.k):n.o,o=r,s=!1;3===n.i&&(o=new Set(r),r.clear(),s=!0),Zt(o,(function(e,o){return de(t,n,r,e,o,i,s)})),pe(t,r,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,r,o,s){if(Wt(r)){var a=fe(t,r,o&&e&&3!==e.i&&!Vt(e.R,n)?o.concat(n):void 0);if(Gt(i,n,a),!Wt(a))return;t.m=!1}else s&&i.add(r);if(Ht(r)&&!ne(r)){if(!t.h.D&&t._<1)return;fe(t,r),e&&e.A.l||pe(t,r)}}function pe(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ee(e,i)}function ve(t,e){var i=t[Ae];return(i?Qt(i):t)[e]}function be(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ye(t){t.P||(t.P=!0,t.l&&ye(t.l))}function ge(t){t.o||(t.o=te(t.t))}function me(t,e,i){var n=Jt(e)?re("MapSet").F(e,i):Yt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:oe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=Pe;i&&(r=[n],o=Be);var s=Proxy.revocable(r,o),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:oe()).p.push(n),n}function xe(t){return Wt(t)||Kt(22,t),function t(e){if(!Ht(e))return e;var i,n=e[Ae],r=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=we(e,r),n.I=!1}else i=we(e,r);return Zt(i,(function(e,r){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===r||Gt(i,e,t(r))})),3===r?new Set(i):i}(t)}function we(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return te(t)}Bt=_t,It=Dt,Ft=Lt;var Se,$e,Oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,ke="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,je=Oe?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),Re=Oe?Symbol.for("immer-draftable"):"__$immer_draftable",Ae=Oe?Symbol.for("immer-state"):"__$immer_state",Ne=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Te=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Me={},Pe={get:function(t,e){if(e===Ae)return t;var i=Qt(t);if(!Vt(i,e))return function(t,e,i){var n,r=be(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Ht(n)?n:n===ve(t.t,e)?(ge(t),t.o[e]=me(t.A.h,n,t)):n},has:function(t,e){return e in Qt(t)},ownKeys:function(t){return Reflect.ownKeys(Qt(t))},set:function(t,e,i){var n=be(Qt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=ve(Qt(t),e),o=null==r?void 0:r[Ae];if(o&&o.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Xt(i,r)&&(void 0!==i||Vt(t.t,e)))return!0;ge(t),ye(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ve(t.t,e)||e in t.t?(t.R[e]=!1,ge(t),ye(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Qt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},Be={};Zt(Pe,(function(t,e){Be[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Be.deleteProperty=function(t,e){return Be.set.call(this,t,e,void 0)},Be.set=function(t,e,i){return Pe.set.call(this,t[0],e,i,t[0])};var Ie=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Ht(t)){var a=ce(e),l=me(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?ae(a):le(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return se(a,n),he(t,a)}),(function(t){throw ae(a),t})):(se(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===je&&(s=void 0),e.D&&ee(s,!0),n){var u=[],h=[];re("Patches").M(t,s,u,h),n(u,h)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"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){Ht(t)||Kt(8),Wt(t)&&(t=xe(t));var e=ce(this),i=me(this,t,void 0);return i[Ae].C=!0,le(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ae]).A;return se(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var r=re("Patches").$;return Wt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Fe=new Ie,Le=Fe.produce;function _e(t){return _e="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},_e(t)}function De(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function ze(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function We(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){ze(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function He(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Fe.produceWithPatches.bind(Fe),Fe.setAutoFreeze.bind(Fe),Fe.setUseProxies.bind(Fe),Fe.applyPatches.bind(Fe),Fe.createDraft.bind(Fe),Fe.finishDraft.bind(Fe);var Ze="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ve={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Ge(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(He(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(He(1));return i(Ge)(t,e)}if("function"!=typeof t)throw new Error(He(2));var r=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(He(3));return o}function h(t){if("function"!=typeof t)throw new Error(He(4));if(l)throw new Error(He(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(He(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(He(7));if(void 0===t.type)throw new Error(He(8));if(l)throw new Error(He(9));try{l=!0,o=r(o,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Ve.INIT}),(n={dispatch:f,subscribe:h,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(He(10));r=t,f({type:Ve.REPLACE})}})[Ze]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(He(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Ze]=function(){return this},t},n}function Xe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ve.INIT}))throw new Error(He(12));if(void 0===i(void 0,{type:Ve.PROBE_UNKNOWN_ACTION()}))throw new Error(He(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],h=c(u,e);if(void 0===h)throw e&&e.type,new Error(He(14));r[l]=h,n=n||h!==u}return(n=n||s.length!==Object.keys(t).length)?r:t}}function Je(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(He(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=Je.apply(void 0,o)(i.dispatch),We(We({},i),{},{dispatch:n})}}}function Qe(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var ti=Qe();ti.withExtraArgument=Qe;var ei,ii=ti,ni=(ei=function(t,e){return ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ei(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 i(){this.constructor=t}ei(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},oi=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},si=Object.defineProperty,ai=Object.defineProperties,li=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,fi=function(t,e,i){return e in t?si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&fi(t,i,e[i]);if(ci)for(var n=0,r=ci(e);n<r.length;n++){i=r[n];hi.call(e,i)&&fi(t,i,e[i])}return t},pi=function(t,e){return ai(t,li(e))},vi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Je:Je.apply(null,arguments)};var bi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return ni(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,oi([void 0],t[0].concat(this)))):new(e.bind.apply(e,oi([void 0],t.concat(this))))},e}(Array),yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return ni(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,oi([void 0],t[0].concat(this)))):new(e.bind.apply(e,oi([void 0],t.concat(this))))},e}(Array);function gi(t){return Ht(t)?Le(t,(function(){})):t}function mi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new bi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ii.withExtraArgument(i.extraArgument)):n.push(ii));return n}(t)}}function xi(t){var e,i=mi(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,h=void 0===u?void 0:u,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(o))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=Xe(o)}var p=a;"function"==typeof p&&(p=p(i));var v=Ye.apply(void 0,p),b=Je;c&&(b=vi(di({trace:!1},"object"==typeof c&&c)));var y=new yi(v),g=y;return Array.isArray(d)?g=oi([v],d):"function"==typeof d&&(g=d(y)),Ge(e,h,b.apply(void 0,g))}function wi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Si(t){var e,i={},n=[],r={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function $i(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:gi(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Si(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,l=e[2],c=void 0===l?void 0:l,u=di(di({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?Si(e):[e,i,n],s=o[0],a=o[1],l=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return gi(t())};else{var c=gi(t);r=function(){return c}}function u(t,e){void 0===t&&(t=r());var i=oi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Wt(t))return void 0===(n=i(t,e))?t:n;if(Ht(t))return Le(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=r,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var r=n[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return o.forEach((function(t){var i,n,o=r[t],c=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[c]=i,l[t]=n?wi(c,n):wi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Oi=["name","message","stack","code"],Ei=function(t,e){this.payload=t,this.meta=e},ki=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Oi;i<n.length;i++){var r=n[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function ji(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=wi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:pi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=wi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:pi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=wi(t+"/rejected",(function(t,e,n,r,o){return{payload:r,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:pi(di({},o||{}),{arg:n,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var u,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function d(t){u=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new Ei(t,e)},fulfillWithValue:function(t,e){return new ki(t,e)}})).then((function(e){if(e instanceof Ei)throw e;return e instanceof ki?n(e.payload,h,t,e.meta):n(e,h,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof Ei?o(null,h,t,g.payload,g.meta):o(g,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&o.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},n=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(ji)}})}}),{pending:r,rejected:o,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ri="listenerMiddleware";wi(Ri+"/add"),wi(Ri+"/removeAll"),wi(Ri+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Ae];return Pe.get(e,t)},set:function(e){var i=this[Ae];Pe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Ae];if(!r.P)switch(r.i){case 5:n(r)&&ye(r);break;case 4:i(r)&&ye(r)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==Ae){var s=e[o];if(void 0===s&&!Vt(e,o))return!0;var a=i[o],l=a&&a[Ae];if(l?l.t!==s:!Xt(a,s))return!0}}var c=!!e[Ae];return n.length!==Ue(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var r={};!function(t,e){Me[t]||(Me[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=Te(i);delete o[Ae];for(var s=Ue(o),a=0;a<s.length;a++){var l=s[a];o[l]=t(l,e||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:oe(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Ae,{value:o,writable:!0}),r},S:function(t,i,r){r?Wt(i)&&i[Ae].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ae];if(i){var r=i.t,o=i.k,s=i.R,a=i.i;if(4===a)Zt(o,(function(e){e!==Ae&&(void 0!==r[e]||Vt(r,e)?s[e]||t(o[e]):(s[e]=!0,ye(i)))})),Zt(r,(function(t){void 0!==o[t]||Vt(o,t)||(s[t]=!1,ye(i))}));else if(5===a){if(n(i)&&(ye(i),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var u=Math.min(o.length,r.length),h=0;h<u;h++)o.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(o[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();class Ai{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Pt(n))return n;if(null==i)return;const r=$i(i),o=xi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Ai(r,o)}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,i)=>{const n=e,r=t[n];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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 Ni=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(r)(t,i);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ui,Ti,Mi;const Pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mi=null===(Ti=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Ti?void 0:Ti.toString())&&void 0!==Mi?Mi:""),Bi=1,Ii=2,Fi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2017 Google LLC
|
|
@@ -216,12 +216,12 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
216
216
|
* Copyright 2020 Google LLC
|
|
217
217
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
218
218
|
*/
|
|
219
|
-
const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void 0:t._$litStatic$},tn=t=>({_$litStatic$:t,r:Yi}),en=new Map,nn=(t=>(e,...i)=>{const n=i.length;let r,o;const s=[],a=[];let l,c=0,
|
|
219
|
+
const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void 0:t._$litStatic$},tn=t=>({_$litStatic$:t,r:Yi}),en=new Map,nn=(t=>(e,...i)=>{const n=i.length;let r,o;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(o=i[c],r=Qi(o));)l+=r+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=en.get(t))&&(s.raw=s,en.set(t,e=s)),i=a}return t(e,...i)})(tt);var rn;!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"}(rn||(rn={}));const on=St.extend("--ft-typography-font-family",Ot.titleFont),sn=St.extend("--ft-typography-font-family",Ot.contentFont),an={fontFamily:sn,fontSize:St.create("--ft-typography-font-size","SIZE","16px"),fontWeight:St.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:St.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:St.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:St.create("--ft-typography-text-transform","UNKNOWN","inherit")},ln=St.extend("--ft-typography-title-font-family",on),cn=St.extend("--ft-typography-title-font-size",an.fontSize,"20px"),un=St.extend("--ft-typography-title-font-weight",an.fontWeight,"normal"),hn=St.extend("--ft-typography-title-letter-spacing",an.letterSpacing,"0.15px"),fn=St.extend("--ft-typography-title-line-height",an.lineHeight,"1.2"),dn=St.extend("--ft-typography-title-text-transform",an.textTransform,"inherit"),pn=St.extend("--ft-typography-title-dense-font-family",on),vn=St.extend("--ft-typography-title-dense-font-size",an.fontSize,"14px"),bn=St.extend("--ft-typography-title-dense-font-weight",an.fontWeight,"normal"),yn=St.extend("--ft-typography-title-dense-letter-spacing",an.letterSpacing,"0.105px"),gn=St.extend("--ft-typography-title-dense-line-height",an.lineHeight,"1.7"),mn=St.extend("--ft-typography-title-dense-text-transform",an.textTransform,"inherit"),xn=St.extend("--ft-typography-subtitle1-font-family",sn),wn=St.extend("--ft-typography-subtitle1-font-size",an.fontSize,"16px"),Sn=St.extend("--ft-typography-subtitle1-font-weight",an.fontWeight,"600"),$n=St.extend("--ft-typography-subtitle1-letter-spacing",an.letterSpacing,"0.144px"),On=St.extend("--ft-typography-subtitle1-line-height",an.lineHeight,"1.5"),En=St.extend("--ft-typography-subtitle1-text-transform",an.textTransform,"inherit"),kn=St.extend("--ft-typography-subtitle2-font-family",sn),Cn=St.extend("--ft-typography-subtitle2-font-size",an.fontSize,"14px"),jn=St.extend("--ft-typography-subtitle2-font-weight",an.fontWeight,"normal"),Rn=St.extend("--ft-typography-subtitle2-letter-spacing",an.letterSpacing,"0.098px"),An=St.extend("--ft-typography-subtitle2-line-height",an.lineHeight,"1.7"),Nn=St.extend("--ft-typography-subtitle2-text-transform",an.textTransform,"inherit"),Un=St.extend("--ft-typography-body1-font-family",sn),Tn=St.extend("--ft-typography-body1-font-size",an.fontSize,"16px"),Mn=St.extend("--ft-typography-body1-font-weight",an.fontWeight,"normal"),Pn=St.extend("--ft-typography-body1-letter-spacing",an.letterSpacing,"0.496px"),Bn=St.extend("--ft-typography-body1-line-height",an.lineHeight,"1.5"),In=St.extend("--ft-typography-body1-text-transform",an.textTransform,"inherit"),Fn={fontFamily:St.extend("--ft-typography-body2-font-family",sn),fontSize:St.extend("--ft-typography-body2-font-size",an.fontSize,"14px"),fontWeight:St.extend("--ft-typography-body2-font-weight",an.fontWeight,"normal"),letterSpacing:St.extend("--ft-typography-body2-letter-spacing",an.letterSpacing,"0.252px"),lineHeight:St.extend("--ft-typography-body2-line-height",an.lineHeight,"1.4"),textTransform:St.extend("--ft-typography-body2-text-transform",an.textTransform,"inherit")},Ln=St.extend("--ft-typography-caption-font-family",sn),_n=St.extend("--ft-typography-caption-font-size",an.fontSize,"12px"),Dn=St.extend("--ft-typography-caption-font-weight",an.fontWeight,"normal"),zn=St.extend("--ft-typography-caption-letter-spacing",an.letterSpacing,"0.396px"),Kn=St.extend("--ft-typography-caption-line-height",an.lineHeight,"1.33"),Wn=St.extend("--ft-typography-caption-text-transform",an.textTransform,"inherit"),Hn=St.extend("--ft-typography-breadcrumb-font-family",sn),Zn=St.extend("--ft-typography-breadcrumb-font-size",an.fontSize,"10px"),qn=St.extend("--ft-typography-breadcrumb-font-weight",an.fontWeight,"normal"),Vn=St.extend("--ft-typography-breadcrumb-letter-spacing",an.letterSpacing,"0.33px"),Gn=St.extend("--ft-typography-breadcrumb-line-height",an.lineHeight,"1.6"),Xn=St.extend("--ft-typography-breadcrumb-text-transform",an.textTransform,"inherit"),Jn=St.extend("--ft-typography-overline-font-family",sn),Yn=St.extend("--ft-typography-overline-font-size",an.fontSize,"10px"),Qn=St.extend("--ft-typography-overline-font-weight",an.fontWeight,"normal"),tr=St.extend("--ft-typography-overline-letter-spacing",an.letterSpacing,"1.5px"),er=St.extend("--ft-typography-overline-line-height",an.lineHeight,"1.6"),ir=St.extend("--ft-typography-overline-text-transform",an.textTransform,"uppercase"),nr={fontFamily:St.extend("--ft-typography-button-font-family",sn),fontSize:St.extend("--ft-typography-button-font-size",an.fontSize,"14px"),fontWeight:St.extend("--ft-typography-button-font-weight",an.fontWeight,"600"),letterSpacing:St.extend("--ft-typography-button-letter-spacing",an.letterSpacing,"1.246px"),lineHeight:St.extend("--ft-typography-button-line-height",an.lineHeight,"1.15"),textTransform:St.extend("--ft-typography-button-text-transform",an.textTransform,"uppercase")},rr=w`
|
|
220
220
|
.ft-typography--title {
|
|
221
221
|
font-family: ${ln};
|
|
222
222
|
font-size: ${cn};
|
|
223
|
-
font-weight: ${
|
|
224
|
-
letter-spacing: ${
|
|
223
|
+
font-weight: ${un};
|
|
224
|
+
letter-spacing: ${hn};
|
|
225
225
|
line-height: ${fn};
|
|
226
226
|
text-transform: ${dn};
|
|
227
227
|
}
|
|
@@ -256,9 +256,9 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
256
256
|
`,lr=w`
|
|
257
257
|
.ft-typography--body1 {
|
|
258
258
|
font-family: ${Un};
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
259
|
+
font-size: ${Tn};
|
|
260
|
+
font-weight: ${Mn};
|
|
261
|
+
letter-spacing: ${Pn};
|
|
262
262
|
line-height: ${Bn};
|
|
263
263
|
text-transform: ${In};
|
|
264
264
|
}
|
|
@@ -271,7 +271,7 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
271
271
|
line-height: ${Fn.lineHeight};
|
|
272
272
|
text-transform: ${Fn.textTransform};
|
|
273
273
|
}
|
|
274
|
-
`,
|
|
274
|
+
`,ur=w`
|
|
275
275
|
.ft-typography--caption {
|
|
276
276
|
font-family: ${Ln};
|
|
277
277
|
font-size: ${_n};
|
|
@@ -280,7 +280,7 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
280
280
|
line-height: ${Kn};
|
|
281
281
|
text-transform: ${Wn};
|
|
282
282
|
}
|
|
283
|
-
`,
|
|
283
|
+
`,hr=w`
|
|
284
284
|
.ft-typography--breadcrumb {
|
|
285
285
|
font-family: ${Hn};
|
|
286
286
|
font-size: ${Zn};
|
|
@@ -318,7 +318,7 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
318
318
|
</${tn(this.element)}>
|
|
319
319
|
`:nn`
|
|
320
320
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
321
|
-
`}}br.styles=[rr,or,sr,ar,lr,cr,hr,
|
|
321
|
+
`}}br.styles=[rr,or,sr,ar,lr,cr,ur,hr,fr,dr,pr],vr([s()],br.prototype,"element",void 0),vr([s()],br.prototype,"variant",void 0),d("ft-typography")(br);const yr={padding:St.create("--ft-card-padding","SIZE","12px"),outlineStyle:St.create("--ft-card-outline-style","UNKNOWN","solid"),outlineWidth:St.create("--ft-card-outline-width","SIZE","0"),outlineColor:St.extend("--ft-card-outline-color",Ot.colorPrimary),borderRadius:St.extend("--ft-card-border-radius",Ot.borderRadiusM),selectedOutlineStyle:St.create("--ft-card-selected-outline-style","UNKNOWN","solid"),selectedOutlineWidth:St.create("--ft-card-selected-outline-width","SIZE","2px"),selectedOutlineColor:St.extend("--ft-card-selected-outline-color",Ot.colorPrimary),selectedBorderRadius:St.extend("--ft-card-selected-border-radius",Ot.borderRadiusM),colorSurface:St.external(Ot.colorSurface,"Design system"),colorOnSurfaceMedium:St.external(Ot.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:St.external(Ot.colorOnSurfaceHigh,"Design system"),elevation02:St.external(Ot.elevation02,"Design system"),elevation04:St.external(Ot.elevation04,"Design system")},gr=w`
|
|
322
322
|
:host {
|
|
323
323
|
display: block;
|
|
324
324
|
}
|
|
@@ -421,9 +421,9 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
421
421
|
${$t(yr.colorOnSurfaceMedium,Er.color)};
|
|
422
422
|
}
|
|
423
423
|
`,Cr=w`
|
|
424
|
-
`,jr=
|
|
424
|
+
`,jr=Ai.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 Rr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=jr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Rr.build(t):null!==(e=Rr.API)&&void 0!==e?e:Rr.API=Rr.build()}static await(t){return new Promise((e=>{let i=Rr.get(t);if(i)e(i);else{const n=jr.subscribe((()=>{i=Rr.get(t),i&&(n(),e(i))}))}}))}}var Ar;const Nr=Symbol("clearAfterUnitTest");class Ur{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[Ar]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=jr.getState().uiLocale,jr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=jr.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 i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,r,o;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==r?r:{};return new Mt(null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},s).resolve(e,...i)}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 i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.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})))}}Ar=Nr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ur((async(t,e)=>(await Rr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ur((async(t,e)=>(await Rr.await()).getCustomMessageContext(t,e))));const Tr=window.FluidTopicsI18nService,Mr=window.FluidTopicsCustomI18nService;var Pr=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Br extends Nt{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=()=>Rr.get(),this.cache=new n,this.cleanSessionDebouncer=new r}render(){return tt`
|
|
425
425
|
<slot></slot>
|
|
426
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&jr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&jr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&jr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&jr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&jr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&jr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&jr.actions.setSession(this.session),t.has("availableUiLocales")&&jr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>
|
|
426
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&jr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&jr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&jr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&jr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&jr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&jr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&jr.actions.setSession(this.session),t.has("availableUiLocales")&&jr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Tr.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()))))}}Br.elementDefinitions={},Br.styles=Cr,Pr([s()],Br.prototype,"baseUrl",void 0),Pr([s()],Br.prototype,"apiIntegrationIdentifier",void 0),Pr([s()],Br.prototype,"uiLocale",void 0),Pr([p([])],Br.prototype,"availableUiLocales",void 0),Pr([s({type:Boolean})],Br.prototype,"editorMode",void 0),Pr([s({type:Boolean})],Br.prototype,"noCustom",void 0),Pr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Br.prototype,"noCustomComponent",void 0),Pr([s({type:Boolean})],Br.prototype,"withManualResources",void 0),Pr([p([])],Br.prototype,"messageContexts",void 0),Pr([p(void 0)],Br.prototype,"session",void 0),Pr([s({type:Object})],Br.prototype,"apiProvider",void 0),d("ft-app-context")(Br);class Ir extends Event{constructor(){super(Ir.eventName)}}Ir.eventName="search-context-clear-all-filters";var Fr=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Lr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const _r=Symbol("registerInterval");class Dr extends(function(t){var e;class i 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[_r]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[_r]):this.dispatchEvent(new Lr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=_r,Fr([a()],i.prototype,"stateManager",void 0),i}(zt)){}
|
|
427
427
|
/**
|
|
428
428
|
* @license
|
|
429
429
|
* Copyright 2017 Google LLC
|
|
@@ -537,7 +537,7 @@ const Yi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
537
537
|
* Copyright 2017 Google LLC
|
|
538
538
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
539
539
|
*/
|
|
540
|
-
function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const r="slot"+(e?`[name=${e}]`:":not([name])"),o=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(r),s=null!=o?
|
|
540
|
+
function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const r="slot"+(e?`[name=${e}]`:":not([name])"),o=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(r),s=null!=o?h(o,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==o?void 0:o.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],oo.prototype,"slotNodes",void 0),ro([c(".ft-tooltip--container")],oo.prototype,"container",void 0),ro([c("slot")],oo.prototype,"target",void 0),ro([c(".ft-tooltip")],oo.prototype,"tooltip",void 0),ro([c(".ft-tooltip--content")],oo.prototype,"tooltipContent",void 0),ro([a()],oo.prototype,"visible",void 0),d("ft-tooltip")(oo);const so={color:St.extend("--ft-loader-color",Ot.colorPrimary),size:St.create("--ft-loader-size","SIZE","80px")},ao=w`
|
|
541
541
|
:host {
|
|
542
542
|
line-height: 0;
|
|
543
543
|
}
|
|
@@ -613,7 +613,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
613
613
|
<div></div>
|
|
614
614
|
<div></div>
|
|
615
615
|
</div>
|
|
616
|
-
`}}lo.styles=ao,d("ft-loader")(lo);const co=St.extend("--ft-button-color",Ot.colorPrimary),
|
|
616
|
+
`}}lo.styles=ao,d("ft-loader")(lo);const co=St.extend("--ft-button-color",Ot.colorPrimary),uo={backgroundColor:St.extend("--ft-button-background-color",Ot.colorSurface),borderRadius:St.extend("--ft-button-border-radius",Ot.borderRadiusL),color:co,fontSize:St.extend("--ft-button-font-size",nr.fontSize),iconSize:St.create("--ft-button-icon-size","SIZE","24px"),rippleColor:St.extend("--ft-button-ripple-color",co),verticalPadding:St.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:St.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:St.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:St.external(Ot.colorOpacityDisabled,"Design system")},ho=St.extend("--ft-button-primary-color",St.extend("--ft-button-color",Ot.colorOnPrimary)),fo={backgroundColor:St.extend("--ft-button-primary-background-color",St.extend("--ft-button-background-color",Ot.colorPrimary)),color:ho,rippleColor:St.extend("--ft-button-primary-ripple-color",ho)},po=St.extend("--ft-button-dense-border-radius",St.extend("--ft-button-border-radius",Ot.borderRadiusM)),vo=St.create("--ft-button-dense-vertical-padding","SIZE","2px"),bo=St.create("--ft-button-dense-horizontal-padding","SIZE","4px"),yo=St.create("--ft-button-dense-icon-padding","SIZE","4px"),go=[w`
|
|
617
617
|
:host {
|
|
618
618
|
display: inline-block;
|
|
619
619
|
max-width: 100%;
|
|
@@ -624,7 +624,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
624
624
|
box-shadow: 0px 0px 0px transparent;
|
|
625
625
|
border: 0px solid transparent;
|
|
626
626
|
text-shadow: 0px 0px 0px transparent;
|
|
627
|
-
font-size: ${
|
|
627
|
+
font-size: ${uo.fontSize};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
button:hover {
|
|
@@ -653,21 +653,21 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
653
653
|
border: none;
|
|
654
654
|
pointer-events: auto;
|
|
655
655
|
|
|
656
|
-
--ft-button-internal-line-height: max(calc(${
|
|
657
|
-
--ft-button-internal-color: ${
|
|
658
|
-
${$t(Zr.size,
|
|
659
|
-
${$t(zi.color,
|
|
656
|
+
--ft-button-internal-line-height: max(calc(${uo.fontSize} + 2px), ${uo.iconSize});
|
|
657
|
+
--ft-button-internal-color: ${uo.color};
|
|
658
|
+
${$t(Zr.size,uo.iconSize)};
|
|
659
|
+
${$t(zi.color,uo.rippleColor)};
|
|
660
660
|
|
|
661
|
-
border-radius: ${
|
|
662
|
-
padding: ${
|
|
663
|
-
background-color: ${
|
|
661
|
+
border-radius: ${uo.borderRadius};
|
|
662
|
+
padding: ${uo.verticalPadding} ${uo.horizontalPadding};
|
|
663
|
+
background-color: ${uo.backgroundColor};
|
|
664
664
|
color: var(--ft-button-internal-color);
|
|
665
665
|
-webkit-mask-image: radial-gradient(white, black);
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
.ft-button.ft-button--outlined {
|
|
669
669
|
border: 1px solid var(--ft-button-internal-color);
|
|
670
|
-
padding: calc(${
|
|
670
|
+
padding: calc(${uo.verticalPadding} - 1px) calc(${uo.horizontalPadding} - 1px);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
.ft-button.ft-button--dense {
|
|
@@ -685,7 +685,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
.ft-button--round {
|
|
688
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
688
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${uo.verticalPadding});
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
.ft-button--round.ft-button--dense {
|
|
@@ -694,7 +694,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
694
694
|
|
|
695
695
|
.ft-button[disabled] {
|
|
696
696
|
filter: grayscale(1);
|
|
697
|
-
opacity: ${
|
|
697
|
+
opacity: ${uo.opacityDisabled};
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
.ft-button.ft-button--primary {
|
|
@@ -713,7 +713,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
713
713
|
white-space: nowrap;
|
|
714
714
|
text-overflow: ellipsis;
|
|
715
715
|
display: block;
|
|
716
|
-
margin: 0 ${
|
|
716
|
+
margin: 0 ${uo.iconPadding};
|
|
717
717
|
${$t(nr.fontSize,"1em")};
|
|
718
718
|
${$t(nr.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
719
719
|
}
|
|
@@ -732,8 +732,8 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
.ft-button--label[hidden] + ft-icon {
|
|
735
|
-
margin: 0 calc(${
|
|
736
|
-
padding: 0 ${
|
|
735
|
+
margin: 0 calc(${uo.horizontalPadding} * -1);
|
|
736
|
+
padding: 0 ${uo.verticalPadding};
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
@@ -747,7 +747,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
ft-loader {
|
|
750
|
-
${$t(so.size,
|
|
750
|
+
${$t(so.size,uo.iconSize)};
|
|
751
751
|
${$t(so.color,"var(--ft-button-internal-color)")};
|
|
752
752
|
}
|
|
753
753
|
`,Ut];var mo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class xo extends Nt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
|
|
@@ -759,7 +759,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
759
759
|
<ft-typography part="label"
|
|
760
760
|
variant="button"
|
|
761
761
|
element="span"
|
|
762
|
-
class="ft-button--label ${
|
|
762
|
+
class="ft-button--label ${Pi?"ft-safari-ellipsis-fix":""}"
|
|
763
763
|
?hidden=${!this.hasTextContent()}>
|
|
764
764
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
765
765
|
</ft-typography>
|
|
@@ -773,12 +773,12 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
773
773
|
</ft-tooltip>
|
|
774
774
|
`:t}resolveIcon(){return this.loading?tt`
|
|
775
775
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
|
|
776
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}xo.elementDefinitions={"ft-ripple":Ji,"ft-tooltip":oo,"ft-typography":br,"ft-icon":Xr,"ft-loader":lo},xo.styles=[
|
|
777
|
-
`;var So=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const $o=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function Eo(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?
|
|
776
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}xo.elementDefinitions={"ft-ripple":Ji,"ft-tooltip":oo,"ft-typography":br,"ft-icon":Xr,"ft-loader":lo},xo.styles=[Tt,go],mo([s({type:String,reflect:!0})],xo.prototype,"role",void 0),mo([s({type:Boolean})],xo.prototype,"primary",void 0),mo([s({type:Boolean})],xo.prototype,"outlined",void 0),mo([s({type:Boolean})],xo.prototype,"disabled",void 0),mo([s({type:Boolean})],xo.prototype,"dense",void 0),mo([s({type:Boolean})],xo.prototype,"round",void 0),mo([s()],xo.prototype,"label",void 0),mo([s()],xo.prototype,"icon",void 0),mo([s()],xo.prototype,"iconVariant",void 0),mo([s({type:Boolean})],xo.prototype,"trailingIcon",void 0),mo([s({type:Boolean})],xo.prototype,"loading",void 0),mo([s()],xo.prototype,"tooltipPosition",void 0),mo([s({type:Boolean})],xo.prototype,"hideTooltip",void 0),mo([s({type:Boolean})],xo.prototype,"forceTooltip",void 0),mo([c(".ft-button")],xo.prototype,"button",void 0),mo([c(".ft-button--label slot")],xo.prototype,"slottedContent",void 0),d("ft-button")(xo);const wo=w`
|
|
777
|
+
`;var So=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const $o=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function Eo(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Mr:Tr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[$o])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[$o])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[$o]&&new Set([...this[$o].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Oo].has(t)||this[Oo].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[Oo].forEach((t=>t())),this[Oo].clear()}}return e=Oo,So([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ko extends(Eo(Nt)){}class Co extends(Eo(zt)){}var jo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Ro extends Co{constructor(){super(),this.editorMode=!1,this.addStore(jr)}render(){return this.key&&this.context?tt`
|
|
778
778
|
<span class="ft-i18n">
|
|
779
779
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
780
780
|
</span>
|
|
781
|
-
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ro.elementDefinitions={},Ro.styles=wo,jo([
|
|
781
|
+
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ro.elementDefinitions={},Ro.styles=wo,jo([Ni()],Ro.prototype,"editorMode",void 0),jo([s()],Ro.prototype,"context",void 0),jo([s()],Ro.prototype,"key",void 0),jo([p([])],Ro.prototype,"args",void 0),jo([s()],Ro.prototype,"defaultMessage",void 0);class Ao{static build(t){return new Ao(t)}static fromGwt(t){return new Ao(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Tr.resolveMessage(this.name,e,...t)})}}d("ft-i18n")(Ro);const No=Ao.build("savedSearchesComponent"),Uo={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search"},To=St.extend("--ft-chip-color",Ot.colorOnSurface),Mo={backgroundColor:St.extend("--ft-chip-background-color",Ot.colorSurface),color:To,fontSize:St.extend("--ft-chip-font-size",Fn.fontSize),iconSize:St.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:St.extend("--ft-chip-ripple-color",To),horizontalPadding:St.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:St.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:St.external(Ot.colorOutline,"Design system"),opacityDisabled:St.external(Ot.colorOpacityDisabled,"Design system")},Po=St.extend("--ft-chip-highlighted-color",St.extend("--ft-chip-color",Ot.colorOnPrimary)),Bo={backgroundColor:St.extend("--ft-chip-highlighted-background-color",St.extend("--ft-chip-background-color",Ot.colorPrimary)),color:Po,rippleColor:St.extend("--ft-chip-highlighted-ripple-color",Po)},Io=St.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Fo=St.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Lo=[Ut,w`
|
|
782
782
|
:host {
|
|
783
783
|
display: inline-block;
|
|
784
784
|
max-width: 100%;
|
|
@@ -794,20 +794,20 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
794
794
|
box-sizing: border-box;
|
|
795
795
|
pointer-events: auto;
|
|
796
796
|
|
|
797
|
-
--ft-chip-internal-font-size: ${
|
|
797
|
+
--ft-chip-internal-font-size: ${Mo.fontSize};
|
|
798
798
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
799
|
-
${$t(Zr.size,
|
|
800
|
-
--ft-chip-internal-vertical-padding: ${
|
|
801
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
799
|
+
${$t(Zr.size,Mo.iconSize)};
|
|
800
|
+
--ft-chip-internal-vertical-padding: ${Mo.verticalPadding};
|
|
801
|
+
--ft-chip-internal-horizontal-padding: ${Mo.horizontalPadding};
|
|
802
802
|
--ft-chip-internal-icon-padding: 3px;
|
|
803
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
803
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Mo.iconSize});
|
|
804
804
|
|
|
805
|
-
border: 1px solid ${
|
|
806
|
-
color: ${
|
|
807
|
-
${$t(zi.color,
|
|
805
|
+
border: 1px solid ${Mo.colorOutline};
|
|
806
|
+
color: ${Mo.color};
|
|
807
|
+
${$t(zi.color,Mo.rippleColor)};
|
|
808
808
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
809
809
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
810
|
-
background-color: ${
|
|
810
|
+
background-color: ${Mo.backgroundColor};
|
|
811
811
|
line-height: var(--ft-chip-internal-content-height);
|
|
812
812
|
}
|
|
813
813
|
|
|
@@ -830,7 +830,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
830
830
|
cursor: default;
|
|
831
831
|
pointer-events: none;
|
|
832
832
|
filter: grayscale(1);
|
|
833
|
-
opacity: ${
|
|
833
|
+
opacity: ${Mo.opacityDisabled};
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
.ft-chip--highlighted {
|
|
@@ -868,9 +868,9 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
.ft-chip--icon-button {
|
|
871
|
-
${$t(
|
|
872
|
-
${$t(
|
|
873
|
-
${$t(
|
|
871
|
+
${$t(uo.iconSize,Mo.iconSize)};
|
|
872
|
+
${$t(uo.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
873
|
+
${$t(uo.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
874
874
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
875
875
|
}
|
|
876
876
|
|
|
@@ -915,7 +915,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
915
915
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
916
916
|
order: -1;
|
|
917
917
|
}
|
|
918
|
-
`];var _o=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Do extends CustomEvent{constructor(){super("icon-click")}}class zo extends Nt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":
|
|
918
|
+
`];var _o=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Do extends CustomEvent{constructor(){super("icon-click")}}class zo extends Nt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Pi};return tt`
|
|
919
919
|
<div class="${_i(t)}"
|
|
920
920
|
aria-label="${this.getLabel()}"
|
|
921
921
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -947,11 +947,11 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
947
947
|
${this.renderSearchButton()}
|
|
948
948
|
</div>
|
|
949
949
|
</ft-card>
|
|
950
|
-
`}renderDescription(){var t;return this.showDescription?tt`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:it}renderSearchButton(){return this.showSearchButton?tt`<div id="searchButton" class="content"><ft-button id="search" icon="search">${No.messages.search()}</ft-button></div>`:it}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?tt`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:it}renderSearchFilters(){var t,e,i,n,r,o,s,a,l,c,h,
|
|
950
|
+
`}renderDescription(){var t;return this.showDescription?tt`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:it}renderSearchButton(){return this.showSearchButton?tt`<div id="searchButton" class="content"><ft-button id="search" icon="search">${No.messages.search()}</ft-button></div>`:it}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?tt`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:it}renderSearchFilters(){var t,e,i,n,r,o,s,a,l,c,u,h,f,d;return this.showSearchFilters?tt`<div id="searchFilters" class="content">
|
|
951
951
|
${null!==(e=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==e&&e?this.renderMetadata(No.messages.keywords(),null===(i=this.search)||void 0===i?void 0:i.searchRequest.query,!0):it}
|
|
952
952
|
${null===(n=this.search)||void 0===n?void 0:n.searchRequest.filters.map((t=>this.renderMetadata(t.label,t.values)))}
|
|
953
953
|
${null!==(s=null===(o=null===(r=this.search)||void 0===r?void 0:r.searchRequest.contentLocale)||void 0===o?void 0:o.length)&&void 0!==s&&s?this.renderMetadata(No.messages.language(),null===(a=this.search)||void 0===a?void 0:a.searchRequest.contentLocale,!0):it}
|
|
954
|
-
${null!==(
|
|
954
|
+
${null!==(u=null===(c=null===(l=this.search)||void 0===l?void 0:l.searchRequest.sort[0])||void 0===c?void 0:c.key.length)&&void 0!==u&&u?this.renderMetadata(No.messages.sort(),this.mapSortKey(null===(h=this.search)||void 0===h?void 0:h.searchRequest.sort[0].key),!0):it}
|
|
955
955
|
${(null===(f=this.search)||void 0===f?void 0:f.searchRequest.periodFilter)?this.renderMetadata(No.messages.period(),this.mapPeriodFilter(null===(d=this.search)||void 0===d?void 0:d.searchRequest.periodFilter),!0):it}
|
|
956
956
|
</div>`:it}renderMetadata(t,e,i=!1){return tt`<ft-chip dense ?highlighted=${i}><span class="metadata-label">${t}</span><span class="metadata-values">${Array.isArray(e)?e.join(", "):e}</span></ft-chip>`}mapSortKey(t){switch(t){case"afs:relevance":return No.messages.relevance();case"ft:lastEdition":return No.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return No.messages.lastWeek();case"LAST_MONTH":return No.messages.lastMonth();case"LAST_YEAR":return No.messages.lastYear();case"CUSTOM":return No.messages.customPeriod();default:return"--"}}}Wo.elementDefinitions={"ft-icon":Xr,"ft-card":Or,"ft-chip":zo,"ft-button":xo},Wo.styles=w`
|
|
957
957
|
ft-card {
|
|
@@ -971,11 +971,11 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
#search {
|
|
974
|
-
${$t(
|
|
974
|
+
${$t(uo.color,Er.inactiveButtonTextColor)};
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
ft-card[selected] #search {
|
|
978
|
-
${$t(
|
|
978
|
+
${$t(uo.color,Er.activeButtonTextColor)};
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
#searchFilters {
|
|
@@ -1012,12 +1012,12 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
|
|
|
1012
1012
|
* Copyright 2020 Google LLC
|
|
1013
1013
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1014
1014
|
*/
|
|
1015
|
-
const{I:Ho}=bt,Zo=()=>document.createComment(""),qo=(t,e,i)=>{var n;const r=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(Zo(),o),n=r.insertBefore(Zo(),o);i=new Ho(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,o),t=e}}}return i},Vo=(t,e,i=t)=>(t._$AI(e,i),t),Go={},Xo=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Jo=(t,e,i)=>{const n=new Map;for(let r=e;r<=i;r++)n.set(t[r],r);return n},Yo=Fi(class extends Li{constructor(t){if(super(t),t.type!==Ii)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const r=[],o=[];let s=0;for(const e of t)r[s]=n?n(e,s):s,o[s]=i(e,s),s++;return{values:o,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var r;const o=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(o))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let h,
|
|
1015
|
+
const{I:Ho}=bt,Zo=()=>document.createComment(""),qo=(t,e,i)=>{var n;const r=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(Zo(),o),n=r.insertBefore(Zo(),o);i=new Ho(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,o),t=e}}}return i},Vo=(t,e,i=t)=>(t._$AI(e,i),t),Go={},Xo=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Jo=(t,e,i)=>{const n=new Map;for(let r=e;r<=i;r++)n.set(t[r],r);return n},Yo=Fi(class extends Li{constructor(t){if(super(t),t.type!==Ii)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const r=[],o=[];let s=0;for(const e of t)r[s]=n?n(e,s):s,o[s]=i(e,s),s++;return{values:o,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var r;const o=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(o))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let u,h,f=0,d=o.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===o[f])f++;else if(null===o[d])d--;else if(l[f]===a[p])c[p]=Vo(o[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=Vo(o[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Vo(o[f],s[v]),qo(t,c[v+1],o[f]),f++,v--;else if(l[d]===a[p])c[p]=Vo(o[d],s[p]),qo(t,o[f],o[d]),d--,p++;else if(void 0===u&&(u=Jo(a,p,v),h=Jo(l,f,d)),u.has(l[f]))if(u.has(l[d])){const e=h.get(a[p]),i=void 0!==e?o[e]:null;if(null===i){const e=qo(t,o[f]);Vo(e,s[p]),c[p]=e}else c[p]=Vo(i,s[p]),qo(t,o[f],i),o[e]=null;p++}else Xo(o[d]),d--;else Xo(o[f]),f++;for(;p<=v;){const e=qo(t,c[v+1]);Vo(e,s[p]),c[p++]=e}for(;f<=d;){const t=o[f++];null!==t&&Xo(t)}return this.ht=a,((t,e=Go)=>{t._$AH=e})(t,c),et}});
|
|
1016
1016
|
/**
|
|
1017
1017
|
* @license
|
|
1018
1018
|
* Copyright 2017 Google LLC
|
|
1019
1019
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1020
|
-
*/var Qo,ts,es,is,ns,rs,os,ss,as;!function(t){!function(e){var i={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(i.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(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 s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function u(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(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?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=o(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[o(t)]},l.prototype.get=function(t){return t=o(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(o(t))},l.prototype.set=function(t,e){this.map[o(t)]=s(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=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 l(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}})),e}function y(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 l(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;r(new y(n,i))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=m,Object.defineProperty(e,"B",{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"}(Qo||(Qo={})),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"}(ts||(ts={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(es||(es={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(is||(is={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(ns||(ns={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(rs||(rs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(os||(os={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ss||(ss={})),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"}(as||(as={})),as.PERSONAL_BOOK_SHARE_USER,as.PERSONAL_BOOK_USER,as.HTML_EXPORT_USER,as.PERSONAL_BOOK_USER,as.PDF_EXPORT_USER,as.PERSONAL_BOOK_USER,as.KHUB_ADMIN,as.CONTENT_PUBLISHER,as.ADMIN,as.KHUB_ADMIN,as.USERS_ADMIN,as.PORTAL_ADMIN,as.DEVELOPER,as.BETA_USER,as.DEBUG_USER;class ls{async listMySearches(){var t;return(null===(t=jr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Rr.await()).listMySearches(jr.getState().session.profile.userId):[]}}const cs=Ni.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const hs=new class{clear(){this.clearMySearches()}clearMySearches(){cs.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new ls,e=await t.listMySearches();cs.actions.setSavedSearches(e)}};var us=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class fs extends(Eo(Dr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=as.SAVED_SEARCH_USER,this.addStore(jr),this.addStore(cs),this.addI18nContext(No,Uo)}render(){var t;return this.editorMode&&!this.userHasRights?tt`
|
|
1020
|
+
*/var Qo,ts,es,is,ns,rs,os,ss,as;!function(t){!function(e){var i={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(i.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(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 s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=u(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(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?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=u(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=o(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[o(t)]},l.prototype.get=function(t){return t=o(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(o(t))},l.prototype.set=function(t,e){this.map[o(t)]=s(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=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 l(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}})),e}function y(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 l(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;r(new y(n,i))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=m,Object.defineProperty(e,"B",{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"}(Qo||(Qo={})),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"}(ts||(ts={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(es||(es={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(is||(is={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(ns||(ns={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(rs||(rs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(os||(os={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ss||(ss={})),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"}(as||(as={})),as.PERSONAL_BOOK_SHARE_USER,as.PERSONAL_BOOK_USER,as.HTML_EXPORT_USER,as.PERSONAL_BOOK_USER,as.PDF_EXPORT_USER,as.PERSONAL_BOOK_USER,as.KHUB_ADMIN,as.CONTENT_PUBLISHER,as.ADMIN,as.KHUB_ADMIN,as.USERS_ADMIN,as.PORTAL_ADMIN,as.DEVELOPER,as.BETA_USER,as.DEBUG_USER;class ls{async listMySearches(){var t;return(null===(t=jr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Rr.await()).listMySearches(jr.getState().session.profile.userId):[]}}const cs=Ai.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const us=new class{clear(){this.clearMySearches()}clearMySearches(){cs.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new ls,e=await t.listMySearches();cs.actions.setSavedSearches(e)}};var hs=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class fs extends(Eo(Dr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=as.SAVED_SEARCH_USER,this.addStore(jr),this.addStore(cs),this.addI18nContext(No,Uo)}render(){var t;return this.editorMode&&!this.userHasRights?tt`
|
|
1021
1021
|
<ft-typography>${No.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?tt`
|
|
1022
1022
|
<ft-typography>${No.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?tt`
|
|
1023
1023
|
<div id="container">
|
|
@@ -1038,4 +1038,4 @@ const{I:Ho}=bt,Zo=()=>document.createComment(""),qo=(t,e,i)=>{var n;const r=t._$
|
|
|
1038
1038
|
display: none !important;
|
|
1039
1039
|
}
|
|
1040
1040
|
</style>
|
|
1041
|
-
`}get userHasRights(){var t;return!!(null===(t=this.user)||void 0===t?void 0:t.roles.includes(this.requiredRole))}get isEmpty(){var t;return 0==(null!==(t=this.savedSearches)&&void 0!==t?t:[]).length}isSelected(t){var e;const i=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=i&&f(i.query,t.query)&&f([...i.filters],[...t.filters].map(this.mapSearchFilter))&&f([...i.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&f(i.contentLocale,t.contentLocale)&&f(i.periodFilter,t.periodFilter)}mapFtSearchSortCriterion(t){return{...t}}toFtSearchRequest(t){return null==this.stateManager?void 0:{...this.stateManager.store.getState().request,periodFilter:t.periodFilter,query:t.query,filters:t.filters.map(this.mapSearchFilter),sort:t.sort,contentLocale:t.contentLocale}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),
|
|
1041
|
+
`}get userHasRights(){var t;return!!(null===(t=this.user)||void 0===t?void 0:t.roles.includes(this.requiredRole))}get isEmpty(){var t;return 0==(null!==(t=this.savedSearches)&&void 0!==t?t:[]).length}isSelected(t){var e;const i=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=i&&f(i.query,t.query)&&f([...i.filters],[...t.filters].map(this.mapSearchFilter))&&f([...i.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&f(i.contentLocale,t.contentLocale)&&f(i.periodFilter,t.periodFilter)}mapFtSearchSortCriterion(t){return{...t}}toFtSearchRequest(t){return null==this.stateManager?void 0:{...this.stateManager.store.getState().request,periodFilter:t.periodFilter,query:t.query,filters:t.filters.map(this.mapSearchFilter),sort:t.sort,contentLocale:t.contentLocale}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),us.reloadMySearches()}setSearch(t){var e;const i=this.toFtSearchRequest(t);null!=i&&(null===(e=this.stateManager)||void 0===e||e.setRequest(i))}update(t){super.update(t),(t.has("user")||t.has("savedSearches"))&&null==this.savedSearches&&us.reloadMySearches()}}fs.styles=kr,fs.elementDefinitions={"ft-search-saved-search":Wo,"ft-typography":br},hs([s({type:Boolean})],fs.prototype,"showDescription",void 0),hs([s({type:Boolean})],fs.prototype,"showSearchFilters",void 0),hs([s({type:Boolean})],fs.prototype,"showSearchButton",void 0),hs([s({type:Boolean})],fs.prototype,"showAlertStatus",void 0),hs([Ni({store:cs.name})],fs.prototype,"savedSearches",void 0),hs([Ni({store:jr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],fs.prototype,"user",void 0),hs([Ni({store:"search"})],fs.prototype,"request",void 0),hs([Ni({store:jr.name})],fs.prototype,"editorMode",void 0),d("ft-search-saved-searches")(fs),t.FtSearchSavedSearches=fs,t.FtSearchSavedSearchesCssVariables=Er,t.styles=kr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-saved-searches",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "Displays the saved searches",
|
|
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-context": "1.0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-search-context": "1.0.48",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.48",
|
|
24
24
|
"lit": "2.7.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluid-topics/public-api": "1.0.39"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a07dca06ede4358afbfe00c06b1ea1da90e3ff51"
|
|
30
30
|
}
|