@fluid-topics/ft-reader-toc 0.3.54 → 0.3.55

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.
@@ -513,17 +513,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
513
513
  ${e.setVariable(ee.fontSize,"1em")};
514
514
  ${e.setVariable(ee.lineHeight,"var(--ft-button-internal-content-height)")};
515
515
  }
516
-
517
- .ft-button--safari-fix .ft-button--label {
518
- margin-right: 0;
519
- }
520
-
521
- .ft-button--safari-fix .ft-button--label:after {
522
- content: "\\0000a0";
523
- display: inline-block;
524
- width: 0;
525
- }
526
-
516
+
527
517
  .ft-button--label[hidden] {
528
518
  display: none;
529
519
  }
@@ -547,7 +537,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
547
537
  ${e.setVariable(Ge.size,qe.iconSize)};
548
538
  ${e.setVariable(Ge.color,"var(--ft-button-internal-color)")};
549
539
  }
550
- `];var ei,ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi extends e.FtLitElement{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=ke.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":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
540
+ `];var ei,ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi extends e.FtLitElement{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=ke.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-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
551
541
  <button part="button"
552
542
  class="${n.classMap(t)}"
553
543
  aria-label="${this.getLabel()}"
@@ -556,7 +546,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
556
546
  <ft-typography part="label"
557
547
  variant="button"
558
548
  element="span"
559
- class="ft-button--label"
549
+ class="ft-button--label ${e.isSafari?"ft-safari-ellipsis-fix":""}"
560
550
  ?hidden=${!this.hasTextContent()}>
561
551
  <slot @slotchange=${this.onSlotchange}></slot>
562
552
  </ft-typography>
@@ -570,7 +560,7 @@ const G=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
570
560
  </ft-tooltip>
571
561
  `:t}resolveIcon(){return this.loading?i.html`
572
562
  <ft-loader></ft-loader> `:this.icon?i.html`
573
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}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}}oi.elementDefinitions={"ft-ripple":Le,"ft-tooltip":He,"ft-typography":ue,"ft-icon":Ce,"ft-loader":Ve},oi.styles=ti,ii([r.property({type:Boolean})],oi.prototype,"primary",void 0),ii([r.property({type:Boolean})],oi.prototype,"outlined",void 0),ii([r.property({type:Boolean})],oi.prototype,"disabled",void 0),ii([r.property({type:Boolean})],oi.prototype,"dense",void 0),ii([r.property({type:Boolean})],oi.prototype,"round",void 0),ii([r.property({type:String})],oi.prototype,"label",void 0),ii([r.property({type:String})],oi.prototype,"icon",void 0),ii([r.property({type:String})],oi.prototype,"iconVariant",void 0),ii([r.property({type:Boolean})],oi.prototype,"trailingIcon",void 0),ii([r.property({type:Boolean})],oi.prototype,"loading",void 0),ii([r.property({type:String})],oi.prototype,"tooltipPosition",void 0),ii([r.property({type:Boolean})],oi.prototype,"hideTooltip",void 0),ii([r.property({type:Boolean})],oi.prototype,"forceTooltip",void 0),ii([r.query(".ft-button")],oi.prototype,"button",void 0),ii([r.query(".ft-button--label slot")],oi.prototype,"slottedContent",void 0),e.customElement("ft-button")(oi),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ei||(ei={}));const ni=i.css`
563
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}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}}oi.elementDefinitions={"ft-ripple":Le,"ft-tooltip":He,"ft-typography":ue,"ft-icon":Ce,"ft-loader":Ve},oi.styles=[e.safariEllipsisFix,ti],ii([r.property({type:Boolean})],oi.prototype,"primary",void 0),ii([r.property({type:Boolean})],oi.prototype,"outlined",void 0),ii([r.property({type:Boolean})],oi.prototype,"disabled",void 0),ii([r.property({type:Boolean})],oi.prototype,"dense",void 0),ii([r.property({type:Boolean})],oi.prototype,"round",void 0),ii([r.property({type:String})],oi.prototype,"label",void 0),ii([r.property({type:String})],oi.prototype,"icon",void 0),ii([r.property({type:String})],oi.prototype,"iconVariant",void 0),ii([r.property({type:Boolean})],oi.prototype,"trailingIcon",void 0),ii([r.property({type:Boolean})],oi.prototype,"loading",void 0),ii([r.property({type:String})],oi.prototype,"tooltipPosition",void 0),ii([r.property({type:Boolean})],oi.prototype,"hideTooltip",void 0),ii([r.property({type:Boolean})],oi.prototype,"forceTooltip",void 0),ii([r.query(".ft-button")],oi.prototype,"button",void 0),ii([r.query(".ft-button--label slot")],oi.prototype,"slottedContent",void 0),e.customElement("ft-button")(oi),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ei||(ei={}));const ni=i.css`
574
564
  .ft-size-watcher--pixel {
575
565
  width: 0;
576
566
  height: 0;
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,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||[]);d(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 c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)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,c=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},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(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)}},d=(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)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(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 x=(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}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(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(b(Element,"innerHTML"),b(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($i){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,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||[]);d(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 c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)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,c=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},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(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)}},d=(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)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(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 x=(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}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(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(b(Element,"innerHTML"),b(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(Oi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -92,154 +92,165 @@ var ft,ut;class vt extends z{constructor(){super(...arguments),this.renderOption
92
92
  -webkit-hyphens: auto;
93
93
  hyphens: auto
94
94
  }
95
- `;class Ot{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}\\}`,"g"),t))),n}}const St=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),kt=(t,e)=>{var i;const o=St(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!p(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r=St(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}};class Ct extends wt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Nt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Nt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Nt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Et,zt,Rt;const Mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Rt=null===(zt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===zt?void 0:zt.toString())&&void 0!==Rt?Rt:""),jt=1,At=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});
95
+ `;const Ot=b`
96
+ .ft-safari-ellipsis-fix {
97
+ margin-right: 0;
98
+
99
+ }
100
+
101
+ .ft-safari-ellipsis-fix:after {
102
+ content: "\\0000a0";
103
+ display: inline-block;
104
+ width: 0;
105
+ }
106
+ `;class St{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const kt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),Ct=(t,e)=>{var i;const o=kt(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!p(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r=kt(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}};class Nt extends wt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Et(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Et(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Et(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var zt,Rt,Mt;const jt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(Rt=null===(zt=window.safari)||void 0===zt?void 0:zt.pushNotification)||void 0===Rt?void 0:Rt.toString())&&void 0!==Mt?Mt:""),At=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});
96
107
  /**
97
108
  * @license
98
109
  * Copyright 2017 Google LLC
99
110
  * SPDX-License-Identifier: BSD-3-Clause
100
- */class Ft{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)}}
111
+ */class Lt{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)}}
101
112
  /**
102
113
  * @license
103
114
  * Copyright 2020 Google LLC
104
115
  * SPDX-License-Identifier: BSD-3-Clause
105
- */const{I:Lt}=pt,Bt=()=>document.createComment(""),Tt=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Bt(),r),o=n.insertBefore(Bt(),r);i=new Lt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},It=(t,e,i=t)=>(t._$AI(e,i),t),Pt={},_t=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Dt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Wt=Ut(class extends Ft{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let c,p,d=0,f=r.length-1,u=0,v=s.length-1;for(;d<=f&&u<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[u])h[u]=It(r[d],s[u]),d++,u++;else if(l[f]===a[v])h[v]=It(r[f],s[v]),f--,v--;else if(l[d]===a[v])h[v]=It(r[d],s[v]),Tt(t,h[v+1],r[d]),d++,v--;else if(l[f]===a[u])h[u]=It(r[f],s[u]),Tt(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=Dt(a,u,v),p=Dt(l,d,f)),c.has(l[d]))if(c.has(l[f])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Tt(t,r[d]);It(e,s[u]),h[u]=e}else h[u]=It(i,s[u]),Tt(t,r[d],i),r[e]=null;u++}else _t(r[f]),f--;else _t(r[d]),d++;for(;u<=v;){const e=Tt(t,h[v+1]);It(e,s[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&_t(t)}return this.ut=a,((t,e=Pt)=>{t._$AH=e})(t,h),q}}),Ht=Ut(class extends Ft{constructor(t){var e;if(super(t),t.type!==jt||"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 q}}),Kt=Ut(class extends Ft{constructor(t){var e;if(super(t),t.type!==jt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const o=e[t];null!=o&&(this.vt.add(t),t.includes("-")?i.setProperty(t,o):i[t]=o)}return q}});
116
+ */const{I:Bt}=pt,Tt=()=>document.createComment(""),It=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Tt(),r),o=n.insertBefore(Tt(),r);i=new Bt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},Pt=(t,e,i=t)=>(t._$AI(e,i),t),_t={},Dt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Wt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ht=Ft(class extends Lt{constructor(t){if(super(t),t.type!==Ut)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let c,p,d=0,f=r.length-1,u=0,v=s.length-1;for(;d<=f&&u<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[u])h[u]=Pt(r[d],s[u]),d++,u++;else if(l[f]===a[v])h[v]=Pt(r[f],s[v]),f--,v--;else if(l[d]===a[v])h[v]=Pt(r[d],s[v]),It(t,h[v+1],r[d]),d++,v--;else if(l[f]===a[u])h[u]=Pt(r[f],s[u]),It(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=Wt(a,u,v),p=Wt(l,d,f)),c.has(l[d]))if(c.has(l[f])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=It(t,r[d]);Pt(e,s[u]),h[u]=e}else h[u]=Pt(i,s[u]),It(t,r[d],i),r[e]=null;u++}else Dt(r[f]),f--;else Dt(r[d]),d++;for(;u<=v;){const e=It(t,h[v+1]);Pt(e,s[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&Dt(t)}return this.ut=a,((t,e=_t)=>{t._$AH=e})(t,h),q}}),Kt=Ft(class extends Lt{constructor(t){var e;if(super(t),t.type!==At||"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 q}}),Zt=Ft(class extends Lt{constructor(t){var e;if(super(t),t.type!==At||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const o=e[t];null!=o&&(this.vt.add(t),t.includes("-")?i.setProperty(t,o):i[t]=o)}return q}});
106
117
  /**
107
118
  * @license
108
119
  * Copyright 2017 Google LLC
109
120
  * SPDX-License-Identifier: BSD-3-Clause
110
- */var Zt=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 Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Xt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Vt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Zt([n()],e.prototype,"stateManager",void 0),e}(Ct)){}
121
+ */var Vt=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 Xt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Jt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Xt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Vt([n()],e.prototype,"stateManager",void 0),e}(Nt)){}
111
122
  /**
112
123
  * @license
113
124
  * Copyright 2020 Google LLC
114
125
  * SPDX-License-Identifier: BSD-3-Clause
115
- */const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Yt=t=>({_$litStatic$:t,r:Jt}),Gt=new Map,Qt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=qt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Gt.get(t))&&(s.raw=s,Gt.set(t,e=s)),i=a}return t(e,...i)})(J);var te;!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"}(te||(te={}));const ee=xt.extend("--ft-typography-font-family",gt.titleFont),ie=xt.extend("--ft-typography-font-family",gt.contentFont),oe={fontFamily:ie,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ne=xt.extend("--ft-typography-title-font-family",ee),re=xt.extend("--ft-typography-title-font-size",oe.fontSize,"20px"),se=xt.extend("--ft-typography-title-font-weight",oe.fontWeight,"normal"),ae=xt.extend("--ft-typography-title-letter-spacing",oe.letterSpacing,"0.15px"),le=xt.extend("--ft-typography-title-line-height",oe.lineHeight,"1.2"),he=xt.extend("--ft-typography-title-text-transform",oe.textTransform,"inherit"),ce=xt.extend("--ft-typography-title-dense-font-family",ee),pe=xt.extend("--ft-typography-title-dense-font-size",oe.fontSize,"14px"),de=xt.extend("--ft-typography-title-dense-font-weight",oe.fontWeight,"normal"),fe=xt.extend("--ft-typography-title-dense-letter-spacing",oe.letterSpacing,"0.105px"),ue=xt.extend("--ft-typography-title-dense-line-height",oe.lineHeight,"1.7"),ve=xt.extend("--ft-typography-title-dense-text-transform",oe.textTransform,"inherit"),ye=xt.extend("--ft-typography-subtitle1-font-family",ie),xe=xt.extend("--ft-typography-subtitle1-font-size",oe.fontSize,"16px"),be=xt.extend("--ft-typography-subtitle1-font-weight",oe.fontWeight,"600"),ge=xt.extend("--ft-typography-subtitle1-letter-spacing",oe.letterSpacing,"0.144px"),me=xt.extend("--ft-typography-subtitle1-line-height",oe.lineHeight,"1.5"),we=xt.extend("--ft-typography-subtitle1-text-transform",oe.textTransform,"inherit"),$e=xt.extend("--ft-typography-subtitle2-font-family",ie),Oe=xt.extend("--ft-typography-subtitle2-font-size",oe.fontSize,"14px"),Se=xt.extend("--ft-typography-subtitle2-font-weight",oe.fontWeight,"normal"),ke=xt.extend("--ft-typography-subtitle2-letter-spacing",oe.letterSpacing,"0.098px"),Ce=xt.extend("--ft-typography-subtitle2-line-height",oe.lineHeight,"1.7"),Ne=xt.extend("--ft-typography-subtitle2-text-transform",oe.textTransform,"inherit"),Ee=xt.extend("--ft-typography-body1-font-family",ie),ze=xt.extend("--ft-typography-body1-font-size",oe.fontSize,"16px"),Re=xt.extend("--ft-typography-body1-font-weight",oe.fontWeight,"normal"),Me=xt.extend("--ft-typography-body1-letter-spacing",oe.letterSpacing,"0.496px"),je=xt.extend("--ft-typography-body1-line-height",oe.lineHeight,"1.5"),Ae=xt.extend("--ft-typography-body1-text-transform",oe.textTransform,"inherit"),Ue=xt.extend("--ft-typography-body2-font-family",ie),Fe=xt.extend("--ft-typography-body2-font-size",oe.fontSize,"14px"),Le=xt.extend("--ft-typography-body2-font-weight",oe.fontWeight,"normal"),Be=xt.extend("--ft-typography-body2-letter-spacing",oe.letterSpacing,"0.252px"),Te=xt.extend("--ft-typography-body2-line-height",oe.lineHeight,"1.4"),Ie=xt.extend("--ft-typography-body2-text-transform",oe.textTransform,"inherit"),Pe=xt.extend("--ft-typography-caption-font-family",ie),_e=xt.extend("--ft-typography-caption-font-size",oe.fontSize,"12px"),De=xt.extend("--ft-typography-caption-font-weight",oe.fontWeight,"normal"),We=xt.extend("--ft-typography-caption-letter-spacing",oe.letterSpacing,"0.396px"),He=xt.extend("--ft-typography-caption-line-height",oe.lineHeight,"1.33"),Ke=xt.extend("--ft-typography-caption-text-transform",oe.textTransform,"inherit"),Ze=xt.extend("--ft-typography-breadcrumb-font-family",ie),Ve=xt.extend("--ft-typography-breadcrumb-font-size",oe.fontSize,"10px"),Xe=xt.extend("--ft-typography-breadcrumb-font-weight",oe.fontWeight,"normal"),Je=xt.extend("--ft-typography-breadcrumb-letter-spacing",oe.letterSpacing,"0.33px"),qe=xt.extend("--ft-typography-breadcrumb-line-height",oe.lineHeight,"1.6"),Ye=xt.extend("--ft-typography-breadcrumb-text-transform",oe.textTransform,"inherit"),Ge=xt.extend("--ft-typography-overline-font-family",ie),Qe=xt.extend("--ft-typography-overline-font-size",oe.fontSize,"10px"),ti=xt.extend("--ft-typography-overline-font-weight",oe.fontWeight,"normal"),ei=xt.extend("--ft-typography-overline-letter-spacing",oe.letterSpacing,"1.5px"),ii=xt.extend("--ft-typography-overline-line-height",oe.lineHeight,"1.6"),oi=xt.extend("--ft-typography-overline-text-transform",oe.textTransform,"uppercase"),ni={fontFamily:xt.extend("--ft-typography-button-font-family",ie),fontSize:xt.extend("--ft-typography-button-font-size",oe.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",oe.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",oe.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",oe.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",oe.textTransform,"uppercase")},ri=b`
126
+ */const qt=Symbol.for(""),Yt=t=>{if((null==t?void 0:t.r)===qt)return null==t?void 0:t._$litStatic$},Gt=t=>({_$litStatic$:t,r:qt}),Qt=new Map,te=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Yt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Qt.get(t))&&(s.raw=s,Qt.set(t,e=s)),i=a}return t(e,...i)})(J);var ee;!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"}(ee||(ee={}));const ie=xt.extend("--ft-typography-font-family",gt.titleFont),oe=xt.extend("--ft-typography-font-family",gt.contentFont),ne={fontFamily:oe,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},re=xt.extend("--ft-typography-title-font-family",ie),se=xt.extend("--ft-typography-title-font-size",ne.fontSize,"20px"),ae=xt.extend("--ft-typography-title-font-weight",ne.fontWeight,"normal"),le=xt.extend("--ft-typography-title-letter-spacing",ne.letterSpacing,"0.15px"),he=xt.extend("--ft-typography-title-line-height",ne.lineHeight,"1.2"),ce=xt.extend("--ft-typography-title-text-transform",ne.textTransform,"inherit"),pe=xt.extend("--ft-typography-title-dense-font-family",ie),de=xt.extend("--ft-typography-title-dense-font-size",ne.fontSize,"14px"),fe=xt.extend("--ft-typography-title-dense-font-weight",ne.fontWeight,"normal"),ue=xt.extend("--ft-typography-title-dense-letter-spacing",ne.letterSpacing,"0.105px"),ve=xt.extend("--ft-typography-title-dense-line-height",ne.lineHeight,"1.7"),ye=xt.extend("--ft-typography-title-dense-text-transform",ne.textTransform,"inherit"),xe=xt.extend("--ft-typography-subtitle1-font-family",oe),be=xt.extend("--ft-typography-subtitle1-font-size",ne.fontSize,"16px"),ge=xt.extend("--ft-typography-subtitle1-font-weight",ne.fontWeight,"600"),me=xt.extend("--ft-typography-subtitle1-letter-spacing",ne.letterSpacing,"0.144px"),we=xt.extend("--ft-typography-subtitle1-line-height",ne.lineHeight,"1.5"),$e=xt.extend("--ft-typography-subtitle1-text-transform",ne.textTransform,"inherit"),Oe=xt.extend("--ft-typography-subtitle2-font-family",oe),Se=xt.extend("--ft-typography-subtitle2-font-size",ne.fontSize,"14px"),ke=xt.extend("--ft-typography-subtitle2-font-weight",ne.fontWeight,"normal"),Ce=xt.extend("--ft-typography-subtitle2-letter-spacing",ne.letterSpacing,"0.098px"),Ne=xt.extend("--ft-typography-subtitle2-line-height",ne.lineHeight,"1.7"),Ee=xt.extend("--ft-typography-subtitle2-text-transform",ne.textTransform,"inherit"),ze=xt.extend("--ft-typography-body1-font-family",oe),Re=xt.extend("--ft-typography-body1-font-size",ne.fontSize,"16px"),Me=xt.extend("--ft-typography-body1-font-weight",ne.fontWeight,"normal"),je=xt.extend("--ft-typography-body1-letter-spacing",ne.letterSpacing,"0.496px"),Ae=xt.extend("--ft-typography-body1-line-height",ne.lineHeight,"1.5"),Ue=xt.extend("--ft-typography-body1-text-transform",ne.textTransform,"inherit"),Fe=xt.extend("--ft-typography-body2-font-family",oe),Le=xt.extend("--ft-typography-body2-font-size",ne.fontSize,"14px"),Be=xt.extend("--ft-typography-body2-font-weight",ne.fontWeight,"normal"),Te=xt.extend("--ft-typography-body2-letter-spacing",ne.letterSpacing,"0.252px"),Ie=xt.extend("--ft-typography-body2-line-height",ne.lineHeight,"1.4"),Pe=xt.extend("--ft-typography-body2-text-transform",ne.textTransform,"inherit"),_e=xt.extend("--ft-typography-caption-font-family",oe),De=xt.extend("--ft-typography-caption-font-size",ne.fontSize,"12px"),We=xt.extend("--ft-typography-caption-font-weight",ne.fontWeight,"normal"),He=xt.extend("--ft-typography-caption-letter-spacing",ne.letterSpacing,"0.396px"),Ke=xt.extend("--ft-typography-caption-line-height",ne.lineHeight,"1.33"),Ze=xt.extend("--ft-typography-caption-text-transform",ne.textTransform,"inherit"),Ve=xt.extend("--ft-typography-breadcrumb-font-family",oe),Xe=xt.extend("--ft-typography-breadcrumb-font-size",ne.fontSize,"10px"),Je=xt.extend("--ft-typography-breadcrumb-font-weight",ne.fontWeight,"normal"),qe=xt.extend("--ft-typography-breadcrumb-letter-spacing",ne.letterSpacing,"0.33px"),Ye=xt.extend("--ft-typography-breadcrumb-line-height",ne.lineHeight,"1.6"),Ge=xt.extend("--ft-typography-breadcrumb-text-transform",ne.textTransform,"inherit"),Qe=xt.extend("--ft-typography-overline-font-family",oe),ti=xt.extend("--ft-typography-overline-font-size",ne.fontSize,"10px"),ei=xt.extend("--ft-typography-overline-font-weight",ne.fontWeight,"normal"),ii=xt.extend("--ft-typography-overline-letter-spacing",ne.letterSpacing,"1.5px"),oi=xt.extend("--ft-typography-overline-line-height",ne.lineHeight,"1.6"),ni=xt.extend("--ft-typography-overline-text-transform",ne.textTransform,"uppercase"),ri={fontFamily:xt.extend("--ft-typography-button-font-family",oe),fontSize:xt.extend("--ft-typography-button-font-size",ne.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",ne.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",ne.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",ne.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",ne.textTransform,"uppercase")},si=b`
116
127
  .ft-typography--title {
117
- font-family: ${ne};
118
- font-size: ${re};
119
- font-weight: ${se};
120
- letter-spacing: ${ae};
121
- line-height: ${le};
122
- text-transform: ${he};
123
- }
124
- `,si=b`
125
- .ft-typography--title-dense {
126
- font-family: ${ce};
127
- font-size: ${pe};
128
- font-weight: ${de};
129
- letter-spacing: ${fe};
130
- line-height: ${ue};
131
- text-transform: ${ve};
128
+ font-family: ${re};
129
+ font-size: ${se};
130
+ font-weight: ${ae};
131
+ letter-spacing: ${le};
132
+ line-height: ${he};
133
+ text-transform: ${ce};
132
134
  }
133
135
  `,ai=b`
134
- .ft-typography--subtitle1 {
135
- font-family: ${ye};
136
- font-size: ${xe};
137
- font-weight: ${be};
138
- letter-spacing: ${ge};
139
- line-height: ${me};
140
- text-transform: ${we};
136
+ .ft-typography--title-dense {
137
+ font-family: ${pe};
138
+ font-size: ${de};
139
+ font-weight: ${fe};
140
+ letter-spacing: ${ue};
141
+ line-height: ${ve};
142
+ text-transform: ${ye};
141
143
  }
142
144
  `,li=b`
143
- .ft-typography--subtitle2 {
144
- font-family: ${$e};
145
- font-size: ${Oe};
146
- font-weight: ${Se};
147
- letter-spacing: ${ke};
148
- line-height: ${Ce};
149
- text-transform: ${Ne};
145
+ .ft-typography--subtitle1 {
146
+ font-family: ${xe};
147
+ font-size: ${be};
148
+ font-weight: ${ge};
149
+ letter-spacing: ${me};
150
+ line-height: ${we};
151
+ text-transform: ${$e};
150
152
  }
151
-
152
153
  `,hi=b`
153
- .ft-typography--body1 {
154
- font-family: ${Ee};
155
- font-size: ${ze};
156
- font-weight: ${Re};
157
- letter-spacing: ${Me};
158
- line-height: ${je};
159
- text-transform: ${Ae};
154
+ .ft-typography--subtitle2 {
155
+ font-family: ${Oe};
156
+ font-size: ${Se};
157
+ font-weight: ${ke};
158
+ letter-spacing: ${Ce};
159
+ line-height: ${Ne};
160
+ text-transform: ${Ee};
160
161
  }
162
+
161
163
  `,ci=b`
162
- .ft-typography--body2 {
163
- font-family: ${Ue};
164
- font-size: ${Fe};
165
- font-weight: ${Le};
166
- letter-spacing: ${Be};
167
- line-height: ${Te};
168
- text-transform: ${Ie};
164
+ .ft-typography--body1 {
165
+ font-family: ${ze};
166
+ font-size: ${Re};
167
+ font-weight: ${Me};
168
+ letter-spacing: ${je};
169
+ line-height: ${Ae};
170
+ text-transform: ${Ue};
169
171
  }
170
172
  `,pi=b`
171
- .ft-typography--caption {
172
- font-family: ${Pe};
173
- font-size: ${_e};
174
- font-weight: ${De};
175
- letter-spacing: ${We};
176
- line-height: ${He};
177
- text-transform: ${Ke};
173
+ .ft-typography--body2 {
174
+ font-family: ${Fe};
175
+ font-size: ${Le};
176
+ font-weight: ${Be};
177
+ letter-spacing: ${Te};
178
+ line-height: ${Ie};
179
+ text-transform: ${Pe};
178
180
  }
179
181
  `,di=b`
180
- .ft-typography--breadcrumb {
181
- font-family: ${Ze};
182
- font-size: ${Ve};
183
- font-weight: ${Xe};
184
- letter-spacing: ${Je};
185
- line-height: ${qe};
186
- text-transform: ${Ye};
182
+ .ft-typography--caption {
183
+ font-family: ${_e};
184
+ font-size: ${De};
185
+ font-weight: ${We};
186
+ letter-spacing: ${He};
187
+ line-height: ${Ke};
188
+ text-transform: ${Ze};
187
189
  }
188
190
  `,fi=b`
189
- .ft-typography--overline {
190
- font-family: ${Ge};
191
- font-size: ${Qe};
192
- font-weight: ${ti};
193
- letter-spacing: ${ei};
194
- line-height: ${ii};
195
- text-transform: ${oi};
191
+ .ft-typography--breadcrumb {
192
+ font-family: ${Ve};
193
+ font-size: ${Xe};
194
+ font-weight: ${Je};
195
+ letter-spacing: ${qe};
196
+ line-height: ${Ye};
197
+ text-transform: ${Ge};
196
198
  }
197
199
  `,ui=b`
198
- .ft-typography--button {
199
- font-family: ${ni.fontFamily};
200
- font-size: ${ni.fontSize};
201
- font-weight: ${ni.fontWeight};
202
- letter-spacing: ${ni.letterSpacing};
203
- line-height: ${ni.lineHeight};
204
- text-transform: ${ni.textTransform};
200
+ .ft-typography--overline {
201
+ font-family: ${Qe};
202
+ font-size: ${ti};
203
+ font-weight: ${ei};
204
+ letter-spacing: ${ii};
205
+ line-height: ${oi};
206
+ text-transform: ${ni};
205
207
  }
206
208
  `,vi=b`
209
+ .ft-typography--button {
210
+ font-family: ${ri.fontFamily};
211
+ font-size: ${ri.fontSize};
212
+ font-weight: ${ri.fontWeight};
213
+ letter-spacing: ${ri.letterSpacing};
214
+ line-height: ${ri.lineHeight};
215
+ text-transform: ${ri.textTransform};
216
+ }
217
+ `,yi=b`
207
218
  .ft-typography {
208
219
  vertical-align: inherit;
209
220
  }
210
- `;var yi=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 xi extends wt{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?Qt`
211
- <${Yt(this.element)}
221
+ `;var xi=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 wt{constructor(){super(...arguments),this.variant=ee.body1}render(){return this.element?te`
222
+ <${Gt(this.element)}
212
223
  class="ft-typography ft-typography--${this.variant}">
213
224
  <slot></slot>
214
- </${Yt(this.element)}>
215
- `:Qt`
225
+ </${Gt(this.element)}>
226
+ `:te`
216
227
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
217
- `}}xi.styles=[ri,si,ai,li,hi,ci,pi,di,fi,ui,vi],yi([o()],xi.prototype,"element",void 0),yi([o()],xi.prototype,"variant",void 0),h("ft-typography")(xi);const bi=xt.extend("--ft-reader-internal-link-outline-color",gt.colorPrimary),gi=b`
228
+ `}}bi.styles=[si,ai,li,hi,ci,pi,di,fi,ui,vi,yi],xi([o()],bi.prototype,"element",void 0),xi([o()],bi.prototype,"variant",void 0),h("ft-typography")(bi);const gi=xt.extend("--ft-reader-internal-link-outline-color",gt.colorPrimary),mi=b`
218
229
  :host {
219
230
  display: contents;
220
231
  }
221
232
 
222
233
  a:focus {
223
- outline-color: ${bi};
234
+ outline-color: ${gi};
224
235
  }
225
236
 
226
237
  .ft-reader-link--remove-style {
227
238
  text-decoration: none;
228
239
  color: inherit;
229
240
  }
230
- `;var mi=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 Xt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ht({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return J`
241
+ `;var wi=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 $i extends Jt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Kt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return J`
231
242
  <a class=${e}
232
243
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
233
244
  @click=${t=>this.onLinkClick(t)}>
234
245
  <slot></slot>
235
246
  </a>
236
- `}onLinkClick(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)),this.click())}}wi.styles=gi,mi([o()],wi.prototype,"tocId",void 0),mi([o()],wi.prototype,"section",void 0),mi([o({type:Number})],wi.prototype,"pageNumber",void 0),mi([o({type:Boolean})],wi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(wi);
247
+ `}onLinkClick(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)),this.click())}}$i.styles=mi,wi([o()],$i.prototype,"tocId",void 0),wi([o()],$i.prototype,"section",void 0),wi([o({type:Number})],$i.prototype,"pageNumber",void 0),wi([o({type:Boolean})],$i.prototype,"removeStyle",void 0),h("ft-reader-internal-link")($i);
237
248
  /**
238
249
  * @license
239
250
  * Copyright 2017 Google LLC
240
251
  * SPDX-License-Identifier: BSD-3-Clause
241
252
  */
242
- class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this._t=void 0,this.it=t;if(t===q)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:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=Ut($i);var Si,ki;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_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="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(Si||(Si={})),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;"}(ki||(ki={})),new Map([...["abw"].map((t=>[t,ki.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,ki.AUDIO])),...["avi"].map((t=>[t,ki.AVI])),...["chm","xhs"].map((t=>[t,ki.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,ki.CODE])),...["csv"].map((t=>[t,ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ki.DITA])),...["epub"].map((t=>[t,ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ki.EXCEL])),...["flac"].map((t=>[t,ki.FLAC])),...["gif"].map((t=>[t,ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,ki.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,ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ki.JPEG])),...["json"].map((t=>[t,ki.JSON])),...["m4a","m4p"].map((t=>[t,ki.M4A])),...["mov","qt"].map((t=>[t,ki.MOV])),...["mp3"].map((t=>[t,ki.MP3])),...["mp4","m4v"].map((t=>[t,ki.MP4])),...["ogg","oga"].map((t=>[t,ki.OGG])),...["pdf","ps"].map((t=>[t,ki.PDF])),...["png"].map((t=>[t,ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ki.POWERPOINT])),...["rar"].map((t=>[t,ki.RAR])),...["stp"].map((t=>[t,ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ki.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,ki.VIDEO])),...["wav"].map((t=>[t,ki.WAV])),...["wma"].map((t=>[t,ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ki.YAML])),...["zip"].map((t=>[t,ki.ZIP]))]);const Ci={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=b`
253
+ class Oi extends Lt{constructor(t){if(super(t),this.it=Y,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this._t=void 0,this.it=t;if(t===q)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:[]}}}Oi.directiveName="unsafeHTML",Oi.resultType=1;const Si=Ft(Oi);var ki,Ci;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_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="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ki||(ki={})),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;"}(Ci||(Ci={})),new Map([...["abw"].map((t=>[t,Ci.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,Ci.AUDIO])),...["avi"].map((t=>[t,Ci.AVI])),...["chm","xhs"].map((t=>[t,Ci.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,Ci.CODE])),...["csv"].map((t=>[t,Ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ci.DITA])),...["epub"].map((t=>[t,Ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ci.EXCEL])),...["flac"].map((t=>[t,Ci.FLAC])),...["gif"].map((t=>[t,Ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ci.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,Ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ci.JPEG])),...["json"].map((t=>[t,Ci.JSON])),...["m4a","m4p"].map((t=>[t,Ci.M4A])),...["mov","qt"].map((t=>[t,Ci.MOV])),...["mp3"].map((t=>[t,Ci.MP3])),...["mp4","m4v"].map((t=>[t,Ci.MP4])),...["ogg","oga"].map((t=>[t,Ci.OGG])),...["pdf","ps"].map((t=>[t,Ci.PDF])),...["png"].map((t=>[t,Ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ci.POWERPOINT])),...["rar"].map((t=>[t,Ci.RAR])),...["stp"].map((t=>[t,Ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ci.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,Ci.VIDEO])),...["wav"].map((t=>[t,Ci.WAV])),...["wma"].map((t=>[t,Ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ci.YAML])),...["zip"].map((t=>[t,Ci.ZIP]))]);const Ni={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ei=b`
243
254
  :host, i.ft-icon {
244
255
  display: inline-flex;
245
256
  align-items: center;
@@ -248,14 +259,14 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
248
259
  }
249
260
 
250
261
  :host {
251
- width: ${Ci.size};
252
- height: ${Ci.size};
262
+ width: ${Ni.size};
263
+ height: ${Ni.size};
253
264
  }
254
265
 
255
266
  i.ft-icon {
256
267
  width: 100%;
257
268
  height: 100%;
258
- font-size: ${Ci.size};
269
+ font-size: ${Ni.size};
259
270
  line-height: 1;
260
271
  font-weight: normal;
261
272
  text-transform: none;
@@ -266,32 +277,32 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
266
277
  text-rendering: auto;
267
278
  -webkit-font-smoothing: antialiased;
268
279
  -moz-osx-font-smoothing: grayscale;
269
- vertical-align: ${Ci.verticalAlign};
280
+ vertical-align: ${Ni.verticalAlign};
270
281
  }
271
282
 
272
283
  i.ft-icon.ft-icon--fluid-topics {
273
- font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
284
+ font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
274
285
 
275
286
  /* Ugly fix because font is broken */
276
- font-size: calc(0.9 * ${Ci.size});
287
+ font-size: calc(0.9 * ${Ni.size});
277
288
  position: relative;
278
289
  top: -5%;
279
290
  justify-content: center;
280
291
  }
281
292
 
282
293
  .ft-icon--file-format {
283
- font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
294
+ font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
284
295
  }
285
296
 
286
297
  .ft-icon--material {
287
- font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
298
+ font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
288
299
  }
289
- `;var Ei;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ei||(Ei={}));var 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 Ri extends wt{constructor(){super(...arguments),this.variant=Ei.fluid_topics,this.resolvedIcon=Y}render(){const t="material"!==this.variant||this.value;return J`
300
+ `;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Ri=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 Mi extends wt{constructor(){super(...arguments),this.variant=zi.fluid_topics,this.resolvedIcon=Y}render(){const t="material"!==this.variant||this.value;return J`
290
301
  <i class="ft-icon ${"ft-icon--"+this.variant}">
291
- ${Oi(this.resolvedIcon)}
302
+ ${Si(this.resolvedIcon)}
292
303
  <slot ?hidden=${t}></slot>
293
304
  </i>
294
- `}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 Ei.file_format:this.resolvedIcon=null!==(t=ki[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ei.fluid_topics:this.resolvedIcon=null!==(e=Si[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Ni,zi([o()],Ri.prototype,"variant",void 0),zi([o()],Ri.prototype,"value",void 0),zi([n()],Ri.prototype,"resolvedIcon",void 0),zi([s("slot")],Ri.prototype,"slottedContent",void 0),h("ft-icon")(Ri);const Mi=xt.extend("--ft-ripple-color",gt.colorContent),ji={color:Mi,backgroundColor:xt.extend("--ft-ripple-background-color",Mi),opacityContentOnSurfacePressed:xt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(gt.opacityContentOnSurfaceSelected,"Design system")},Ai=xt.extend("--ft-ripple-color",gt.colorPrimary),Ui=Ai,Fi=xt.extend("--ft-ripple-background-color",Ai),Li=xt.extend("--ft-ripple-color",gt.colorSecondary),Bi=Li,Ti=xt.extend("--ft-ripple-background-color",Li),Ii=b`
305
+ `}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 zi.file_format:this.resolvedIcon=null!==(t=Ci[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.fluid_topics:this.resolvedIcon=null!==(e=ki[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Mi.elementDefinitions={},Mi.styles=Ei,Ri([o()],Mi.prototype,"variant",void 0),Ri([o()],Mi.prototype,"value",void 0),Ri([n()],Mi.prototype,"resolvedIcon",void 0),Ri([s("slot")],Mi.prototype,"slottedContent",void 0),h("ft-icon")(Mi);const ji=xt.extend("--ft-ripple-color",gt.colorContent),Ai={color:ji,backgroundColor:xt.extend("--ft-ripple-background-color",ji),opacityContentOnSurfacePressed:xt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(gt.opacityContentOnSurfaceSelected,"Design system")},Ui=xt.extend("--ft-ripple-color",gt.colorPrimary),Fi=Ui,Li=xt.extend("--ft-ripple-background-color",Ui),Bi=xt.extend("--ft-ripple-color",gt.colorSecondary),Ti=Bi,Ii=xt.extend("--ft-ripple-background-color",Bi),Pi=b`
295
306
  :host {
296
307
  display: contents;
297
308
  }
@@ -313,27 +324,27 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
313
324
  }
314
325
 
315
326
  .ft-ripple .ft-ripple--background {
316
- background-color: ${ji.backgroundColor};
327
+ background-color: ${Ai.backgroundColor};
317
328
  }
318
329
 
319
330
  .ft-ripple .ft-ripple--effect {
320
- background-color: ${ji.color};
331
+ background-color: ${Ai.color};
321
332
  }
322
333
 
323
334
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
324
- background-color: ${Ti};
335
+ background-color: ${Ii};
325
336
  }
326
337
 
327
338
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
328
- background-color: ${Bi};
339
+ background-color: ${Ti};
329
340
  }
330
341
 
331
342
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
332
- background-color: ${Fi};
343
+ background-color: ${Li};
333
344
  }
334
345
 
335
346
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
336
- background-color: ${Ui};
347
+ background-color: ${Fi};
337
348
  }
338
349
 
339
350
  .ft-ripple .ft-ripple--background {
@@ -365,22 +376,22 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
365
376
  }
366
377
 
367
378
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
368
- opacity: ${ji.opacityContentOnSurfaceHover};
379
+ opacity: ${Ai.opacityContentOnSurfaceHover};
369
380
  }
370
381
 
371
382
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
372
- opacity: ${ji.opacityContentOnSurfaceSelected};
383
+ opacity: ${Ai.opacityContentOnSurfaceSelected};
373
384
  }
374
385
 
375
386
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
376
- opacity: ${ji.opacityContentOnSurfaceFocused};
387
+ opacity: ${Ai.opacityContentOnSurfaceFocused};
377
388
  }
378
389
 
379
390
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
380
- opacity: ${ji.opacityContentOnSurfacePressed};
391
+ opacity: ${Ai.opacityContentOnSurfacePressed};
381
392
  transform: translate(-50%, -50%) scale(1);
382
393
  }
383
- `;var Pi=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 _i extends wt{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 J`
394
+ `;var _i=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 Di extends wt{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 J`
384
395
  <style>
385
396
  .ft-ripple .ft-ripple--effect,
386
397
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -393,11 +404,11 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
393
404
  top: ${this.originY}px;
394
405
  }
395
406
  </style>
396
- <div class="${Ht(t)}">
407
+ <div class="${Kt(t)}">
397
408
  <div class="ft-ripple--background"></div>
398
409
  <div class="ft-ripple--effect"></div>
399
410
  </div>
400
- `}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()}}_i.elementDefinitions={},_i.styles=Ii,Pi([o({type:Boolean})],_i.prototype,"primary",void 0),Pi([o({type:Boolean})],_i.prototype,"secondary",void 0),Pi([o({type:Boolean})],_i.prototype,"unbounded",void 0),Pi([o({type:Boolean})],_i.prototype,"activated",void 0),Pi([o({type:Boolean})],_i.prototype,"selected",void 0),Pi([o({type:Boolean})],_i.prototype,"disabled",void 0),Pi([n()],_i.prototype,"hovered",void 0),Pi([n()],_i.prototype,"focused",void 0),Pi([n()],_i.prototype,"pressed",void 0),Pi([n()],_i.prototype,"rippling",void 0),Pi([n()],_i.prototype,"rippleSize",void 0),Pi([n()],_i.prototype,"originX",void 0),Pi([n()],_i.prototype,"originY",void 0),Pi([s(".ft-ripple")],_i.prototype,"ripple",void 0),Pi([s(".ft-ripple--effect")],_i.prototype,"rippleEffect",void 0),h("ft-ripple")(_i);const Di=xt.create("--ft-tooltip-distance","SIZE","4px"),Wi=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Hi=xt.create("--ft-tooltip-background-color","COLOR","#666666"),Ki=xt.create("--ft-tooltip-z-index","NUMBER","1"),Zi=xt.external(gt.borderRadiusS,"Design system"),Vi=xt.create("--ft-tooltip-max-width","SIZE","150px"),Xi=b`
411
+ `}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()}}Di.elementDefinitions={},Di.styles=Pi,_i([o({type:Boolean})],Di.prototype,"primary",void 0),_i([o({type:Boolean})],Di.prototype,"secondary",void 0),_i([o({type:Boolean})],Di.prototype,"unbounded",void 0),_i([o({type:Boolean})],Di.prototype,"activated",void 0),_i([o({type:Boolean})],Di.prototype,"selected",void 0),_i([o({type:Boolean})],Di.prototype,"disabled",void 0),_i([n()],Di.prototype,"hovered",void 0),_i([n()],Di.prototype,"focused",void 0),_i([n()],Di.prototype,"pressed",void 0),_i([n()],Di.prototype,"rippling",void 0),_i([n()],Di.prototype,"rippleSize",void 0),_i([n()],Di.prototype,"originX",void 0),_i([n()],Di.prototype,"originY",void 0),_i([s(".ft-ripple")],Di.prototype,"ripple",void 0),_i([s(".ft-ripple--effect")],Di.prototype,"rippleEffect",void 0),h("ft-ripple")(Di);const Wi=xt.create("--ft-tooltip-distance","SIZE","4px"),Hi=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ki=xt.create("--ft-tooltip-background-color","COLOR","#666666"),Zi=xt.create("--ft-tooltip-z-index","NUMBER","1"),Vi=xt.external(gt.borderRadiusS,"Design system"),Xi=xt.create("--ft-tooltip-max-width","SIZE","150px"),Ji=b`
401
412
  .ft-tooltip--container {
402
413
  display: block;
403
414
  position: relative;
@@ -413,23 +424,23 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
413
424
  box-sizing: border-box;
414
425
  overflow: hidden;
415
426
  width: max-content;
416
- max-width: ${Vi};
427
+ max-width: ${Xi};
417
428
  text-align: center;
418
- padding: ${Di};
419
- z-index: ${Ki};
429
+ padding: ${Wi};
430
+ z-index: ${Zi};
420
431
  }
421
432
 
422
433
  .ft-tooltip--content {
423
434
  padding: 4px 8px;
424
- border-radius: ${Zi};
425
- background-color: ${Hi};
426
- color: ${Wi};
435
+ border-radius: ${Vi};
436
+ background-color: ${Ki};
437
+ color: ${Hi};
427
438
  top: -500px;
428
439
  left: -500px;
429
440
  position: relative;
430
441
  word-break: break-word;
431
442
  }
432
- `;var Ji=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 qi extends wt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
443
+ `;var qi=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 wt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
433
444
  <div part="container"
434
445
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
435
446
  @mouseenter=${this.onHover}
@@ -447,13 +458,13 @@ class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
447
458
  </div>
448
459
  </div>
449
460
  </div>
450
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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.validPosition){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.validPosition){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, ${Vi})`}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())}}qi.elementDefinitions={"ft-typography":xi},qi.styles=Xi,Ji([o()],qi.prototype,"text",void 0),Ji([o({type:Boolean})],qi.prototype,"manual",void 0),Ji([o({type:Boolean})],qi.prototype,"inline",void 0),Ji([o({type:Number})],qi.prototype,"delay",void 0),Ji([o()],qi.prototype,"position",void 0),Ji([
461
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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.validPosition){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.validPosition){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, ${Xi})`}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":bi},Yi.styles=Ji,qi([o()],Yi.prototype,"text",void 0),qi([o({type:Boolean})],Yi.prototype,"manual",void 0),qi([o({type:Boolean})],Yi.prototype,"inline",void 0),qi([o({type:Number})],Yi.prototype,"delay",void 0),qi([o()],Yi.prototype,"position",void 0),qi([
451
462
  /**
452
463
  * @license
453
464
  * Copyright 2017 Google LLC
454
465
  * SPDX-License-Identifier: BSD-3-Clause
455
466
  */
456
- 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)],qi.prototype,"slotNodes",void 0),Ji([s(".ft-tooltip--container")],qi.prototype,"container",void 0),Ji([s("slot")],qi.prototype,"target",void 0),Ji([s(".ft-tooltip")],qi.prototype,"tooltip",void 0),Ji([s(".ft-tooltip--content")],qi.prototype,"tooltipContent",void 0),Ji([n()],qi.prototype,"visible",void 0),h("ft-tooltip")(qi);const Yi={color:xt.extend("--ft-loader-color",gt.colorPrimary),size:xt.create("--ft-loader-size","SIZE","80px")},Gi=b`
467
+ 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),qi([s(".ft-tooltip--container")],Yi.prototype,"container",void 0),qi([s("slot")],Yi.prototype,"target",void 0),qi([s(".ft-tooltip")],Yi.prototype,"tooltip",void 0),qi([s(".ft-tooltip--content")],Yi.prototype,"tooltipContent",void 0),qi([n()],Yi.prototype,"visible",void 0),h("ft-tooltip")(Yi);const Gi={color:xt.extend("--ft-loader-color",gt.colorPrimary),size:xt.create("--ft-loader-size","SIZE","80px")},Qi=b`
457
468
  :host {
458
469
  line-height: 0;
459
470
  }
@@ -462,8 +473,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
462
473
  display: inline-block;
463
474
  position: relative;
464
475
 
465
- width: ${Yi.size};
466
- height: ${Yi.size};
476
+ width: ${Gi.size};
477
+ height: ${Gi.size};
467
478
  }
468
479
 
469
480
  .ft-loader div {
@@ -472,7 +483,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
472
483
  width: 25%;
473
484
  height: 25%;
474
485
  border-radius: 50%;
475
- background: ${Yi.color};
486
+ background: ${Gi.color};
476
487
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
477
488
  }
478
489
 
@@ -519,17 +530,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
519
530
  transform: translate(0, 0);
520
531
  }
521
532
  100% {
522
- transform: translate(calc(0.35 * ${Yi.size}), 0);
533
+ transform: translate(calc(0.35 * ${Gi.size}), 0);
523
534
  }
524
535
  }
525
- `;class Qi extends wt{render(){return J`
536
+ `;class to extends wt{render(){return J`
526
537
  <div class="ft-loader">
527
538
  <div></div>
528
539
  <div></div>
529
540
  <div></div>
530
541
  <div></div>
531
542
  </div>
532
- `}}Qi.styles=Gi,h("ft-loader")(Qi);const to=xt.extend("--ft-button-color",gt.colorPrimary),eo={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:to,fontSize:xt.extend("--ft-button-font-size",ni.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",to),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},io=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),oo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:io,rippleColor:xt.extend("--ft-button-primary-ripple-color",io)},no=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),ro=[$t,b`
543
+ `}}to.styles=Qi,h("ft-loader")(to);const eo=xt.extend("--ft-button-color",gt.colorPrimary),io={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:eo,fontSize:xt.extend("--ft-button-font-size",ri.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",eo),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},oo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),no={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:oo,rippleColor:xt.extend("--ft-button-primary-ripple-color",oo)},ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),so=[$t,b`
533
544
  :host {
534
545
  display: inline-block;
535
546
  max-width: 100%;
@@ -540,7 +551,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
540
551
  box-shadow: 0px 0px 0px transparent;
541
552
  border: 0px solid transparent;
542
553
  text-shadow: 0px 0px 0px transparent;
543
- font-size: ${eo.fontSize};
554
+ font-size: ${io.fontSize};
544
555
  }
545
556
 
546
557
  button:hover {
@@ -569,17 +580,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
569
580
  border: none;
570
581
  pointer-events: auto;
571
582
 
572
- --ft-button-internal-line-height: calc(${eo.fontSize} + 2px);
573
- --ft-button-internal-color: ${eo.color};
574
- ${bt(Ci.size,eo.iconSize)};
583
+ --ft-button-internal-line-height: calc(${io.fontSize} + 2px);
584
+ --ft-button-internal-color: ${io.color};
585
+ ${bt(Ni.size,io.iconSize)};
575
586
  --ft-button-internal-vertical-padding: 6px;
576
587
  --ft-button-internal-horizontal-padding: 8px;
577
- ${bt(ji.color,eo.rippleColor)};
578
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${eo.iconSize});
588
+ ${bt(Ai.color,io.rippleColor)};
589
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${io.iconSize});
579
590
 
580
- border-radius: ${eo.borderRadius};
591
+ border-radius: ${io.borderRadius};
581
592
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
582
- background-color: ${eo.backgroundColor};
593
+ background-color: ${io.backgroundColor};
583
594
  color: var(--ft-button-internal-color);
584
595
  -webkit-mask-image: radial-gradient(white, black);
585
596
  }
@@ -591,7 +602,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
591
602
  .ft-button--dense {
592
603
  --ft-button-internal-vertical-padding: 2px;
593
604
  --ft-button-internal-horizontal-padding: 4px;
594
- border-radius: ${no};
605
+ border-radius: ${ro};
595
606
  }
596
607
 
597
608
  .ft-button--round {
@@ -600,13 +611,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
600
611
 
601
612
  .ft-button[disabled] {
602
613
  filter: grayscale(1);
603
- opacity: ${eo.opacityDisabled};
614
+ opacity: ${io.opacityDisabled};
604
615
  }
605
616
 
606
617
  .ft-button.ft-button--primary {
607
- background-color: ${oo.backgroundColor};
608
- --ft-button-internal-color: ${oo.color};
609
- ${bt(ji.color,oo.rippleColor)};
618
+ background-color: ${no.backgroundColor};
619
+ --ft-button-internal-color: ${no.color};
620
+ ${bt(Ai.color,no.rippleColor)};
610
621
  }
611
622
 
612
623
  .ft-button.ft-button--outlined {
@@ -625,20 +636,10 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
625
636
  text-overflow: ellipsis;
626
637
  display: block;
627
638
  margin: 0 var(--ft-button-internal-horizontal-padding);
628
- ${bt(ni.fontSize,"1em")};
629
- ${bt(ni.lineHeight,"var(--ft-button-internal-content-height)")};
639
+ ${bt(ri.fontSize,"1em")};
640
+ ${bt(ri.lineHeight,"var(--ft-button-internal-content-height)")};
630
641
  }
631
-
632
- .ft-button--safari-fix .ft-button--label {
633
- margin-right: 0;
634
- }
635
-
636
- .ft-button--safari-fix .ft-button--label:after {
637
- content: "\\0000a0";
638
- display: inline-block;
639
- width: 0;
640
- }
641
-
642
+
642
643
  .ft-button--label[hidden] {
643
644
  display: none;
644
645
  }
@@ -659,19 +660,19 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
659
660
  }
660
661
 
661
662
  ft-loader {
662
- ${bt(Yi.size,eo.iconSize)};
663
- ${bt(Yi.color,"var(--ft-button-internal-color)")};
663
+ ${bt(Gi.size,io.iconSize)};
664
+ ${bt(Gi.color,"var(--ft-button-internal-color)")};
664
665
  }
665
- `];var so,ao=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 lo extends wt{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=Ei.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":Mt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
666
+ `];var ao,lo=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 ho extends wt{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=zi.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-no-text-select":!0};return this.addTooltipIfNeeded(J`
666
667
  <button part="button"
667
- class="${Ht(t)}"
668
+ class="${Kt(t)}"
668
669
  aria-label="${this.getLabel()}"
669
670
  ?disabled=${this.isDisabled()}>
670
671
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
671
672
  <ft-typography part="label"
672
673
  variant="button"
673
674
  element="span"
674
- class="ft-button--label"
675
+ class="ft-button--label ${jt?"ft-safari-ellipsis-fix":""}"
675
676
  ?hidden=${!this.hasTextContent()}>
676
677
  <slot @slotchange=${this.onSlotchange}></slot>
677
678
  </ft-typography>
@@ -685,7 +686,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
685
686
  </ft-tooltip>
686
687
  `:t}resolveIcon(){return this.loading?J`
687
688
  <ft-loader></ft-loader> `:this.icon?J`
688
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}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}}lo.elementDefinitions={"ft-ripple":_i,"ft-tooltip":qi,"ft-typography":xi,"ft-icon":Ri,"ft-loader":Qi},lo.styles=ro,ao([o({type:Boolean})],lo.prototype,"primary",void 0),ao([o({type:Boolean})],lo.prototype,"outlined",void 0),ao([o({type:Boolean})],lo.prototype,"disabled",void 0),ao([o({type:Boolean})],lo.prototype,"dense",void 0),ao([o({type:Boolean})],lo.prototype,"round",void 0),ao([o({type:String})],lo.prototype,"label",void 0),ao([o({type:String})],lo.prototype,"icon",void 0),ao([o({type:String})],lo.prototype,"iconVariant",void 0),ao([o({type:Boolean})],lo.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],lo.prototype,"loading",void 0),ao([o({type:String})],lo.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],lo.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],lo.prototype,"forceTooltip",void 0),ao([s(".ft-button")],lo.prototype,"button",void 0),ao([s(".ft-button--label slot")],lo.prototype,"slottedContent",void 0),h("ft-button")(lo),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(so||(so={}));const ho=b`
689
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}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}}ho.elementDefinitions={"ft-ripple":Di,"ft-tooltip":Yi,"ft-typography":bi,"ft-icon":Mi,"ft-loader":to},ho.styles=[Ot,so],lo([o({type:Boolean})],ho.prototype,"primary",void 0),lo([o({type:Boolean})],ho.prototype,"outlined",void 0),lo([o({type:Boolean})],ho.prototype,"disabled",void 0),lo([o({type:Boolean})],ho.prototype,"dense",void 0),lo([o({type:Boolean})],ho.prototype,"round",void 0),lo([o({type:String})],ho.prototype,"label",void 0),lo([o({type:String})],ho.prototype,"icon",void 0),lo([o({type:String})],ho.prototype,"iconVariant",void 0),lo([o({type:Boolean})],ho.prototype,"trailingIcon",void 0),lo([o({type:Boolean})],ho.prototype,"loading",void 0),lo([o({type:String})],ho.prototype,"tooltipPosition",void 0),lo([o({type:Boolean})],ho.prototype,"hideTooltip",void 0),lo([o({type:Boolean})],ho.prototype,"forceTooltip",void 0),lo([s(".ft-button")],ho.prototype,"button",void 0),lo([s(".ft-button--label slot")],ho.prototype,"slottedContent",void 0),h("ft-button")(ho),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ao||(ao={}));const co=b`
689
690
  .ft-size-watcher--pixel {
690
691
  width: 0;
691
692
  height: 0;
@@ -704,34 +705,34 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
704
705
  .ft-size-watcher--local .ft-size-watcher--watcher {
705
706
  width: 100%;
706
707
  }
707
- `;var co=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 po extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class fo extends wt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=so.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return J`
708
+ `;var po=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 fo extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class uo extends wt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ao.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return J`
708
709
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
709
710
  <div class="ft-size-watcher--watcher"></div>
710
711
  </div>
711
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=so.S:this.size<976?this.category=so.M:this.size<1024?this.category=so.L:this.size<1440?this.category=so.XL:this.category=so.XXL,this.dispatchEvent(new po(this.size,this.category)))}),this.debounceTimeout)}}fo.elementDefinitions={},fo.styles=ho,co([o({type:Number})],fo.prototype,"debounceTimeout",void 0),co([o({type:Boolean})],fo.prototype,"local",void 0),co([o({type:Number,reflect:!0})],fo.prototype,"size",void 0),co([o({type:String,reflect:!0})],fo.prototype,"category",void 0),co([s(".ft-size-watcher--watcher")],fo.prototype,"watcher",void 0),h("ft-size-watcher")(fo);const uo={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},vo={tabulationSize:xt.create("--ft-reader-toc-tabulation-size","SIZE","16px"),verticalSpacing:xt.create("--ft-reader-toc-vertical-spacing","SIZE","4px"),textColor:xt.extend("--ft-reader-toc-text-color",gt.colorOnSurface),hoverColor:xt.extend("--ft-reader-toc-hover-color",gt.colorPrimary),highlightedTextColor:xt.extend("--ft-reader-toc-highlighted-text-color",gt.colorPrimary),highlightedFontWeight:xt.create("--ft-reader-toc-highlighted-font-weight","UNKNOWN","bold"),highlightedBackgroundColor:xt.create("--ft-reader-toc-highlighted-background-color","COLOR","transparent"),iconFontSize:xt.create("--ft-reader-toc-icon-font-size","SIZE","16px")},yo=b`
712
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=ao.S:this.size<976?this.category=ao.M:this.size<1024?this.category=ao.L:this.size<1440?this.category=ao.XL:this.category=ao.XXL,this.dispatchEvent(new fo(this.size,this.category)))}),this.debounceTimeout)}}uo.elementDefinitions={},uo.styles=co,po([o({type:Number})],uo.prototype,"debounceTimeout",void 0),po([o({type:Boolean})],uo.prototype,"local",void 0),po([o({type:Number,reflect:!0})],uo.prototype,"size",void 0),po([o({type:String,reflect:!0})],uo.prototype,"category",void 0),po([s(".ft-size-watcher--watcher")],uo.prototype,"watcher",void 0),h("ft-size-watcher")(uo);const vo={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},yo={tabulationSize:xt.create("--ft-reader-toc-tabulation-size","SIZE","16px"),verticalSpacing:xt.create("--ft-reader-toc-vertical-spacing","SIZE","4px"),textColor:xt.extend("--ft-reader-toc-text-color",gt.colorOnSurface),hoverColor:xt.extend("--ft-reader-toc-hover-color",gt.colorPrimary),highlightedTextColor:xt.extend("--ft-reader-toc-highlighted-text-color",gt.colorPrimary),highlightedFontWeight:xt.create("--ft-reader-toc-highlighted-font-weight","UNKNOWN","bold"),highlightedBackgroundColor:xt.create("--ft-reader-toc-highlighted-background-color","COLOR","transparent"),iconFontSize:xt.create("--ft-reader-toc-icon-font-size","SIZE","16px")},xo=b`
712
713
  .ft-reader-toc {
713
- color: ${vo.textColor};
714
+ color: ${yo.textColor};
714
715
  }
715
716
 
716
717
  .ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
717
- background-color: ${vo.highlightedBackgroundColor};
718
- color: ${vo.highlightedTextColor};
719
- ${bt(oe.fontWeight,vo.highlightedFontWeight)}
718
+ background-color: ${yo.highlightedBackgroundColor};
719
+ color: ${yo.highlightedTextColor};
720
+ ${bt(ne.fontWeight,yo.highlightedFontWeight)}
720
721
  }
721
722
 
722
723
  .ft-reader-toc--link-container {
723
724
  display: flex;
724
725
  gap: 4px;
725
- padding: ${vo.verticalSpacing} 4px; /* left padding is override on inline style */
726
+ padding: ${yo.verticalSpacing} 4px; /* left padding is override on inline style */
726
727
  align-items: center;
727
728
  }
728
729
 
729
730
  .ft-reader-toc--link-container ft-reader-internal-link:hover {
730
- color: ${vo.hoverColor};
731
+ color: ${yo.hoverColor};
731
732
  }
732
733
 
733
734
  ft-button {
734
- ${bt(eo.iconSize,vo.iconFontSize)};
735
+ ${bt(io.iconSize,yo.iconFontSize)};
735
736
  }
736
737
 
737
738
  .ft-reader-toc--toggle-container {
@@ -739,11 +740,11 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
739
740
  }
740
741
 
741
742
  .ft-reader-toc-mobile .ft-reader-toc--toggle-container {
742
- width: calc(${vo.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
743
+ width: calc(${yo.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
743
744
  }
744
745
 
745
746
  .ft-reader-toc-desktop .ft-reader-toc--toggle-container {
746
- width: calc(${vo.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
747
+ width: calc(${yo.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
747
748
  }
748
749
 
749
750
  .ft-reader-toc-expanded .ft-reader-toc--toggle-container {
@@ -766,7 +767,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
766
767
  .ft-reader-toc-expand-collapse-all-justify ft-button {
767
768
  flex-grow: 1;
768
769
  }
769
- `;var xo=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 bo extends Xt{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=Ei.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.expandCollapseAllIconVariant=Ei.fluid_topics,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scope="pages",this.hideIfEmpty=!1,this.empty=!0,this.labels={},this.labelResolver=new Ot(uo,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=so.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var e,i,o;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(e=this.toc)&&void 0!==e?e:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new Ot(uo,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(i=this.highlightedTocIds)&&void 0!==i?i:[])),this.empty=0===(null!==(o=this.toc)&&void 0!==o?o:[]).length}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===so.S,"ft-reader-toc-desktop":this.viewportSize!==so.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return J`
770
+ `;var bo=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 go extends Jt{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=zi.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.expandCollapseAllIconVariant=zi.fluid_topics,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scope="pages",this.hideIfEmpty=!1,this.empty=!0,this.labels={},this.labelResolver=new St(vo,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=ao.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var e,i,o;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(e=this.toc)&&void 0!==e?e:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new St(vo,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(i=this.highlightedTocIds)&&void 0!==i?i:[])),this.empty=0===(null!==(o=this.toc)&&void 0!==o?o:[]).length}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===ao.S,"ft-reader-toc-desktop":this.viewportSize!==ao.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return J`
770
771
  ${this.hideIfEmpty&&this.empty?J`
771
772
  <style>
772
773
  :host {
@@ -774,10 +775,10 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
774
775
  }
775
776
  </style>
776
777
  `:Y}
777
- <div class=${Ht(e)}>
778
+ <div class=${Kt(e)}>
778
779
  <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
779
780
  ${this.renderExpandCollapseAll()}
780
- ${Wt(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
781
+ ${Ht(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
781
782
  </div>
782
783
  `}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?J`
783
784
  <div part="expand-collapse-all-container"
@@ -794,16 +795,16 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
794
795
  ${this.expandCollapseAllHideLabel?"":this.labelResolver.resolve(this.expandAll?"collapseAll":"expandAll")}
795
796
  </ft-button>
796
797
  </div>
797
- `:Y}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),r=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),s=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${vo.tabulationSize} * ${l} + 4px)`};return J`
798
+ `:Y}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),r=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),s=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${yo.tabulationSize} * ${l} + 4px)`};return J`
798
799
  <div class="ft-reader-toc--node ${n?"ft-reader-toc--node-highlighted":""}">
799
- <div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${Kt(h)}>
800
+ <div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${Zt(h)}>
800
801
  ${this.nodesToExpandExist&&!this.expanded?J`
801
802
  <div class="ft-reader-toc--toggle-container">
802
803
  ${s?J`
803
804
  <ft-button
804
805
  part="expand-collapse-node"
805
806
  round hideTooltip
806
- ?dense=${this.viewportSize!==so.S}
807
+ ?dense=${this.viewportSize!==ao.S}
807
808
  label="${this.labelResolver.resolve(r?"collapse":"expand",t.title)}"
808
809
  iconVariant="${this.iconVariant}"
809
810
  icon="${r?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
@@ -826,8 +827,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
826
827
  ${s?J`
827
828
  <div class="ft-reader-toc--node-children" id="${t.tocId}-children"
828
829
  ?hidden=${!r}>
829
- ${r?Wt(t.children,(t=>t.tocId),(t=>this.renderNode(t))):Y}
830
+ ${r?Ht(t.children,(t=>t.tocId),(t=>this.renderNode(t))):Y}
830
831
  </div>
831
832
  `:Y}
832
833
  </div>
833
- `}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}bo.elementDefinitions={"ft-button":lo,"ft-reader-internal-link":wi,"ft-size-watcher":fo,"ft-typography":xi},bo.styles=yo,xo([o({type:Boolean})],bo.prototype,"expanded",void 0),xo([o()],bo.prototype,"iconVariant",void 0),xo([o()],bo.prototype,"collapseIcon",void 0),xo([o()],bo.prototype,"expandIcon",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAll",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllHideLabel",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllTrailingIcon",void 0),xo([o()],bo.prototype,"expandCollapseAllAlignment",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllHideIcon",void 0),xo([o()],bo.prototype,"expandCollapseAllIconVariant",void 0),xo([o()],bo.prototype,"collapseAllIcon",void 0),xo([o()],bo.prototype,"expandAllIcon",void 0),xo([o({type:Boolean})],bo.prototype,"autoCollapse",void 0),xo([o()],bo.prototype,"scope",void 0),xo([o({type:Boolean})],bo.prototype,"hideIfEmpty",void 0),xo([o({type:Boolean,reflect:!0})],bo.prototype,"empty",void 0),xo([c({})],bo.prototype,"labels",void 0),xo([kt(((t,e)=>{var i,o,n;return e.isCurrentPageToc?(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)?null===(o=t.currentPage)||void 0===o?void 0:o.toc:void 0:(null===(n=t.paginationConfiguration)||void 0===n?void 0:n.splitCurrentPageToc)?t.pagesToc:t.toc}))],bo.prototype,"toc",void 0),xo([kt((t=>{var e;return null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc}))],bo.prototype,"splitToc",void 0),xo([kt()],bo.prototype,"currentPage",void 0),xo([kt(((t,e)=>{var i,o;return(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)&&!e.isCurrentPageToc?[null===(o=t.currentPage)||void 0===o?void 0:o.rootTocId]:t.visibleTopics}))],bo.prototype,"highlightedTocIds",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"automaticallyExpandedNodes",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"manuallyExpandedNodes",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"manuallyCollapsedNodes",void 0),xo([n()],bo.prototype,"expandAll",void 0),xo([n()],bo.prototype,"viewportSize",void 0),h("ft-reader-toc")(bo),t.DEFAULT_LABELS=uo,t.FtReaderToc=bo,t.FtReaderTocCssVariables=vo,t.styles=yo,Object.defineProperty(t,"i",{value:!0})}({});
834
+ `}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}go.elementDefinitions={"ft-button":ho,"ft-reader-internal-link":$i,"ft-size-watcher":uo,"ft-typography":bi},go.styles=xo,bo([o({type:Boolean})],go.prototype,"expanded",void 0),bo([o()],go.prototype,"iconVariant",void 0),bo([o()],go.prototype,"collapseIcon",void 0),bo([o()],go.prototype,"expandIcon",void 0),bo([o({type:Boolean})],go.prototype,"expandCollapseAll",void 0),bo([o({type:Boolean})],go.prototype,"expandCollapseAllHideLabel",void 0),bo([o({type:Boolean})],go.prototype,"expandCollapseAllTrailingIcon",void 0),bo([o()],go.prototype,"expandCollapseAllAlignment",void 0),bo([o({type:Boolean})],go.prototype,"expandCollapseAllHideIcon",void 0),bo([o()],go.prototype,"expandCollapseAllIconVariant",void 0),bo([o()],go.prototype,"collapseAllIcon",void 0),bo([o()],go.prototype,"expandAllIcon",void 0),bo([o({type:Boolean})],go.prototype,"autoCollapse",void 0),bo([o()],go.prototype,"scope",void 0),bo([o({type:Boolean})],go.prototype,"hideIfEmpty",void 0),bo([o({type:Boolean,reflect:!0})],go.prototype,"empty",void 0),bo([c({})],go.prototype,"labels",void 0),bo([Ct(((t,e)=>{var i,o,n;return e.isCurrentPageToc?(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)?null===(o=t.currentPage)||void 0===o?void 0:o.toc:void 0:(null===(n=t.paginationConfiguration)||void 0===n?void 0:n.splitCurrentPageToc)?t.pagesToc:t.toc}))],go.prototype,"toc",void 0),bo([Ct((t=>{var e;return null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc}))],go.prototype,"splitToc",void 0),bo([Ct()],go.prototype,"currentPage",void 0),bo([Ct(((t,e)=>{var i,o;return(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)&&!e.isCurrentPageToc?[null===(o=t.currentPage)||void 0===o?void 0:o.rootTocId]:t.visibleTopics}))],go.prototype,"highlightedTocIds",void 0),bo([n({hasChanged:(t,e)=>!p(t,e)})],go.prototype,"automaticallyExpandedNodes",void 0),bo([n({hasChanged:(t,e)=>!p(t,e)})],go.prototype,"manuallyExpandedNodes",void 0),bo([n({hasChanged:(t,e)=>!p(t,e)})],go.prototype,"manuallyCollapsedNodes",void 0),bo([n()],go.prototype,"expandAll",void 0),bo([n()],go.prototype,"viewportSize",void 0),h("ft-reader-toc")(go),t.DEFAULT_LABELS=vo,t.FtReaderToc=go,t.FtReaderTocCssVariables=yo,t.styles=xo,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-toc",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "Main table of content for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "0.3.54",
23
- "@fluid-topics/ft-reader-context": "0.3.54",
24
- "@fluid-topics/ft-size-watcher": "0.3.54",
25
- "@fluid-topics/ft-typography": "0.3.54",
26
- "@fluid-topics/ft-wc-utils": "0.3.54",
22
+ "@fluid-topics/ft-icon": "0.3.55",
23
+ "@fluid-topics/ft-reader-context": "0.3.55",
24
+ "@fluid-topics/ft-size-watcher": "0.3.55",
25
+ "@fluid-topics/ft-typography": "0.3.55",
26
+ "@fluid-topics/ft-wc-utils": "0.3.55",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "a44cb80b87fa9a6a35c255f4e37a75af484b443a"
29
+ "gitHead": "4106f01e238edeb1c85fba22d6d50a18757e0b3e"
30
30
  }