@fluid-topics/ft-reader-context 1.1.26 → 1.1.27
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.
- package/build/ft-reader-context.min.js +14 -14
- package/package.json +4 -4
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);u(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=e.call(r,t);f||(f=h(t),o.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!l(o)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,i=r._getDefinition(o);return i?p(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},p=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let b=[document];const g=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){b.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Eo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o extends Error{constructor(t,o,e){super(t),this.canceledPromiseResult=o,this.canceledPromiseError=e}}class e extends Promise{constructor(t){super(((e,r)=>t((t=>{this.isCanceled?r(new o("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?r(new o("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,o){this.loaders[t]=o,this.finalContent.delete(t)}registerFinal(t,o){this.loaders[t]=o,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 e&&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,o){this.forceClear(t),this.register(t,(async()=>o)),this.content[t]=o}setFinal(t,o){this.forceClear(t),this.registerFinal(t,(async()=>o)),this.content[t]=o}async get(t,o,r){if(void 0===this.content[t]){if(null==(o=null!=o?o:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new e(((o,e)=>t.then(o).catch(e))))(o());return this.content[t]=i,i.then((o=>(this.content[t]=o,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),o)))}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 i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);u(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=e.call(r,t);f||(f=h(t),o.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!l(o)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,i=r._getDefinition(o);return i?p(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},p=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let b=[document];const g=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){b.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(xo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o extends Error{constructor(t,o,e){super(t),this.canceledPromiseResult=o,this.canceledPromiseError=e}}class e extends Promise{constructor(t){super(((e,r)=>t((t=>{this.isCanceled?r(new o("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?r(new o("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,o){this.loaders[t]=o,this.finalContent.delete(t)}registerFinal(t,o){this.loaders[t]=o,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 e&&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,o){this.forceClear(t),this.register(t,(async()=>o)),this.content[t]=o}setFinal(t,o){this.forceClear(t),this.registerFinal(t,(async()=>o)),this.content[t]=o}async get(t,o,r){if(void 0===this.content[t]){if(null==(o=null!=o?o:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new e(((o,e)=>t.then(o).catch(e))))(o());return this.content[t]=i,i.then((o=>(this.content[t]=o,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),o)))}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 i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -22,18 +22,18 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.cust
|
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:h,defineProperty:u,getOwnPropertyDescriptor:d,getOwnPropertyNames:p,getOwnPropertySymbols:y,getPrototypeOf:b}=Object,g=globalThis,m=g.trustedTypes,v=m?m.emptyScript:"",O=g.reactiveElementPolyfillSupport,w=(t,o)=>t,N={toAttribute(t,o){switch(o){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},S=(t,o)=>!h(t,o),
|
|
25
|
+
*/,{is:h,defineProperty:u,getOwnPropertyDescriptor:d,getOwnPropertyNames:p,getOwnPropertySymbols:y,getPrototypeOf:b}=Object,g=globalThis,m=g.trustedTypes,v=m?m.emptyScript:"",O=g.reactiveElementPolyfillSupport,w=(t,o)=>t,N={toAttribute(t,o){switch(o){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},S=(t,o)=>!h(t,o),x={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=x){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&u(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=d(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const n=r?.call(this);i.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,o=[...p(t),...y(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(f(t))}else void 0!==t&&o.push(f(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(a)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=n.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:N).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:N;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??S)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[w("elementProperties")]=new Map,E[w("finalized")]=new Map,O?.({ReactiveElement:E}),(g.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const C={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:S},R=(t=C,o,e)=>{const{kind:r,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function U(t){return(o,e)=>"object"==typeof e?R(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)}const I=t=>new Promise((o=>setTimeout(o,t)));async function L(t,o=5,e){return await async function(t,o=5,e){let r,i,n=await t();for(r=i=performance.now();!n&&(!e||i-r<e);)await I(o),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded")}((async()=>null!=await t()),o,e),await t()}function A(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!A(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!A(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var n=i[r];if(!A(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const W=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};function k(t,o){const e=()=>JSON.parse(JSON.stringify(t));return U({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!A(t,o),...null!=o?o:{}})}
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/const
|
|
36
|
+
*/const K=globalThis,T=K.trustedTypes,P=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+j,D=`<${Z}>`,F=document,B=()=>F.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,z="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,q=/>/g,V=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,J=/"/g,X=/^(?:script|style|textarea|title)$/i,Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),ot=new WeakMap,et=F.createTreeWalker(F,129);function rt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(o):o}let it=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let n=0,a=0;const s=o.length-1,c=this.parts,[l,f]=((t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=H;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,f=0;for(;f<e.length&&(a.lastIndex=f,c=a.exec(e),null!==c);)f=a.lastIndex,a===H?"!--"===c[1]?a=G:void 0!==c[1]?a=q:void 0!==c[2]?(X.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=V):void 0!==c[3]&&(a=V):a===V?">"===c[0]?(a=i??H,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?V:'"'===c[3]?J:Y):a===J||a===Y?a=V:a===G||a===q?a=H:(a=V,i=void 0);const h=a===V&&t[o+1].startsWith("/>")?" ":"";n+=a===H?e+D:l>=0?(r.push(s),e.slice(0,l)+M+e.slice(l)+j+h):e+j+(-2===l?o:h)}return[rt(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(l,r),et.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=et.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(M)){const o=f[a++],e=i.getAttribute(t).split(j),r=/([.?@])?(.*)/.exec(o);c.push({type:1,index:n,name:r[2],strings:e,ctor:"."===r[1]?ct:"?"===r[1]?lt:"@"===r[1]?ft:st}),i.removeAttribute(t)}else t.startsWith(j)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(X.test(i.tagName)){const t=i.textContent.split(j),o=t.length-1;if(o>0){i.textContent=T?T.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],B()),et.nextNode(),c.push({type:2,index:++n});i.append(t[o],B())}}}else if(8===i.nodeType)if(i.data===Z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(j,t+1));)c.push({type:7,index:n}),t+=j.length-1}n++}}static createElement(t,o){const e=F.createElement("template");return e.innerHTML=t,e}};function nt(t,o,e=t,r){if(o===Q)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=_(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=nt(t,i._$AS(t,o.values),i,r)),o}let at=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=nt(this,t,o),_(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>$(t)||"function"==typeof t?.[Symbol.iterator])(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!==tt&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(F.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=it.createElement(rt(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??F).importNode(o,!0);et.currentNode=r;let i=et.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new at(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new ht(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=et.nextNode(),n++)}return et.currentNode=F,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=ot.get(t.strings);return void 0===o&&ot.set(t.strings,o=new it(t)),o}T(o){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of o)i===e.length?e.push(r=new t(this.k(B()),this.k(B()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},st=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=tt}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=nt(this,t,o,0),n=!_(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=nt(this,r[e+a],o,a),s===Q&&(s=this._$AH[a]),n||=!_(s)||s!==this._$AH[a],s===tt?t=tt:t!==tt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends st{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===tt?void 0:t}},lt=class extends st{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},ft=class extends st{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=nt(this,t,o,0)??tt)===Q)return;const e=this._$AH,r=t===tt&&e!==tt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==tt&&(e===tt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const ut=K.litHtmlPolyfillSupport;ut?.(it,at),(K.litHtmlVersions??=[]).push("3.1.0");
|
|
37
37
|
/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2019 Google LLC
|
|
@@ -44,27 +44,27 @@ const dt=globalThis,pt=dt.ShadowRoot&&(void 0===dt.ShadyCSS||dt.ShadyCSS.nativeS
|
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/,{is:wt,defineProperty:Nt,getOwnPropertyDescriptor:St,getOwnPropertyNames:
|
|
47
|
+
*/,{is:wt,defineProperty:Nt,getOwnPropertyDescriptor:St,getOwnPropertyNames:xt,getOwnPropertySymbols:Et,getPrototypeOf:Ct}=Object,Rt=globalThis,Ut=Rt.trustedTypes,It=Ut?Ut.emptyScript:"",Lt=Rt.reactiveElementPolyfillSupport,At=(t,o)=>t,Wt={toAttribute(t,o){switch(o){case Boolean:t=t?It:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},kt=(t,o)=>!wt(t,o),Kt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:kt};Symbol.metadata??=Symbol("metadata"),Rt.litPropertyMetadata??=new WeakMap;let Tt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Kt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Nt(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=St(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const n=r?.call(this);i.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Kt}static _$Ei(){if(this.hasOwnProperty(At("elementProperties")))return;const t=Ct(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(At("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(At("properties"))){const t=this.properties,o=[...xt(t),...Et(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(Ot(t))}else void 0!==t&&o.push(Ot(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(pt)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=dt.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:Wt).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Wt;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??kt)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Tt.elementStyles=[],Tt.shadowRootOptions={mode:"open"},Tt[At("elementProperties")]=new Map,Tt[At("finalized")]=new Map,Lt?.({ReactiveElement:Tt}),(Rt.reactiveElementVersions??=[]).push("2.0.2");
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const Pt=globalThis,Mt=Pt.trustedTypes,jt=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
53
|
+
const Pt=globalThis,Mt=Pt.trustedTypes,jt=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Dt=`lit$${(Math.random()+"").slice(9)}$`,Ft="?"+Dt,Bt=`<${Ft}>`,_t=document,$t=()=>_t.createComment(""),zt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ht=Array.isArray,Gt="[ \t\n\f\r]",qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Yt=/>/g,Jt=RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Qt=/"/g,to=/^(?:script|style|textarea|title)$/i,oo=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),eo=Symbol.for("lit-noChange"),ro=Symbol.for("lit-nothing"),io=new WeakMap,no=_t.createTreeWalker(_t,129);function ao(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==jt?jt.createHTML(o):o}class so{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=((t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=qt;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,f=0;for(;f<e.length&&(a.lastIndex=f,c=a.exec(e),null!==c);)f=a.lastIndex,a===qt?"!--"===c[1]?a=Vt:void 0!==c[1]?a=Yt:void 0!==c[2]?(to.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=Jt):void 0!==c[3]&&(a=Jt):a===Jt?">"===c[0]?(a=i??qt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?Jt:'"'===c[3]?Qt:Xt):a===Qt||a===Xt?a=Jt:a===Vt||a===Yt?a=qt:(a=Jt,i=void 0);const h=a===Jt&&t[o+1].startsWith("/>")?" ":"";n+=a===qt?e+Bt:l>=0?(r.push(s),e.slice(0,l)+Zt+e.slice(l)+Dt+h):e+Dt+(-2===l?o:h)}return[ao(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(t,o);if(this.el=so.createElement(c,e),no.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=no.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Zt)){const o=l[n++],e=r.getAttribute(t).split(Dt),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:a[2],strings:e,ctor:"."===a[1]?ho:"?"===a[1]?uo:"@"===a[1]?po:fo}),r.removeAttribute(t)}else t.startsWith(Dt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(to.test(r.tagName)){const t=r.textContent.split(Dt),o=t.length-1;if(o>0){r.textContent=Mt?Mt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],$t()),no.nextNode(),s.push({type:2,index:++i});r.append(t[o],$t())}}}else if(8===r.nodeType)if(r.data===Ft)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Dt,t+1));)s.push({type:7,index:i}),t+=Dt.length-1}i++}}static createElement(t,o){const e=_t.createElement("template");return e.innerHTML=t,e}}function co(t,o,e=t,r){if(o===eo)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=zt(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=co(t,i._$AS(t,o.values),i,r)),o}let lo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=ro,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=co(this,t,o),zt(t)?t===ro||null==t||""===t?(this._$AH!==ro&&this._$AR(),this._$AH=ro):t!==this._$AH&&t!==eo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Ht(t)||"function"==typeof t?.[Symbol.iterator])(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!==ro&&zt(this._$AH)?this._$AA.nextSibling.data=t:this.$(_t.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=so.createElement(ao(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??_t).importNode(o,!0);no.currentNode=r;let i=no.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new lo(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new yo(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=no.nextNode(),n++)}return no.currentNode=_t,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=io.get(t.strings);return void 0===o&&io.set(t.strings,o=new so(t)),o}T(o){Ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of o)i===e.length?e.push(r=new t(this.k($t()),this.k($t()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},fo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=ro,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ro}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=co(this,t,o,0),n=!zt(t)||t!==this._$AH&&t!==eo,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=co(this,r[e+a],o,a),s===eo&&(s=this._$AH[a]),n||=!zt(s)||s!==this._$AH[a],s===ro?t=ro:t!==ro&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===ro?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ho=class extends fo{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ro?void 0:t}},uo=class extends fo{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ro)}},po=class extends fo{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=co(this,t,o,0)??ro)===eo)return;const e=this._$AH,r=t===ro&&e!==ro||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==ro&&(e===ro||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yo=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){co(this,t)}};const bo=Pt.litHtmlPolyfillSupport;bo?.(so,lo),(Pt.litHtmlVersions??=[]).push("3.1.0");
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
let go=class extends Kt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{const r=e?.renderBefore??o;let i=r._$litPart$;if(void 0===i){const t=e?.renderBefore??null;r._$litPart$=i=new lo(o.insertBefore($t(),t),t,void 0,e??{})}return i._$AI(t),i})(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return eo}};go._$litElement$=!0,go.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:go});const mo=globalThis.litElementPolyfillSupport;mo?.({LitElement:go}),(globalThis.litElementVersions??=[]).push("4.0.2");const vo=t=>"string"==typeof t?mt(t):t;class Oo{static create(t,o,e,r){const i=t=>vo(null!=t?t:r),n=vt`var(${vo(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>vt`var(${vo(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),n=vt`var(${vo(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>vt`var(${vo(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):vo(null!=o?o:t.lastResortDefaultValue()),r=vt`var(${vo(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>vt`var(${vo(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const wo={colorWhite:Oo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Oo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Oo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Oo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Oo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Oo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Oo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Oo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Oo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Oo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Oo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Oo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Oo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Oo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Oo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Oo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Oo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Oo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Oo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Oo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Oo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Oo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Oo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Oo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Oo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Oo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Oo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Oo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Oo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Oo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Oo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Oo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Oo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Oo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Oo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Oo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Oo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Oo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Oo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Oo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Oo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Oo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Oo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Oo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Oo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Oo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Oo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Oo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Oo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Oo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Oo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Oo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Oo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Oo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Oo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Oo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Oo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Oo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Oo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Oo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Oo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Oo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Oo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Oo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Oo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Oo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Oo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Oo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Oo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Oo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Oo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Oo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Oo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Oo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Oo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Oo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Oo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Oo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Oo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Oo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Oo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Oo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Oo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Oo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Oo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Oo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Oo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Oo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Oo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Oo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Oo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Oo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Oo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Oo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Oo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Oo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Oo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Oo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Oo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Oo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Oo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Oo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Oo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Oo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Oo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Oo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Oo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Oo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Oo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Oo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Oo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Oo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Oo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Oo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Oo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Oo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Oo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Oo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Oo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Oo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Oo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Oo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Oo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Oo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Oo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Oo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Oo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Oo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Oo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Oo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Oo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Oo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Oo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Oo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Oo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Oo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Oo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Oo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Oo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Oo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Oo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Oo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Oo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Oo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Oo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Oo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Oo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Oo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Oo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Oo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Oo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Oo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Oo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Oo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Oo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Oo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Oo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Oo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Oo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Oo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Oo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Oo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Oo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Oo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Oo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Oo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Oo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Oo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Oo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Oo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Oo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Oo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Oo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Oo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Oo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Oo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Oo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Oo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Oo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Oo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Oo.create("--ft-opacity-0","","NUMBER","0"),opacity8:Oo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Oo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Oo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Oo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Oo.create("--ft-opacity-80","","NUMBER","0.8")};Oo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-display-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),Oo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-display-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),Oo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-1-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),Oo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-2-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),Oo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),Oo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-3-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),Oo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),Oo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none");const No={backgroundActionPrimary:Oo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",wo.colorBrand0),backgroundErrorPrimary:Oo.extend("--ft-background-error-primary","Used as background of error components.",wo.colorRed0),backgroundErrorSubtle:Oo.extend("--ft-background-error-subtle","Used as background of subtle error components.",wo.colorRed10),backgroundInfoPrimary:Oo.extend("--ft-background-info-primary","Used as background of information components.",wo.colorCyan200),backgroundInfoSubtle:Oo.extend("--ft-background-info-subtle","Used as background of subtle information components.",wo.colorCyan10),backgroundWarningPrimary:Oo.extend("--ft-background-warning-primary","Used as background of warning components.",wo.colorOrange300),backgroundWarningSubtle:Oo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",wo.colorOrange10),backgroundSuccessPrimary:Oo.extend("--ft-background-success-primary","Used as background of success components.",wo.colorGreen200),backgroundSuccessSubtle:Oo.extend("--ft-background-success-subtle","Used as background of subtle success components.",wo.colorGreen10),backgroundGlobalSurface:Oo.extend("--ft-background-global-surface","Used as app background.",wo.colorWhite),backgroundGlobalOnSurface:Oo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",wo.colorGray10),backgroundGlobalOnSurfaceDark:Oo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",wo.colorGray30),contentActionPrimary:Oo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",wo.colorBrand0),contentWarningPrimary:Oo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",wo.colorOrange300),contentWarningIconOnly:Oo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",wo.colorOrange0),contentErrorPrimary:Oo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",wo.colorRed0),contentErrorIconOnly:Oo.extend("--ft-content-error-icon-only","Used on error status icons alone",wo.colorRed0),contentInfoPrimary:Oo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",wo.colorCyan200),contentInfoIconOnly:Oo.extend("--ft-content-info-icon-only","Used on info status icons alone",wo.colorCyan0),contentSuccessIconOnly:Oo.extend("--ft-content-success-icon-only","Used on success status icons alone",wo.colorGreen0),contentSuccessPrimary:Oo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",wo.colorGreen200),contentGlobalPrimary:Oo.extend("--ft-content-global-primary","Used for main content on the page.",wo.colorGray500),contentGlobalSecondary:Oo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",wo.colorGray200),contentGlobalSubtle:Oo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",wo.colorGray0),contentGlobalOnColor:Oo.extend("--ft-content-global-on-color","Used for content on a dominant color.",wo.colorWhite),borderActionPrimary:Oo.extend("--ft-border-action-primary","Used as border for primary action components.",wo.colorBrand0),borderActionFocusRing:Oo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",wo.colorCyan0),borderWarningPrimary:Oo.extend("--ft-border-warning-primary","Used as border for warning components.",wo.colorOrange30),borderSuccessPrimary:Oo.extend("--ft-border-success-primary","Used as border for success components.",wo.colorGreen30),borderErrorPrimary:Oo.extend("--ft-border-error-primary","Used as border for error components.",wo.colorRed30),borderInfoPrimary:Oo.extend("--ft-border-info-primary","Used as border for information components.",wo.colorCyan30),borderGlobalSubtle:Oo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",wo.colorGray30),borderGlobalPrimary:Oo.extend("--ft-border-global-primary","Used as border for element like input.",wo.colorGray50),borderInputPrimary:Oo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",wo.colorGray80)};Oo.create("--ft-button-large-height","","SIZE","40px"),Oo.extend("--ft-button-large-horizontal-padding","",wo.spacing4),Oo.extend("--ft-button-large-gap","",wo.spacing2),Oo.extend("--ft-button-large-border-radius","",wo.borderRadiusS),Oo.extend("--ft-button-large-icon-size","",wo.iconSize3),Oo.create("--ft-button-large-border-width","","SIZE","1px"),Oo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),Oo.create("--ft-button-large-icon-only-width","","SIZE","40px"),Oo.create("--ft-button-small-height","","SIZE","30px"),Oo.extend("--ft-button-small-horizontal-padding","",wo.spacing3),Oo.extend("--ft-button-small-gap","",wo.spacing2),Oo.extend("--ft-button-small-border-radius","",wo.borderRadiusS),Oo.extend("--ft-button-small-icon-size","",wo.iconSize2),Oo.create("--ft-button-small-border-width","","SIZE","1px"),Oo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),Oo.create("--ft-button-small-icon-only-width","","SIZE","30px"),Oo.extend("--ft-button-primary-background-color","",No.backgroundActionPrimary),Oo.extend("--ft-button-primary-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-icon-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-state-layer-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-button-primary-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-button-primary-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-button-primary-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-button-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-tertiary-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-icon-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-tertiary-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-tertiary-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-tertiary-component-opacity-disabled","",wo.opacity40),Oo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-secondary-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-icon-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-secondary-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-secondary-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-secondary-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-button-secondary-border-color","",No.borderActionPrimary),Oo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-neutral-icon-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-state-layer-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-neutral-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-neutral-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-neutral-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-tabs-top-left-border-radius","",wo.borderRadiusS),Oo.extend("--ft-tabs-top-right-border-radius","",wo.borderRadiusS),Oo.extend("--ft-tabs-label-horizontal-padding","",wo.spacing4),Oo.extend("--ft-tabs-label-vertical-padding","",wo.spacing3),Oo.extend("--ft-tabs-label-gap","",wo.spacing1),Oo.extend("--ft-switch-group-horizontal-padding","",wo.spacing1),Oo.extend("--ft-switch-group-vertical-padding","",wo.spacing1),Oo.extend("--ft-switch-group-gap","",wo.spacing1),Oo.extend("--ft-switch-group-background-color","",No.backgroundGlobalSurface),Oo.extend("--ft-switch-group-border-color","",No.borderGlobalSubtle),Oo.create("--ft-switch-group-border-radius","","SIZE","6px"),Oo.extend("--ft-switch-label-horizontal-padding","",wo.spacing2),Oo.extend("--ft-switch-label-vertical-padding","",wo.spacing1),Oo.extend("--ft-switch-icon-horizontal-padding","",wo.spacing1),Oo.extend("--ft-switch-icon-vertical-padding","",wo.spacing1),Oo.create("--ft-switch-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-switch-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-switch-option-border-radius","",wo.borderRadiusS),Oo.extend("--ft-switch-off-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-switch-off-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-switch-off-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-switch-off-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-switch-off-color","",No.contentGlobalSubtle),Oo.extend("--ft-switch-off-state-layer-color","",No.contentGlobalSubtle),Oo.extend("--ft-chart-1-light","for area color charts",wo.colorBrand40),Oo.extend("--ft-chart-1-base","for line charts",wo.colorBrand0),Oo.extend("--ft-chart-2-light","for area color charts",wo.colorYellow60),Oo.extend("--ft-chart-2-base","for line charts",wo.colorYellow100),Oo.extend("--ft-chart-3-light","",wo.colorUltramarine40),Oo.extend("--ft-chart-3-base","",wo.colorUltramarine70),Oo.extend("--ft-chart-4-light","",wo.colorCyan50),Oo.extend("--ft-chart-4-base","",wo.colorCyan100),Oo.extend("--ft-chart-5-light","",wo.colorRed40),Oo.extend("--ft-chart-5-base","",wo.colorRed60),Oo.extend("--ft-chart-6-light","",wo.colorGreen40),Oo.extend("--ft-chart-6-base","",wo.colorGreen70),Oo.extend("--ft-chart-7-light","",wo.colorOrange70),Oo.extend("--ft-chart-7-base","",wo.colorOrange100),Oo.extend("--ft-chart-8-light","",wo.colorAvocado70),Oo.extend("--ft-chart-8-base","",wo.colorAvocado200),Oo.extend("--ft-chart-9-light","",wo.colorBrown50),Oo.extend("--ft-chart-9-base","",wo.colorBrown200),Oo.extend("--ft-chart-10-light","",wo.colorGray50),Oo.extend("--ft-chart-10-base","",wo.colorGray80),Oo.extend("--ft-chart-monochrome-10","",wo.colorBrand10),Oo.extend("--ft-chart-monochrome-20","",wo.colorBrand20),Oo.extend("--ft-chart-monochrome-30","",wo.colorBrand40),Oo.extend("--ft-chart-monochrome-40","",wo.colorBrand60),Oo.extend("--ft-chart-monochrome-50","",wo.colorBrand0),Oo.extend("--ft-chart-monochrome-60","",wo.colorBrand200),Oo.extend("--ft-chip-large-horizontal-padding","",wo.spacing4),Oo.extend("--ft-chip-large-vertical-padding","",wo.spacing2),Oo.extend("--ft-chip-large-gap","",wo.spacing1),Oo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-large-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-large-border-width","","SIZE","1px"),Oo.extend("--ft-chip-large-icon-size","",wo.iconSize3),Oo.extend("--ft-chip-medium-horizontal-padding","",wo.spacing3),Oo.extend("--ft-chip-medium-vertical-padding","",wo.spacing1),Oo.extend("--ft-chip-medium-gap","",wo.spacing1),Oo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-medium-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-medium-border-width","","SIZE","1px"),Oo.extend("--ft-chip-medium-icon-size","",wo.iconSize2),Oo.extend("--ft-chip-small-horizontal-padding","",wo.spacing2),Oo.extend("--ft-chip-small-vertical-padding","",wo.spacing05),Oo.extend("--ft-chip-small-gap","",wo.spacing1),Oo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-small-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-small-border-width","","SIZE","1px"),Oo.extend("--ft-chip-small-icon-size","",wo.iconSize1),Oo.extend("--ft-chip-neutral-background-color","",No.backgroundGlobalOnSurface),Oo.extend("--ft-chip-neutral-color","",No.contentGlobalPrimary),Oo.extend("--ft-chip-neutral-border-color","",No.borderGlobalSubtle),Oo.extend("--ft-chip-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-chip-info-color","",No.contentInfoPrimary),Oo.extend("--ft-chip-info-border-color","",No.borderInfoPrimary),Oo.extend("--ft-chip-success-background-color","",No.backgroundSuccessSubtle),Oo.extend("--ft-chip-success-color","",No.contentSuccessPrimary),Oo.extend("--ft-chip-success-border-color","",No.borderSuccessPrimary),Oo.extend("--ft-chip-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-chip-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-chip-warning-border-color","",No.borderWarningPrimary),Oo.extend("--ft-chip-error-background-color","",No.backgroundErrorSubtle),Oo.extend("--ft-chip-error-color","",No.contentErrorPrimary),Oo.extend("--ft-chip-error-border-color","",No.borderErrorPrimary),Oo.create("--ft-notice-border-width","","SIZE","1px"),Oo.extend("--ft-notice-horizontal-padding","",wo.spacing2),Oo.extend("--ft-notice-vertical-padding","",wo.spacing1),Oo.extend("--ft-notice-border-radius","",wo.borderRadiusS),Oo.extend("--ft-notice-gap","",wo.spacing2),Oo.extend("--ft-notice-icon-size","",wo.iconSize3),Oo.extend("--ft-notice-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-notice-info-border-color","",No.borderInfoPrimary),Oo.extend("--ft-notice-info-color","",No.contentInfoPrimary),Oo.extend("--ft-notice-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-notice-warning-border-color","",No.borderWarningPrimary),Oo.extend("--ft-notice-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-checkbox-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-checkbox-checked-background-color","",No.contentActionPrimary),Oo.extend("--ft-checkbox-checked-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-checkbox-checked-color","",No.contentGlobalOnColor),Oo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-checkbox-checked-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-checkbox-checked-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-checkbox-unchecked-border-color","",wo.colorGray80),Oo.extend("--ft-checkbox-unchecked-state-layer-color","",wo.colorGray80),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-checkbox-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Oo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-checkbox-gap","",wo.spacing3),Oo.extend("--ft-toggle-off-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-toggle-off-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-toggle-off-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-toggle-off-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-toggle-off-background-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-off-icon-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-off-state-layer-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-on-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-toggle-on-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-toggle-on-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-toggle-on-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-toggle-on-background-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-on-icon-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-on-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-toggle-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-toggle-gap","",wo.spacing3),Oo.extend("--ft-radio-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-radio-selected-color","",No.contentActionPrimary),Oo.extend("--ft-radio-selected-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-radio-selected-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-radio-selected-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-radio-selected-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-radio-selected-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-radio-unselected-state-layer-color","",wo.colorGray80),Oo.extend("--ft-radio-unselected-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-radio-unselected-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-radio-unselected-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-radio-unselected-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-radio-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Oo.create("--ft-radio-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-radio-gap","",wo.spacing3),Oo.extend("--ft-notification-icon-size","",wo.iconSize4),Oo.extend("--ft-notification-horizontal-padding","",wo.spacing4),Oo.extend("--ft-notification-vertical-padding","",wo.spacing4),Oo.extend("--ft-notification-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-notification-info-color","",No.contentInfoPrimary),Oo.extend("--ft-notification-info-border-color","",No.borderInfoPrimary),Oo.extend("--ft-notification-success-background-color","",No.backgroundSuccessSubtle),Oo.extend("--ft-notification-success-color","",No.contentSuccessPrimary),Oo.extend("--ft-notification-success-border-color","",No.borderSuccessPrimary),Oo.extend("--ft-notification-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-notification-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-notification-warning-border-color","",No.borderWarningPrimary),Oo.extend("--ft-notification-error-background-color","",No.backgroundErrorSubtle),Oo.extend("--ft-notification-error-color","",No.contentErrorPrimary),Oo.extend("--ft-notification-error-border-color","",No.borderErrorPrimary),Oo.extend("--ft-notification-border-radius","",wo.borderRadiusPill),Oo.create("--ft-notification-border-width","","SIZE","1px"),Oo.extend("--ft-notification-gap-leading","",wo.spacing2),Oo.extend("--ft-notification-gap-trailing","",wo.spacing8),Oo.create("--ft-color-primary","","COLOR","#2196F3"),Oo.create("--ft-color-primary-variant","","COLOR","#1976D2"),Oo.create("--ft-color-secondary","","COLOR","#FFCC80"),Oo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),Oo.create("--ft-color-surface","","COLOR","#FFFFFF"),Oo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-error","","COLOR","#B00020"),Oo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),Oo.create("--ft-color-opacity-high","","NUMBER","1"),Oo.create("--ft-color-opacity-medium","","NUMBER","0.74"),Oo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),Oo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),Oo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),Oo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),Oo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),Oo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),Oo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),Oo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),Oo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),Oo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),Oo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),Oo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),Oo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),Oo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),Oo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),Oo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.create("--ft-border-radius-S","","SIZE","4px"),Oo.create("--ft-border-radius-M","","SIZE","8px"),Oo.create("--ft-border-radius-L","","SIZE","12px"),Oo.create("--ft-border-radius-XL","","SIZE","16px"),Oo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),Oo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),Oo.create("--ft-transition-duration","","UNKNOWN","250ms"),Oo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out");
|
|
59
|
+
let go=class extends Tt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{const r=e?.renderBefore??o;let i=r._$litPart$;if(void 0===i){const t=e?.renderBefore??null;r._$litPart$=i=new lo(o.insertBefore($t(),t),t,void 0,e??{})}return i._$AI(t),i})(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return eo}};go._$litElement$=!0,go.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:go});const mo=globalThis.litElementPolyfillSupport;mo?.({LitElement:go}),(globalThis.litElementVersions??=[]).push("4.0.2");const vo=t=>"string"==typeof t?mt(t):t;class Oo{static create(t,o,e,r){const i=t=>vo(null!=t?t:r),n=vt`var(${vo(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>vt`var(${vo(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),n=vt`var(${vo(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>vt`var(${vo(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):vo(null!=o?o:t.lastResortDefaultValue()),r=vt`var(${vo(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>vt`var(${vo(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const wo={colorWhite:Oo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Oo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Oo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Oo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Oo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Oo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Oo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Oo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Oo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Oo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Oo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Oo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Oo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Oo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Oo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Oo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Oo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Oo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Oo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Oo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Oo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Oo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Oo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Oo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Oo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Oo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Oo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Oo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Oo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Oo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Oo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Oo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Oo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Oo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Oo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Oo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Oo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Oo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Oo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Oo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Oo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Oo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Oo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Oo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Oo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Oo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Oo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Oo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Oo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Oo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Oo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Oo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Oo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Oo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Oo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Oo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Oo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Oo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Oo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Oo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Oo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Oo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Oo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Oo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Oo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Oo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Oo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Oo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Oo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Oo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Oo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Oo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Oo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Oo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Oo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Oo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Oo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Oo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Oo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Oo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Oo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Oo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Oo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Oo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Oo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Oo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Oo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Oo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Oo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Oo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Oo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Oo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Oo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Oo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Oo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Oo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Oo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Oo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Oo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Oo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Oo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Oo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Oo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Oo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Oo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Oo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Oo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Oo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Oo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Oo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Oo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Oo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Oo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Oo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Oo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Oo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Oo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Oo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Oo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Oo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Oo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Oo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Oo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Oo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Oo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Oo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Oo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Oo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Oo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Oo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Oo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Oo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Oo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Oo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Oo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Oo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Oo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Oo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Oo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Oo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Oo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Oo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Oo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Oo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Oo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Oo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Oo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Oo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Oo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Oo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Oo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Oo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Oo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Oo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Oo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Oo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Oo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Oo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Oo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Oo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Oo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Oo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Oo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Oo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Oo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Oo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Oo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Oo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Oo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Oo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Oo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Oo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Oo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Oo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Oo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Oo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Oo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Oo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Oo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Oo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Oo.create("--ft-opacity-0","","NUMBER","0"),opacity8:Oo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Oo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Oo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Oo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Oo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Oo.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:Oo.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:Oo.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:Oo.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:Oo.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:Oo.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:Oo.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:Oo.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:Oo.create("--ft-shadow-elevation-24","","SHADOW","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)")};Oo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-display-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),Oo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-display-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),Oo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-1-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),Oo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),Oo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-2-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),Oo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),Oo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),Oo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-title-3-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),Oo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),Oo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),Oo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),Oo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),Oo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),Oo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),Oo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),Oo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),Oo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),Oo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),Oo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),Oo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),Oo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),Oo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),Oo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),Oo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),Oo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),Oo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),Oo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),Oo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),Oo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),Oo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none");const No={backgroundActionPrimary:Oo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",wo.colorBrand0),backgroundErrorPrimary:Oo.extend("--ft-background-error-primary","Used as background of error components.",wo.colorRed0),backgroundErrorSubtle:Oo.extend("--ft-background-error-subtle","Used as background of subtle error components.",wo.colorRed10),backgroundInfoPrimary:Oo.extend("--ft-background-info-primary","Used as background of information components.",wo.colorCyan200),backgroundInfoSubtle:Oo.extend("--ft-background-info-subtle","Used as background of subtle information components.",wo.colorCyan10),backgroundWarningPrimary:Oo.extend("--ft-background-warning-primary","Used as background of warning components.",wo.colorOrange300),backgroundWarningSubtle:Oo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",wo.colorOrange10),backgroundSuccessPrimary:Oo.extend("--ft-background-success-primary","Used as background of success components.",wo.colorGreen200),backgroundSuccessSubtle:Oo.extend("--ft-background-success-subtle","Used as background of subtle success components.",wo.colorGreen10),backgroundGlobalSurface:Oo.extend("--ft-background-global-surface","Used as app background.",wo.colorWhite),backgroundGlobalOnSurface:Oo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",wo.colorGray10),backgroundGlobalOnSurfaceDark:Oo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",wo.colorGray30),contentActionPrimary:Oo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",wo.colorBrand0),contentWarningPrimary:Oo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",wo.colorOrange300),contentWarningIconOnly:Oo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",wo.colorOrange0),contentErrorPrimary:Oo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",wo.colorRed0),contentErrorIconOnly:Oo.extend("--ft-content-error-icon-only","Used on error status icons alone",wo.colorRed0),contentInfoPrimary:Oo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",wo.colorCyan200),contentInfoIconOnly:Oo.extend("--ft-content-info-icon-only","Used on info status icons alone",wo.colorCyan0),contentSuccessPrimary:Oo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",wo.colorGreen200),contentSuccessIconOnly:Oo.extend("--ft-content-success-icon-only","Used on success status icons alone",wo.colorGreen0),contentGlobalPrimary:Oo.extend("--ft-content-global-primary","Used for main content on the page.",wo.colorGray500),contentGlobalSecondary:Oo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",wo.colorGray200),contentGlobalSubtle:Oo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",wo.colorGray0),contentGlobalOnColor:Oo.extend("--ft-content-global-on-color","Used for content on a dominant color.",wo.colorWhite),borderActionPrimary:Oo.extend("--ft-border-action-primary","Used as border for primary action components.",wo.colorBrand0),borderActionFocusRing:Oo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",wo.colorCyan0),borderWarningPrimary:Oo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",wo.colorOrange300),borderWarningSubtle:Oo.extend("--ft-border-warning-subtle","Used as border for warning components.",wo.colorOrange30),borderSuccessPrimary:Oo.extend("--ft-border-success-primary","Used as border for success buttons.",wo.colorGreen200),borderSuccessSubtle:Oo.extend("--ft-border-success-subtle","Used as border for success components.",wo.colorGreen30),borderErrorPrimary:Oo.extend("--ft-border-error-primary","Used as border for text fields in error states.",wo.colorRed0),borderErrorSubtle:Oo.extend("--ft-border-error-subtle","Used as border for error components.",wo.colorRed30),borderInfoPrimary:Oo.extend("--ft-border-info-primary","Used as border for buttons in info color.",wo.colorCyan200),borderInfoSubtle:Oo.extend("--ft-border-info-subtle","Used as border for information components.",wo.colorCyan30),borderGlobalPrimary:Oo.extend("--ft-border-global-primary","Used as border for element like input.",wo.colorGray50),borderGlobalSubtle:Oo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",wo.colorGray30),borderInputPrimary:Oo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",wo.colorGray80)};Oo.create("--ft-button-large-height","","SIZE","40px"),Oo.extend("--ft-button-large-horizontal-padding","",wo.spacing4),Oo.extend("--ft-button-large-gap","",wo.spacing2),Oo.extend("--ft-button-large-border-radius","",wo.borderRadiusS),Oo.extend("--ft-button-large-icon-size","",wo.iconSize3),Oo.create("--ft-button-large-border-width","","SIZE","1px"),Oo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),Oo.create("--ft-button-large-icon-only-width","","SIZE","40px"),Oo.create("--ft-button-small-height","","SIZE","30px"),Oo.extend("--ft-button-small-horizontal-padding","",wo.spacing3),Oo.extend("--ft-button-small-gap","",wo.spacing2),Oo.extend("--ft-button-small-border-radius","",wo.borderRadiusS),Oo.extend("--ft-button-small-icon-size","",wo.iconSize2),Oo.create("--ft-button-small-border-width","","SIZE","1px"),Oo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),Oo.create("--ft-button-small-icon-only-width","","SIZE","30px"),Oo.extend("--ft-button-primary-background-color","",No.backgroundActionPrimary),Oo.extend("--ft-button-primary-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-icon-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-state-layer-color","",No.contentGlobalOnColor),Oo.extend("--ft-button-primary-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-button-primary-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-button-primary-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-button-primary-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-button-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-tertiary-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-icon-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-button-tertiary-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-tertiary-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-tertiary-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-tertiary-component-opacity-disabled","",wo.opacity40),Oo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-secondary-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-icon-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-button-secondary-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-secondary-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-secondary-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-secondary-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-button-secondary-border-color","",No.borderActionPrimary),Oo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),Oo.extend("--ft-button-neutral-icon-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-state-layer-color","",No.contentGlobalSecondary),Oo.extend("--ft-button-neutral-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-button-neutral-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-button-neutral-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-button-neutral-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-floating-menu-horizontal-padding","",wo.spacing4),Oo.extend("--ft-floating-menu-vertical-padding","",wo.spacing4),Oo.extend("--ft-floating-menu-off-icon-color","",No.contentGlobalPrimary),Oo.extend("--ft-floating-menu-off-color","",No.contentGlobalPrimary),Oo.extend("--ft-floating-menu-on-color","",No.contentActionPrimary),Oo.extend("--ft-floating-menu-on-icon-color","",No.contentActionPrimary),Oo.extend("--ft-floating-menu-on-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-floating-menu-gap","",wo.spacing3),Oo.extend("--ft-floating-menu-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Oo.extend("--ft-floating-menu-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-floating-menu-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-floating-menu-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-floating-menu-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-floating-menu-icon-size","",wo.iconSize3),Oo.extend("--ft-floating-menu-background-color","",No.backgroundGlobalOnSurface),Oo.extend("--ft-tabs-top-left-border-radius","",wo.borderRadiusS),Oo.extend("--ft-tabs-top-right-border-radius","",wo.borderRadiusS),Oo.extend("--ft-tabs-label-horizontal-padding","",wo.spacing4),Oo.extend("--ft-tabs-label-vertical-padding","",wo.spacing3),Oo.extend("--ft-tabs-label-gap","",wo.spacing1),Oo.extend("--ft-tabs-icon-horizontal-padding","",wo.spacing1),Oo.extend("--ft-tabs-icon-vertical-padding","",wo.spacing4),Oo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-tabs-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-tabs-off-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-tabs-off-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-tabs-off-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-tabs-off-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-tabs-off-color","",No.contentGlobalSubtle),Oo.extend("--ft-tabs-off-state-layer-color","",No.contentGlobalSubtle),Oo.extend("--ft-tabs-on-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-tabs-on-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-tabs-on-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-tabs-on-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-tabs-on-color","",No.contentActionPrimary),Oo.extend("--ft-tabs-on-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-collapsible-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-collapsible-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-collapsible-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-collapsible-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-collapsible-horizontal-padding","",wo.spacing4),Oo.extend("--ft-collapsible-vertical-padding","",wo.spacing3),Oo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Oo.extend("--ft-collapsible-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-collapsible-color","",No.contentGlobalPrimary),Oo.extend("--ft-collapsible-state-layer-color","",No.contentGlobalPrimary),Oo.extend("--ft-collapsible-background-color","",No.backgroundGlobalOnSurface),Oo.extend("--ft-collapsible-border-color","",No.borderGlobalSubtle),Oo.extend("--ft-collapsible-icon-size","",wo.iconSize3),Oo.extend("--ft-switch-group-horizontal-padding","",wo.spacing1),Oo.extend("--ft-switch-group-vertical-padding","",wo.spacing1),Oo.extend("--ft-switch-group-gap","",wo.spacing1),Oo.extend("--ft-switch-group-background-color","",No.backgroundGlobalSurface),Oo.extend("--ft-switch-group-border-color","",No.borderGlobalSubtle),Oo.create("--ft-switch-group-border-radius","","SIZE","6px"),Oo.extend("--ft-switch-label-horizontal-padding","",wo.spacing2),Oo.extend("--ft-switch-label-vertical-padding","",wo.spacing1),Oo.extend("--ft-switch-icon-horizontal-padding","",wo.spacing1),Oo.extend("--ft-switch-icon-vertical-padding","",wo.spacing1),Oo.create("--ft-switch-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-switch-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-switch-option-border-radius","",wo.borderRadiusS),Oo.extend("--ft-switch-off-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-switch-off-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-switch-off-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-switch-off-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-switch-off-color","",No.contentGlobalSubtle),Oo.extend("--ft-switch-off-state-layer-color","",No.contentGlobalSubtle),Oo.extend("--ft-switch-on-state-layer-opacity-hover","",wo.opacity8),Oo.extend("--ft-switch-on-state-layer-opacity-focus","",wo.opacity8),Oo.extend("--ft-switch-on-state-layer-opacity-active","",wo.opacity16),Oo.extend("--ft-switch-on-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-switch-on-color","",No.contentActionPrimary),Oo.extend("--ft-switch-on-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-chart-1-light","for area color charts",wo.colorBrand40),Oo.extend("--ft-chart-1-base","for line charts",wo.colorBrand0),Oo.extend("--ft-chart-2-light","for area color charts",wo.colorYellow60),Oo.extend("--ft-chart-2-base","for line charts",wo.colorYellow100),Oo.extend("--ft-chart-3-light","",wo.colorUltramarine40),Oo.extend("--ft-chart-3-base","",wo.colorUltramarine70),Oo.extend("--ft-chart-4-light","",wo.colorCyan50),Oo.extend("--ft-chart-4-base","",wo.colorCyan100),Oo.extend("--ft-chart-5-light","",wo.colorRed40),Oo.extend("--ft-chart-5-base","",wo.colorRed60),Oo.extend("--ft-chart-6-light","",wo.colorGreen40),Oo.extend("--ft-chart-6-base","",wo.colorGreen70),Oo.extend("--ft-chart-7-light","",wo.colorOrange70),Oo.extend("--ft-chart-7-base","",wo.colorOrange100),Oo.extend("--ft-chart-8-light","",wo.colorAvocado70),Oo.extend("--ft-chart-8-base","",wo.colorAvocado200),Oo.extend("--ft-chart-9-light","",wo.colorBrown50),Oo.extend("--ft-chart-9-base","",wo.colorBrown200),Oo.extend("--ft-chart-10-light","",wo.colorGray50),Oo.extend("--ft-chart-10-base","",wo.colorGray80),Oo.extend("--ft-chart-monochrome-10","",wo.colorBrand10),Oo.extend("--ft-chart-monochrome-20","",wo.colorBrand20),Oo.extend("--ft-chart-monochrome-30","",wo.colorBrand40),Oo.extend("--ft-chart-monochrome-40","",wo.colorBrand60),Oo.extend("--ft-chart-monochrome-50","",wo.colorBrand0),Oo.extend("--ft-chart-monochrome-60","",wo.colorBrand200),Oo.extend("--ft-chip-large-horizontal-padding","",wo.spacing4),Oo.extend("--ft-chip-large-vertical-padding","",wo.spacing2),Oo.extend("--ft-chip-large-gap","",wo.spacing1),Oo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-large-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-large-border-width","","SIZE","1px"),Oo.extend("--ft-chip-large-icon-size","",wo.iconSize3),Oo.extend("--ft-chip-medium-horizontal-padding","",wo.spacing3),Oo.extend("--ft-chip-medium-vertical-padding","",wo.spacing1),Oo.extend("--ft-chip-medium-gap","",wo.spacing1),Oo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-medium-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-medium-border-width","","SIZE","1px"),Oo.extend("--ft-chip-medium-icon-size","",wo.iconSize2),Oo.extend("--ft-chip-small-horizontal-padding","",wo.spacing2),Oo.extend("--ft-chip-small-vertical-padding","",wo.spacing05),Oo.extend("--ft-chip-small-gap","",wo.spacing1),Oo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Oo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-chip-small-border-radius","",wo.borderRadiusPill),Oo.create("--ft-chip-small-border-width","","SIZE","1px"),Oo.extend("--ft-chip-small-icon-size","",wo.iconSize1),Oo.extend("--ft-chip-neutral-background-color","",No.backgroundGlobalOnSurface),Oo.extend("--ft-chip-neutral-color","",No.contentGlobalPrimary),Oo.extend("--ft-chip-neutral-border-color","",No.borderGlobalSubtle),Oo.extend("--ft-chip-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-chip-info-color","",No.contentInfoPrimary),Oo.extend("--ft-chip-info-border-color","",No.borderInfoSubtle),Oo.extend("--ft-chip-success-background-color","",No.backgroundSuccessSubtle),Oo.extend("--ft-chip-success-color","",No.contentSuccessPrimary),Oo.extend("--ft-chip-success-border-color","",No.borderSuccessSubtle),Oo.extend("--ft-chip-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-chip-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-chip-warning-border-color","",No.borderWarningSubtle),Oo.extend("--ft-chip-error-background-color","",No.backgroundErrorSubtle),Oo.extend("--ft-chip-error-color","",No.contentErrorPrimary),Oo.extend("--ft-chip-error-border-color","",No.borderErrorSubtle),Oo.create("--ft-notice-border-width","","SIZE","1px"),Oo.extend("--ft-notice-horizontal-padding","",wo.spacing2),Oo.extend("--ft-notice-vertical-padding","",wo.spacing1),Oo.extend("--ft-notice-border-radius","",wo.borderRadiusS),Oo.extend("--ft-notice-gap","",wo.spacing2),Oo.extend("--ft-notice-icon-size","",wo.iconSize3),Oo.extend("--ft-notice-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-notice-info-border-color","",No.borderInfoSubtle),Oo.extend("--ft-notice-info-color","",No.contentInfoPrimary),Oo.extend("--ft-notice-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-notice-warning-border-color","",No.borderWarningSubtle),Oo.extend("--ft-notice-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-checkbox-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-checkbox-checked-background-color","",No.contentActionPrimary),Oo.extend("--ft-checkbox-checked-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-checkbox-checked-color","",No.contentGlobalOnColor),Oo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-checkbox-checked-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-checkbox-checked-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-checkbox-unchecked-border-color","",wo.colorGray80),Oo.extend("--ft-checkbox-unchecked-state-layer-color","",wo.colorGray80),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-checkbox-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Oo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-checkbox-gap","",wo.spacing3),Oo.extend("--ft-toggle-off-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-toggle-off-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-toggle-off-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-toggle-off-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-toggle-off-background-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-off-icon-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-off-state-layer-color","",No.contentGlobalSubtle),Oo.extend("--ft-toggle-on-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-toggle-on-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-toggle-on-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-toggle-on-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-toggle-on-background-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-on-icon-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-on-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-toggle-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-toggle-focus-focus-ring-color","",No.borderActionFocusRing),Oo.extend("--ft-toggle-gap","",wo.spacing3),Oo.extend("--ft-radio-label-color","",No.contentGlobalPrimary),Oo.extend("--ft-radio-selected-color","",No.contentActionPrimary),Oo.extend("--ft-radio-selected-state-layer-color","",No.contentActionPrimary),Oo.extend("--ft-radio-selected-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-radio-selected-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-radio-selected-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-radio-selected-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-radio-unselected-state-layer-color","",wo.colorGray80),Oo.extend("--ft-radio-unselected-state-layer-opacity-hover","",wo.opacity16),Oo.extend("--ft-radio-unselected-state-layer-opacity-focus","",wo.opacity16),Oo.extend("--ft-radio-unselected-state-layer-opacity-active","",wo.opacity24),Oo.extend("--ft-radio-unselected-component-opacity-disabled","",wo.opacity40),Oo.extend("--ft-radio-focus-focus-ring-color","",No.borderActionFocusRing),Oo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Oo.create("--ft-radio-focus-outline-width","","SIZE","2px"),Oo.extend("--ft-radio-gap","",wo.spacing3),Oo.extend("--ft-notification-icon-size","",wo.iconSize4),Oo.extend("--ft-notification-horizontal-padding","",wo.spacing4),Oo.extend("--ft-notification-vertical-padding","",wo.spacing4),Oo.extend("--ft-notification-info-background-color","",No.backgroundInfoSubtle),Oo.extend("--ft-notification-info-color","",No.contentInfoPrimary),Oo.extend("--ft-notification-info-border-color","",No.borderInfoSubtle),Oo.extend("--ft-notification-success-background-color","",No.backgroundSuccessSubtle),Oo.extend("--ft-notification-success-color","",No.contentSuccessPrimary),Oo.extend("--ft-notification-success-border-color","",No.borderSuccessSubtle),Oo.extend("--ft-notification-warning-background-color","",No.backgroundWarningSubtle),Oo.extend("--ft-notification-warning-color","",No.contentWarningPrimary),Oo.extend("--ft-notification-warning-border-color","",No.borderWarningSubtle),Oo.extend("--ft-notification-error-background-color","",No.backgroundErrorSubtle),Oo.extend("--ft-notification-error-color","",No.contentErrorPrimary),Oo.extend("--ft-notification-error-border-color","",No.borderErrorSubtle),Oo.extend("--ft-notification-border-radius","",wo.borderRadiusPill),Oo.create("--ft-notification-border-width","","SIZE","1px"),Oo.extend("--ft-notification-gap-leading","",wo.spacing2),Oo.extend("--ft-notification-gap-trailing","",wo.spacing8),Oo.extend("--ft-tooltip-horizontal-padding","",wo.spacing2),Oo.extend("--ft-tooltip-vertical-padding","",wo.spacing2),Oo.extend("--ft-tooltip-border-radius","",wo.borderRadiusS),Oo.extend("--ft-tooltip-label","",No.contentGlobalOnColor),Oo.extend("--ft-tooltip-background","",No.contentGlobalPrimary),Oo.extend("--ft-tooltip-background-opacity","",wo.opacity80),Oo.extend("--ft-tooltip-shadow","",wo.shadowElevation03),Oo.create("--ft-color-primary","","COLOR","#2196F3"),Oo.create("--ft-color-primary-variant","","COLOR","#1976D2"),Oo.create("--ft-color-secondary","","COLOR","#FFCC80"),Oo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),Oo.create("--ft-color-surface","","COLOR","#FFFFFF"),Oo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-error","","COLOR","#B00020"),Oo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),Oo.create("--ft-color-opacity-high","","NUMBER","1"),Oo.create("--ft-color-opacity-medium","","NUMBER","0.74"),Oo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),Oo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),Oo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),Oo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),Oo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),Oo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),Oo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),Oo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),Oo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),Oo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),Oo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),Oo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),Oo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),Oo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),Oo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),Oo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),Oo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),Oo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),Oo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),Oo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),Oo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),Oo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.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)"),Oo.create("--ft-border-radius-S","","SIZE","4px"),Oo.create("--ft-border-radius-M","","SIZE","8px"),Oo.create("--ft-border-radius-L","","SIZE","12px"),Oo.create("--ft-border-radius-XL","","SIZE","16px"),Oo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),Oo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),Oo.create("--ft-transition-duration","","UNKNOWN","250ms"),Oo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2019 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
const So=window,
|
|
65
|
+
const So=window,xo=So.ShadowRoot&&(void 0===So.ShadyCSS||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Eo extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{xo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=So.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Co,Ro=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Uo=Symbol("constructorPrototype"),Io=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ao extends Eo{constructor(){super(),this[Co]=new i(5),this[Io]=this.constructor.name,this[Uo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Io]&&Object.setPrototypeOf(this,this[Uo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Lo].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 o,e,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Co=Lo,Ro([U()],Ao.prototype,"exportpartsPrefix",void 0),Ro([k([])],Ao.prototype,"exportpartsPrefixes",void 0),Ro([U()],Ao.prototype,"customStylesheet",void 0);const Wo=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");vt`
|
|
66
66
|
.highlight-html-match {
|
|
67
|
-
background: ${
|
|
67
|
+
background: ${Wo};
|
|
68
68
|
}
|
|
69
69
|
`,vt`
|
|
70
70
|
.ft-no-text-select {
|
|
@@ -98,15 +98,15 @@ const So=window,Eo=So.ShadowRoot&&(void 0===So.ShadyCSS||So.ShadyCSS.nativeShado
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class Wo{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let i=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>i=i.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),i}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}const To=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!A(t,o),attribute:!1,...o};x(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};class Ko{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter((o=>o.type!==t.type))),this.queue.push(t)}consume(t){const o=this.queue.find((o=>o.type===t));return o&&(this.queue=this.queue.filter((t=>t!==o))),o}}function Po(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Mo,jo,Fo;const Zo=Symbol("internalReduxEventsUnsubscribers"),Do=Symbol("internalStoresUnsubscribers"),Bo=Symbol("internalStores");class _o extends Ao{constructor(){super(...arguments),this[Mo]=new Map,this[jo]=new Map,this[Fo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Bo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Po(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Bo].delete(o)}setupStore(t,o){this[Bo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Do].has(t.store):this[Do].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Do].set(t,o.subscribe((()=>this.updateFromStores()))),Po(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Zo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Do].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Zo].forEach((t=>t())),this[Zo]=[]}unsubscribeFromStore(t){this[Do].has(t)&&this[Do].get(t)(),this[Do].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function $o(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zo(t){return!!t&&!!t[Ae]}function Go(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===ke}(t)||Array.isArray(t)||!!t[Le]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Le])||Xo(t)||Qo(t))}function Ho(t,o,e){void 0===e&&(e=!1),0===qo(t)?(e?Object.keys:We)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function qo(t){var o=t[Ae];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:Xo(t)?2:Qo(t)?3:0}function Vo(t,o){return 2===qo(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function Yo(t,o,e){var r=qo(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function Jo(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function Xo(t){return Re&&t instanceof Map}function Qo(t){return Ue&&t instanceof Set}function te(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Te(t);delete o[Ae];for(var e=We(o),r=0;r<e.length;r++){var i=e[r],n=o[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(o[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),o)}function ee(t,o){return void 0===o&&(o=!1),ie(t)||zo(t)||!Go(t)||(qo(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),o&&Ho(t,(function(t,o){return ee(o,!0)}),!0)),t}function re(){$o(2)}function ie(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ne(t){var o=Ke[t];return o||$o(18,t),o}function ae(){return Ee}function se(t,o){o&&(ne("Patches"),t.u=[],t.s=[],t.v=o)}function ce(t){le(t),t.p.forEach(he),t.p=null}function le(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function he(t){var o=t[Ae];0===o.i||1===o.i?o.j():o.g=!0}function ue(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||ne("ES5").S(o,t,r),r?(e[Ae].P&&(ce(o),$o(4)),Go(t)&&(t=de(o,t),o.l||ye(o,t)),o.u&&ne("Patches").M(e[Ae].t,t,o.u,o.s)):t=de(o,e,[]),ce(o),o.u&&o.v(o.u,o.s),t!==Ie?t:void 0}function de(t,o,e){if(ie(o))return o;var r=o[Ae];if(!r)return Ho(o,(function(i,n){return pe(t,r,o,i,n,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return ye(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=oe(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),Ho(n,(function(o,n){return pe(t,r,i,o,n,e,a)})),ye(t,i,!1),e&&t.u&&ne("Patches").N(r,e,t.u,t.s)}return r.o}function pe(t,o,e,r,i,n,a){if(zo(i)){var s=de(t,i,n&&o&&3!==o.i&&!Vo(o.R,r)?n.concat(r):void 0);if(Yo(e,r,s),!zo(s))return;t.m=!1}else a&&e.add(i);if(Go(i)&&!ie(i)){if(!t.h.D&&t._<1)return;de(t,i),o&&o.A.l||ye(t,i)}}function ye(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&ee(o,e)}function be(t,o){var e=t[Ae];return(e?te(e):t)[o]}function ge(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function ve(t){t.o||(t.o=oe(t.t))}function Oe(t,o,e){var r=Xo(o)?ne("MapSet").F(o,e):Qo(o)?ne("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:ae(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},i=r,n=Pe;e&&(i=[r],n=Me);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(o,e):ne("ES5").J(o,e);return(e?e.A:ae()).p.push(r),r}function we(t){return zo(t)||$o(22,t),function t(o){if(!Go(o))return o;var e,r=o[Ae],i=qo(o);if(r){if(!r.P&&(r.i<4||!ne("ES5").K(r)))return r.t;r.I=!0,e=Ne(o,i),r.I=!1}else e=Ne(o,i);return Ho(e,(function(o,i){r&&function(t,o){return 2===qo(t)?t.get(o):t[o]}(r.t,o)===i||Yo(e,o,t(i))})),3===i?new Set(e):e}(t)}function Ne(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Mo=Do,jo=Bo,Fo=Zo,_o.reduxProperties=new Map,_o.reduxReactiveProperties=new Set,_o.reduxEventListeners=new Map;var Se,Ee,Ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Re="undefined"!=typeof Map,Ue="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ie=Ce?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),Le=Ce?Symbol.for("immer-draftable"):"__$immer_draftable",Ae=Ce?Symbol.for("immer-state"):"__$immer_state",ke=""+Object.prototype.constructor,We="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 o={};return We(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Ke={},Pe={get:function(t,o){if(o===Ae)return t;var e=te(t);if(!Vo(e,o))return function(t,o,e){var r,i=ge(o,e);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!Go(r)?r:r===be(t.t,o)?(ve(t),t.o[o]=Oe(t.A.h,r,t)):r},has:function(t,o){return o in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,o,e){var r=ge(te(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var i=be(te(t),o),n=null==i?void 0:i[Ae];if(n&&n.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(Jo(e,i)&&(void 0!==e||Vo(t.t,o)))return!0;ve(t),me(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==be(t.t,o)||o in t.t?(t.R[o]=!1,ve(t),me(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=te(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){$o(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$o(12)}},Me={};Ho(Pe,(function(t,o){Me[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),Me.deleteProperty=function(t,o){return Me.set.call(this,t,o,void 0)},Me.set=function(t,o,e){return Pe.set.call(this,t[0],o,e,t[0])};var je=function(){function t(t){var o=this;this.O=xe,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var i=e;e=t;var n=o;return function(t){var o=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&$o(6),void 0!==r&&"function"!=typeof r&&$o(7),Go(t)){var s=fe(o),c=Oe(o,t,void 0),l=!0;try{a=e(c),l=!1}finally{l?ce(s):le(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return se(s,r),ue(t,s)}),(function(t){throw ce(s),t})):(se(s,r),ue(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ie&&(a=void 0),o.D&&ee(a,!0),r){var f=[],h=[];ne("Patches").M(t,a,f,h),r(f,h)}return a}$o(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(i))}))};var r,i,n=o.produce(t,e,(function(t,o){r=t,i=o}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var o=t.prototype;return o.createDraft=function(t){Go(t)||$o(8),zo(t)&&(t=we(t));var o=fe(this),e=Oe(this,t,void 0);return e[Ae].C=!0,le(o),e},o.finishDraft=function(t,o){var e=(t&&t[Ae]).A;return se(e,o),ue(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!xe&&$o(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var i=ne("Patches").$;return zo(t)?i(t,o):this.produce(t,(function(t){return i(t,o)}))},t}(),Fe=new je,Ze=Fe.produce;function De(t){return De="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},De(t)}function Be(t){var o=function(t,o){if("object"!==De(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===De(o)?o:String(o)}function _e(t,o,e){return(o=Be(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function $e(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function ze(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?$e(Object(e),!0).forEach((function(o){_e(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$e(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function Ge(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 He="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 Ye(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(Ge(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(Ge(1));return e(Ye)(t,o)}if("function"!=typeof t)throw new Error(Ge(2));var i=t,n=o,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Ge(3));return n}function h(t){if("function"!=typeof t)throw new Error(Ge(4));if(c)throw new Error(Ge(5));var o=!0;return l(),s.push(t),function(){if(o){if(c)throw new Error(Ge(6));o=!1,l();var e=s.indexOf(t);s.splice(e,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(Ge(7));if(void 0===t.type)throw new Error(Ge(8));if(c)throw new Error(Ge(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var o=a=s,e=0;e<o.length;e++){(0,o[e])()}return t}return u({type:Ve.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ge(10));i=t,u({type:Ve.REPLACE})}})[He]=function(){var t,o=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ge(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[He]=function(){return this},t},r}function Je(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var i=o[r];"function"==typeof t[i]&&(e[i]=t[i])}var n,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:Ve.INIT}))throw new Error(Ge(12));if(void 0===e(void 0,{type:Ve.PROBE_UNKNOWN_ACTION()}))throw new Error(Ge(13))}))}(e)}catch(t){n=t}return function(t,o){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=e[c],f=t[c],h=l(f,o);if(void 0===h)throw o&&o.type,new Error(Ge(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function Xe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(Ge(15))},i={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=o.map((function(t){return t(i)}));return r=Xe.apply(void 0,n)(e.dispatch),ze(ze({},e),{},{dispatch:r})}}}function tr(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(i){return"function"==typeof i?i(e,r,t):o(i)}}}}var or=tr();or.withExtraArgument=tr;var er,rr=or,ir=(er=function(t,o){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},er(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}er(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),nr=function(t,o){var e,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=o.call(t,a)}catch(t){n=[6,t],r=0}finally{e=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},ar=function(t,o){for(var e=0,r=o.length,i=t.length;e<r;e++,i++)t[i]=o[e];return t},sr=Object.defineProperty,cr=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,dr=function(t,o,e){return o in t?sr(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},pr=function(t,o){for(var e in o||(o={}))hr.call(o,e)&&dr(t,e,o[e]);if(fr)for(var r=0,i=fr(o);r<i.length;r++){e=i[r];ur.call(o,e)&&dr(t,e,o[e])}return t},yr=function(t,o){return cr(t,lr(o))},br="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xe:Xe.apply(null,arguments)};var gr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return ir(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array),mr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return ir(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array);function vr(t){return Go(t)?Ze(t,(function(){})):t}function Or(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new gr;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(rr.withExtraArgument(e.extraArgument)):r.push(rr));return r}(t)}}function wr(t){var o,e=Or(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?e():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,d=void 0===u?void 0:u;if("function"==typeof n)o=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=Je(n)}var p=s;"function"==typeof p&&(p=p(e));var y=Qe.apply(void 0,p),b=Xe;l&&(b=br(pr({trace:!1},"object"==typeof l&&l)));var g=new mr(y),m=g;return Array.isArray(d)?m=ar([y],d):"function"==typeof d&&(m=d(g)),Ye(o,h,b.apply(void 0,m))}function Nr(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var i=o.apply(void 0,e);if(!i)throw new Error("prepareAction did not return an object");return pr(pr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function Sr(t){var o,e={},r=[],i={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,i},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),i},addDefaultCase:function(t){return o=t,i}};return t(i),[e,r,o]}function Er(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:vr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var o="function"==typeof t.extraReducers?Sr(t.extraReducers):[t.extraReducers],e=o[0],i=void 0===e?{}:e,n=o[1],a=void 0===n?[]:n,c=o[2],l=void 0===c?void 0:c,f=pr(pr({},i),s);return function(t,o,e,r){void 0===e&&(e=[]);var i,n="function"==typeof o?Sr(o):[o,e,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return vr(t())};else{var l=vr(t);i=function(){return l}}function f(t,o){void 0===t&&(t=i());var e=ar([a[o.type]],s.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[c]),e.reduce((function(t,e){if(e){var r;if(zo(t))return void 0===(r=e(t,o))?t:r;if(Go(t))return Ze(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var i=r[e];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var e,r,n=i[t],l=o+"/"+t;"reducer"in n?(e=n.reducer,r=n.prepare):e=n,a[t]=e,s[l]=e,c[t]=r?Nr(l,r):Nr(l)})),{name:o,reducer:function(t,o){return e||(e=l()),e(t,o)},actions:c,caseReducers:a,getInitialState:function(){return e||(e=l()),e.getInitialState()}}}var Cr=["name","message","stack","code"],Rr=function(t,o){this.payload=t,this.meta=o},Ur=function(t,o){this.payload=t,this.meta=o},xr=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Cr;e<r.length;e++){var i=r[e];"string"==typeof t[i]&&(o[i]=t[i])}return o}return{message:String(t)}};function Ir(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=Nr(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:yr(pr({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),i=Nr(t+"/pending",(function(t,o,e){return{payload:void 0,meta:yr(pr({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),n=Nr(t+"/rejected",(function(t,o,r,i,n){return{payload:i,error:(e&&e.serializeError||xr)(t||"Rejected"),meta:yr(pr({},n||{}),{arg:r,requestId:o,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),u=new a;function d(t){f=t,u.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,b,g,m;return nr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:c,extra:l}),null===(O=b)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,o){return u.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(p=null==e?void 0:e.getPendingMeta)?void 0:p.call(e,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([g,Promise.resolve(o(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:d,rejectWithValue:function(t,o){return new Rr(t,o)},fulfillWithValue:function(t,o){return new Ur(t,o)}})).then((function(o){if(o instanceof Rr)throw o;return o instanceof Ur?r(o.payload,h,t,o.meta):r(o,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Rr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,o){var e=function(t){try{i(y.next(t))}catch(t){o(t)}},r=function(t){try{i(y.throw(t))}catch(t){o(t)}},i=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};i((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(Ir)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Lr,Ar,kr="listenerMiddleware";Nr(kr+"/add"),Nr(kr+"/removeAll"),Nr(kr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=i[t];return e?e.enumerable=o:i[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[Ae];return Pe.get(o,t)},set:function(o){var e=this[Ae];Pe.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var i=t[o][Ae];if(!i.P)switch(i.i){case 5:r(i)&&me(i);break;case 4:e(i)&&me(i)}}}function e(t){for(var o=t.t,e=t.k,r=We(e),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Ae){var a=o[n];if(void 0===a&&!Vo(o,n))return!0;var s=e[n],c=s&&s[Ae];if(c?c.t!==a:!Jo(s,a))return!0}}var l=!!o[Ae];return r.length!==We(o).length+(l?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var i={};!function(t,o){Ke[t]||(Ke[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),i=function(o,e){if(o){for(var r=Array(e.length),i=0;i<e.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Te(e);delete n[Ae];for(var a=We(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,o||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(e),n)}(r,o),n={i:r?5:4,A:e?e.A:ae(),P:!1,I:!1,R:{},l:e,t:o,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Ae,{value:n,writable:!0}),i},S:function(t,e,i){i?zo(e)&&e[Ae].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[Ae];if(e){var i=e.t,n=e.k,a=e.R,s=e.i;if(4===s)Ho(n,(function(o){o!==Ae&&(void 0!==i[o]||Vo(i,o)?a[o]||t(n[o]):(a[o]=!0,me(e)))})),Ho(i,(function(t){void 0!==n[t]||Vo(n,t)||(a[t]=!1,me(e))}));else if(5===s){if(r(e)&&(me(e),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Wr{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[e];if(Po(i))return i;if(null==r)return;const n=Er({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=wr({reducer:(t,o)=>{var e;switch(o.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(e=o.overwrites)&&void 0!==e?e:{}};default:return n.reducer(t,o)}}});return window.ftReduxStores[r.name]=new Wr(n,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ko,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,i=t[r];return i?(...t)=>{const o=i(...t);return this.reduxStore.dispatch(o),o}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ar=null===(Lr=window.safari)||void 0===Lr?void 0:Lr.pushNotification)||void 0===Ar||Ar.toString());class Tr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,o,e){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,e)),null==t.tocId?this.extractPagesToc(t.children,o,e):[{tocId:t.tocId,title:t.title,depth:o,children:this.extractPagesToc(t.children,o+1,t.tocId)}])))}convertNodes(t,o,e){return t.flatMap((t=>{var r,i,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],o,t.tocId),...this.convertNodes(t.children,o,t.tocId)];let a=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:o,parentTocId:e,children:[]};this.register(s);const c=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],o+1,t.tocId),l=this.convertNodes(t.children,o+1,s.tocId);return s.children=[...c,...l],[s]}))}convertSectionNodes(t,o,e){return t.flatMap((t=>{var r;let i=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const n={...t,prettyUrl:i,depth:o,parentTocId:e,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,o+1,t.tocId),[n]}))}buildPage(t,o){var e,r,i,n,a,s;const c={number:this.pages.length+1,title:null!==(e=t.title)&&void 0!==e?e:"",rootTocId:null!==(r=t.tocId)&&void 0!==r?r:"root",toc:(null!==(i=t.pageToc)&&void 0!==i?i:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},l=(t,o)=>(o?c.topics:c.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return c.breadcrumb.forEach(((t,o)=>{l(t,f[o])})),t.tocId&&l(t.tocId,t.pageConfiguration.isVisible),c.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),c}registerPage(t){for(let o of[...t.topics,...t.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const o=[t.tocId];for(;null==t?void 0:t.parentTocId;)o.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return o}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Kr{convertPaginatedToc(t){return new Tr(t).build()}}var Pr,Mr,jr,Fr,Zr,Dr,Br,_r,$r,zr,Gr,Hr,qr,Vr,Yr,Jr,Xr,Qr;!function(t){!function(o){var e={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(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function h(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function u(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var o=new FileReader,e=f(o);return o.readAsText(t),e}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=a(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,i=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),p.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function g(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new g(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new g(r,e))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=g),o.Headers=c,o.Request=y,o.Response=g,o.fetch=v,Object.defineProperty(o,"U",{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"}(Pr||(Pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Mr||(Mr={})),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"}(jr||(jr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Fr||(Fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Zr||(Zr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Dr||(Dr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Br||(Br={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(_r||(_r={})),function(t){t.ASC="ASC",t.DESC="DESC"}($r||($r={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(zr||(zr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Gr||(Gr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Hr||(Hr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(qr||(qr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Vr||(Vr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Yr||(Yr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Jr||(Jr={})),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"}(Xr||(Xr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Qr||(Qr={}));const ti={[Xr.PERSONAL_BOOK_SHARE_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.HTML_EXPORT_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.PDF_EXPORT_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.KHUB_ADMIN]:[Xr.CONTENT_PUBLISHER],[Xr.ADMIN]:[Xr.KHUB_ADMIN,Xr.USERS_ADMIN,Xr.PORTAL_ADMIN],[Xr.DEVELOPER]:[Xr.BETA_USER,Xr.DEBUG_USER]};function oi(t,o){return t===o||(ti[t]??[]).some((t=>oi(t,o)))}function ei(t,o){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>oi(t,o)))}var ri;t.FtReaderFeatures=void 0,(ri=t.FtReaderFeatures||(t.FtReaderFeatures={})).FEEDBACK="FEEDBACK",ri.RATING="RATING",ri.PRINT="PRINT",ri.BOOKMARK="BOOKMARK",ri.COLLECTIONS="COLLECTIONS",ri.PERSONAL_BOOKS="PERSONAL_BOOKS";const ii=vt`
|
|
102
|
-
`,ni=
|
|
101
|
+
`;class ko{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let i=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>i=i.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),i}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}const Ko=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!A(t,o),attribute:!1,...o};U(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};class To{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter((o=>o.type!==t.type))),this.queue.push(t)}consume(t){const o=this.queue.find((o=>o.type===t));return o&&(this.queue=this.queue.filter((t=>t!==o))),o}}function Po(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Mo,jo,Zo;const Do=Symbol("internalReduxEventsUnsubscribers"),Fo=Symbol("internalStoresUnsubscribers"),Bo=Symbol("internalStores");class _o extends Ao{constructor(){super(...arguments),this[Mo]=new Map,this[jo]=new Map,this[Zo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Bo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Po(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Bo].delete(o)}setupStore(t,o){this[Bo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Fo].has(t.store):this[Fo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Fo].set(t,o.subscribe((()=>this.updateFromStores()))),Po(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Do].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Fo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Do].forEach((t=>t())),this[Do]=[]}unsubscribeFromStore(t){this[Fo].has(t)&&this[Fo].get(t)(),this[Fo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function $o(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zo(t){return!!t&&!!t[Ae]}function Ho(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===We}(t)||Array.isArray(t)||!!t[Le]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Le])||Xo(t)||Qo(t))}function Go(t,o,e){void 0===e&&(e=!1),0===qo(t)?(e?Object.keys:ke)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function qo(t){var o=t[Ae];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:Xo(t)?2:Qo(t)?3:0}function Vo(t,o){return 2===qo(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function Yo(t,o,e){var r=qo(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function Jo(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function Xo(t){return Ce&&t instanceof Map}function Qo(t){return Re&&t instanceof Set}function te(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Ke(t);delete o[Ae];for(var e=ke(o),r=0;r<e.length;r++){var i=e[r],n=o[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(o[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),o)}function ee(t,o){return void 0===o&&(o=!1),ie(t)||zo(t)||!Ho(t)||(qo(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),o&&Go(t,(function(t,o){return ee(o,!0)}),!0)),t}function re(){$o(2)}function ie(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ne(t){var o=Te[t];return o||$o(18,t),o}function ae(){return xe}function se(t,o){o&&(ne("Patches"),t.u=[],t.s=[],t.v=o)}function ce(t){le(t),t.p.forEach(he),t.p=null}function le(t){t===xe&&(xe=t.l)}function fe(t){return xe={p:[],l:xe,h:t,m:!0,_:0}}function he(t){var o=t[Ae];0===o.i||1===o.i?o.j():o.g=!0}function ue(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||ne("ES5").S(o,t,r),r?(e[Ae].P&&(ce(o),$o(4)),Ho(t)&&(t=de(o,t),o.l||ye(o,t)),o.u&&ne("Patches").M(e[Ae].t,t,o.u,o.s)):t=de(o,e,[]),ce(o),o.u&&o.v(o.u,o.s),t!==Ie?t:void 0}function de(t,o,e){if(ie(o))return o;var r=o[Ae];if(!r)return Go(o,(function(i,n){return pe(t,r,o,i,n,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return ye(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=oe(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),Go(n,(function(o,n){return pe(t,r,i,o,n,e,a)})),ye(t,i,!1),e&&t.u&&ne("Patches").N(r,e,t.u,t.s)}return r.o}function pe(t,o,e,r,i,n,a){if(zo(i)){var s=de(t,i,n&&o&&3!==o.i&&!Vo(o.R,r)?n.concat(r):void 0);if(Yo(e,r,s),!zo(s))return;t.m=!1}else a&&e.add(i);if(Ho(i)&&!ie(i)){if(!t.h.D&&t._<1)return;de(t,i),o&&o.A.l||ye(t,i)}}function ye(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&ee(o,e)}function be(t,o){var e=t[Ae];return(e?te(e):t)[o]}function ge(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function ve(t){t.o||(t.o=oe(t.t))}function Oe(t,o,e){var r=Xo(o)?ne("MapSet").F(o,e):Qo(o)?ne("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:ae(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},i=r,n=Pe;e&&(i=[r],n=Me);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(o,e):ne("ES5").J(o,e);return(e?e.A:ae()).p.push(r),r}function we(t){return zo(t)||$o(22,t),function t(o){if(!Ho(o))return o;var e,r=o[Ae],i=qo(o);if(r){if(!r.P&&(r.i<4||!ne("ES5").K(r)))return r.t;r.I=!0,e=Ne(o,i),r.I=!1}else e=Ne(o,i);return Go(e,(function(o,i){r&&function(t,o){return 2===qo(t)?t.get(o):t[o]}(r.t,o)===i||Yo(e,o,t(i))})),3===i?new Set(e):e}(t)}function Ne(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Mo=Fo,jo=Bo,Zo=Do,_o.reduxProperties=new Map,_o.reduxReactiveProperties=new Set,_o.reduxEventListeners=new Map;var Se,xe,Ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Re="undefined"!=typeof Set,Ue="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ie=Ee?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),Le=Ee?Symbol.for("immer-draftable"):"__$immer_draftable",Ae=Ee?Symbol.for("immer-state"):"__$immer_state",We=""+Object.prototype.constructor,ke="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ke=Object.getOwnPropertyDescriptors||function(t){var o={};return ke(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Te={},Pe={get:function(t,o){if(o===Ae)return t;var e=te(t);if(!Vo(e,o))return function(t,o,e){var r,i=ge(o,e);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!Ho(r)?r:r===be(t.t,o)?(ve(t),t.o[o]=Oe(t.A.h,r,t)):r},has:function(t,o){return o in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,o,e){var r=ge(te(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var i=be(te(t),o),n=null==i?void 0:i[Ae];if(n&&n.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(Jo(e,i)&&(void 0!==e||Vo(t.t,o)))return!0;ve(t),me(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==be(t.t,o)||o in t.t?(t.R[o]=!1,ve(t),me(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=te(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){$o(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$o(12)}},Me={};Go(Pe,(function(t,o){Me[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),Me.deleteProperty=function(t,o){return Me.set.call(this,t,o,void 0)},Me.set=function(t,o,e){return Pe.set.call(this,t[0],o,e,t[0])};var je=function(){function t(t){var o=this;this.O=Ue,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var i=e;e=t;var n=o;return function(t){var o=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&$o(6),void 0!==r&&"function"!=typeof r&&$o(7),Ho(t)){var s=fe(o),c=Oe(o,t,void 0),l=!0;try{a=e(c),l=!1}finally{l?ce(s):le(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return se(s,r),ue(t,s)}),(function(t){throw ce(s),t})):(se(s,r),ue(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ie&&(a=void 0),o.D&&ee(a,!0),r){var f=[],h=[];ne("Patches").M(t,a,f,h),r(f,h)}return a}$o(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(i))}))};var r,i,n=o.produce(t,e,(function(t,o){r=t,i=o}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var o=t.prototype;return o.createDraft=function(t){Ho(t)||$o(8),zo(t)&&(t=we(t));var o=fe(this),e=Oe(this,t,void 0);return e[Ae].C=!0,le(o),e},o.finishDraft=function(t,o){var e=(t&&t[Ae]).A;return se(e,o),ue(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!Ue&&$o(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var i=ne("Patches").$;return zo(t)?i(t,o):this.produce(t,(function(t){return i(t,o)}))},t}(),Ze=new je,De=Ze.produce;function Fe(t){return Fe="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},Fe(t)}function Be(t){var o=function(t,o){if("object"!==Fe(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===Fe(o)?o:String(o)}function _e(t,o,e){return(o=Be(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function $e(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function ze(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?$e(Object(e),!0).forEach((function(o){_e(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$e(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}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. "}Ze.produceWithPatches.bind(Ze),Ze.setAutoFreeze.bind(Ze),Ze.setUseProxies.bind(Ze),Ze.applyPatches.bind(Ze),Ze.createDraft.bind(Ze),Ze.finishDraft.bind(Ze);var Ge="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 Ye(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(He(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(He(1));return e(Ye)(t,o)}if("function"!=typeof t)throw new Error(He(2));var i=t,n=o,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(He(3));return n}function h(t){if("function"!=typeof t)throw new Error(He(4));if(c)throw new Error(He(5));var o=!0;return l(),s.push(t),function(){if(o){if(c)throw new Error(He(6));o=!1,l();var e=s.indexOf(t);s.splice(e,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(He(7));if(void 0===t.type)throw new Error(He(8));if(c)throw new Error(He(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var o=a=s,e=0;e<o.length;e++){(0,o[e])()}return t}return u({type:Ve.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(He(10));i=t,u({type:Ve.REPLACE})}})[Ge]=function(){var t,o=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(He(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[Ge]=function(){return this},t},r}function Je(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var i=o[r];"function"==typeof t[i]&&(e[i]=t[i])}var n,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:Ve.INIT}))throw new Error(He(12));if(void 0===e(void 0,{type:Ve.PROBE_UNKNOWN_ACTION()}))throw new Error(He(13))}))}(e)}catch(t){n=t}return function(t,o){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=e[c],f=t[c],h=l(f,o);if(void 0===h)throw o&&o.type,new Error(He(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function Xe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(He(15))},i={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=o.map((function(t){return t(i)}));return r=Xe.apply(void 0,n)(e.dispatch),ze(ze({},e),{},{dispatch:r})}}}function tr(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(i){return"function"==typeof i?i(e,r,t):o(i)}}}}var or=tr();or.withExtraArgument=tr;var er,rr=or,ir=(er=function(t,o){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},er(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}er(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),nr=function(t,o){var e,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=o.call(t,a)}catch(t){n=[6,t],r=0}finally{e=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},ar=function(t,o){for(var e=0,r=o.length,i=t.length;e<r;e++,i++)t[i]=o[e];return t},sr=Object.defineProperty,cr=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,dr=function(t,o,e){return o in t?sr(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},pr=function(t,o){for(var e in o||(o={}))hr.call(o,e)&&dr(t,e,o[e]);if(fr)for(var r=0,i=fr(o);r<i.length;r++){e=i[r];ur.call(o,e)&&dr(t,e,o[e])}return t},yr=function(t,o){return cr(t,lr(o))},br="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xe:Xe.apply(null,arguments)};var gr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return ir(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array),mr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(this,e)||this;return Object.setPrototypeOf(i,o.prototype),i}return ir(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array);function vr(t){return Ho(t)?De(t,(function(){})):t}function Or(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new gr;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(rr.withExtraArgument(e.extraArgument)):r.push(rr));return r}(t)}}function wr(t){var o,e=Or(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?e():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,d=void 0===u?void 0:u;if("function"==typeof n)o=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=Je(n)}var p=s;"function"==typeof p&&(p=p(e));var y=Qe.apply(void 0,p),b=Xe;l&&(b=br(pr({trace:!1},"object"==typeof l&&l)));var g=new mr(y),m=g;return Array.isArray(d)?m=ar([y],d):"function"==typeof d&&(m=d(g)),Ye(o,h,b.apply(void 0,m))}function Nr(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var i=o.apply(void 0,e);if(!i)throw new Error("prepareAction did not return an object");return pr(pr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function Sr(t){var o,e={},r=[],i={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,i},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),i},addDefaultCase:function(t){return o=t,i}};return t(i),[e,r,o]}function xr(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:vr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var o="function"==typeof t.extraReducers?Sr(t.extraReducers):[t.extraReducers],e=o[0],i=void 0===e?{}:e,n=o[1],a=void 0===n?[]:n,c=o[2],l=void 0===c?void 0:c,f=pr(pr({},i),s);return function(t,o,e,r){void 0===e&&(e=[]);var i,n="function"==typeof o?Sr(o):[o,e,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return vr(t())};else{var l=vr(t);i=function(){return l}}function f(t,o){void 0===t&&(t=i());var e=ar([a[o.type]],s.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[c]),e.reduce((function(t,e){if(e){var r;if(zo(t))return void 0===(r=e(t,o))?t:r;if(Ho(t))return De(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var i=r[e];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var e,r,n=i[t],l=o+"/"+t;"reducer"in n?(e=n.reducer,r=n.prepare):e=n,a[t]=e,s[l]=e,c[t]=r?Nr(l,r):Nr(l)})),{name:o,reducer:function(t,o){return e||(e=l()),e(t,o)},actions:c,caseReducers:a,getInitialState:function(){return e||(e=l()),e.getInitialState()}}}var Er=["name","message","stack","code"],Cr=function(t,o){this.payload=t,this.meta=o},Rr=function(t,o){this.payload=t,this.meta=o},Ur=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Er;e<r.length;e++){var i=r[e];"string"==typeof t[i]&&(o[i]=t[i])}return o}return{message:String(t)}};function Ir(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=Nr(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:yr(pr({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),i=Nr(t+"/pending",(function(t,o,e){return{payload:void 0,meta:yr(pr({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),n=Nr(t+"/rejected",(function(t,o,r,i,n){return{payload:i,error:(e&&e.serializeError||Ur)(t||"Rejected"),meta:yr(pr({},n||{}),{arg:r,requestId:o,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),u=new a;function d(t){f=t,u.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,b,g,m;return nr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:c,extra:l}),null===(O=b)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,o){return u.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(p=null==e?void 0:e.getPendingMeta)?void 0:p.call(e,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([g,Promise.resolve(o(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:d,rejectWithValue:function(t,o){return new Cr(t,o)},fulfillWithValue:function(t,o){return new Rr(t,o)}})).then((function(o){if(o instanceof Cr)throw o;return o instanceof Rr?r(o.payload,h,t,o.meta):r(o,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Cr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,o){var e=function(t){try{i(y.next(t))}catch(t){o(t)}},r=function(t){try{i(y.throw(t))}catch(t){o(t)}},i=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};i((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(Ir)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Lr,Ar,Wr="listenerMiddleware";Nr(Wr+"/add"),Nr(Wr+"/removeAll"),Nr(Wr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=i[t];return e?e.enumerable=o:i[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[Ae];return Pe.get(o,t)},set:function(o){var e=this[Ae];Pe.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var i=t[o][Ae];if(!i.P)switch(i.i){case 5:r(i)&&me(i);break;case 4:e(i)&&me(i)}}}function e(t){for(var o=t.t,e=t.k,r=ke(e),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Ae){var a=o[n];if(void 0===a&&!Vo(o,n))return!0;var s=e[n],c=s&&s[Ae];if(c?c.t!==a:!Jo(s,a))return!0}}var l=!!o[Ae];return r.length!==ke(o).length+(l?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var i={};!function(t,o){Te[t]||(Te[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),i=function(o,e){if(o){for(var r=Array(e.length),i=0;i<e.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Ke(e);delete n[Ae];for(var a=ke(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,o||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(e),n)}(r,o),n={i:r?5:4,A:e?e.A:ae(),P:!1,I:!1,R:{},l:e,t:o,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Ae,{value:n,writable:!0}),i},S:function(t,e,i){i?zo(e)&&e[Ae].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[Ae];if(e){var i=e.t,n=e.k,a=e.R,s=e.i;if(4===s)Go(n,(function(o){o!==Ae&&(void 0!==i[o]||Vo(i,o)?a[o]||t(n[o]):(a[o]=!0,me(e)))})),Go(i,(function(t){void 0!==n[t]||Vo(n,t)||(a[t]=!1,me(e))}));else if(5===s){if(r(e)&&(me(e),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class kr{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[e];if(Po(i))return i;if(null==r)return;const n=xr({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=wr({reducer:(t,o)=>{var e;switch(o.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(e=o.overwrites)&&void 0!==e?e:{}};default:return n.reducer(t,o)}}});return window.ftReduxStores[r.name]=new kr(n,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new To,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,i=t[r];return i?(...t)=>{const o=i(...t);return this.reduxStore.dispatch(o),o}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ar=null===(Lr=window.safari)||void 0===Lr?void 0:Lr.pushNotification)||void 0===Ar||Ar.toString());class Kr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,o,e){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,e)),null==t.tocId?this.extractPagesToc(t.children,o,e):[{tocId:t.tocId,title:t.title,depth:o,children:this.extractPagesToc(t.children,o+1,t.tocId)}])))}convertNodes(t,o,e){return t.flatMap((t=>{var r,i,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],o,t.tocId),...this.convertNodes(t.children,o,t.tocId)];let a=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:o,parentTocId:e,children:[]};this.register(s);const c=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],o+1,t.tocId),l=this.convertNodes(t.children,o+1,s.tocId);return s.children=[...c,...l],[s]}))}convertSectionNodes(t,o,e){return t.flatMap((t=>{var r;let i=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const n={...t,prettyUrl:i,depth:o,parentTocId:e,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,o+1,t.tocId),[n]}))}buildPage(t,o){var e,r,i,n,a,s;const c={number:this.pages.length+1,title:null!==(e=t.title)&&void 0!==e?e:"",rootTocId:null!==(r=t.tocId)&&void 0!==r?r:"root",toc:(null!==(i=t.pageToc)&&void 0!==i?i:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},l=(t,o)=>(o?c.topics:c.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return c.breadcrumb.forEach(((t,o)=>{l(t,f[o])})),t.tocId&&l(t.tocId,t.pageConfiguration.isVisible),c.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),c}registerPage(t){for(let o of[...t.topics,...t.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const o=[t.tocId];for(;null==t?void 0:t.parentTocId;)o.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return o}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Tr{convertPaginatedToc(t){return new Kr(t).build()}}var Pr,Mr,jr,Zr,Dr,Fr,Br,_r,$r,zr,Hr,Gr,qr,Vr,Yr,Jr,Xr,Qr;!function(t){!function(o){var e={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(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function h(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function u(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var o=new FileReader,e=f(o);return o.readAsText(t),e}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=a(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,i=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),p.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function g(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new g(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new g(r,e))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=g),o.Headers=c,o.Request=y,o.Response=g,o.fetch=v,Object.defineProperty(o,"U",{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"}(Pr||(Pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Mr||(Mr={})),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"}(jr||(jr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Zr||(Zr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Dr||(Dr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Fr||(Fr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Br||(Br={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(_r||(_r={})),function(t){t.ASC="ASC",t.DESC="DESC"}($r||($r={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(zr||(zr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Hr||(Hr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Gr||(Gr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(qr||(qr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Vr||(Vr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Yr||(Yr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Jr||(Jr={})),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"}(Xr||(Xr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Qr||(Qr={}));const ti={[Xr.PERSONAL_BOOK_SHARE_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.HTML_EXPORT_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.PDF_EXPORT_USER]:[Xr.PERSONAL_BOOK_USER],[Xr.KHUB_ADMIN]:[Xr.CONTENT_PUBLISHER],[Xr.ADMIN]:[Xr.KHUB_ADMIN,Xr.USERS_ADMIN,Xr.PORTAL_ADMIN],[Xr.DEVELOPER]:[Xr.BETA_USER,Xr.DEBUG_USER]};function oi(t,o){return t===o||(ti[t]??[]).some((t=>oi(t,o)))}function ei(t,o){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>oi(t,o)))}var ri;t.FtReaderFeatures=void 0,(ri=t.FtReaderFeatures||(t.FtReaderFeatures={})).FEEDBACK="FEEDBACK",ri.RATING="RATING",ri.PRINT="PRINT",ri.BOOKMARK="BOOKMARK",ri.COLLECTIONS="COLLECTIONS",ri.PERSONAL_BOOKS="PERSONAL_BOOKS";const ii=vt`
|
|
102
|
+
`,ni=kr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class ai{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=ni.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?ai.build(t):null!==(o=ai.API)&&void 0!==o?o:ai.API=ai.build()}static await(t){return new Promise((o=>{let e=ai.get(t);if(e)o(e);else{const r=ni.subscribe((()=>{e=ai.get(t),e&&(r(),o(e))}))}}))}}var si;const ci=Symbol("clearAfterUnitTest");class li{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[si]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=ni.getState().uiLocale,ni.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ni.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};A(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new ko(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(o,...e)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>I(0).then((()=>t())).catch((()=>null)))))}}si=ci,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new li((async(t,o)=>(await ai.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new li((async(t,o)=>(await ai.await()).getCustomMessageContext(t,o))));const fi=window.FluidTopicsI18nService;var hi=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ui extends Ao{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ai.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return oo`
|
|
103
103
|
<slot></slot>
|
|
104
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(ni.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&ni.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ni.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&ni.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&ni.actions.noCustom(this.noCustom),t.has("editorMode")&&ni.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&ni.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&ni.actions.session(this.session),t.has("availableUiLocales")&&ni.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}ui.elementDefinitions={},ui.styles=ii,hi([x()],ui.prototype,"baseUrl",void 0),hi([x()],ui.prototype,"apiIntegrationIdentifier",void 0),hi([x()],ui.prototype,"uiLocale",void 0),hi([W(null)],ui.prototype,"availableUiLocales",void 0),hi([W(null)],ui.prototype,"metadataConfiguration",void 0),hi([x({type:Boolean})],ui.prototype,"editorMode",void 0),hi([x({type:Boolean})],ui.prototype,"noCustom",void 0),hi([x({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ui.prototype,"noCustomComponent",void 0),hi([x({type:Boolean})],ui.prototype,"withManualResources",void 0),hi([W([])],ui.prototype,"messageContexts",void 0),hi([W(void 0)],ui.prototype,"session",void 0),hi([x({type:Object})],ui.prototype,"apiProvider",void 0);class di{async listMySearches(){var t;return(null===(t=ni.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ai.await()).listMySearches(ni.getState().session.profile.userId):[]}}const pi=new r;class yi{async listMyBookmarks(){return pi.get("bookmarks",(async()=>(await ai.await()).listMyBookmarks(ni.getState().session.profile.userId)))}clearCache(){pi.clear("bookmarks")}}const bi=Wr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const gi=new class{constructor(){this.currentSession=ni.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yi,ni.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=ni.getState();A(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){bi.actions.savedSearches(void 0)}clearMyBookmarks(){bi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new di,o=await t.listMySearches();bi.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;bi.actions.bookmarks(o)}}};k("ft-app-context")(ui);class mi{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,o,e,r){this.converter=t,this.api=o,this.cache=e,this._mapId=r,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,o;return ei(null!==(o=null===(t=ni.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==o?o:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var o;return null===(o=this.enrichedToc)||void 0===o?void 0:o.nodeByTocId[t]}async getPage(t){const o=await this.getEnrichedToc();return o.pages[t-1]||o.pages[0]}async getPageByTocId(t){const o=await this.getEnrichedToc();return o.pageByTocId[t]||o.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,o,e){const r=this.getNavigationData(t,o,e),i=this.getReaderLinkPrefix()+(r.prettyUrl?r.prettyUrl:`${r.mapId}/${r.tocId}`),n=new URL(i,this.api.tenantBaseUrl);return null!=r.page&&n.searchParams.set("page",`${r.page}`),r.prettyUrlDuplicated&&n.searchParams.set("tocId",r.tocId),null!=r.section&&n.searchParams.set("section",r.section),n.href}getNavigationData(t,o,e){var r,i;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],c=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:"",page:o&&a&&a.number!==o?o:void 0,prettyUrl:null!=c?c.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(i=null==n?void 0:n.duplicatedPrettyUrls.has(null!=c?c:""))&&void 0!==i&&i,section:e}}async getAccurateNavigationData(t,o,e){return await this.getEnrichedToc(),this.getNavigationData(t,o,e)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((o=>{var e;return o?{type:o.topics.type,rating:null===(e=o.topics)||void 0===e?void 0:e.ratings.find((o=>o.tocId===t))}:void 0}))}rateMap(t,o){return this.makeRateMapRequest(t,o).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,o){return this.makeMapFeedbackRequest(t,o)}rateTopic(t,o,e){return this.makeRateTopicRequest(t,o,e).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ni.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,o,e){return this.makeTopicFeedbackRequest(t,o,e)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let o=this.getTocNodeNow(t),e=[{tocId:o.tocId,title:o.title}],r=this.getTocNodeNow(o.parentTocId);for(;r;)e.unshift({tocId:r.tocId,title:r.title}),r=this.getTocNodeNow(r.parentTocId);return e}isFeatureAccessible(o,{session:e,ratingType:r}){if(!this.isFeatureAvailable(o))return!1;switch(o){case t.FtReaderFeatures.FEEDBACK:return ei(null!=e?e:[],Xr.FEEDBACK_USER);case t.FtReaderFeatures.RATING:return ei(null!=e?e:[],Xr.RATING_USER)&&null!=r&&r!==Br.NO_RATING;case t.FtReaderFeatures.PRINT:return ei(null!=e?e:[],Xr.PRINT_USER);case t.FtReaderFeatures.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case t.FtReaderFeatures.COLLECTIONS:return ei(null!=e?e:[],Xr.COLLECTION_USER);case t.FtReaderFeatures.PERSONAL_BOOKS:return ei(null!=e?e:[],Xr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class vi extends mi{static async build(t){return new vi(new Kr,await ai.await(),new r,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const o=await this.api.getMap(t);return this.fingerprint=o.fingerprint,o}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,o){return this.api.sendMapFeedback(this.mapId,t,o)}makeRateMapRequest(t,o){return this.api.rateMap(this.mapId,t,o)}makeRateTopicRequest(t,o,e){return this.api.rateTopic(this.mapId,t,o,e)}makeTopicFeedbackRequest(t,o,e){return this.api.sendTopicFeedback(this.mapId,t,o,e)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Oi{static build(t,o){return new Oi((t=>Wr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=o?o:vi.build)}constructor(t,o){this.store=t,this.loadDebouncer=new i(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return L((()=>this.service))}async navigateToTopic(t,o,e){const r=await this.awaitService(),i=await(null!=e?r.getPage(e):r.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,i),section:o})}resolveValidNonRootTocId(t,o){var e,r,i;let n=null!==(e="root"===t?void 0:t)&&void 0!==e?e:o.rootTocId;return o.topics.includes(n)?n:null!==(i=null!==(r=o.topics[0])&&void 0!==r?r:o.hiddenTopics[0])&&void 0!==i?i:"root"}async navigateToPage(t){const o=await this.awaitService();let e=await o.getPage(t);this.store.actions.currentPage(e)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear()}reload(){return this.clear(),this.load()}async fetchData(){var t,e,r,i,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(r=this.service)||void 0===r?void 0:r.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof o||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const wi=vt`
|
|
105
|
-
`;class Ni extends CustomEvent{constructor(t,o){super("ft-reader-map-loaded",{detail:{map:t,toc:o}})}}class Si extends CustomEvent{constructor(t,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}}class
|
|
104
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(ni.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&ni.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ni.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&ni.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&ni.actions.noCustom(this.noCustom),t.has("editorMode")&&ni.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&ni.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&ni.actions.session(this.session),t.has("availableUiLocales")&&ni.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}ui.elementDefinitions={},ui.styles=ii,hi([U()],ui.prototype,"baseUrl",void 0),hi([U()],ui.prototype,"apiIntegrationIdentifier",void 0),hi([U()],ui.prototype,"uiLocale",void 0),hi([k(null)],ui.prototype,"availableUiLocales",void 0),hi([k(null)],ui.prototype,"metadataConfiguration",void 0),hi([U({type:Boolean})],ui.prototype,"editorMode",void 0),hi([U({type:Boolean})],ui.prototype,"noCustom",void 0),hi([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ui.prototype,"noCustomComponent",void 0),hi([U({type:Boolean})],ui.prototype,"withManualResources",void 0),hi([k([])],ui.prototype,"messageContexts",void 0),hi([k(void 0)],ui.prototype,"session",void 0),hi([U({type:Object})],ui.prototype,"apiProvider",void 0);class di{async listMySearches(){var t;return(null===(t=ni.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ai.await()).listMySearches(ni.getState().session.profile.userId):[]}}const pi=new r;class yi{async listMyBookmarks(){return pi.get("bookmarks",(async()=>(await ai.await()).listMyBookmarks(ni.getState().session.profile.userId)))}clearCache(){pi.clear("bookmarks")}}const bi=kr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const gi=new class{constructor(){this.currentSession=ni.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yi,ni.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=ni.getState();A(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){bi.actions.savedSearches(void 0)}clearMyBookmarks(){bi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new di,o=await t.listMySearches();bi.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;bi.actions.bookmarks(o)}}};W("ft-app-context")(ui);class mi{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,o,e,r){this.converter=t,this.api=o,this.cache=e,this._mapId=r,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,o;return ei(null!==(o=null===(t=ni.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==o?o:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var o;return null===(o=this.enrichedToc)||void 0===o?void 0:o.nodeByTocId[t]}async getPage(t){const o=await this.getEnrichedToc();return o.pages[t-1]||o.pages[0]}async getPageByTocId(t){const o=await this.getEnrichedToc();return o.pageByTocId[t]||o.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,o,e){const r=this.getNavigationData(t,o,e),i=this.getReaderLinkPrefix()+(r.prettyUrl?r.prettyUrl:`${r.mapId}/${r.tocId}`),n=new URL(i,this.api.tenantBaseUrl);return null!=r.page&&n.searchParams.set("page",`${r.page}`),r.prettyUrlDuplicated&&n.searchParams.set("tocId",r.tocId),null!=r.section&&n.searchParams.set("section",r.section),n.href}getNavigationData(t,o,e){var r,i;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],c=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:"",page:o&&a&&a.number!==o?o:void 0,prettyUrl:null!=c?c.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(i=null==n?void 0:n.duplicatedPrettyUrls.has(null!=c?c:""))&&void 0!==i&&i,section:e}}async getAccurateNavigationData(t,o,e){return await this.getEnrichedToc(),this.getNavigationData(t,o,e)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((o=>{var e;return o?{type:o.topics.type,rating:null===(e=o.topics)||void 0===e?void 0:e.ratings.find((o=>o.tocId===t))}:void 0}))}rateMap(t,o){return this.makeRateMapRequest(t,o).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,o){return this.makeMapFeedbackRequest(t,o)}rateTopic(t,o,e){return this.makeRateTopicRequest(t,o,e).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ni.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,o,e){return this.makeTopicFeedbackRequest(t,o,e)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let o=this.getTocNodeNow(t),e=[{tocId:o.tocId,title:o.title}],r=this.getTocNodeNow(o.parentTocId);for(;r;)e.unshift({tocId:r.tocId,title:r.title}),r=this.getTocNodeNow(r.parentTocId);return e}isFeatureAccessible(o,{session:e,ratingType:r}){if(!this.isFeatureAvailable(o))return!1;switch(o){case t.FtReaderFeatures.FEEDBACK:return ei(null!=e?e:[],Xr.FEEDBACK_USER);case t.FtReaderFeatures.RATING:return ei(null!=e?e:[],Xr.RATING_USER)&&null!=r&&r!==Br.NO_RATING;case t.FtReaderFeatures.PRINT:return ei(null!=e?e:[],Xr.PRINT_USER);case t.FtReaderFeatures.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case t.FtReaderFeatures.COLLECTIONS:return ei(null!=e?e:[],Xr.COLLECTION_USER);case t.FtReaderFeatures.PERSONAL_BOOKS:return ei(null!=e?e:[],Xr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class vi extends mi{static async build(t){return new vi(new Tr,await ai.await(),new r,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const o=await this.api.getMap(t);return this.fingerprint=o.fingerprint,o}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,o){return this.api.sendMapFeedback(this.mapId,t,o)}makeRateMapRequest(t,o){return this.api.rateMap(this.mapId,t,o)}makeRateTopicRequest(t,o,e){return this.api.rateTopic(this.mapId,t,o,e)}makeTopicFeedbackRequest(t,o,e){return this.api.sendTopicFeedback(this.mapId,t,o,e)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Oi{static build(t,o){return new Oi((t=>kr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=o?o:vi.build)}constructor(t,o){this.store=t,this.loadDebouncer=new i(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return L((()=>this.service))}async navigateToTopic(t,o,e){const r=await this.awaitService(),i=await(null!=e?r.getPage(e):r.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,i),section:o})}resolveValidNonRootTocId(t,o){var e,r,i;let n=null!==(e="root"===t?void 0:t)&&void 0!==e?e:o.rootTocId;return o.topics.includes(n)?n:null!==(i=null!==(r=o.topics[0])&&void 0!==r?r:o.hiddenTopics[0])&&void 0!==i?i:"root"}async navigateToPage(t){const o=await this.awaitService();let e=await o.getPage(t);this.store.actions.currentPage(e)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear()}reload(){return this.clear(),this.load()}async fetchData(){var t,e,r,i,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(r=this.service)||void 0===r?void 0:r.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof o||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const wi=vt`
|
|
105
|
+
`;class Ni extends CustomEvent{constructor(t,o){super("ft-reader-map-loaded",{detail:{map:t,toc:o}})}}class Si extends CustomEvent{constructor(t,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}}class xi extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ei extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Ci extends Event{constructor(){super("ft-reader-map-not-found")}}class Ri extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Ui=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ii extends _o{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new i(5),this.navigationDebouncer=new i(10),this.addStore(ni)}render(){return oo`
|
|
106
106
|
${this.importStyleIfNeeded()}
|
|
107
107
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
108
108
|
`}importStyleIfNeeded(){var t,o;const e=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!e||window.location.href.startsWith(null!==(o=this.baseUrl)&&void 0!==o?o:"")?ro:oo`
|
|
109
109
|
<style>
|
|
110
110
|
@import "${e}"
|
|
111
111
|
</style>
|
|
112
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Oi.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const o=t.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",o),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((o=>t.has(o)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var o;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(o=this.scrollTarget)||void 0===o?void 0:o.tocId)){const o=t.get("scrollTarget");null!=(null==o?void 0:o.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(o.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,o.section).then((t=>this.dispatchEvent(new
|
|
112
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Oi.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const o=t.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",o),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((o=>t.has(o)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var o;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(o=this.scrollTarget)||void 0===o?void 0:o.tocId)){const o=t.get("scrollTarget");null!=(null==o?void 0:o.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(o.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,o.section).then((t=>this.dispatchEvent(new xi(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var o;return this.stateManager.service.getAccurateNavigationData(t,null===(o=this.currentPage)||void 0===o?void 0:o.number)}))).then((t=>{let o=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var o;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(o=this.stateManager.service)||void 0===o?void 0:o.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Si(this.map,o))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const o=t;404===o.status?this.dispatchEvent(new Ci):401===o.status?this.dispatchEvent(new Ri):this.dispatchEvent(new Ei(t))}reloadBookmarks(){gi.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var Li;Ii.styles=wi,Ui([Ko({store:ni.name})],Ii.prototype,"baseUrl",void 0),Ui([U()],Ii.prototype,"mapId",void 0),Ui([U()],Ii.prototype,"tocId",void 0),Ui([U()],Ii.prototype,"section",void 0),Ui([U()],Ii.prototype,"searchInDocumentQuery",void 0),Ui([U({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Li}})],Ii.prototype,"page",void 0),Ui([Ko({store:"reader"})],Ii.prototype,"map",void 0),Ui([Ko({store:"reader"})],Ii.prototype,"toc",void 0),Ui([Ko({store:"reader"})],Ii.prototype,"visibleTopics",void 0),Ui([Ko({store:"reader"})],Ii.prototype,"currentPage",void 0),Ui([Ko({store:"reader"})],Ii.prototype,"scrollTarget",void 0),Ui([U({attribute:!1})],Ii.prototype,"readerServiceProvider",void 0),W("ft-reader-context")(Ii),t.FtOfficialReaderService=vi,t.FtReaderContext=Ii,t.FtReaderContextCssVariables={},t.FtReaderConverter=Tr,t.FtReaderService=mi,t.LoadErrorEvent=Ei,t.MapLoadedEvent=Ni,t.NavigationDoneEvent=xi,t.NotFoundErrorEvent=Ci,t.UnauthorizedErrorEvent=Ri,t.VisibleTopicsChangeEvent=Si,t.styles=wi}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-context",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
4
4
|
"description": "Context block for integrated reader components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.1.27",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.27",
|
|
24
24
|
"@reduxjs/toolkit": "^1.6.2",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@fluid-topics/public-api": "1.0.56"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "1eac81014b6ebbec9693fa4dded300ed209695c0"
|
|
31
31
|
}
|