@fluid-topics/ft-reader-navigation-button 0.3.17

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.
@@ -0,0 +1,680 @@
1
+ !function(t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(mi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function n(t){return o({...t,state:!0})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function s(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
38
+ /**
39
+ * @license
40
+ * Copyright 2021 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}
43
+ /**
44
+ * @license
45
+ * Copyright 2019 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",void 0,f),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new u(i,t,f)},b=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
48
+ /**
49
+ * @license
50
+ * Copyright 2017 Google LLC
51
+ * SPDX-License-Identifier: BSD-3-Clause
52
+ */;var g;const m=window.trustedTypes,w=m?m.emptyScript:"",$=window.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},k=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:k};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o,n;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:O.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:O.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ /**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:N}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,F=`<${z}>`,j=document,U=(t="")=>j.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,P=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),D=/'/g,I=/"/g,W=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=j.createTreeWalker(j,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=A;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===A?"!--"===l[1]?s=L:void 0!==l[1]?s=P:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=n?n:A,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?I:D):s===I||s===D?s=_:s===L||s===P?s=A:(s=_,n=void 0);const c=s===_&&t[e+1].startsWith("/>")?" ":"";r+=s===A?i+F:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+M+c):i+M+(-2===h?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=q(t,e);if(this.el=X.createElement(l,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(W.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),J.nextNode(),a.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var n,r,s,a;if(e===K)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=T(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);J.currentNode=n;let r=J.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=J.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),T(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==K&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==Z&&T(this._$AH)?this._$AA.nextSibling.data=t:this.k(j.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new G(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new X(t)),e}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Q(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=Y(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==K,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Y(this,o[i+s],e,s),a===K&&(a=this._$AH[s]),r||(r=!T(a)||a!==this._$AH[s]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Z?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Z?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:Z)===K)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const st=window.litHtmlPolyfillSupport;
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ var at,lt;null==st||st(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class ht extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Q(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return K}}ht.finalized=!0,ht._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let o=t=>v(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=y`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ft(t,e){return v(`${t.name}: ${e}`)}const dt={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ /**
66
+ * @license
67
+ * Copyright 2021 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */var ut=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(n,this.constructor.elementStyles),n}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
70
+ ${t.map((t=>H`
71
+ <style>${t}</style>
72
+ `))}
73
+ ${this.getTemplate()}
74
+ `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}ut([o()],vt.prototype,"exportpartsPrefix",void 0),ut([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],vt.prototype,"exportpartsPrefixes",void 0);const yt=y`
75
+ .ft-no-text-select {
76
+ -webkit-touch-callout: none;
77
+ -webkit-user-select: none;
78
+ -khtml-user-select: none;
79
+ -moz-user-select: none;
80
+ -ms-user-select: none;
81
+ user-select: none;
82
+ }
83
+ `;y`
84
+ .ft-word-wrap {
85
+ white-space: normal;
86
+ word-wrap: break-word;
87
+ -ms-word-break: break-all;
88
+ word-break: break-all;
89
+ word-break: break-word;
90
+ -ms-hyphens: auto;
91
+ -moz-hyphens: auto;
92
+ -webkit-hyphens: auto;
93
+ hyphens: auto
94
+ }
95
+ `;class bt extends vt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var xt,gt,mt;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),$t=y`
96
+ `
97
+ /**
98
+ * @license
99
+ * Copyright 2017 Google LLC
100
+ * SPDX-License-Identifier: BSD-3-Clause
101
+ */,Ot=1,kt=2,St=t=>(...e)=>({_$litDirective$:t,values:e});class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
102
+ /**
103
+ * @license
104
+ * Copyright 2018 Google LLC
105
+ * SPDX-License-Identifier: BSD-3-Clause
106
+ */const Ct=St(class extends Nt{constructor(t){var e;if(super(t),t.type!==Ot||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return K}}),Et=ct.extend("--ft-ripple-color",dt.colorContent),Rt={color:Et,backgroundColor:ct.extend("--ft-ripple-background-color",Et),opacityContentOnSurfacePressed:ct.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.external(dt.opacityContentOnSurfaceSelected,"Design system")},Mt=ct.extend("--ft-ripple-color",dt.colorPrimary),zt=Mt,Ft=ct.extend("--ft-ripple-background-color",Mt),jt=ct.extend("--ft-ripple-color",dt.colorSecondary),Ut=jt,Tt=ct.extend("--ft-ripple-background-color",jt),Bt=y`
107
+ :host {
108
+ display: contents;
109
+ }
110
+
111
+ .ft-ripple {
112
+ position: absolute;
113
+ inset: 0;
114
+ pointer-events: none;
115
+ }
116
+
117
+ .ft-ripple:not(.ft-ripple--unbounded) {
118
+ overflow: hidden;
119
+ }
120
+
121
+ .ft-ripple .ft-ripple--background,
122
+ .ft-ripple .ft-ripple--effect {
123
+ position: absolute;
124
+ opacity: 0;
125
+ }
126
+
127
+ .ft-ripple .ft-ripple--background {
128
+ background-color: ${Rt.backgroundColor};
129
+ }
130
+
131
+ .ft-ripple .ft-ripple--effect {
132
+ background-color: ${Rt.color};
133
+ }
134
+
135
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
136
+ background-color: ${Tt};
137
+ }
138
+
139
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
140
+ background-color: ${Ut};
141
+ }
142
+
143
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
144
+ background-color: ${Ft};
145
+ }
146
+
147
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
148
+ background-color: ${zt};
149
+ }
150
+
151
+ .ft-ripple .ft-ripple--background {
152
+ top: 0;
153
+ left: 0;
154
+ height: 100%;
155
+ width: 100%;
156
+ transition: opacity 75ms linear;
157
+ }
158
+
159
+ .ft-ripple .ft-ripple--effect,
160
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
161
+ border-radius: 50%;
162
+ }
163
+
164
+ .ft-ripple .ft-ripple--effect {
165
+ transform: translate(-50%, -50%) scale(0.15);
166
+ transition: transform 300ms ease, opacity 75ms linear;
167
+ }
168
+
169
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
170
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
171
+ left: 50%;
172
+ top: 50%;
173
+ }
174
+
175
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
176
+ transform: translate(-50%, -50%);
177
+ }
178
+
179
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
180
+ opacity: ${Rt.opacityContentOnSurfaceHover};
181
+ }
182
+
183
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
184
+ opacity: ${Rt.opacityContentOnSurfaceSelected};
185
+ }
186
+
187
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
188
+ opacity: ${Rt.opacityContentOnSurfaceFocused};
189
+ }
190
+
191
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
192
+ opacity: ${Rt.opacityContentOnSurfacePressed};
193
+ transform: translate(-50%, -50%) scale(1);
194
+ }
195
+ `;var At=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lt extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return H`
196
+ <style>
197
+ .ft-ripple .ft-ripple--effect,
198
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
199
+ width: ${this.rippleSize}px;
200
+ height: ${this.rippleSize}px;
201
+ }
202
+
203
+ .ft-ripple .ft-ripple--effect {
204
+ left: ${this.originX}px;
205
+ top: ${this.originY}px;
206
+ }
207
+ </style>
208
+ <div class="${Ct(t)}">
209
+ <div class="ft-ripple--background"></div>
210
+ <div class="ft-ripple--effect"></div>
211
+ </div>
212
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Lt.elementDefinitions={},Lt.styles=Bt,At([o({type:Boolean})],Lt.prototype,"primary",void 0),At([o({type:Boolean})],Lt.prototype,"secondary",void 0),At([o({type:Boolean})],Lt.prototype,"unbounded",void 0),At([o({type:Boolean})],Lt.prototype,"activated",void 0),At([o({type:Boolean})],Lt.prototype,"selected",void 0),At([o({type:Boolean})],Lt.prototype,"disabled",void 0),At([n()],Lt.prototype,"hovered",void 0),At([n()],Lt.prototype,"focused",void 0),At([n()],Lt.prototype,"pressed",void 0),At([n()],Lt.prototype,"rippling",void 0),At([n()],Lt.prototype,"rippleSize",void 0),At([n()],Lt.prototype,"originX",void 0),At([n()],Lt.prototype,"originY",void 0),At([s(".ft-ripple")],Lt.prototype,"ripple",void 0),At([s(".ft-ripple--effect")],Lt.prototype,"rippleEffect",void 0),h("ft-ripple")(Lt);
213
+ /**
214
+ * @license
215
+ * Copyright 2020 Google LLC
216
+ * SPDX-License-Identifier: BSD-3-Clause
217
+ */
218
+ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:Pt}),It=new Map,Wt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=_t(r));)l+=n+e[++h],p=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),p){const t=s.join("$$lit$$");void 0===(e=It.get(t))&&(s.raw=s,It.set(t,e=s)),i=a}return t(e,...i)})(H);var Ht;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Ht||(Ht={}));const Kt=ct.extend("--ft-typography-font-family",dt.titleFont),Zt=ct.extend("--ft-typography-font-family",dt.contentFont),Vt={fontFamily:Zt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Jt=ct.extend("--ft-typography-title-font-family",Kt),qt=ct.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Xt=ct.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=ct.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=ct.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=ct.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),te=ct.extend("--ft-typography-title-dense-font-family",Kt),ee=ct.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ie=ct.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oe=ct.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),ne=ct.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),re=ct.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),se=ct.extend("--ft-typography-subtitle1-font-family",Zt),ae=ct.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),le=ct.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),he=ct.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),pe=ct.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),ce=ct.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),fe=ct.extend("--ft-typography-subtitle2-font-family",Zt),de=ct.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ue=ct.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),ve=ct.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),ye=ct.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),be=ct.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),xe=ct.extend("--ft-typography-body1-font-family",Zt),ge=ct.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),me=ct.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),we=ct.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),$e=ct.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),Oe=ct.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),ke=ct.extend("--ft-typography-body2-font-family",Zt),Se=ct.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),Ne=ct.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),Ce=ct.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),Ee=ct.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),Re=ct.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Me=ct.extend("--ft-typography-caption-font-family",Zt),ze=ct.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Fe=ct.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),je=ct.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),Ue=ct.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Te=ct.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Be=ct.extend("--ft-typography-breadcrumb-font-family",Zt),Ae=ct.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Le=ct.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),Pe=ct.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),_e=ct.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),De=ct.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Ie=ct.extend("--ft-typography-overline-font-family",Zt),We=ct.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),He=ct.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Ke=ct.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Ze=ct.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Ve=ct.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Je={fontFamily:ct.extend("--ft-typography-button-font-family",Zt),fontSize:ct.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:ct.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:ct.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:ct.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:ct.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},qe=y`
219
+ .ft-typography--title {
220
+ font-family: ${Jt};
221
+ font-size: ${qt};
222
+ font-weight: ${Xt};
223
+ letter-spacing: ${Yt};
224
+ line-height: ${Gt};
225
+ text-transform: ${Qt};
226
+ }
227
+ `,Xe=y`
228
+ .ft-typography--title-dense {
229
+ font-family: ${te};
230
+ font-size: ${ee};
231
+ font-weight: ${ie};
232
+ letter-spacing: ${oe};
233
+ line-height: ${ne};
234
+ text-transform: ${re};
235
+ }
236
+ `,Ye=y`
237
+ .ft-typography--subtitle1 {
238
+ font-family: ${se};
239
+ font-size: ${ae};
240
+ font-weight: ${le};
241
+ letter-spacing: ${he};
242
+ line-height: ${pe};
243
+ text-transform: ${ce};
244
+ }
245
+ `,Ge=y`
246
+ .ft-typography--subtitle2 {
247
+ font-family: ${fe};
248
+ font-size: ${de};
249
+ font-weight: ${ue};
250
+ letter-spacing: ${ve};
251
+ line-height: ${ye};
252
+ text-transform: ${be};
253
+ }
254
+
255
+ `,Qe=y`
256
+ .ft-typography--body1 {
257
+ font-family: ${xe};
258
+ font-size: ${ge};
259
+ font-weight: ${me};
260
+ letter-spacing: ${we};
261
+ line-height: ${$e};
262
+ text-transform: ${Oe};
263
+ }
264
+ `,ti=y`
265
+ .ft-typography--body2 {
266
+ font-family: ${ke};
267
+ font-size: ${Se};
268
+ font-weight: ${Ne};
269
+ letter-spacing: ${Ce};
270
+ line-height: ${Ee};
271
+ text-transform: ${Re};
272
+ }
273
+ `,ei=y`
274
+ .ft-typography--caption {
275
+ font-family: ${Me};
276
+ font-size: ${ze};
277
+ font-weight: ${Fe};
278
+ letter-spacing: ${je};
279
+ line-height: ${Ue};
280
+ text-transform: ${Te};
281
+ }
282
+ `,ii=y`
283
+ .ft-typography--breadcrumb {
284
+ font-family: ${Be};
285
+ font-size: ${Ae};
286
+ font-weight: ${Le};
287
+ letter-spacing: ${Pe};
288
+ line-height: ${_e};
289
+ text-transform: ${De};
290
+ }
291
+ `,oi=y`
292
+ .ft-typography--overline {
293
+ font-family: ${Ie};
294
+ font-size: ${We};
295
+ font-weight: ${He};
296
+ letter-spacing: ${Ke};
297
+ line-height: ${Ze};
298
+ text-transform: ${Ve};
299
+ }
300
+ `,ni=y`
301
+ .ft-typography--button {
302
+ font-family: ${Je.fontFamily};
303
+ font-size: ${Je.fontSize};
304
+ font-weight: ${Je.fontWeight};
305
+ letter-spacing: ${Je.letterSpacing};
306
+ line-height: ${Je.lineHeight};
307
+ text-transform: ${Je.textTransform};
308
+ }
309
+ `,ri=y`
310
+ .ft-typography {
311
+ vertical-align: inherit;
312
+ }
313
+ `;var si=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ai extends vt{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?Wt`
314
+ <${Dt(this.element)}
315
+ class="ft-typography ft-typography--${this.variant}">
316
+ <slot></slot>
317
+ </${Dt(this.element)}>
318
+ `:Wt`
319
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
320
+ `}}ai.styles=[qe,Xe,Ye,Ge,Qe,ti,ei,ii,oi,ni,ri],si([o()],ai.prototype,"element",void 0),si([o()],ai.prototype,"variant",void 0),h("ft-typography")(ai);const li=ct.create("--ft-tooltip-distance","SIZE","4px"),hi=ct.create("--ft-tooltip-color","COLOR","#FFFFFF"),pi=ct.create("--ft-tooltip-background-color","COLOR","#666666"),ci=ct.create("--ft-tooltip-z-index","NUMBER","1"),fi=ct.external(dt.borderRadiusS,"Design system"),di=ct.create("--ft-tooltip-max-width","SIZE","150px"),ui=y`
321
+ .ft-tooltip--container {
322
+ display: block;
323
+ position: relative;
324
+ }
325
+
326
+ .ft-tooltip--inline {
327
+ display: inline-block;
328
+ max-width: 100%;
329
+ }
330
+
331
+ .ft-tooltip {
332
+ position: absolute;
333
+ box-sizing: border-box;
334
+ overflow: hidden;
335
+ width: max-content;
336
+ max-width: ${di};
337
+ text-align: center;
338
+ padding: ${li};
339
+ z-index: ${ci};
340
+ }
341
+
342
+ .ft-tooltip--content {
343
+ padding: 4px 8px;
344
+ border-radius: ${fi};
345
+ background-color: ${pi};
346
+ color: ${hi};
347
+ top: -500px;
348
+ left: -500px;
349
+ position: relative;
350
+ word-break: break-word;
351
+ }
352
+ `;var vi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class yi extends vt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return H`
353
+ <div part="container"
354
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
355
+ @mouseenter=${this.onHover}
356
+ @mouseleave=${this.onOut}
357
+ @focusin=${this.onHover}
358
+ @focusout=${this.onOut}
359
+ @touchstart=${this.onTouch}>
360
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
361
+ <div part="tooltip-content" class="ft-tooltip--content">
362
+ <slot name="text"></slot>
363
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
364
+ </div>
365
+ </div>
366
+ <slot></slot>
367
+ </div>
368
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${di})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}yi.elementDefinitions={"ft-typography":ai},yi.styles=ui,vi([o()],yi.prototype,"text",void 0),vi([o({type:Boolean})],yi.prototype,"manual",void 0),vi([o({type:Boolean})],yi.prototype,"inline",void 0),vi([o({type:Number})],yi.prototype,"delay",void 0),vi([o()],yi.prototype,"position",void 0),vi([
369
+ /**
370
+ * @license
371
+ * Copyright 2017 Google LLC
372
+ * SPDX-License-Identifier: BSD-3-Clause
373
+ */
374
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],yi.prototype,"slotNodes",void 0),vi([s(".ft-tooltip--container")],yi.prototype,"container",void 0),vi([s("slot")],yi.prototype,"target",void 0),vi([s(".ft-tooltip")],yi.prototype,"tooltip",void 0),vi([s(".ft-tooltip--content")],yi.prototype,"tooltipContent",void 0),vi([n()],yi.prototype,"visible",void 0),h("ft-tooltip")(yi);const bi={color:ct.extend("--ft-loader-color",dt.colorPrimary),size:ct.create("--ft-loader-size","SIZE","80px")},xi=y`
375
+ :host {
376
+ line-height: 0;
377
+ }
378
+
379
+ .ft-loader {
380
+ display: inline-block;
381
+ position: relative;
382
+
383
+ width: ${bi.size};
384
+ height: ${bi.size};
385
+ }
386
+
387
+ .ft-loader div {
388
+ position: absolute;
389
+ top: 37.5%;
390
+ width: 25%;
391
+ height: 25%;
392
+ border-radius: 50%;
393
+ background: ${bi.color};
394
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
395
+ }
396
+
397
+ .ft-loader div:nth-child(1) {
398
+ left: 2.5%;
399
+ animation: appear 0.6s infinite;
400
+ }
401
+
402
+ .ft-loader div:nth-child(2) {
403
+ left: 2.5%;
404
+ animation: move 0.6s infinite;
405
+ }
406
+
407
+ .ft-loader div:nth-child(3) {
408
+ left: 37.5%;
409
+ animation: move 0.6s infinite;
410
+ }
411
+
412
+ .ft-loader div:nth-child(4) {
413
+ left: 72.5%;
414
+ animation: disappear 0.6s infinite;
415
+ }
416
+
417
+ @keyframes appear {
418
+ 0% {
419
+ transform: scale(0);
420
+ }
421
+ 100% {
422
+ transform: scale(1);
423
+ }
424
+ }
425
+
426
+ @keyframes disappear {
427
+ 0% {
428
+ transform: scale(1);
429
+ }
430
+ 100% {
431
+ transform: scale(0);
432
+ }
433
+ }
434
+
435
+ @keyframes move {
436
+ 0% {
437
+ transform: translate(0, 0);
438
+ }
439
+ 100% {
440
+ transform: translate(calc(0.35 * ${bi.size}), 0);
441
+ }
442
+ }
443
+ `;class gi extends vt{render(){return H`
444
+ <div class="ft-loader">
445
+ <div></div>
446
+ <div></div>
447
+ <div></div>
448
+ <div></div>
449
+ </div>
450
+ `}}gi.styles=xi,h("ft-loader")(gi);
451
+ /**
452
+ * @license
453
+ * Copyright 2017 Google LLC
454
+ * SPDX-License-Identifier: BSD-3-Clause
455
+ */
456
+ class mi extends Nt{constructor(t){if(super(t),this.it=Z,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===K)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mi.directiveName="unsafeHTML",mi.resultType=1;const wi=St(mi);var $i,Oi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}($i||($i={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Oi||(Oi={})),new Map([...["abw"].map((t=>[t,Oi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Oi.AUDIO])),...["avi"].map((t=>[t,Oi.AVI])),...["chm","xhs"].map((t=>[t,Oi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Oi.CODE])),...["csv"].map((t=>[t,Oi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oi.DITA])),...["epub"].map((t=>[t,Oi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oi.EXCEL])),...["flac"].map((t=>[t,Oi.FLAC])),...["gif"].map((t=>[t,Oi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Oi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oi.JPEG])),...["json"].map((t=>[t,Oi.JSON])),...["m4a","m4p"].map((t=>[t,Oi.M4A])),...["mov","qt"].map((t=>[t,Oi.MOV])),...["mp3"].map((t=>[t,Oi.MP3])),...["mp4","m4v"].map((t=>[t,Oi.MP4])),...["ogg","oga"].map((t=>[t,Oi.OGG])),...["pdf","ps"].map((t=>[t,Oi.PDF])),...["png"].map((t=>[t,Oi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oi.POWERPOINT])),...["rar"].map((t=>[t,Oi.RAR])),...["stp"].map((t=>[t,Oi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Oi.VIDEO])),...["wav"].map((t=>[t,Oi.WAV])),...["wma"].map((t=>[t,Oi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oi.YAML])),...["zip"].map((t=>[t,Oi.ZIP]))]);const ki={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")},Si=y`
457
+ :host {
458
+ display: inline-block;
459
+ }
460
+
461
+ :host, i.ft-icon {
462
+ width: ${ki.size};
463
+ height: ${ki.size};
464
+ text-align: center;
465
+ }
466
+
467
+ i.ft-icon {
468
+ font-size: ${ki.size};
469
+ line-height: 1;
470
+ font-weight: normal;
471
+ text-transform: none;
472
+ font-style: normal;
473
+ font-variant: normal;
474
+ speak: none;
475
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
476
+ text-rendering: auto;
477
+ -webkit-font-smoothing: antialiased;
478
+ -moz-osx-font-smoothing: grayscale;
479
+ vertical-align: ${ki.verticalAlign};
480
+ }
481
+
482
+ .ft-icon--fluid-topics {
483
+ font-family: ${ki.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
484
+ }
485
+
486
+ .ft-icon--file-format {
487
+ font-family: ${ki.fileFormatFontFamily}, ft-mime, sans-serif;
488
+ }
489
+
490
+ .ft-icon--material {
491
+ font-family: ${ki.materialFontFamily}, "Material Icons", sans-serif;
492
+ }
493
+ `;var Ni;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ni||(Ni={}));var Ci=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ei extends vt{constructor(){super(...arguments),this.variant=Ni.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return H`
494
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
495
+ ${wi(this.resolvedIcon)}
496
+ <slot ?hidden=${t}></slot>
497
+ </i>
498
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ni.file_format:this.resolvedIcon=null!==(t=Oi[i.toUpperCase()])&&void 0!==t?t:i;break;case Ni.fluid_topics:this.resolvedIcon=null!==(e=$i[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ei.elementDefinitions={},Ei.styles=Si,Ci([o()],Ei.prototype,"variant",void 0),Ci([o()],Ei.prototype,"value",void 0),Ci([n()],Ei.prototype,"resolvedIcon",void 0),Ci([s("slot")],Ei.prototype,"slottedContent",void 0),h("ft-icon")(Ei);const Ri=ct.extend("--ft-button-color",dt.colorPrimary),Mi={backgroundColor:ct.extend("--ft-button-background-color",dt.colorSurface),borderRadius:ct.extend("--ft-button-border-radius",dt.borderRadiusL),color:Ri,fontSize:ct.extend("--ft-button-font-size",Je.fontSize),iconSize:ct.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ct.extend("--ft-button-ripple-color",Ri),opacityDisabled:ct.external(dt.colorOpacityDisabled,"Design system")},zi=ct.extend("--ft-button-primary-color",ct.extend("--ft-button-color",dt.colorOnPrimary)),Fi={backgroundColor:ct.extend("--ft-button-primary-background-color",ct.extend("--ft-button-background-color",dt.colorPrimary)),color:zi,rippleColor:ct.extend("--ft-button-primary-ripple-color",zi)},ji=ct.extend("--ft-button-dense-border-radius",ct.extend("--ft-button-border-radius",dt.borderRadiusM)),Ui=[yt,y`
499
+ :host {
500
+ display: inline-block;
501
+ max-width: 100%;
502
+ pointer-events: none;
503
+ }
504
+
505
+ button {
506
+ box-shadow: 0px 0px 0px transparent;
507
+ border: 0px solid transparent;
508
+ text-shadow: 0px 0px 0px transparent;
509
+ font-size: ${Mi.fontSize};
510
+ }
511
+
512
+ button:hover {
513
+ box-shadow: 0px 0px 0px transparent;
514
+ border: 0px solid transparent;
515
+ text-shadow: 0px 0px 0px transparent;
516
+ }
517
+
518
+ button:active {
519
+ outline: none;
520
+ border: none;
521
+ }
522
+
523
+ button:focus {
524
+ outline: 0;
525
+ }
526
+
527
+ .ft-button {
528
+ position: relative;
529
+ display: flex;
530
+ justify-content: center;
531
+ align-items: center;
532
+ width: 100%;
533
+ overflow: hidden;
534
+ box-sizing: border-box;
535
+ border: none;
536
+ pointer-events: auto;
537
+
538
+ --ft-button-internal-line-height: calc(${Mi.fontSize} + 2px);
539
+ --ft-button-internal-color: ${Mi.color};
540
+ ${ft(ki.size,Mi.iconSize)};
541
+ --ft-button-internal-vertical-padding: 6px;
542
+ --ft-button-internal-horizontal-padding: 8px;
543
+ ${ft(Rt.color,Mi.rippleColor)};
544
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Mi.iconSize});
545
+
546
+ border-radius: ${Mi.borderRadius};
547
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
548
+ background-color: ${Mi.backgroundColor};
549
+ color: var(--ft-button-internal-color);
550
+ -webkit-mask-image: radial-gradient(white, black);
551
+ }
552
+
553
+ .ft-button:not([disabled]):hover {
554
+ cursor: pointer;
555
+ }
556
+
557
+ .ft-button--dense {
558
+ --ft-button-internal-vertical-padding: 2px;
559
+ --ft-button-internal-horizontal-padding: 4px;
560
+ border-radius: ${ji};
561
+ }
562
+
563
+ .ft-button--round {
564
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
565
+ }
566
+
567
+ .ft-button[disabled] {
568
+ filter: grayscale(1);
569
+ opacity: ${Mi.opacityDisabled};
570
+ }
571
+
572
+ .ft-button.ft-button--primary {
573
+ background-color: ${Fi.backgroundColor};
574
+ --ft-button-internal-color: ${Fi.color};
575
+ ${ft(Rt.color,Fi.rippleColor)};
576
+ }
577
+
578
+ .ft-button.ft-button--outlined {
579
+ border: 1px solid var(--ft-button-internal-color);
580
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
581
+ }
582
+
583
+ .ft-button:focus {
584
+ outline: none;
585
+ }
586
+
587
+ .ft-button--label {
588
+ position: relative;
589
+ overflow: hidden;
590
+ white-space: nowrap;
591
+ text-overflow: ellipsis;
592
+ display: block;
593
+ margin: 0 var(--ft-button-internal-horizontal-padding);
594
+ ${ft(Je.fontSize,"1em")};
595
+ ${ft(Je.lineHeight,"var(--ft-button-internal-content-height)")};
596
+ }
597
+
598
+ .ft-button--safari-fix .ft-button--label {
599
+ margin-right: 0;
600
+ }
601
+
602
+ .ft-button--safari-fix .ft-button--label:after {
603
+ content: "\\0000a0";
604
+ display: inline-block;
605
+ width: 0;
606
+ }
607
+
608
+ .ft-button--label[hidden] {
609
+ display: none;
610
+ }
611
+
612
+ ft-icon {
613
+ flex-shrink: 0;
614
+ position: relative;
615
+ }
616
+
617
+ .ft-button--label[hidden] + ft-icon {
618
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
619
+ padding: 0 var(--ft-button-internal-vertical-padding);
620
+ }
621
+
622
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
623
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
624
+ order: -1;
625
+ }
626
+
627
+ ft-loader {
628
+ ${ft(bi.size,Mi.iconSize)};
629
+ ${ft(bi.color,"var(--ft-button-internal-color)")};
630
+ }
631
+ `];var Ti=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bi extends vt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ni.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":wt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(H`
632
+ <button part="button"
633
+ class="${Ct(t)}"
634
+ aria-label="${this.getLabel()}"
635
+ ?disabled=${this.isDisabled()}>
636
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
637
+ <ft-typography part="label"
638
+ variant="button"
639
+ class="ft-button--label"
640
+ ?hidden=${!this.hasTextContent()}>
641
+ <slot @slotchange=${this.onSlotchange}></slot>
642
+ </ft-typography>
643
+ ${this.resolveIcon()}
644
+ </button>
645
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?H`
646
+ <ft-tooltip part="tooltip"
647
+ text="${this.getLabel()}"
648
+ position="${this.tooltipPosition}">
649
+ ${t}
650
+ </ft-tooltip>
651
+ `:t}resolveIcon(){return this.loading?H`
652
+ <ft-loader></ft-loader> `:this.icon?H`
653
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Z}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Bi.elementDefinitions={"ft-ripple":Lt,"ft-tooltip":yi,"ft-typography":ai,"ft-icon":Ei,"ft-loader":gi},Bi.styles=Ui,Ti([o({type:Boolean})],Bi.prototype,"primary",void 0),Ti([o({type:Boolean})],Bi.prototype,"outlined",void 0),Ti([o({type:Boolean})],Bi.prototype,"disabled",void 0),Ti([o({type:Boolean})],Bi.prototype,"dense",void 0),Ti([o({type:Boolean})],Bi.prototype,"round",void 0),Ti([o({type:String})],Bi.prototype,"label",void 0),Ti([o({type:String})],Bi.prototype,"icon",void 0),Ti([o({type:String})],Bi.prototype,"iconVariant",void 0),Ti([o({type:Boolean})],Bi.prototype,"trailingIcon",void 0),Ti([o({type:Boolean})],Bi.prototype,"loading",void 0),Ti([o({type:String})],Bi.prototype,"tooltipPosition",void 0),Ti([o({type:Boolean})],Bi.prototype,"hideTooltip",void 0),Ti([o({type:Boolean})],Bi.prototype,"forceTooltip",void 0),Ti([s(".ft-button")],Bi.prototype,"button",void 0),Ti([s(".ft-button--label slot")],Bi.prototype,"slottedContent",void 0),h("ft-button")(Bi);var Ai=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Li extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Pi extends bt{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Li)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Ai([n()],Pi.prototype,"stateManager",void 0);const _i=ct.extend("--ft-reader-internal-link-outline-color",dt.colorPrimary),Di=y`
654
+ a:focus {
655
+ outline-color: ${_i};
656
+ }
657
+
658
+ .ft-reader-link--remove-style {
659
+ text-decoration: none;
660
+ color: inherit;
661
+ }
662
+ `;var Ii=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends Pi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ct({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return H`
663
+ <a class=${e}
664
+ href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
665
+ @click=${t=>this.onClick(t)}>
666
+ <slot></slot>
667
+ </a>
668
+ `}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)))}}Wi.styles=Di,Ii([o()],Wi.prototype,"tocId",void 0),Ii([o()],Wi.prototype,"section",void 0),Ii([o({type:Number})],Wi.prototype,"pageNumber",void 0),Ii([o({type:Boolean})],Wi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Wi);var Hi,Ki,Zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vi extends Pi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Ni.fluid_topics,this.trailingIcon=!1,this.keepVisible=!1}get isReady(){return null!=this.currentPage}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?$i.THIN_ARROW_RIGHT:$i.THIN_ARROW_LEFT}render(){var t,e,i,o,n;return null!=this.targetPage||this.keepVisible?H`
669
+ <ft-reader-internal-link .tocId=${null===(t=this.targetPage)||void 0===t?void 0:t.rootTocId}>
670
+ <ft-button ?forceTooltip=${!this.hideTooltip}
671
+ ?hideTooltip=${this.hideTooltip}
672
+ ?trailingIcon=${this.trailingIcon}
673
+ .label=${null!==(i=null===(e=this.targetPage)||void 0===e?void 0:e.title)&&void 0!==i?i:""}
674
+ .tooltipPosition=${this.tooltipPosition}
675
+ .iconVariant=${this.iconVariant}
676
+ .icon=${null!==(o=this.icon)&&void 0!==o?o:this.defaultIcon}>
677
+ ${null!==(n=this.content)&&void 0!==n?n:this.defaultContent}
678
+ </ft-button>
679
+ </ft-reader-internal-link>
680
+ `:Z}update(t){super.update(t),t.has("currentPage")&&this.updateTarget()}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0}}Vi.elementDefinitions={"ft-button":Bi,"ft-reader-internal-link":Wi},Vi.styles=$t,Zi([o()],Vi.prototype,"target",void 0),Zi([o()],Vi.prototype,"content",void 0),Zi([o()],Vi.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Vi.prototype,"hideTooltip",void 0),Zi([o()],Vi.prototype,"iconVariant",void 0),Zi([o()],Vi.prototype,"icon",void 0),Zi([o({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Zi([o({type:Boolean,attribute:!1})],Vi.prototype,"keepVisible",void 0),Zi([(t,e)=>{t.constructor.createProperty(e,{attribute:!1,hasChanged:null!=Ki?Ki:(t,e)=>!p(t,e)});const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,null!=Hi?Hi:t=>t[e])}],Vi.prototype,"currentPage",void 0),Zi([n()],Vi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Vi),t.FtReaderNavigationButton=Vi,t.FtReaderNavigationButtonCssVariables={},t.styles=$t,Object.defineProperty(t,"i",{value:!0})}({});