@fluid-topics/ft-reader-feedback 1.1.21 → 1.1.23

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.
@@ -87,16 +87,17 @@ const Ht=globalThis,Gt=Ht.trustedTypes,Vt=Gt?Gt.createPolicy("lit-html",{createH
87
87
  * Copyright 2017 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
89
  */
90
- let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Re{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${ke(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Rt`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ie(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8")},Le={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for information components.",Ue.colorCyan30),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Re.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Re.extend("--ft-tabs-label-gap","",Ue.spacing1),Re.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-group-gap","",Ue.spacing1),Re.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Re.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ue.colorCyan50),Re.extend("--ft-chart-4-base","",Ue.colorCyan100),Re.extend("--ft-chart-5-light","",Ue.colorRed40),Re.extend("--ft-chart-5-base","",Ue.colorRed60),Re.extend("--ft-chart-6-light","",Ue.colorGreen40),Re.extend("--ft-chart-6-base","",Ue.colorGreen70),Re.extend("--ft-chart-7-light","",Ue.colorOrange70),Re.extend("--ft-chart-7-base","",Ue.colorOrange100),Re.extend("--ft-chart-8-light","",Ue.colorAvocado70),Re.extend("--ft-chart-8-base","",Ue.colorAvocado200),Re.extend("--ft-chart-9-light","",Ue.colorBrown50),Re.extend("--ft-chart-9-base","",Ue.colorBrown200),Re.extend("--ft-chart-10-light","",Ue.colorGray50),Re.extend("--ft-chart-10-base","",Ue.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Re.extend("--ft-chip-large-gap","",Ue.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Re.extend("--ft-chip-medium-gap","",Ue.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Re.extend("--ft-chip-small-gap","",Ue.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Ae.borderErrorPrimary),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Re.extend("--ft-notice-vertical-padding","",Ue.spacing1),Re.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Re.extend("--ft-notice-gap","",Ue.spacing2),Re.extend("--ft-notice-icon-size","",Ue.iconSize3),Re.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Ue.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Ue.spacing3),Re.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Ue.spacing3),Re.extend("--ft-notification-icon-size","",Ue.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Re.extend("--ft-notification-vertical-padding","",Ue.spacing4),Re.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Ae.borderErrorPrimary),Re.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ue.spacing2),Re.extend("--ft-notification-gap-trailing","",Ue.spacing8);const Te={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Re.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Re.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Re.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Re.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Re.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Re.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Re.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Re.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Re.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
90
+ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Re{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${ke(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Rt`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ie(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8")},Le={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for information components.",Ue.colorCyan30),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Re.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Re.extend("--ft-tabs-label-gap","",Ue.spacing1),Re.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-group-gap","",Ue.spacing1),Re.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Re.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ue.colorCyan50),Re.extend("--ft-chart-4-base","",Ue.colorCyan100),Re.extend("--ft-chart-5-light","",Ue.colorRed40),Re.extend("--ft-chart-5-base","",Ue.colorRed60),Re.extend("--ft-chart-6-light","",Ue.colorGreen40),Re.extend("--ft-chart-6-base","",Ue.colorGreen70),Re.extend("--ft-chart-7-light","",Ue.colorOrange70),Re.extend("--ft-chart-7-base","",Ue.colorOrange100),Re.extend("--ft-chart-8-light","",Ue.colorAvocado70),Re.extend("--ft-chart-8-base","",Ue.colorAvocado200),Re.extend("--ft-chart-9-light","",Ue.colorBrown50),Re.extend("--ft-chart-9-base","",Ue.colorBrown200),Re.extend("--ft-chart-10-light","",Ue.colorGray50),Re.extend("--ft-chart-10-base","",Ue.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Re.extend("--ft-chip-large-gap","",Ue.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Re.extend("--ft-chip-medium-gap","",Ue.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Re.extend("--ft-chip-small-gap","",Ue.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Ae.borderErrorPrimary),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Re.extend("--ft-notice-vertical-padding","",Ue.spacing1),Re.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Re.extend("--ft-notice-gap","",Ue.spacing2),Re.extend("--ft-notice-icon-size","",Ue.iconSize3),Re.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Ue.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Ue.spacing3),Re.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Ue.spacing3),Re.extend("--ft-notification-icon-size","",Ue.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Re.extend("--ft-notification-vertical-padding","",Ue.spacing4),Re.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Ae.borderErrorPrimary),Re.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ue.spacing2),Re.extend("--ft-notification-gap-trailing","",Ue.spacing8);const Te={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Re.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Re.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Re.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Re.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Re.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Re.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Re.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Re.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Re.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const We=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+We[0],e+"-"+We[1])),[]),Pe=Math.min,Me=Math.max,je=Math.round,ze=t=>({x:t,y:t}),Be={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Ze(t,e,i){return Me(t,Pe(e,i))}function He(t,e){return"function"==typeof t?t(e):t}function Ge(t){return t.split("-")[0]}function Ve(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Ye(t){return"y"===t?"height":"width"}function Xe(t){return["top","bottom"].includes(Ge(t))?"y":"x"}function Je(t){return qe(Xe(t))}function Qe(t){return t.replace(/left|right|bottom|top/g,(t=>Be[t]))}function ti(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ei(t,e,i){let{reference:o,floating:r}=t;const n=Xe(e),a=Je(e),s=Ye(a),l=Ge(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ve(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ii(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=He(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ti(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ti(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function oi(t,e,i){return(t?[...i.filter((e=>Ve(e)===t)),...i.filter((e=>Ve(e)!==t))]:i.filter((t=>Ge(t)===t))).filter((i=>!t||(Ve(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ke[t]))}(i)!==i)))}const ri=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Fe,autoAlignment:u=!0,...p}=He(t,e),y=void 0!==h||d===Fe?oi(h||null,u,d):d,g=await ii(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ve(t),r=Je(t),n=Ye(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Qe(a)),[a,Qe(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ge(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ve(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ve(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ni(t){return li(t)?(t.nodeName||"").toLowerCase():"#document"}function ai(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function si(t){var e;return null==(e=(li(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function li(t){return t instanceof Node||t instanceof ai(t).Node}function ci(t){return t instanceof Element||t instanceof ai(t).Element}function fi(t){return t instanceof HTMLElement||t instanceof ai(t).HTMLElement}function hi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ai(t).ShadowRoot)}function di(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=bi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function ui(t){return["table","td","th"].includes(ni(t))}function pi(t){const e=yi(),i=bi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function yi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(ni(t))}function bi(t){return ai(t).getComputedStyle(t)}function vi(t){return ci(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mi(t){if("html"===ni(t))return t;const e=t.assignedSlot||t.parentNode||hi(t)&&t.host||si(t);return hi(e)?e.host:e}function xi(t){const e=mi(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&di(e)?e:xi(e)}function wi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=xi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ai(r);return n?e.concat(a,a.visualViewport||[],di(r)?r:[],a.frameElement&&i?wi(a.frameElement):[]):e.concat(r,wi(r,[],i))}function Oi(t){const e=bi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=fi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=je(i)!==n||je(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Si(t){return ci(t)?t:t.contextElement}function $i(t){const e=Si(t);if(!fi(e))return ze(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Oi(e);let a=(n?je(i.width):i.width)/o,s=(n?je(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ni=ze(0);function Ci(t){const e=ai(t);return yi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ni}function Ei(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Si(t);let a=ze(1);e&&(o?ci(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ai(t))&&e}(n,i,o)?Ci(n):ze(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=ai(n),e=o&&ci(o)?ai(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=bi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=ai(i).frameElement}}return ti({width:f,height:h,x:l,y:c})}function ki(t){return Ei(si(t)).left+vi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ai(t),o=si(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=si(t),i=vi(t),o=t.ownerDocument.body,r=Me(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Me(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ki(t);const s=-i.scrollTop;return"rtl"===bi(o).direction&&(a+=Me(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(si(t));else if(ci(e))o=function(t,e){const i=Ei(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=fi(t)?$i(t):ze(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ci(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ti(o)}function Ii(t,e){const i=mi(t);return!(i===e||!ci(i)||gi(i))&&("fixed"===bi(i).position||Ii(i,e))}function Ui(t,e,i){const o=fi(e),r=si(e),n="fixed"===i,a=Ei(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=ze(0);if(o||!o&&!n)if(("body"!==ni(e)||di(r))&&(s=vi(e)),o){const t=Ei(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ki(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Li(t,e){return fi(t)&&"fixed"!==bi(t).position?e?e(t):t.offsetParent:null}function Ai(t,e){const i=ai(t);if(!fi(t))return i;let o=Li(t,e);for(;o&&ui(o)&&"static"===bi(o).position;)o=Li(o,e);return o&&("html"===ni(o)||"body"===ni(o)&&"static"===bi(o).position&&!pi(o))?i:o||function(t){let e=mi(t);for(;fi(e)&&!gi(e);){if(pi(e))return e;e=mi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=fi(i),n=si(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=ze(1);const l=ze(0);if((r||!r&&"fixed"!==o)&&(("body"!==ni(i)||di(n))&&(a=vi(i)),fi(i))){const t=Ei(i);s=$i(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:si,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=wi(t,[],!1).filter((t=>ci(t)&&"body"!==ni(t))),r=null;const n="fixed"===bi(t).position;let a=n?mi(t):t;for(;ci(a)&&!gi(a);){const e=bi(a),i=pi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||di(a)&&!i&&Ii(t,a))?o=o.filter((t=>t!==a)):r=e,a=mi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=Ri(e,i,r);return t.top=Me(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=Me(o.left,t.left),t}),Ri(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ai,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ai,n=this.getDimensions;return{reference:Ui(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Oi(t)},getScale:$i,isElement:ci,isRTL:function(t){return"rtl"===bi(t).direction}},Ti=(t,e,i)=>{const o=new Map,r={platform:_i,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ei(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ei(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Wi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Wi(t);e;e=Wi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Wi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
91
91
  /**
92
92
  * @license
93
93
  * Copyright 2019 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
- */const We=window,Fe=We.ShadowRoot&&(void 0===We.ShadyCSS||We.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Pe extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=We.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Me,je=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ze=Symbol("constructorPrototype"),Be=Symbol("constructorName"),Ke=Symbol("exportpartsDebouncer");class Ze extends Pe{constructor(){super(),this[Me]=new r(5),this[Be]=this.constructor.name,this[ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Be]&&Object.setPrototypeOf(this,this[ze])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ke].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Me=Ke,je([k()],Ze.prototype,"exportpartsPrefix",void 0),je([F([])],Ze.prototype,"exportpartsPrefixes",void 0),je([k()],Ze.prototype,"customStylesheet",void 0);const He=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
95
+ */
96
+ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Mi extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Fi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var ji,zi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Bi=Symbol("constructorPrototype"),Ki=Symbol("constructorName"),Zi=Symbol("exportpartsDebouncer");class Hi extends Mi{constructor(){super(),this[ji]=new r(5),this[Ki]=this.constructor.name,this[Bi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ki]&&Object.setPrototypeOf(this,this[Bi])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Zi].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ji=Zi,zi([k()],Hi.prototype,"exportpartsPrefix",void 0),zi([F([])],Hi.prototype,"exportpartsPrefixes",void 0),zi([k()],Hi.prototype,"customStylesheet",void 0);const Gi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
96
97
  .highlight-html-match {
97
- background: ${He};
98
+ background: ${Gi};
98
99
  }
99
- `;const Ge=Rt`
100
+ `;const Vi=Rt`
100
101
  .ft-no-text-select {
101
102
  -webkit-touch-callout: none;
102
103
  -webkit-user-select: none;
@@ -117,7 +118,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
117
118
  -webkit-hyphens: auto;
118
119
  hyphens: auto
119
120
  }
120
- `;const Ve=Rt`
121
+ `;const qi=Rt`
121
122
  .ft-safari-ellipsis-fix {
122
123
  margin-right: 0;
123
124
 
@@ -128,7 +129,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
128
129
  display: inline-block;
129
130
  width: 0;
130
131
  }
131
- `;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Ye=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};k(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Xe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Je(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,ti,ei;const ii=Symbol("internalReduxEventsUnsubscribers"),oi=Symbol("internalStoresUnsubscribers"),ri=Symbol("internalStores");class ni extends Ze{constructor(){super(...arguments),this[Qe]=new Map,this[ti]=new Map,this[ei]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ri].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ri].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Je(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ri].delete(e)}setupStore(t,e){this[ri].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ri].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[oi].has(t.store):this[oi].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[oi].set(t,e.subscribe((()=>this.updateFromStores()))),Je(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[ii].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oi].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ii].forEach((t=>t())),this[ii]=[]}unsubscribeFromStore(t){this[oi].has(t)&&this[oi].get(t)(),this[oi].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ai(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function si(t){return!!t&&!!t[Gi]}function li(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Vi}(t)||Array.isArray(t)||!!t[Hi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Hi])||pi(t)||yi(t))}function ci(t,e,i){void 0===i&&(i=!1),0===fi(t)?(i?Object.keys:qi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function fi(t){var e=t[Gi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pi(t)?2:yi(t)?3:0}function hi(t,e){return 2===fi(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function di(t,e,i){var o=fi(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function ui(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pi(t){return zi&&t instanceof Map}function yi(t){return Bi&&t instanceof Set}function gi(t){return t.o||t.t}function bi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yi(t);delete e[Gi];for(var i=qi(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function vi(t,e){return void 0===e&&(e=!1),xi(t)||si(t)||!li(t)||(fi(t)>1&&(t.set=t.add=t.clear=t.delete=mi),Object.freeze(t),e&&ci(t,(function(t,e){return vi(e,!0)}),!0)),t}function mi(){ai(2)}function xi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wi(t){var e=Xi[t];return e||ai(18,t),e}function Oi(){return Mi}function Si(t,e){e&&(wi("Patches"),t.u=[],t.s=[],t.v=e)}function $i(t){Ni(t),t.p.forEach(Ei),t.p=null}function Ni(t){t===Mi&&(Mi=t.l)}function Ci(t){return Mi={p:[],l:Mi,h:t,m:!0,_:0}}function Ei(t){var e=t[Gi];0===e.i||1===e.i?e.j():e.g=!0}function ki(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||wi("ES5").S(e,t,o),o?(i[Gi].P&&($i(e),ai(4)),li(t)&&(t=Ri(e,t),e.l||Ui(e,t)),e.u&&wi("Patches").M(i[Gi].t,t,e.u,e.s)):t=Ri(e,i,[]),$i(e),e.u&&e.v(e.u,e.s),t!==Zi?t:void 0}function Ri(t,e,i){if(xi(e))return e;var o=e[Gi];if(!o)return ci(e,(function(r,n){return Ii(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ui(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=bi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ci(n,(function(e,n){return Ii(t,o,r,e,n,i,a)})),Ui(t,r,!1),i&&t.u&&wi("Patches").N(o,i,t.u,t.s)}return o.o}function Ii(t,e,i,o,r,n,a){if(si(r)){var s=Ri(t,r,n&&e&&3!==e.i&&!hi(e.R,o)?n.concat(o):void 0);if(di(i,o,s),!si(s))return;t.m=!1}else a&&i.add(r);if(li(r)&&!xi(r)){if(!t.h.D&&t._<1)return;Ri(t,r),e&&e.A.l||Ui(t,r)}}function Ui(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&vi(e,i)}function Li(t,e){var i=t[Gi];return(i?gi(i):t)[e]}function Ai(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function _i(t){t.P||(t.P=!0,t.l&&_i(t.l))}function Ti(t){t.o||(t.o=bi(t.t))}function Di(t,e,i){var o=pi(e)?wi("MapSet").F(e,i):yi(e)?wi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Oi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ji;i&&(r=[o],n=Qi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):wi("ES5").J(e,i);return(i?i.A:Oi()).p.push(o),o}function Wi(t){return si(t)||ai(22,t),function t(e){if(!li(e))return e;var i,o=e[Gi],r=fi(e);if(o){if(!o.P&&(o.i<4||!wi("ES5").K(o)))return o.t;o.I=!0,i=Fi(e,r),o.I=!1}else i=Fi(e,r);return ci(i,(function(e,r){o&&function(t,e){return 2===fi(t)?t.get(e):t[e]}(o.t,e)===r||di(i,e,t(r))})),3===r?new Set(i):i}(t)}function Fi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bi(t)}Qe=oi,ti=ri,ei=ii,ni.reduxProperties=new Map,ni.reduxReactiveProperties=new Set,ni.reduxEventListeners=new Map;var Pi,Mi,ji="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zi="undefined"!=typeof Map,Bi="undefined"!=typeof Set,Ki="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zi=ji?Symbol.for("immer-nothing"):((Pi={})["immer-nothing"]=!0,Pi),Hi=ji?Symbol.for("immer-draftable"):"__$immer_draftable",Gi=ji?Symbol.for("immer-state"):"__$immer_state",Vi=""+Object.prototype.constructor,qi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yi=Object.getOwnPropertyDescriptors||function(t){var e={};return qi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Xi={},Ji={get:function(t,e){if(e===Gi)return t;var i=gi(t);if(!hi(i,e))return function(t,e,i){var o,r=Ai(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!li(o)?o:o===Li(t.t,e)?(Ti(t),t.o[e]=Di(t.A.h,o,t)):o},has:function(t,e){return e in gi(t)},ownKeys:function(t){return Reflect.ownKeys(gi(t))},set:function(t,e,i){var o=Ai(gi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Li(gi(t),e),n=null==r?void 0:r[Gi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ui(i,r)&&(void 0!==i||hi(t.t,e)))return!0;Ti(t),_i(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Li(t.t,e)||e in t.t?(t.R[e]=!1,Ti(t),_i(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=gi(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ai(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ai(12)}},Qi={};ci(Ji,(function(t,e){Qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qi.deleteProperty=function(t,e){return Qi.set.call(this,t,e,void 0)},Qi.set=function(t,e,i){return Ji.set.call(this,t[0],e,i,t[0])};var to=function(){function t(t){var e=this;this.O=Ki,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ai(6),void 0!==o&&"function"!=typeof o&&ai(7),li(t)){var s=Ci(e),l=Di(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?$i(s):Ni(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Si(s,o),ki(t,s)}),(function(t){throw $i(s),t})):(Si(s,o),ki(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Zi&&(a=void 0),e.D&&vi(a,!0),o){var f=[],h=[];wi("Patches").M(t,a,f,h),o(f,h)}return a}ai(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){li(t)||ai(8),si(t)&&(t=Wi(t));var e=Ci(this),i=Di(this,t,void 0);return i[Gi].C=!0,Ni(e),i},e.finishDraft=function(t,e){var i=(t&&t[Gi]).A;return Si(i,e),ki(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ki&&ai(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=wi("Patches").$;return si(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),eo=new to,io=eo.produce;function oo(t){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(t)}function ro(t){var e=function(t,e){if("object"!==oo(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==oo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===oo(e)?e:String(e)}function no(t,e,i){return(e=ro(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ao(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function so(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ao(Object(i),!0).forEach((function(e){no(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ao(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function lo(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}eo.produceWithPatches.bind(eo),eo.setAutoFreeze.bind(eo),eo.setUseProxies.bind(eo),eo.applyPatches.bind(eo),eo.createDraft.bind(eo),eo.finishDraft.bind(eo);var co="function"==typeof Symbol&&Symbol.observable||"@@observable",fo=function(){return Math.random().toString(36).substring(7).split("").join(".")},ho={INIT:"@@redux/INIT"+fo(),REPLACE:"@@redux/REPLACE"+fo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fo()}};function uo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(lo(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(lo(1));return i(uo)(t,e)}if("function"!=typeof t)throw new Error(lo(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(lo(3));return n}function h(t){if("function"!=typeof t)throw new Error(lo(4));if(l)throw new Error(lo(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(lo(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(lo(7));if(void 0===t.type)throw new Error(lo(8));if(l)throw new Error(lo(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ho.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(lo(10));r=t,d({type:ho.REPLACE})}})[co]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(lo(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[co]=function(){return this},t},o}function po(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ho.INIT}))throw new Error(lo(12));if(void 0===i(void 0,{type:ho.PROBE_UNKNOWN_ACTION()}))throw new Error(lo(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(lo(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function yo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function go(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(lo(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=yo.apply(void 0,n)(i.dispatch),so(so({},i),{},{dispatch:o})}}}function bo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var vo=bo();vo.withExtraArgument=bo;var mo,xo=vo,wo=(mo=function(t,e){return mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},mo(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}mo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Oo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},So=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},$o=Object.defineProperty,No=Object.defineProperties,Co=Object.getOwnPropertyDescriptors,Eo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Io=function(t,e,i){return e in t?$o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Uo=function(t,e){for(var i in e||(e={}))ko.call(e,i)&&Io(t,i,e[i]);if(Eo)for(var o=0,r=Eo(e);o<r.length;o++){i=r[o];Ro.call(e,i)&&Io(t,i,e[i])}return t},Lo=function(t,e){return No(t,Co(e))},Ao="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yo:yo.apply(null,arguments)};var _o=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return wo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,So([void 0],t[0].concat(this)))):new(e.bind.apply(e,So([void 0],t.concat(this))))},e}(Array),To=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return wo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,So([void 0],t[0].concat(this)))):new(e.bind.apply(e,So([void 0],t.concat(this))))},e}(Array);function Do(t){return li(t)?io(t,(function(){})):t}function Wo(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new _o;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(xo.withExtraArgument(i.extraArgument)):o.push(xo));return o}(t)}}function Fo(t){var e,i=Wo(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=po(n)}var p=s;"function"==typeof p&&(p=p(i));var y=go.apply(void 0,p),g=yo;c&&(g=Ao(Uo({trace:!1},"object"==typeof c&&c)));var b=new To(y),v=b;return Array.isArray(u)?v=So([y],u):"function"==typeof u&&(v=u(b)),uo(e,h,g.apply(void 0,v))}function Po(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Uo(Uo({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Mo(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function jo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Do(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Mo(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Uo(Uo({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Mo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Do(t())};else{var c=Do(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=So([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(si(t))return void 0===(o=i(t,e))?t:o;if(li(t))return io(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Po(c,o):Po(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var zo=["name","message","stack","code"],Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t,e){this.payload=t,this.meta=e},Zo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=zo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ho(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Po(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Lo(Uo({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Po(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Lo(Uo({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Po(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Zo)(t||"Rejected"),meta:Lo(Uo({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Oo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Bo(t,e)},fulfillWithValue:function(t,e){return new Ko(t,e)}})).then((function(e){if(e instanceof Bo)throw e;return e instanceof Ko?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Bo?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ho)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Go="listenerMiddleware";Po(Go+"/add"),Po(Go+"/removeAll"),Po(Go+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Gi];return Ji.get(e,t)},set:function(e){var i=this[Gi];Ji.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Gi];if(!r.P)switch(r.i){case 5:o(r)&&_i(r);break;case 4:i(r)&&_i(r)}}}function i(t){for(var e=t.t,i=t.k,o=qi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Gi){var a=e[n];if(void 0===a&&!hi(e,n))return!0;var s=i[n],l=s&&s[Gi];if(l?l.t!==a:!ui(s,a))return!0}}var c=!!e[Gi];return o.length!==qi(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Xi[t]||(Xi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Yi(i);delete n[Gi];for(var a=qi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:Oi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Gi,{value:n,writable:!0}),r},S:function(t,i,r){r?si(i)&&i[Gi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Gi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ci(n,(function(e){e!==Gi&&(void 0!==r[e]||hi(r,e)?a[e]||t(n[e]):(a[e]=!0,_i(i)))})),ci(r,(function(t){void 0!==n[t]||hi(n,t)||(a[t]=!1,_i(i))}));else if(5===s){if(o(i)&&(_i(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Vo{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Je(r))return r;if(null==o)return;const n=jo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Fo({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Vo(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const qo=Symbol("elementInternals");function Yo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qo].form}constructor(...t){super(t),this[qo]=this.attachInternals(),this[qo].role=e}setFormValue(t){this[qo].setFormValue(t)}}}var Xo,Jo,Qo;const tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qo=null===(Jo=null===(Xo=window.safari)||void 0===Xo?void 0:Xo.pushNotification)||void 0===Jo?void 0:Jo.toString())&&void 0!==Qo?Qo:"");var er;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(er||(er={}));var ir=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class or extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const rr=Symbol("registerInterval");class nr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[rr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[rr]):this.dispatchEvent(new or)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=rr,ir([R()],i.prototype,"stateManager",void 0),i}(ni)){}const ar=Re.extend("--ft-ripple-color","",Te.colorContent),sr={color:ar,backgroundColor:Re.extend("--ft-ripple-background-color","",ar),opacityContentOnSurfacePressed:Re.external(Te.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(Te.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(Te.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(Te.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},lr=Re.extend("--ft-ripple-color","",Te.colorPrimary),cr=lr,fr=Re.extend("--ft-ripple-background-color","",lr),hr=Re.extend("--ft-ripple-color","",Te.colorSecondary),dr=hr,ur=Re.extend("--ft-ripple-background-color","",hr),pr=Rt`
132
+ `;class Yi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Xi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};k(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ji{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Qi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,io;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class ao extends Hi{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[no].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[no].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[no].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Qi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[no].delete(e)}setupStore(t,e){this[no].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[no].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qi(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lo(t){return!!t&&!!t[qo]}function co(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Yo}(t)||Array.isArray(t)||!!t[Vo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vo])||go(t)||bo(t))}function fo(t,e,i){void 0===i&&(i=!1),0===ho(t)?(i?Object.keys:Xo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ho(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:go(t)?2:bo(t)?3:0}function uo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,i){var o=ho(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function go(t){return Ko&&t instanceof Map}function bo(t){return Zo&&t instanceof Set}function vo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var i=Xo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),Oo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=wo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function wo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||so(18,t),e}function $o(){return zo}function No(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===zo&&(zo=t.l)}function ko(t){return zo={p:[],l:zo,h:t,m:!0,_:0}}function Ro(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function Io(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||So("ES5").S(e,t,o),o?(i[qo].P&&(Co(e),so(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(i[qo].t,t,e.u,e.s)):t=Uo(e,i,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,i){if(Oo(e))return e;var o=e[qo];if(!o)return fo(e,(function(r,n){return Lo(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ao(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=mo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),fo(n,(function(e,n){return Lo(t,o,r,e,n,i,a)})),Ao(t,r,!1),i&&t.u&&So("Patches").N(o,i,t.u,t.s)}return o.o}function Lo(t,e,i,o,r,n,a){if(lo(r)){var s=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,o)?n.concat(o):void 0);if(po(i,o,s),!lo(s))return;t.m=!1}else a&&i.add(r);if(co(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&xo(e,i)}function _o(t,e){var i=t[qo];return(i?vo(i):t)[e]}function To(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Do(t){t.P||(t.P=!0,t.l&&Do(t.l))}function Wo(t){t.o||(t.o=mo(t.t))}function Fo(t,e,i){var o=go(e)?So("MapSet").F(e,i):bo(e)?So("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:$o(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=tr;i&&(r=[o],n=er);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):So("ES5").J(e,i);return(i?i.A:$o()).p.push(o),o}function Po(t){return lo(t)||so(22,t),function t(e){if(!co(e))return e;var i,o=e[qo],r=ho(e);if(o){if(!o.P&&(o.i<4||!So("ES5").K(o)))return o.t;o.I=!0,i=Mo(e,r),o.I=!1}else i=Mo(e,r);return fo(i,(function(e,r){o&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(o.t,e)===r||po(i,e,t(r))})),3===r?new Set(i):i}(t)}function Mo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}to=ro,eo=no,io=oo,ao.reduxProperties=new Map,ao.reduxReactiveProperties=new Set,ao.reduxEventListeners=new Map;var jo,zo,Bo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Bo?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),Vo=Bo?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Bo?Symbol.for("immer-state"):"__$immer_state",Yo=""+Object.prototype.constructor,Xo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jo=Object.getOwnPropertyDescriptors||function(t){var e={};return Xo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Qo={},tr={get:function(t,e){if(e===qo)return t;var i=vo(t);if(!uo(i,e))return function(t,e,i){var o,r=To(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!co(o)?o:o===_o(t.t,e)?(Wo(t),t.o[e]=Fo(t.A.h,o,t)):o},has:function(t,e){return e in vo(t)},ownKeys:function(t){return Reflect.ownKeys(vo(t))},set:function(t,e,i){var o=To(vo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=_o(vo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(yo(i,r)&&(void 0!==i||uo(t.t,e)))return!0;Wo(t),Do(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==_o(t.t,e)||e in t.t?(t.R[e]=!1,Wo(t),Do(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=vo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},er={};fo(tr,(function(t,e){er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),er.deleteProperty=function(t,e){return er.set.call(this,t,e,void 0)},er.set=function(t,e,i){return tr.set.call(this,t[0],e,i,t[0])};var ir=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&so(6),void 0!==o&&"function"!=typeof o&&so(7),co(t)){var s=ko(e),l=Fo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return No(s,o),Io(t,s)}),(function(t){throw Co(s),t})):(No(s,o),Io(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Go&&(a=void 0),e.D&&xo(a,!0),o){var f=[],h=[];So("Patches").M(t,a,f,h),o(f,h)}return a}so(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||so(8),lo(t)&&(t=Po(t));var e=ko(this),i=Fo(this,t,void 0);return i[qo].C=!0,Eo(e),i},e.finishDraft=function(t,e){var i=(t&&t[qo]).A;return No(i,e),Io(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&so(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),or=new ir,rr=or.produce;function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function ar(t){var e=function(t,e){if("object"!==nr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==nr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nr(e)?e:String(e)}function sr(t,e,i){return(e=ar(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function lr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function cr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(i),!0).forEach((function(e){sr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function fr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var hr="function"==typeof Symbol&&Symbol.observable||"@@observable",dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function pr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(fr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(fr(1));return i(pr)(t,e)}if("function"!=typeof t)throw new Error(fr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(fr(3));return n}function h(t){if("function"!=typeof t)throw new Error(fr(4));if(l)throw new Error(fr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(fr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(fr(7));if(void 0===t.type)throw new Error(fr(8));if(l)throw new Error(fr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ur.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fr(10));r=t,d({type:ur.REPLACE})}})[hr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[hr]=function(){return this},t},o}function yr(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ur.INIT}))throw new Error(fr(12));if(void 0===i(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(fr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function gr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function br(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(fr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=gr.apply(void 0,n)(i.dispatch),cr(cr({},i),{},{dispatch:o})}}}function vr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var mr=vr();mr.withExtraArgument=vr;var xr,wr=mr,Or=(xr=function(t,e){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},xr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Sr=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},$r=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Nr=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Ur=function(t,e,i){return e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Lr=function(t,e){for(var i in e||(e={}))Rr.call(e,i)&&Ur(t,i,e[i]);if(kr)for(var o=0,r=kr(e);o<r.length;o++){i=r[o];Ir.call(e,i)&&Ur(t,i,e[i])}return t},Ar=function(t,e){return Cr(t,Er(e))},_r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?gr:gr.apply(null,arguments)};var Tr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array),Dr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function Wr(t){return co(t)?rr(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Tr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(wr.withExtraArgument(i.extraArgument)):o.push(wr));return o}(t)}}function Pr(t){var e,i=Fr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=yr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=br.apply(void 0,p),g=gr;c&&(g=_r(Lr({trace:!1},"object"==typeof c&&c)));var b=new Dr(y),v=b;return Array.isArray(u)?v=$r([y],u):"function"==typeof u&&(v=u(b)),pr(e,h,g.apply(void 0,v))}function Mr(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Lr(Lr({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function jr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function zr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Wr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Lr(Lr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Wr(t())};else{var c=Wr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=$r([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(lo(t))return void 0===(o=i(t,e))?t:o;if(co(t))return rr(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Mr(c,o):Mr(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Br=["name","message","stack","code"],Kr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Br;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Mr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Ar(Lr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Mr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Ar(Lr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Mr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Hr)(t||"Rejected"),meta:Ar(Lr({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Sr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Kr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof Kr)throw e;return e instanceof Zr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Kr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Gr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Vr="listenerMiddleware";Mr(Vr+"/add"),Mr(Vr+"/removeAll"),Mr(Vr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[qo];return tr.get(e,t)},set:function(e){var i=this[qo];tr.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][qo];if(!r.P)switch(r.i){case 5:o(r)&&Do(r);break;case 4:i(r)&&Do(r)}}}function i(t){for(var e=t.t,i=t.k,o=Xo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==qo){var a=e[n];if(void 0===a&&!uo(e,n))return!0;var s=i[n],l=s&&s[qo];if(l?l.t!==a:!yo(s,a))return!0}}var c=!!e[qo];return o.length!==Xo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Jo(i);delete n[qo];for(var a=Xo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:$o(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,i,r){r?lo(i)&&i[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[qo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?a[e]||t(n[e]):(a[e]=!0,Do(i)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(a[t]=!1,Do(i))}));else if(5===s){if(o(i)&&(Do(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Qi(r))return r;if(null==o)return;const n=zr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ji,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yr=Symbol("elementInternals");function Xr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Yr].form}constructor(...t){super(t),this[Yr]=this.attachInternals(),this[Yr].role=e}setFormValue(t){this[Yr].setFormValue(t)}}}var Jr,Qr,tn;const en=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(tn=null===(Qr=null===(Jr=window.safari)||void 0===Jr?void 0:Jr.pushNotification)||void 0===Qr?void 0:Qr.toString())&&void 0!==tn?tn:"");var on;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(on||(on={}));var rn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class nn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const an=Symbol("registerInterval");class sn extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[an]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[an]):this.dispatchEvent(new nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=an,rn([R()],i.prototype,"stateManager",void 0),i}(ao)){}const ln=Re.extend("--ft-ripple-color","",Te.colorContent),cn={color:ln,backgroundColor:Re.extend("--ft-ripple-background-color","",ln),opacityContentOnSurfacePressed:Re.external(Te.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(Te.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(Te.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(Te.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},fn=Re.extend("--ft-ripple-color","",Te.colorPrimary),hn=fn,dn=Re.extend("--ft-ripple-background-color","",fn),un=Re.extend("--ft-ripple-color","",Te.colorSecondary),pn=un,yn=Re.extend("--ft-ripple-background-color","",un),gn=Rt`
132
133
  :host {
133
134
  display: contents;
134
135
  }
@@ -141,7 +142,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
141
142
 
142
143
  .ft-ripple:not(.ft-ripple--unbounded) {
143
144
  overflow: hidden;
144
- border-radius: ${sr.borderRadius};
145
+ border-radius: ${cn.borderRadius};
145
146
  }
146
147
 
147
148
  .ft-ripple .ft-ripple--background,
@@ -175,27 +176,27 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
175
176
  }
176
177
 
177
178
  .ft-ripple .ft-ripple--background {
178
- background-color: ${sr.backgroundColor};
179
+ background-color: ${cn.backgroundColor};
179
180
  }
180
181
 
181
182
  .ft-ripple .ft-ripple--effect {
182
- background-color: ${sr.color};
183
+ background-color: ${cn.color};
183
184
  }
184
185
 
185
186
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
186
- background-color: ${ur};
187
+ background-color: ${yn};
187
188
  }
188
189
 
189
190
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
190
- background-color: ${dr};
191
+ background-color: ${pn};
191
192
  }
192
193
 
193
194
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
194
- background-color: ${fr};
195
+ background-color: ${dn};
195
196
  }
196
197
 
197
198
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
198
- background-color: ${cr};
199
+ background-color: ${hn};
199
200
  }
200
201
 
201
202
  .ft-ripple .ft-ripple--background {
@@ -225,117 +226,117 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
225
226
  }
226
227
 
227
228
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
228
- opacity: ${sr.opacityContentOnSurfaceHover};
229
+ opacity: ${cn.opacityContentOnSurfaceHover};
229
230
  }
230
231
 
231
232
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
232
- opacity: ${sr.opacityContentOnSurfaceSelected};
233
+ opacity: ${cn.opacityContentOnSurfaceSelected};
233
234
  }
234
235
 
235
236
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
236
- opacity: ${sr.opacityContentOnSurfaceFocused};
237
+ opacity: ${cn.opacityContentOnSurfaceFocused};
237
238
  }
238
239
 
239
240
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
240
- opacity: ${sr.opacityContentOnSurfacePressed};
241
+ opacity: ${cn.opacityContentOnSurfacePressed};
241
242
  transform: translate(-50%, -50%) scale(1);
242
243
  }
243
- `;const yr=Re.extend("--ft-typography-font-family","",Te.titleFont),gr=Re.extend("--ft-typography-font-family","",Te.contentFont),br={fontFamily:gr,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},vr={fontFamily:Re.extend("--ft-typography-title-font-family","",yr),fontSize:Re.extend("--ft-typography-title-font-size","",br.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",br.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",br.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",br.textTransform,"inherit")},mr={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",yr),fontSize:Re.extend("--ft-typography-title-dense-font-size","",br.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",br.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",br.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",br.textTransform,"inherit")},xr=Re.extend("--ft-typography-subtitle1-font-family","",gr),wr=Re.extend("--ft-typography-subtitle1-font-size","",br.fontSize,"16px"),Or=Re.extend("--ft-typography-subtitle1-font-weight","",br.fontWeight,"600"),Sr=Re.extend("--ft-typography-subtitle1-letter-spacing","",br.letterSpacing,"0.144px"),$r=Re.extend("--ft-typography-subtitle1-line-height","",br.lineHeight,"1.5"),Nr=Re.extend("--ft-typography-subtitle1-text-transform","",br.textTransform,"inherit"),Cr=Re.extend("--ft-typography-subtitle2-font-family","",gr),Er=Re.extend("--ft-typography-subtitle2-font-size","",br.fontSize,"14px"),kr=Re.extend("--ft-typography-subtitle2-font-weight","",br.fontWeight,"normal"),Rr=Re.extend("--ft-typography-subtitle2-letter-spacing","",br.letterSpacing,"0.098px"),Ir=Re.extend("--ft-typography-subtitle2-line-height","",br.lineHeight,"1.7"),Ur=Re.extend("--ft-typography-subtitle2-text-transform","",br.textTransform,"inherit"),Lr={fontFamily:Re.extend("--ft-typography-body1-font-family","",gr),fontSize:Re.extend("--ft-typography-body1-font-size","",br.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",br.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",br.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",br.textTransform,"inherit")},Ar=Re.extend("--ft-typography-body2-font-family","",gr),_r=Re.extend("--ft-typography-body2-font-size","",br.fontSize,"14px"),Tr=Re.extend("--ft-typography-body2-font-weight","",br.fontWeight,"normal"),Dr=Re.extend("--ft-typography-body2-letter-spacing","",br.letterSpacing,"0.252px"),Wr=Re.extend("--ft-typography-body2-line-height","",br.lineHeight,"1.4"),Fr=Re.extend("--ft-typography-body2-text-transform","",br.textTransform,"inherit"),Pr={fontFamily:Re.extend("--ft-typography-caption-font-family","",gr),fontSize:Re.extend("--ft-typography-caption-font-size","",br.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",br.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",br.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",br.textTransform,"inherit")},Mr=Re.extend("--ft-typography-breadcrumb-font-family","",gr),jr=Re.extend("--ft-typography-breadcrumb-font-size","",br.fontSize,"10px"),zr=Re.extend("--ft-typography-breadcrumb-font-weight","",br.fontWeight,"normal"),Br=Re.extend("--ft-typography-breadcrumb-letter-spacing","",br.letterSpacing,"0.33px"),Kr=Re.extend("--ft-typography-breadcrumb-line-height","",br.lineHeight,"1.6"),Zr=Re.extend("--ft-typography-breadcrumb-text-transform","",br.textTransform,"inherit"),Hr=Re.extend("--ft-typography-overline-font-family","",gr),Gr=Re.extend("--ft-typography-overline-font-size","",br.fontSize,"10px"),Vr=Re.extend("--ft-typography-overline-font-weight","",br.fontWeight,"normal"),qr=Re.extend("--ft-typography-overline-letter-spacing","",br.letterSpacing,"1.5px"),Yr=Re.extend("--ft-typography-overline-line-height","",br.lineHeight,"1.6"),Xr=Re.extend("--ft-typography-overline-text-transform","",br.textTransform,"uppercase"),Jr={fontFamily:Re.extend("--ft-typography-button-font-family","",gr),fontSize:Re.extend("--ft-typography-button-font-size","",br.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",br.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",br.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",br.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",br.textTransform,"uppercase")},Qr=Rt`
244
+ `;const bn=Re.extend("--ft-typography-font-family","",Te.titleFont),vn=Re.extend("--ft-typography-font-family","",Te.contentFont),mn={fontFamily:vn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xn={fontFamily:Re.extend("--ft-typography-title-font-family","",bn),fontSize:Re.extend("--ft-typography-title-font-size","",mn.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",mn.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",mn.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",mn.textTransform,"inherit")},wn={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",bn),fontSize:Re.extend("--ft-typography-title-dense-font-size","",mn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",mn.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",mn.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",mn.textTransform,"inherit")},On=Re.extend("--ft-typography-subtitle1-font-family","",vn),Sn=Re.extend("--ft-typography-subtitle1-font-size","",mn.fontSize,"16px"),$n=Re.extend("--ft-typography-subtitle1-font-weight","",mn.fontWeight,"600"),Nn=Re.extend("--ft-typography-subtitle1-letter-spacing","",mn.letterSpacing,"0.144px"),Cn=Re.extend("--ft-typography-subtitle1-line-height","",mn.lineHeight,"1.5"),En=Re.extend("--ft-typography-subtitle1-text-transform","",mn.textTransform,"inherit"),kn=Re.extend("--ft-typography-subtitle2-font-family","",vn),Rn=Re.extend("--ft-typography-subtitle2-font-size","",mn.fontSize,"14px"),In=Re.extend("--ft-typography-subtitle2-font-weight","",mn.fontWeight,"normal"),Un=Re.extend("--ft-typography-subtitle2-letter-spacing","",mn.letterSpacing,"0.098px"),Ln=Re.extend("--ft-typography-subtitle2-line-height","",mn.lineHeight,"1.7"),An=Re.extend("--ft-typography-subtitle2-text-transform","",mn.textTransform,"inherit"),_n={fontFamily:Re.extend("--ft-typography-body1-font-family","",vn),fontSize:Re.extend("--ft-typography-body1-font-size","",mn.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",mn.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",mn.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",mn.textTransform,"inherit")},Tn=Re.extend("--ft-typography-body2-font-family","",vn),Dn=Re.extend("--ft-typography-body2-font-size","",mn.fontSize,"14px"),Wn=Re.extend("--ft-typography-body2-font-weight","",mn.fontWeight,"normal"),Fn=Re.extend("--ft-typography-body2-letter-spacing","",mn.letterSpacing,"0.252px"),Pn=Re.extend("--ft-typography-body2-line-height","",mn.lineHeight,"1.4"),Mn=Re.extend("--ft-typography-body2-text-transform","",mn.textTransform,"inherit"),jn={fontFamily:Re.extend("--ft-typography-caption-font-family","",vn),fontSize:Re.extend("--ft-typography-caption-font-size","",mn.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",mn.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",mn.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",mn.textTransform,"inherit")},zn=Re.extend("--ft-typography-breadcrumb-font-family","",vn),Bn=Re.extend("--ft-typography-breadcrumb-font-size","",mn.fontSize,"10px"),Kn=Re.extend("--ft-typography-breadcrumb-font-weight","",mn.fontWeight,"normal"),Zn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",mn.letterSpacing,"0.33px"),Hn=Re.extend("--ft-typography-breadcrumb-line-height","",mn.lineHeight,"1.6"),Gn=Re.extend("--ft-typography-breadcrumb-text-transform","",mn.textTransform,"inherit"),Vn=Re.extend("--ft-typography-overline-font-family","",vn),qn=Re.extend("--ft-typography-overline-font-size","",mn.fontSize,"10px"),Yn=Re.extend("--ft-typography-overline-font-weight","",mn.fontWeight,"normal"),Xn=Re.extend("--ft-typography-overline-letter-spacing","",mn.letterSpacing,"1.5px"),Jn=Re.extend("--ft-typography-overline-line-height","",mn.lineHeight,"1.6"),Qn=Re.extend("--ft-typography-overline-text-transform","",mn.textTransform,"uppercase"),ta={fontFamily:Re.extend("--ft-typography-button-font-family","",vn),fontSize:Re.extend("--ft-typography-button-font-size","",mn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",mn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",mn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",mn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",mn.textTransform,"uppercase")},ea=Rt`
244
245
  .ft-typography--title {
245
- font-family: ${vr.fontFamily};
246
- font-size: ${vr.fontSize};
247
- font-weight: ${vr.fontWeight};
248
- letter-spacing: ${vr.letterSpacing};
249
- line-height: ${vr.lineHeight};
250
- text-transform: ${vr.textTransform};
251
- }
252
- `,tn=Rt`
246
+ font-family: ${xn.fontFamily};
247
+ font-size: ${xn.fontSize};
248
+ font-weight: ${xn.fontWeight};
249
+ letter-spacing: ${xn.letterSpacing};
250
+ line-height: ${xn.lineHeight};
251
+ text-transform: ${xn.textTransform};
252
+ }
253
+ `,ia=Rt`
253
254
  .ft-typography--title-dense {
254
- font-family: ${mr.fontFamily};
255
- font-size: ${mr.fontSize};
256
- font-weight: ${mr.fontWeight};
257
- letter-spacing: ${mr.letterSpacing};
258
- line-height: ${mr.lineHeight};
259
- text-transform: ${mr.textTransform};
260
- }
261
- `,en=Rt`
255
+ font-family: ${wn.fontFamily};
256
+ font-size: ${wn.fontSize};
257
+ font-weight: ${wn.fontWeight};
258
+ letter-spacing: ${wn.letterSpacing};
259
+ line-height: ${wn.lineHeight};
260
+ text-transform: ${wn.textTransform};
261
+ }
262
+ `,oa=Rt`
262
263
  .ft-typography--subtitle1 {
263
- font-family: ${xr};
264
- font-size: ${wr};
265
- font-weight: ${Or};
266
- letter-spacing: ${Sr};
267
- line-height: ${$r};
268
- text-transform: ${Nr};
269
- }
270
- `,on=Rt`
264
+ font-family: ${On};
265
+ font-size: ${Sn};
266
+ font-weight: ${$n};
267
+ letter-spacing: ${Nn};
268
+ line-height: ${Cn};
269
+ text-transform: ${En};
270
+ }
271
+ `,ra=Rt`
271
272
  .ft-typography--subtitle2 {
272
- font-family: ${Cr};
273
- font-size: ${Er};
274
- font-weight: ${kr};
275
- letter-spacing: ${Rr};
276
- line-height: ${Ir};
277
- text-transform: ${Ur};
273
+ font-family: ${kn};
274
+ font-size: ${Rn};
275
+ font-weight: ${In};
276
+ letter-spacing: ${Un};
277
+ line-height: ${Ln};
278
+ text-transform: ${An};
278
279
  }
279
280
 
280
- `,rn=Rt`
281
+ `,na=Rt`
281
282
  .ft-typography--body1 {
282
- font-family: ${Lr.fontFamily};
283
- font-size: ${Lr.fontSize};
284
- font-weight: ${Lr.fontWeight};
285
- letter-spacing: ${Lr.letterSpacing};
286
- line-height: ${Lr.lineHeight};
287
- text-transform: ${Lr.textTransform};
288
- }
289
- `,nn=Rt`
283
+ font-family: ${_n.fontFamily};
284
+ font-size: ${_n.fontSize};
285
+ font-weight: ${_n.fontWeight};
286
+ letter-spacing: ${_n.letterSpacing};
287
+ line-height: ${_n.lineHeight};
288
+ text-transform: ${_n.textTransform};
289
+ }
290
+ `,aa=Rt`
290
291
  .ft-typography--body2 {
291
- font-family: ${Ar};
292
- font-size: ${_r};
293
- font-weight: ${Tr};
294
- letter-spacing: ${Dr};
295
- line-height: ${Wr};
296
- text-transform: ${Fr};
297
- }
298
- `,an=Rt`
292
+ font-family: ${Tn};
293
+ font-size: ${Dn};
294
+ font-weight: ${Wn};
295
+ letter-spacing: ${Fn};
296
+ line-height: ${Pn};
297
+ text-transform: ${Mn};
298
+ }
299
+ `,sa=Rt`
299
300
  .ft-typography--caption {
300
- font-family: ${Pr.fontFamily};
301
- font-size: ${Pr.fontSize};
302
- font-weight: ${Pr.fontWeight};
303
- letter-spacing: ${Pr.letterSpacing};
304
- line-height: ${Pr.lineHeight};
305
- text-transform: ${Pr.textTransform};
306
- }
307
- `,sn=Rt`
301
+ font-family: ${jn.fontFamily};
302
+ font-size: ${jn.fontSize};
303
+ font-weight: ${jn.fontWeight};
304
+ letter-spacing: ${jn.letterSpacing};
305
+ line-height: ${jn.lineHeight};
306
+ text-transform: ${jn.textTransform};
307
+ }
308
+ `,la=Rt`
308
309
  .ft-typography--breadcrumb {
309
- font-family: ${Mr};
310
- font-size: ${jr};
311
- font-weight: ${zr};
312
- letter-spacing: ${Br};
313
- line-height: ${Kr};
314
- text-transform: ${Zr};
315
- }
316
- `,ln=Rt`
310
+ font-family: ${zn};
311
+ font-size: ${Bn};
312
+ font-weight: ${Kn};
313
+ letter-spacing: ${Zn};
314
+ line-height: ${Hn};
315
+ text-transform: ${Gn};
316
+ }
317
+ `,ca=Rt`
317
318
  .ft-typography--overline {
318
- font-family: ${Hr};
319
- font-size: ${Gr};
320
- font-weight: ${Vr};
321
- letter-spacing: ${qr};
322
- line-height: ${Yr};
323
- text-transform: ${Xr};
324
- }
325
- `,cn=Rt`
319
+ font-family: ${Vn};
320
+ font-size: ${qn};
321
+ font-weight: ${Yn};
322
+ letter-spacing: ${Xn};
323
+ line-height: ${Jn};
324
+ text-transform: ${Qn};
325
+ }
326
+ `,fa=Rt`
326
327
  .ft-typography--button {
327
- font-family: ${Jr.fontFamily};
328
- font-size: ${Jr.fontSize};
329
- font-weight: ${Jr.fontWeight};
330
- letter-spacing: ${Jr.letterSpacing};
331
- line-height: ${Jr.lineHeight};
332
- text-transform: ${Jr.textTransform};
333
- }
334
- `,fn=Rt`
328
+ font-family: ${ta.fontFamily};
329
+ font-size: ${ta.fontSize};
330
+ font-weight: ${ta.fontWeight};
331
+ letter-spacing: ${ta.letterSpacing};
332
+ line-height: ${ta.lineHeight};
333
+ text-transform: ${ta.textTransform};
334
+ }
335
+ `,ha=Rt`
335
336
  .ft-typography {
336
337
  vertical-align: inherit;
337
338
  }
338
- `,hn=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
339
+ `,da=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
339
340
  .ft-typography--${kt(t)} {
340
341
  font-family: ${e.fontFamily};
341
342
  font-size: ${e.fontSize};
@@ -344,7 +345,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
344
345
  line-height: ${e.lineHeight};
345
346
  text-transform: ${e.textCase};
346
347
  }
347
- `}(t)))],dn={color:Re.extend("--ft-loader-color","",Te.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},un=Rt`
348
+ `}(t)))],ua={color:Re.extend("--ft-loader-color","",Te.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},pa=Rt`
348
349
  :host {
349
350
  line-height: 0;
350
351
  }
@@ -353,8 +354,8 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
353
354
  display: inline-block;
354
355
  position: relative;
355
356
 
356
- width: ${dn.size};
357
- height: ${dn.size};
357
+ width: ${ua.size};
358
+ height: ${ua.size};
358
359
  }
359
360
 
360
361
  .ft-loader div {
@@ -363,7 +364,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
363
364
  width: 25%;
364
365
  height: 25%;
365
366
  border-radius: 50%;
366
- background: ${dn.color};
367
+ background: ${ua.color};
367
368
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
368
369
  }
369
370
 
@@ -410,10 +411,10 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
410
411
  transform: translate(0, 0);
411
412
  }
412
413
  100% {
413
- transform: translate(calc(0.35 * ${dn.size}), 0);
414
+ transform: translate(calc(0.35 * ${ua.size}), 0);
414
415
  }
415
416
  }
416
- `,pn={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},yn=Rt`
417
+ `,ya={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ga=Rt`
417
418
  :host, i.ft-icon {
418
419
  display: inline-flex;
419
420
  align-items: center;
@@ -422,14 +423,14 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
422
423
  }
423
424
 
424
425
  :host {
425
- width: ${pn.size};
426
- height: ${pn.size};
426
+ width: ${ya.size};
427
+ height: ${ya.size};
427
428
  }
428
429
 
429
430
  i.ft-icon {
430
431
  width: 100%;
431
432
  height: 100%;
432
- font-size: ${pn.size};
433
+ font-size: ${ya.size};
433
434
  line-height: 1;
434
435
  font-weight: normal;
435
436
  text-transform: none;
@@ -440,28 +441,28 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
440
441
  text-rendering: auto;
441
442
  -webkit-font-smoothing: antialiased;
442
443
  -moz-osx-font-smoothing: grayscale;
443
- vertical-align: ${pn.verticalAlign};
444
+ vertical-align: ${ya.verticalAlign};
444
445
  }
445
446
 
446
447
  i.ft-icon.ft-icon--fluid-topics {
447
- font-family: ${pn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
448
+ font-family: ${ya.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
448
449
 
449
450
  /* Ugly fix because font is broken */
450
- font-size: calc(0.75 * ${pn.size});
451
- line-height: ${pn.size};
451
+ font-size: calc(0.75 * ${ya.size});
452
+ line-height: ${ya.size};
452
453
  position: relative;
453
454
  top: -4%;
454
455
  justify-content: center;
455
456
  }
456
457
 
457
458
  .ft-icon--file-format {
458
- font-family: ${pn.fileFormatFontFamily}, ft-mime, sans-serif;
459
+ font-family: ${ya.fileFormatFontFamily}, ft-mime, sans-serif;
459
460
  }
460
461
 
461
462
  .ft-icon--material {
462
- font-family: ${pn.materialFontFamily}, "Material Icons", sans-serif;
463
+ font-family: ${ya.materialFontFamily}, "Material Icons", sans-serif;
463
464
  }
464
- `,gn=Re.extend("--ft-button-color","",Te.colorPrimary),bn={backgroundColor:Re.extend("--ft-button-background-color","",Te.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",Te.borderRadiusL),color:gn,fontSize:Re.extend("--ft-button-font-size","",Jr.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",gn),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(Te.colorOpacityDisabled,"Design system")},vn=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",Te.colorOnPrimary)),mn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",Te.colorPrimary)),color:vn,rippleColor:Re.extend("--ft-button-primary-ripple-color","",vn)},xn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",Te.borderRadiusM)),wn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),On=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Sn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),$n=[Rt`
465
+ `,ba=Re.extend("--ft-button-color","",Te.colorPrimary),va={backgroundColor:Re.extend("--ft-button-background-color","",Te.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",Te.borderRadiusL),color:ba,fontSize:Re.extend("--ft-button-font-size","",ta.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",ba),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(Te.colorOpacityDisabled,"Design system")},ma=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",Te.colorOnPrimary)),xa={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",Te.colorPrimary)),color:ma,rippleColor:Re.extend("--ft-button-primary-ripple-color","",ma)},wa=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",Te.borderRadiusM)),Oa=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Sa=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$a=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Na=[Rt`
465
466
  :host {
466
467
  display: inline-block;
467
468
  max-width: 100%;
@@ -472,7 +473,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
472
473
  box-shadow: 0px 0px 0px transparent;
473
474
  border: 0px solid transparent;
474
475
  text-shadow: 0px 0px 0px transparent;
475
- font-size: ${bn.fontSize};
476
+ font-size: ${va.fontSize};
476
477
  }
477
478
 
478
479
  button:hover {
@@ -501,31 +502,31 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
501
502
  border: none;
502
503
  pointer-events: auto;
503
504
 
504
- --ft-button-internal-line-height: max(calc(${bn.fontSize} + 2px), ${bn.iconSize});
505
- --ft-button-internal-color: ${bn.color};
506
- ${Ie(pn.size,bn.iconSize)};
507
- ${Ie(sr.color,bn.rippleColor)};
505
+ --ft-button-internal-line-height: max(calc(${va.fontSize} + 2px), ${va.iconSize});
506
+ --ft-button-internal-color: ${va.color};
507
+ ${Ie(ya.size,va.iconSize)};
508
+ ${Ie(cn.color,va.rippleColor)};
508
509
 
509
- border-radius: ${bn.borderRadius};
510
- padding: ${bn.verticalPadding} ${bn.horizontalPadding};
511
- background-color: ${bn.backgroundColor};
510
+ border-radius: ${va.borderRadius};
511
+ padding: ${va.verticalPadding} ${va.horizontalPadding};
512
+ background-color: ${va.backgroundColor};
512
513
  color: var(--ft-button-internal-color);
513
514
  -webkit-mask-image: radial-gradient(white, black);
514
515
  }
515
516
 
516
517
  .ft-button.ft-button--outlined {
517
518
  border: 1px solid var(--ft-button-internal-color);
518
- padding: calc(${bn.verticalPadding} - 1px) calc(${bn.horizontalPadding} - 1px);
519
+ padding: calc(${va.verticalPadding} - 1px) calc(${va.horizontalPadding} - 1px);
519
520
  }
520
521
 
521
522
  .ft-button.ft-button--dense {
522
- padding: ${wn} ${On};
523
- border-radius: ${xn};
524
- gap: ${Sn};
523
+ padding: ${Oa} ${Sa};
524
+ border-radius: ${wa};
525
+ gap: ${$a};
525
526
  }
526
527
 
527
528
  .ft-button.ft-button--dense.ft-button--outlined {
528
- padding: calc(${wn} - 1px) calc(${On} - 1px);
529
+ padding: calc(${Oa} - 1px) calc(${Sa} - 1px);
529
530
  }
530
531
 
531
532
  .ft-button:not([disabled]):hover {
@@ -533,22 +534,22 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
533
534
  }
534
535
 
535
536
  .ft-button--round {
536
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bn.verticalPadding});
537
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${va.verticalPadding});
537
538
  }
538
539
 
539
540
  .ft-button--round.ft-button--dense {
540
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${wn});
541
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Oa});
541
542
  }
542
543
 
543
544
  .ft-button[disabled] {
544
545
  filter: grayscale(1);
545
- opacity: ${bn.opacityDisabled};
546
+ opacity: ${va.opacityDisabled};
546
547
  }
547
548
 
548
549
  .ft-button.ft-button--primary {
549
- background-color: ${mn.backgroundColor};
550
- --ft-button-internal-color: ${mn.color};
551
- ${Ie(sr.color,mn.rippleColor)};
550
+ background-color: ${xa.backgroundColor};
551
+ --ft-button-internal-color: ${xa.color};
552
+ ${Ie(cn.color,xa.rippleColor)};
552
553
  }
553
554
 
554
555
  .ft-button:focus {
@@ -561,13 +562,13 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
561
562
  white-space: nowrap;
562
563
  text-overflow: ellipsis;
563
564
  display: block;
564
- margin: 0 ${bn.iconPadding};
565
- ${Ie(Jr.fontSize,"1em")};
566
- ${Ie(Jr.lineHeight,"var(--ft-button-internal-line-height)")};
565
+ margin: 0 ${va.iconPadding};
566
+ ${Ie(ta.fontSize,"1em")};
567
+ ${Ie(ta.lineHeight,"var(--ft-button-internal-line-height)")};
567
568
  }
568
569
 
569
570
  .ft-button--dense .ft-button--label {
570
- margin: 0 ${Sn};
571
+ margin: 0 ${$a};
571
572
  }
572
573
 
573
574
  .ft-button--label[hidden] {
@@ -580,13 +581,13 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
580
581
  }
581
582
 
582
583
  .ft-button--label[hidden] + ft-icon {
583
- margin: 0 calc(${bn.horizontalPadding} * -1);
584
- padding: 0 ${bn.verticalPadding};
584
+ margin: 0 calc(${va.horizontalPadding} * -1);
585
+ padding: 0 ${va.verticalPadding};
585
586
  }
586
587
 
587
588
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
588
- margin: 0 calc(${On} * -1);
589
- padding: 0 ${wn};
589
+ margin: 0 calc(${Sa} * -1);
590
+ padding: 0 ${Oa};
590
591
  }
591
592
 
592
593
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -595,10 +596,10 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
595
596
  }
596
597
 
597
598
  ft-loader {
598
- ${Ie(dn.size,bn.iconSize)};
599
- ${Ie(dn.color,"var(--ft-button-internal-color)")};
599
+ ${Ie(ua.size,va.iconSize)};
600
+ ${Ie(ua.color,"var(--ft-button-internal-color)")};
600
601
  }
601
- `,Ge],Nn={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",Jr.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Cn={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(vr.fontSize,"Typography"),sectionTitleFontSize:Re.external(mr.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",Te.colorSurface)},En=Rt`
602
+ `,Vi],Ca={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",ta.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Ea={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(xn.fontSize,"Typography"),sectionTitleFontSize:Re.external(wn.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",Te.colorSurface)},ka=Rt`
602
603
  .ft-reader-feedback {
603
604
  box-sizing: border-box;
604
605
  display: flex;
@@ -611,7 +612,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
611
612
  flex-direction: row;
612
613
  align-items: center;
613
614
  margin-left: -6px;
614
- ${Ie(bn.backgroundColor,Cn.starsBackgroundColor)}
615
+ ${Ie(va.backgroundColor,Ea.starsBackgroundColor)}
615
616
  }
616
617
 
617
618
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -624,14 +625,14 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
624
625
  }
625
626
 
626
627
  .ft-reader-feedback--rating {
627
- ${Ie(bn.color,Cn.emptyRatingColor)};
628
- ${Ie(bn.rippleColor,Cn.filledRatingColor)};
629
- ${Ie(Nn.textColor,Cn.emptyRatingColor)};
630
- ${Ie(Nn.selectedTextColor,Cn.filledRatingColor)};
628
+ ${Ie(va.color,Ea.emptyRatingColor)};
629
+ ${Ie(va.rippleColor,Ea.filledRatingColor)};
630
+ ${Ie(Ca.textColor,Ea.emptyRatingColor)};
631
+ ${Ie(Ca.selectedTextColor,Ea.filledRatingColor)};
631
632
  }
632
633
 
633
634
  .ft-reader-feedback--rating .ft-reader-feedback--active {
634
- ${Ie(bn.color,Cn.filledRatingColor)};
635
+ ${Ie(va.color,Ea.filledRatingColor)};
635
636
  }
636
637
 
637
638
  .ft-reader-feedback--feedback {
@@ -639,52 +640,53 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
639
640
  }
640
641
 
641
642
  .ft-reader-feedback--rating-date {
642
- color: ${Cn.ratedDateColor};
643
+ color: ${Ea.ratedDateColor};
643
644
  }
644
645
 
645
646
  .ft-reader-feedback--feedback ft-text-area {
646
- min-width: ${Cn.feedbackInputMinWidth};
647
+ min-width: ${Ea.feedbackInputMinWidth};
647
648
  }
648
649
 
649
650
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
650
651
  align-self: flex-end;
651
- ${Ie(bn.color,Cn.sendFeedbackColor)};
652
+ ${Ie(va.color,Ea.sendFeedbackColor)};
653
+ ${Ie(va.backgroundColor,Ea.sendFeedbackBackgroundColor)};
652
654
  }
653
655
  `
654
656
  /**
655
657
  * @license
656
658
  * Copyright 2020 Google LLC
657
659
  * SPDX-License-Identifier: BSD-3-Clause
658
- */,kn=Symbol.for(""),Rn=t=>{if(t?.r===kn)return t?._$litStatic$},In=t=>({_$litStatic$:t,r:kn}),Un=new Map,Ln=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Rn(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=Un.get(t))&&(a.raw=a,Un.set(t,e=a)),i=s}return t(e,...i)})(nt);var An;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(An||(An={}));var _n=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Tn extends Ze{constructor(){super(...arguments),this.variant=An.body1}render(){return this.element?Ln`
659
- <${In(this.element)}
660
+ */,Ra=Symbol.for(""),Ia=t=>{if(t?.r===Ra)return t?._$litStatic$},Ua=t=>({_$litStatic$:t,r:Ra}),La=new Map,Aa=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ia(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=La.get(t))&&(a.raw=a,La.set(t,e=a)),i=s}return t(e,...i)})(nt);var _a;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(_a||(_a={}));var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Da extends Hi{constructor(){super(...arguments),this.variant=_a.body1}render(){return this.element?Aa`
661
+ <${Ua(this.element)}
660
662
  class="ft-typography ft-typography--${this.variant}">
661
663
  <slot></slot>
662
- </${In(this.element)}>
663
- `:Ln`
664
+ </${Ua(this.element)}>
665
+ `:Aa`
664
666
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
665
- `}}Tn.styles=[Qr,tn,en,on,rn,nn,an,sn,ln,cn,fn,...hn],_n([k()],Tn.prototype,"element",void 0),_n([k()],Tn.prototype,"variant",void 0),W("ft-typography")(Tn);
667
+ `}}Da.styles=[ea,ia,oa,ra,na,aa,sa,la,ca,fa,ha,...da],Ta([k()],Da.prototype,"element",void 0),Ta([k()],Da.prototype,"variant",void 0),W("ft-typography")(Da);
666
668
  /**
667
669
  * @license
668
670
  * Copyright 2017 Google LLC
669
671
  * SPDX-License-Identifier: BSD-3-Clause
670
672
  */
671
- const Dn=1,Wn=2,Fn=t=>(...e)=>({_$litDirective$:t,values:e});class Pn{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)}}
673
+ const Wa=1,Fa=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class Ma{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)}}
672
674
  /**
673
675
  * @license
674
676
  * Copyright 2018 Google LLC
675
677
  * SPDX-License-Identifier: BSD-3-Clause
676
- */const Mn=Fn(class extends Pn{constructor(t){if(super(t),t.type!==Dn||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=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]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return at}});var jn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class zn extends Ze{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.originX=0,this.originY=0,this.debouncer=new r(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.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 he`
678
+ */const ja=Pa(class extends Ma{constructor(t){if(super(t),t.type!==Wa||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=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]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return at}});var za=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ba extends Hi{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.originX=0,this.originY=0,this.debouncer=new r(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.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 he`
677
679
  <style>
678
680
  .ft-ripple .ft-ripple--effect {
679
681
  left: ${this.originX}px;
680
682
  top: ${this.originY}px;
681
683
  }
682
684
  </style>
683
- <div class="${Mn(t)}">
685
+ <div class="${ja(t)}">
684
686
  <div class="ft-ripple--background"></div>
685
687
  <div class="ft-ripple--effect"></div>
686
688
  </div>
687
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}zn.elementDefinitions={},zn.styles=pr,jn([k({type:Boolean})],zn.prototype,"primary",void 0),jn([k({type:Boolean})],zn.prototype,"secondary",void 0),jn([k({type:Boolean})],zn.prototype,"unbounded",void 0),jn([k({type:Boolean})],zn.prototype,"activated",void 0),jn([k({type:Boolean})],zn.prototype,"selected",void 0),jn([k({type:Boolean})],zn.prototype,"disabled",void 0),jn([R()],zn.prototype,"hovered",void 0),jn([R()],zn.prototype,"focused",void 0),jn([R()],zn.prototype,"pressed",void 0),jn([R()],zn.prototype,"rippling",void 0),jn([R()],zn.prototype,"originX",void 0),jn([R()],zn.prototype,"originY",void 0),jn([L(".ft-ripple")],zn.prototype,"ripple",void 0),jn([L(".ft-ripple--effect")],zn.prototype,"rippleEffect",void 0),W("ft-ripple")(zn);const Bn=Re.create("--ft-tooltip-distance","","SIZE","4px"),Kn=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Zn=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Hn=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Gn=Re.external(Te.borderRadiusS,"Design system"),Vn=Re.create("--ft-tooltip-max-width","","SIZE","150px"),qn=Rt`
689
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Ba.elementDefinitions={},Ba.styles=gn,za([k({type:Boolean})],Ba.prototype,"primary",void 0),za([k({type:Boolean})],Ba.prototype,"secondary",void 0),za([k({type:Boolean})],Ba.prototype,"unbounded",void 0),za([k({type:Boolean})],Ba.prototype,"activated",void 0),za([k({type:Boolean})],Ba.prototype,"selected",void 0),za([k({type:Boolean})],Ba.prototype,"disabled",void 0),za([R()],Ba.prototype,"hovered",void 0),za([R()],Ba.prototype,"focused",void 0),za([R()],Ba.prototype,"pressed",void 0),za([R()],Ba.prototype,"rippling",void 0),za([R()],Ba.prototype,"originX",void 0),za([R()],Ba.prototype,"originY",void 0),za([L(".ft-ripple")],Ba.prototype,"ripple",void 0),za([L(".ft-ripple--effect")],Ba.prototype,"rippleEffect",void 0),W("ft-ripple")(Ba);const Ka=Re.create("--ft-tooltip-distance","","SIZE","4px"),Za=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ha=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Ga=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Va=Re.external(Te.borderRadiusS,"Design system"),qa=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Ya=Rt`
688
690
  .ft-tooltip--container {
689
691
  display: block;
690
692
  }
@@ -699,21 +701,21 @@ const Dn=1,Wn=2,Fn=t=>(...e)=>({_$litDirective$:t,values:e});class Pn{constructo
699
701
  box-sizing: border-box;
700
702
  overflow: hidden;
701
703
  width: max-content;
702
- max-width: ${Vn};
704
+ max-width: ${qa};
703
705
  text-align: center;
704
- padding: ${Bn};
705
- z-index: ${Hn};
706
+ padding: ${Ka};
707
+ z-index: ${Ga};
706
708
  }
707
709
 
708
710
  .ft-tooltip--content {
709
711
  padding: 4px 8px;
710
- border-radius: ${Gn};
711
- background-color: ${Zn};
712
- color: ${Kn};
712
+ border-radius: ${Va};
713
+ background-color: ${Ha};
714
+ color: ${Za};
713
715
  position: relative;
714
716
  word-break: break-word;
715
717
  }
716
- `,Yn=["start","end"],Xn=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Yn[0],e+"-"+Yn[1])),[]),Jn=Math.min,Qn=Math.max,ta=Math.round,ea=t=>({x:t,y:t}),ia={left:"right",right:"left",bottom:"top",top:"bottom"},oa={start:"end",end:"start"};function ra(t,e,i){return Qn(t,Jn(e,i))}function na(t,e){return"function"==typeof t?t(e):t}function aa(t){return t.split("-")[0]}function sa(t){return t.split("-")[1]}function la(t){return"x"===t?"y":"x"}function ca(t){return"y"===t?"height":"width"}function fa(t){return["top","bottom"].includes(aa(t))?"y":"x"}function ha(t){return la(fa(t))}function da(t){return t.replace(/left|right|bottom|top/g,(t=>ia[t]))}function ua(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function pa(t,e,i){let{reference:o,floating:r}=t;const n=fa(e),a=ha(e),s=ca(a),l=aa(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(sa(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ya(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=na(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ua(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ua(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function ga(t,e,i){return(t?[...i.filter((e=>sa(e)===t)),...i.filter((e=>sa(e)!==t))]:i.filter((t=>aa(t)===t))).filter((i=>!t||(sa(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>oa[t]))}(i)!==i)))}const ba=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Xn,autoAlignment:u=!0,...p}=na(t,e),y=void 0!==h||d===Xn?ga(h||null,u,d):d,g=await ya(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=sa(t),r=ha(t),n=ca(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=da(a)),[a,da(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[aa(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=sa(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,sa(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function va(t){return wa(t)?(t.nodeName||"").toLowerCase():"#document"}function ma(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function xa(t){var e;return null==(e=(wa(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function wa(t){return t instanceof Node||t instanceof ma(t).Node}function Oa(t){return t instanceof Element||t instanceof ma(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof ma(t).HTMLElement}function $a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ma(t).ShadowRoot)}function Na(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ia(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Ca(t){return["table","td","th"].includes(va(t))}function Ea(t){const e=ka(),i=Ia(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function ka(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ra(t){return["html","body","#document"].includes(va(t))}function Ia(t){return ma(t).getComputedStyle(t)}function Ua(t){return Oa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function La(t){if("html"===va(t))return t;const e=t.assignedSlot||t.parentNode||$a(t)&&t.host||xa(t);return $a(e)?e.host:e}function Aa(t){const e=La(t);return Ra(e)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(e)&&Na(e)?e:Aa(e)}function _a(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=Aa(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ma(r);return n?e.concat(a,a.visualViewport||[],Na(r)?r:[],a.frameElement&&i?_a(a.frameElement):[]):e.concat(r,_a(r,[],i))}function Ta(t){const e=Ia(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Sa(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ta(i)!==n||ta(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Da(t){return Oa(t)?t:t.contextElement}function Wa(t){const e=Da(t);if(!Sa(e))return ea(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Ta(e);let a=(n?ta(i.width):i.width)/o,s=(n?ta(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Fa=ea(0);function Pa(t){const e=ma(t);return ka()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Fa}function Ma(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Da(t);let a=ea(1);e&&(o?Oa(o)&&(a=Wa(o)):a=Wa(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ma(t))&&e}(n,i,o)?Pa(n):ea(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=ma(n),e=o&&Oa(o)?ma(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Wa(i),e=i.getBoundingClientRect(),o=Ia(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=ma(i).frameElement}}return ua({width:f,height:h,x:l,y:c})}function ja(t){return Ma(xa(t)).left+Ua(t).scrollLeft}function za(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ma(t),o=xa(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=ka();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=xa(t),i=Ua(t),o=t.ownerDocument.body,r=Qn(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Qn(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ja(t);const s=-i.scrollTop;return"rtl"===Ia(o).direction&&(a+=Qn(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(xa(t));else if(Oa(e))o=function(t,e){const i=Ma(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=Sa(t)?Wa(t):ea(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Pa(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ua(o)}function Ba(t,e){const i=La(t);return!(i===e||!Oa(i)||Ra(i))&&("fixed"===Ia(i).position||Ba(i,e))}function Ka(t,e,i){const o=Sa(e),r=xa(e),n="fixed"===i,a=Ma(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=ea(0);if(o||!o&&!n)if(("body"!==va(e)||Na(r))&&(s=Ua(e)),o){const t=Ma(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ja(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Za(t,e){return Sa(t)&&"fixed"!==Ia(t).position?e?e(t):t.offsetParent:null}function Ha(t,e){const i=ma(t);if(!Sa(t))return i;let o=Za(t,e);for(;o&&Ca(o)&&"static"===Ia(o).position;)o=Za(o,e);return o&&("html"===va(o)||"body"===va(o)&&"static"===Ia(o).position&&!Ea(o))?i:o||function(t){let e=La(t);for(;Sa(e)&&!Ra(e);){if(Ea(e))return e;e=La(e)}return null}(t)||i}const Ga={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Sa(i),n=xa(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=ea(1);const l=ea(0);if((r||!r&&"fixed"!==o)&&(("body"!==va(i)||Na(n))&&(a=Ua(i)),Sa(i))){const t=Ma(i);s=Wa(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:xa,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=_a(t,[],!1).filter((t=>Oa(t)&&"body"!==va(t))),r=null;const n="fixed"===Ia(t).position;let a=n?La(t):t;for(;Oa(a)&&!Ra(a);){const e=Ia(a),i=Ea(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Na(a)&&!i&&Ba(t,a))?o=o.filter((t=>t!==a)):r=e,a=La(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=za(e,i,r);return t.top=Qn(o.top,t.top),t.right=Jn(o.right,t.right),t.bottom=Jn(o.bottom,t.bottom),t.left=Qn(o.left,t.left),t}),za(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ha,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ha,n=this.getDimensions;return{reference:Ka(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ta(t)},getScale:Wa,isElement:Oa,isRTL:function(t){return"rtl"===Ia(t).direction}},Va=(t,e,i)=>{const o=new Map,r={platform:Ga,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=pa(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=pa(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function qa(t){return function(t){for(let e=t;e;e=Ya(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ya(t);e;e=Ya(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ya(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends Ze{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
718
+ `;var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends Hi{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
717
719
  <div part="container"
718
720
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
719
721
  @mouseenter=${this.onHover}
@@ -731,18 +733,18 @@ const Dn=1,Wn=2,Fn=t=>(...e)=>({_$litDirective$:t,values:e});class Pn{constructo
731
733
  </div>
732
734
  </div>
733
735
  </div>
734
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Va(this.slottedElement,this.tooltip,{platform:{...Ga,getOffsetParent:t=>Ga.getOffsetParent(t,qa)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=na(t,e),c={x:i,y:o},f=await ya(e,l),h=fa(aa(r)),d=la(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=ra(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=ra(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...e,[d]:u,[h]:p});return{...y,data:{x:y.x-i,y:y.y-o}}}}),ba({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ja.elementDefinitions={"ft-typography":Tn},Ja.styles=qn,Xa([k()],Ja.prototype,"text",void 0),Xa([k({type:Boolean})],Ja.prototype,"manual",void 0),Xa([k({type:Boolean})],Ja.prototype,"inline",void 0),Xa([k({type:Number})],Ja.prototype,"delay",void 0),Xa([k()],Ja.prototype,"position",void 0),Xa([A()],Ja.prototype,"slotNodes",void 0),Xa([L(".ft-tooltip--container")],Ja.prototype,"container",void 0),Xa([L(".ft-tooltip")],Ja.prototype,"tooltip",void 0),Xa([L(".ft-tooltip--content")],Ja.prototype,"tooltipContent",void 0),Xa([R()],Ja.prototype,"visible",void 0),Xa([I({passive:!0})],Ja.prototype,"onTouch",null),Xa([I({passive:!0})],Ja.prototype,"onHover",null),Xa([I({passive:!0})],Ja.prototype,"onOut",null),Xa([I({passive:!0})],Ja.prototype,"onClick",null),W("ft-tooltip")(Ja);
736
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,i){return Ti(t,e,{platform:{..._i,getOffsetParent:t=>_i.getOffsetParent(t,Di)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=He(o,t),c={x:e,y:i},f=await ii(t,l),h=Xe(Ge(r)),d=qe(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=Ze(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=Ze(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ri({allowedPlacements:[i]})]});var o}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ja.elementDefinitions={"ft-typography":Da},Ja.styles=Ya,Xa([k()],Ja.prototype,"text",void 0),Xa([k({type:Boolean})],Ja.prototype,"manual",void 0),Xa([k({type:Boolean})],Ja.prototype,"inline",void 0),Xa([k({type:Number})],Ja.prototype,"delay",void 0),Xa([k()],Ja.prototype,"position",void 0),Xa([A()],Ja.prototype,"slotNodes",void 0),Xa([L(".ft-tooltip--container")],Ja.prototype,"container",void 0),Xa([L(".ft-tooltip")],Ja.prototype,"tooltip",void 0),Xa([L(".ft-tooltip--content")],Ja.prototype,"tooltipContent",void 0),Xa([R()],Ja.prototype,"visible",void 0),Xa([I({passive:!0})],Ja.prototype,"onTouch",null),Xa([I({passive:!0})],Ja.prototype,"onHover",null),Xa([I({passive:!0})],Ja.prototype,"onOut",null),Xa([I({passive:!0})],Ja.prototype,"onClick",null),W("ft-tooltip")(Ja);
735
737
  /**
736
738
  * @license
737
739
  * Copyright 2017 Google LLC
738
740
  * SPDX-License-Identifier: BSD-3-Clause
739
741
  */
740
- class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qa.directiveName="unsafeHTML",Qa.resultType=1;const ts=Fn(Qa);var es,is,os;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(es||(es={})),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;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.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,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.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,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.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,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.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,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(os||(os={}));var rs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ns extends Ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(os).includes(this.variant)?this.variant:os.fluid_topics,e=t!==os.material||!!this.value;return he`
742
+ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qa.directiveName="unsafeHTML",Qa.resultType=1;const ts=Pa(Qa);var es,is,os;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(es||(es={})),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;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.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,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.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,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.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,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.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,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(os||(os={}));var rs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ns extends Hi{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(os).includes(this.variant)?this.variant:os.fluid_topics,e=t!==os.material||!!this.value;return he`
741
743
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
742
744
  ${ts(this.resolvedIcon)}
743
745
  <slot ?hidden=${e}></slot>
744
746
  </i>
745
- `}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 os.file_format:this.resolvedIcon=null!==(t=is[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case os.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=es[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ns.elementDefinitions={},ns.styles=yn,rs([k()],ns.prototype,"variant",void 0),rs([k()],ns.prototype,"value",void 0),rs([R()],ns.prototype,"resolvedIcon",void 0),rs([L("slot")],ns.prototype,"slottedContent",void 0),W("ft-icon")(ns);const as={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",Te.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",Te.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ss=Rt`
747
+ `}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 os.file_format:this.resolvedIcon=null!==(t=is[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case os.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=es[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ns.elementDefinitions={},ns.styles=ga,rs([k()],ns.prototype,"variant",void 0),rs([k()],ns.prototype,"value",void 0),rs([R()],ns.prototype,"resolvedIcon",void 0),rs([L("slot")],ns.prototype,"slottedContent",void 0),W("ft-icon")(ns);const as={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",Te.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",Te.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ss=Rt`
746
748
  .ft-switch-option {
747
749
  position: relative;
748
750
  display: inline-block;
@@ -756,20 +758,20 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
756
758
  }
757
759
 
758
760
  .ft-switch-option--content {
759
- --ft-switch-option-internal-line-height: calc(${Nn.fontSize} + 2px);
760
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Nn.iconSize});
761
+ --ft-switch-option-internal-line-height: calc(${Ca.fontSize} + 2px);
762
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ca.iconSize});
761
763
 
762
764
  border-style: solid;
763
- border-color: ${Nn.borderColor};
765
+ border-color: ${Ca.borderColor};
764
766
  border-width: ${as.borderWidthVertical} ${as.borderWidthRight} ${as.borderWidthVertical} ${as.borderWidthLeft};
765
767
  border-radius: ${as.borderRadiusLeft} ${as.borderRadiusRight} ${as.borderRadiusRight} ${as.borderRadiusLeft};
766
768
  display: flex;
767
769
  align-items: center;
768
770
  justify-content: center;
769
771
  overflow: hidden;
770
- ${Ie(pn.size,Nn.iconSize)};
772
+ ${Ie(ya.size,Ca.iconSize)};
771
773
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
772
- background-color: ${Nn.backgroundColor};
774
+ background-color: ${Ca.backgroundColor};
773
775
  -webkit-mask-image: radial-gradient(white, black);
774
776
  }
775
777
 
@@ -778,7 +780,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
778
780
  }
779
781
 
780
782
  .ft-switch-option--selected .ft-switch-option--content:before {
781
- background-color: ${Nn.selectedBackgroundColor};
783
+ background-color: ${Ca.selectedBackgroundColor};
782
784
  border-radius: ${as.borderRadiusLeft} ${as.borderRadiusRight} ${as.borderRadiusRight} ${as.borderRadiusLeft};
783
785
  position: absolute;
784
786
  inset: 0;
@@ -788,18 +790,18 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
788
790
  }
789
791
 
790
792
  .ft-switch-option--label {
791
- color: ${Nn.textColor};
793
+ color: ${Ca.textColor};
792
794
  overflow: hidden;
793
795
  white-space: nowrap;
794
796
  text-overflow: ellipsis;
795
797
  display: block;
796
798
  margin: 0 8px;
797
- ${Ie(Jr.fontSize,Nn.fontSize)};
798
- ${Ie(Jr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
799
+ ${Ie(ta.fontSize,Ca.fontSize)};
800
+ ${Ie(ta.lineHeight,"var(--ft-switch-option-internal-content-height)")}
799
801
  }
800
802
 
801
803
  .ft-switch-option--selected .ft-switch-option--label {
802
- color: ${Nn.selectedTextColor};
804
+ color: ${Ca.selectedTextColor};
803
805
  }
804
806
 
805
807
  .ft-switch-option--label[hidden] {
@@ -807,7 +809,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
807
809
  }
808
810
 
809
811
  .ft-switch-option--ripple {
810
- ${Ie(sr.color,Nn.rippleColor)};
812
+ ${Ie(cn.color,Ca.rippleColor)};
811
813
  }
812
814
 
813
815
  ft-icon, ft-ripple, ft-typography {
@@ -820,20 +822,20 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
820
822
 
821
823
  ft-icon {
822
824
  flex-shrink: 0;
823
- color: ${Nn.iconColor};
825
+ color: ${Ca.iconColor};
824
826
  }
825
827
 
826
828
  .ft-switch-option--selected ft-icon {
827
- color: ${Nn.selectedTextColor};
829
+ color: ${Ca.selectedTextColor};
828
830
  }
829
- `;var ls=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class cs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class hs extends Ze{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new fs(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(he`
830
- <label part="label" for="input" class=${Mn(t)}
831
+ `;var ls=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class cs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class hs extends Hi{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new fs(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(he`
832
+ <label part="label" for="input" class=${ja(t)}
831
833
  @click=${this.onChange}>
832
834
  <div class="ft-switch-option--content">
833
835
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
834
836
  <ft-typography part="text"
835
837
  variant="button"
836
- class="ft-switch-option--label ${tr?"ft-safari-ellipsis-fix":""}"
838
+ class="ft-switch-option--label ${en?"ft-safari-ellipsis-fix":""}"
837
839
  ?hidden=${!this.hasTextContent()}>
838
840
  <slot @slotchange=${this.onSlotchange}></slot>
839
841
  </ft-typography>
@@ -850,8 +852,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
850
852
  </ft-tooltip>
851
853
  `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new cs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?he`
852
854
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
853
- `:ue}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}hs.elementDefinitions={"ft-ripple":zn,"ft-typography":Tn,"ft-tooltip":Ja,"ft-icon":ns},hs.styles=[Ve,ss],ls([k()],hs.prototype,"value",void 0),ls([k()],hs.prototype,"icon",void 0),ls([k()],hs.prototype,"iconVariant",void 0),ls([k()],hs.prototype,"label",void 0),ls([k()],hs.prototype,"tooltipPosition",void 0),ls([k({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),ls([k({type:Boolean})],hs.prototype,"trailingIcon",void 0),ls([k({type:Boolean})],hs.prototype,"unselectable",void 0),ls([L(".ft-switch-option--content slot")],hs.prototype,"slottedContent",void 0),ls([L(".ft-switch-option--input")],hs.prototype,"input",void 0);var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends CustomEvent{constructor(t){super("change",{detail:t})}}class ps extends Ze{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return he`
854
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Mn(t)}">
855
+ `:ue}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}hs.elementDefinitions={"ft-ripple":Ba,"ft-typography":Da,"ft-tooltip":Ja,"ft-icon":ns},hs.styles=[qi,ss],ls([k()],hs.prototype,"value",void 0),ls([k()],hs.prototype,"icon",void 0),ls([k()],hs.prototype,"iconVariant",void 0),ls([k()],hs.prototype,"label",void 0),ls([k()],hs.prototype,"tooltipPosition",void 0),ls([k({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),ls([k({type:Boolean})],hs.prototype,"trailingIcon",void 0),ls([k({type:Boolean})],hs.prototype,"unselectable",void 0),ls([L(".ft-switch-option--content slot")],hs.prototype,"slottedContent",void 0),ls([L(".ft-switch-option--input")],hs.prototype,"input",void 0);var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends CustomEvent{constructor(t){super("change",{detail:t})}}class ps extends Hi{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return he`
856
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${ja(t)}">
855
857
  <slot @slotchange=${this.onSlotchange}
856
858
  @option-change=${this.onOptionChangeByScript}
857
859
  @option-change-by-user=${this.onOptionChangeByUser}
@@ -863,8 +865,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
863
865
  }
864
866
 
865
867
  .ft-switch {
866
- border-radius: ${Nn.borderRadius};
867
- outline-color: ${Nn.outlineColor};
868
+ border-radius: ${Ca.borderRadius};
869
+ outline-color: ${Ca.outlineColor};
868
870
  }
869
871
 
870
872
  .ft-switch slot {
@@ -879,12 +881,12 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
879
881
  }
880
882
 
881
883
  .ft-switch slot::slotted(ft-switch-option:first-child) {
882
- ${Ie(as.borderRadiusLeft,Nn.borderRadius)};
884
+ ${Ie(as.borderRadiusLeft,Ca.borderRadius)};
883
885
  ${Ie(as.borderWidthLeft,"1px")};
884
886
  }
885
887
 
886
888
  .ft-switch slot::slotted(ft-switch-option:last-child) {
887
- ${Ie(as.borderRadiusRight,Nn.borderRadius)};
889
+ ${Ie(as.borderRadiusRight,Ca.borderRadius)};
888
890
  }
889
891
 
890
892
  .ft-switch--dense slot::slotted(ft-switch-option) {
@@ -909,7 +911,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
909
911
  .ft-resizer:hover ft-icon {
910
912
  color: ${gs};
911
913
  }
912
- `;var vs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ms extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class xs extends Ze{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=os.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return he`
914
+ `;var vs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ms extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class xs extends Hi{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=os.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return he`
913
915
  <style>
914
916
  .ft-resizer {
915
917
  cursor: ${kt(this.cursor)}
@@ -920,7 +922,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
920
922
  @touchstart=${this.initDragFromTouch}>
921
923
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
922
924
  </div>
923
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ms(i,o))}}xs.elementDefinitions={"ft-icon":ns},xs.styles=[Ge,bs],vs([k({type:Number})],xs.prototype,"initialWidth",void 0),vs([k({type:Number})],xs.prototype,"initialHeight",void 0),vs([k()],xs.prototype,"icon",void 0),vs([k()],xs.prototype,"iconVariant",void 0),vs([k()],xs.prototype,"cursor",void 0),vs([R()],xs.prototype,"dragging",void 0),vs([I({passive:!0})],xs.prototype,"initDragFromMouse",null),vs([I({passive:!0})],xs.prototype,"initDragFromTouch",null),W("ft-resizer")(xs);const ws={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",Te.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",Te.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",Te.colorOnSurfaceDisabled),colorSurface:Re.external(Te.colorSurface,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Os=Rt`
925
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ms(i,o))}}xs.elementDefinitions={"ft-icon":ns},xs.styles=[Vi,bs],vs([k({type:Number})],xs.prototype,"initialWidth",void 0),vs([k({type:Number})],xs.prototype,"initialHeight",void 0),vs([k()],xs.prototype,"icon",void 0),vs([k()],xs.prototype,"iconVariant",void 0),vs([k()],xs.prototype,"cursor",void 0),vs([R()],xs.prototype,"dragging",void 0),vs([I({passive:!0})],xs.prototype,"initDragFromMouse",null),vs([I({passive:!0})],xs.prototype,"initDragFromTouch",null),W("ft-resizer")(xs);const ws={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",Te.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",Te.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",Te.colorOnSurfaceDisabled),colorSurface:Re.external(Te.colorSurface,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Os=Rt`
924
926
  .ft-input-label {
925
927
  position: absolute;
926
928
  inset: 0;
@@ -971,8 +973,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
971
973
  transition: font-size 250ms, line-height 250ms, color 250ms;
972
974
  max-width: calc(${ws.labelMaxWidth} - 2 * (${ws.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
973
975
  text-overflow: ellipsis;
974
- ${Ie(Pr.fontSize,ws.fontSize)};
975
- ${Ie(Pr.lineHeight,ws.fontSize)};
976
+ ${Ie(jn.fontSize,ws.fontSize)};
977
+ ${Ie(jn.lineHeight,ws.fontSize)};
976
978
  }
977
979
 
978
980
  .ft-input-label--in-error .ft-input-label--text {
@@ -1004,8 +1006,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1004
1006
  }
1005
1007
 
1006
1008
  .ft-input-label--raised .ft-input-label--text {
1007
- ${Ie(Pr.fontSize,ws.raisedFontSize)};
1008
- ${Ie(Pr.lineHeight,ws.raisedFontSize)};
1009
+ ${Ie(jn.fontSize,ws.raisedFontSize)};
1010
+ ${Ie(jn.lineHeight,ws.raisedFontSize)};
1009
1011
  }
1010
1012
 
1011
1013
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1042,8 +1044,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1042
1044
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1043
1045
  border-top: none;
1044
1046
  }
1045
- `;var Ss=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $s extends Ze{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return he`
1046
- <div class="${Mn(t)}">
1047
+ `;var Ss=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $s extends Hi{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return he`
1048
+ <div class="${ja(t)}">
1047
1049
  ${this.text?he`
1048
1050
  <div class="ft-input-label--text ft-typography--caption">
1049
1051
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1051,7 +1053,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1051
1053
  </div>
1052
1054
  `:null}
1053
1055
  </div>
1054
- `}}$s.elementDefinitions={},$s.styles=[an,Os],Ss([k({type:String})],$s.prototype,"text",void 0),Ss([k({type:Boolean})],$s.prototype,"raised",void 0),Ss([k({type:Boolean})],$s.prototype,"outlined",void 0),Ss([k({type:Boolean})],$s.prototype,"disabled",void 0),Ss([k({type:Boolean})],$s.prototype,"error",void 0),W("ft-input-label")($s);const Ns={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Cs=Rt`
1056
+ `}}$s.elementDefinitions={},$s.styles=[sa,Os],Ss([k({type:String})],$s.prototype,"text",void 0),Ss([k({type:Boolean})],$s.prototype,"raised",void 0),Ss([k({type:Boolean})],$s.prototype,"outlined",void 0),Ss([k({type:Boolean})],$s.prototype,"disabled",void 0),Ss([k({type:Boolean})],$s.prototype,"error",void 0),W("ft-input-label")($s);const Ns={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Cs=Rt`
1055
1057
  *:focus {
1056
1058
  outline: none;
1057
1059
  }
@@ -1084,8 +1086,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1084
1086
  }
1085
1087
 
1086
1088
  .ft-text-area--input-panel ft-ripple {
1087
- ${Ie(sr.opacityContentOnSurfaceHover,"0.08")};
1088
- ${Ie(sr.opacityContentOnSurfacePressed,"0.04")};
1089
+ ${Ie(cn.opacityContentOnSurfaceHover,"0.08")};
1090
+ ${Ie(cn.opacityContentOnSurfacePressed,"0.04")};
1089
1091
  }
1090
1092
 
1091
1093
  .ft-text-area--input {
@@ -1097,8 +1099,8 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1097
1099
  align-self: stretch;
1098
1100
  resize: none;
1099
1101
 
1100
- ${Ie(Lr.fontSize,Ns.fontSize)};
1101
- ${Ie(Lr.lineHeight,Ns.fontSize)};
1102
+ ${Ie(_n.fontSize,Ns.fontSize)};
1103
+ ${Ie(_n.lineHeight,Ns.fontSize)};
1102
1104
  color: ${Ns.colorOnSurface};
1103
1105
 
1104
1106
  padding: 0 ${Ns.horizontalSpacing};
@@ -1151,7 +1153,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1151
1153
  position: absolute;
1152
1154
  bottom: 0;
1153
1155
  }
1154
- `;var Es=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ks extends(Yo(Ze,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return he`
1156
+ `;var Es=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ks extends(Xr(Hi,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return he`
1155
1157
  <style>
1156
1158
  .ft-text-area--main-panel {
1157
1159
  height: calc(4 * ${Ns.verticalSpacing} + ${Ns.labelSize} + ${Ns.fontSize} + ${this.height}px);
@@ -1161,7 +1163,7 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1161
1163
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1162
1164
  }
1163
1165
  </style>
1164
- <div class="${Mn(t)}">
1166
+ <div class="${ja(t)}">
1165
1167
  <div class="ft-text-area--main-panel">
1166
1168
  <ft-input-label text="${this.label}"
1167
1169
  ?disabled=${this.disabled}
@@ -1193,34 +1195,34 @@ class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Wn)throw Erro
1193
1195
  ${this.helper}
1194
1196
  </ft-typography>`:void 0}
1195
1197
  </div>
1196
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ks.elementDefinitions={"ft-input-label":$s,"ft-resizer":xs,"ft-ripple":zn,"ft-typography":Tn},ks.styles=[rn,Cs],Es([k({type:String})],ks.prototype,"label",void 0),Es([k({reflect:!0})],ks.prototype,"value",void 0),Es([k({type:String})],ks.prototype,"helper",void 0),Es([k({type:Boolean})],ks.prototype,"outlined",void 0),Es([k({type:Boolean})],ks.prototype,"disabled",void 0),Es([k({type:Boolean})],ks.prototype,"error",void 0),Es([k({type:Number,reflect:!0})],ks.prototype,"height",void 0),Es([L("textarea")],ks.prototype,"textarea",void 0),Es([R()],ks.prototype,"focused",void 0),W("ft-text-area")(ks);
1198
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ks.elementDefinitions={"ft-input-label":$s,"ft-resizer":xs,"ft-ripple":Ba,"ft-typography":Da},ks.styles=[na,Cs],Es([k({type:String})],ks.prototype,"label",void 0),Es([k({reflect:!0})],ks.prototype,"value",void 0),Es([k({type:String})],ks.prototype,"helper",void 0),Es([k({type:Boolean})],ks.prototype,"outlined",void 0),Es([k({type:Boolean})],ks.prototype,"disabled",void 0),Es([k({type:Boolean})],ks.prototype,"error",void 0),Es([k({type:Number,reflect:!0})],ks.prototype,"height",void 0),Es([L("textarea")],ks.prototype,"textarea",void 0),Es([R()],ks.prototype,"focused",void 0),W("ft-text-area")(ks);
1197
1199
  /**
1198
1200
  * @license
1199
1201
  * Copyright 2020 Google LLC
1200
1202
  * SPDX-License-Identifier: BSD-3-Clause
1201
1203
  */
1202
- const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Is(),r),n=o.insertBefore(Is(),r);i=new Rs(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ls=(t,e,i=t)=>(t._$AI(e,i),t),As={},_s=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ts=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ds=Fn(class extends Pn{constructor(t){if(super(t),t.type!==Wn)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 r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Ls(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ls(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ls(r[h],n[p]),Us(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ls(r[d],n[u]),Us(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ts(a,u,p),f=Ts(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Us(t,r[h]);Ls(e,n[u]),l[u]=e}else l[u]=Ls(i,n[u]),Us(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Us(t,l[p+1]);Ls(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=As)=>{t._$AH=e})(t,l),at}});
1204
+ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Is(),r),n=o.insertBefore(Is(),r);i=new Rs(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ls=(t,e,i=t)=>(t._$AI(e,i),t),As={},_s=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ts=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ds=Pa(class extends Ma{constructor(t){if(super(t),t.type!==Fa)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 r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Ls(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ls(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ls(r[h],n[p]),Us(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ls(r[d],n[u]),Us(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ts(a,u,p),f=Ts(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Us(t,r[h]);Ls(e,n[u]),l[u]=e}else l[u]=Ls(i,n[u]),Us(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Us(t,l[p+1]);Ls(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=As)=>{t._$AH=e})(t,l),at}});
1203
1205
  /**
1204
1206
  * @license
1205
1207
  * Copyright 2017 Google LLC
1206
1208
  * SPDX-License-Identifier: BSD-3-Clause
1207
- */class Ws extends Ze{render(){return he`
1209
+ */class Ws extends Hi{render(){return he`
1208
1210
  <div class="ft-loader">
1209
1211
  <div></div>
1210
1212
  <div></div>
1211
1213
  <div></div>
1212
1214
  <div></div>
1213
1215
  </div>
1214
- `}}Ws.styles=un,W("ft-loader")(Ws);var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends(Yo(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(he`
1216
+ `}}Ws.styles=pa,W("ft-loader")(Ws);var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends(Xr(Hi,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(he`
1215
1217
  <button part="button"
1216
- class="${Mn(this.buttonClasses)}"
1218
+ class="${ja(this.buttonClasses)}"
1217
1219
  aria-label="${this.getLabel()}"
1218
1220
  ?disabled=${this.isDisabled()}>
1219
1221
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1220
1222
  <ft-typography part="label"
1221
1223
  variant=${this.typographyVariant}
1222
1224
  element="span"
1223
- class="ft-button--label ${tr?"ft-safari-ellipsis-fix":""}"
1225
+ class="ft-button--label ${en?"ft-safari-ellipsis-fix":""}"
1224
1226
  ?hidden=${!this.hasTextContent()}>
1225
1227
  <slot @slotchange=${this.onSlotchange}></slot>
1226
1228
  </ft-typography>
@@ -1234,7 +1236,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1234
1236
  </ft-tooltip>
1235
1237
  `:t}resolveIcon(){return this.loading?he`
1236
1238
  <ft-loader part="loader icon"></ft-loader> `:this.icon?he`
1237
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}Ps.elementDefinitions={"ft-ripple":zn,"ft-tooltip":Ja,"ft-typography":Tn,"ft-icon":ns,"ft-loader":Ws},Fs([k({type:String,reflect:!0})],Ps.prototype,"role",void 0),Fs([k()],Ps.prototype,"type",void 0),Fs([k({type:Boolean})],Ps.prototype,"disabled",void 0),Fs([k()],Ps.prototype,"label",void 0),Fs([k()],Ps.prototype,"icon",void 0),Fs([k()],Ps.prototype,"iconVariant",void 0),Fs([k({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Fs([k({type:Boolean})],Ps.prototype,"loading",void 0),Fs([k()],Ps.prototype,"tooltipPosition",void 0),Fs([k({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Fs([k({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Fs([L(".ft-button")],Ps.prototype,"button",void 0),Fs([L(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);var Ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class js extends Ps{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}js.styles=[Ve,$n],Ms([k({type:Boolean})],js.prototype,"primary",void 0),Ms([k({type:Boolean})],js.prototype,"outlined",void 0),Ms([k({type:Boolean})],js.prototype,"dense",void 0),Ms([k({type:Boolean})],js.prototype,"round",void 0);const zs=[Rt`
1239
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}Ps.elementDefinitions={"ft-ripple":Ba,"ft-tooltip":Ja,"ft-typography":Da,"ft-icon":ns,"ft-loader":Ws},Fs([k({type:String,reflect:!0})],Ps.prototype,"role",void 0),Fs([k()],Ps.prototype,"type",void 0),Fs([k({type:Boolean})],Ps.prototype,"disabled",void 0),Fs([k()],Ps.prototype,"label",void 0),Fs([k()],Ps.prototype,"icon",void 0),Fs([k()],Ps.prototype,"iconVariant",void 0),Fs([k({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Fs([k({type:Boolean})],Ps.prototype,"loading",void 0),Fs([k()],Ps.prototype,"tooltipPosition",void 0),Fs([k({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Fs([k({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Fs([L(".ft-button")],Ps.prototype,"button",void 0),Fs([L(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);var Ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class js extends Ps{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}js.styles=[qi,Na],Ms([k({type:Boolean})],js.prototype,"primary",void 0),Ms([k({type:Boolean})],js.prototype,"outlined",void 0),Ms([k({type:Boolean})],js.prototype,"dense",void 0),Ms([k({type:Boolean})],js.prototype,"round",void 0);const zs=[Rt`
1238
1240
  :host {
1239
1241
  display: inline-block;
1240
1242
  max-width: 100%;
@@ -1313,13 +1315,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1313
1315
  /** Primary styles **/
1314
1316
 
1315
1317
  .ft-button--primary {
1316
- ${Ie(dn.color,_e.primaryIconColor)};
1318
+ ${Ie(ua.color,_e.primaryIconColor)};
1317
1319
 
1318
- ${Ie(sr.color,_e.primaryStateLayerColor)};
1319
- ${Ie(sr.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
1320
- ${Ie(sr.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
1321
- ${Ie(sr.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
1322
- ${Ie(sr.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
1320
+ ${Ie(cn.color,_e.primaryStateLayerColor)};
1321
+ ${Ie(cn.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
1322
+ ${Ie(cn.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
1323
+ ${Ie(cn.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
1324
+ ${Ie(cn.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
1323
1325
 
1324
1326
  background-color: ${_e.primaryBackgroundColor};
1325
1327
  color: ${_e.primaryColor};
@@ -1337,13 +1339,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1337
1339
  /** Secondary styles **/
1338
1340
 
1339
1341
  .ft-button--secondary {
1340
- ${Ie(dn.color,_e.secondaryIconColor)};
1342
+ ${Ie(ua.color,_e.secondaryIconColor)};
1341
1343
 
1342
- ${Ie(sr.color,_e.secondaryStateLayerColor)};
1343
- ${Ie(sr.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
1344
- ${Ie(sr.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
1345
- ${Ie(sr.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
1346
- ${Ie(sr.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
1344
+ ${Ie(cn.color,_e.secondaryStateLayerColor)};
1345
+ ${Ie(cn.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
1346
+ ${Ie(cn.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
1347
+ ${Ie(cn.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
1348
+ ${Ie(cn.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
1347
1349
 
1348
1350
  background-color: ${_e.secondaryBackgroundColor};
1349
1351
  color: ${_e.secondaryColor};
@@ -1362,13 +1364,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1362
1364
  /** Tertiary styles **/
1363
1365
 
1364
1366
  .ft-button--tertiary {
1365
- ${Ie(dn.color,_e.tertiaryIconColor)};
1367
+ ${Ie(ua.color,_e.tertiaryIconColor)};
1366
1368
 
1367
- ${Ie(sr.color,_e.tertiaryStateLayerColor)};
1368
- ${Ie(sr.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
1369
- ${Ie(sr.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
1370
- ${Ie(sr.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
1371
- ${Ie(sr.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
1369
+ ${Ie(cn.color,_e.tertiaryStateLayerColor)};
1370
+ ${Ie(cn.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
1371
+ ${Ie(cn.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
1372
+ ${Ie(cn.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
1373
+ ${Ie(cn.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
1372
1374
 
1373
1375
  background-color: ${_e.tertiaryBackgroundColor};
1374
1376
  color: ${_e.tertiaryColor};
@@ -1386,13 +1388,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1386
1388
  /** Neutral styles **/
1387
1389
 
1388
1390
  .ft-button--neutral {
1389
- ${Ie(dn.color,_e.neutralIconColor)};
1391
+ ${Ie(ua.color,_e.neutralIconColor)};
1390
1392
 
1391
- ${Ie(sr.backgroundColor,_e.neutralStateLayerColor)};
1392
- ${Ie(sr.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
1393
- ${Ie(sr.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
1394
- ${Ie(sr.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
1395
- ${Ie(sr.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
1393
+ ${Ie(cn.backgroundColor,_e.neutralStateLayerColor)};
1394
+ ${Ie(cn.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
1395
+ ${Ie(cn.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
1396
+ ${Ie(cn.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
1397
+ ${Ie(cn.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
1396
1398
 
1397
1399
  background-color: ${_e.neutralBackgroundColor};
1398
1400
  color: ${_e.neutralColor};
@@ -1410,8 +1412,8 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1410
1412
  /** Large styles **/
1411
1413
 
1412
1414
  .ft-button--large {
1413
- ${Ie(pn.size,_e.largeIconSize)};
1414
- ${Ie(dn.size,_e.largeIconSize)};
1415
+ ${Ie(ya.size,_e.largeIconSize)};
1416
+ ${Ie(ua.size,_e.largeIconSize)};
1415
1417
 
1416
1418
  height: ${_e.largeHeight};
1417
1419
  padding: 0 ${_e.largeHorizontalPadding};
@@ -1433,8 +1435,8 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1433
1435
  /** Small styles **/
1434
1436
 
1435
1437
  .ft-button--small {
1436
- ${Ie(pn.size,_e.smallIconSize)};
1437
- ${Ie(dn.size,_e.smallIconSize)};
1438
+ ${Ie(ya.size,_e.smallIconSize)};
1439
+ ${Ie(ua.size,_e.smallIconSize)};
1438
1440
 
1439
1441
  height: ${_e.smallHeight};
1440
1442
  padding: 0 ${_e.smallHorizontalPadding};
@@ -1452,15 +1454,15 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1452
1454
  width: ${_e.smallIconOnlyWidth};
1453
1455
  padding: unset;
1454
1456
  }
1455
- `,Ge];var Bs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ks extends Ps{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?An.caption1medium:An.body2medium}}Ks.styles=[Ve,zs],Bs([k({type:Boolean})],Ks.prototype,"primary",void 0),Bs([k({type:Boolean})],Ks.prototype,"secondary",void 0),Bs([k({type:Boolean})],Ks.prototype,"tertiary",void 0),Bs([k({type:Boolean})],Ks.prototype,"neutral",void 0),Bs([k({type:Boolean})],Ks.prototype,"small",void 0),W("ft-button")(js),W("ftds-button")(Ks);const Zs=Rt`
1457
+ `,Vi];var Bs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ks extends Ps{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?_a.caption1medium:_a.body2medium}}Ks.styles=[qi,zs],Bs([k({type:Boolean})],Ks.prototype,"primary",void 0),Bs([k({type:Boolean})],Ks.prototype,"secondary",void 0),Bs([k({type:Boolean})],Ks.prototype,"tertiary",void 0),Bs([k({type:Boolean})],Ks.prototype,"neutral",void 0),Bs([k({type:Boolean})],Ks.prototype,"small",void 0),W("ft-button")(js),W("ftds-button")(Ks);const Zs=Rt`
1456
1458
  `,Hs=Rt`
1457
- `,Gs=Vo.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class Vs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gs.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Vs.build(t):null!==(e=Vs.API)&&void 0!==e?e:Vs.API=Vs.build()}static await(t){return new Promise((e=>{let i=Vs.get(t);if(i)e(i);else{const o=Gs.subscribe((()=>{i=Vs.get(t),i&&(o(),e(i))}))}}))}}var qs;const Ys=Symbol("clearAfterUnitTest");class Xs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Gs.getState().uiLocale,Gs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new qe(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>_(0).then((()=>t())).catch((()=>null)))))}}qs=Ys,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xs((async(t,e)=>(await Vs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xs((async(t,e)=>(await Vs.await()).getCustomMessageContext(t,e))));const Js=window.FluidTopicsI18nService,Qs=window.FluidTopicsCustomI18nService;var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vs.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return he`
1459
+ `,Gs=qr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class Vs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gs.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Vs.build(t):null!==(e=Vs.API)&&void 0!==e?e:Vs.API=Vs.build()}static await(t){return new Promise((e=>{let i=Vs.get(t);if(i)e(i);else{const o=Gs.subscribe((()=>{i=Vs.get(t),i&&(o(),e(i))}))}}))}}var qs;const Ys=Symbol("clearAfterUnitTest");class Xs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Gs.getState().uiLocale,Gs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Yi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>_(0).then((()=>t())).catch((()=>null)))))}}qs=Ys,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xs((async(t,e)=>(await Vs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xs((async(t,e)=>(await Vs.await()).getCustomMessageContext(t,e))));const Js=window.FluidTopicsI18nService,Qs=window.FluidTopicsCustomI18nService;var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends Hi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vs.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return he`
1458
1460
  <slot></slot>
1459
- `}update(t){super.update(t),t.has("baseUrl")&&Gs.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Gs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Gs.actions.noCustom(this.noCustom),t.has("editorMode")&&Gs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Gs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Gs.actions.session(this.session),t.has("availableUiLocales")&&Gs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Js.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}el.elementDefinitions={},el.styles=Hs,tl([k()],el.prototype,"baseUrl",void 0),tl([k()],el.prototype,"apiIntegrationIdentifier",void 0),tl([k()],el.prototype,"uiLocale",void 0),tl([F(null)],el.prototype,"availableUiLocales",void 0),tl([F(null)],el.prototype,"metadataConfiguration",void 0),tl([k({type:Boolean})],el.prototype,"editorMode",void 0),tl([k({type:Boolean})],el.prototype,"noCustom",void 0),tl([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],el.prototype,"noCustomComponent",void 0),tl([k({type:Boolean})],el.prototype,"withManualResources",void 0),tl([F([])],el.prototype,"messageContexts",void 0),tl([F(void 0)],el.prototype,"session",void 0),tl([k({type:Object})],el.prototype,"apiProvider",void 0);class il{async listMySearches(){var t;return(null===(t=Gs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vs.await()).listMySearches(Gs.getState().session.profile.userId):[]}}const ol=new o;class rl{async listMyBookmarks(){return ol.get("bookmarks",(async()=>(await Vs.await()).listMyBookmarks(Gs.getState().session.profile.userId)))}clearCache(){ol.clear("bookmarks")}}const nl=Vo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const al=new class{constructor(){this.currentSession=Gs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rl,Gs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Gs.getState();D(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){nl.actions.savedSearches(void 0)}clearMyBookmarks(){nl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new il,e=await t.listMySearches();nl.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;nl.actions.bookmarks(e)}}};W("ft-app-context")(el);var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ll=Symbol("i18nProperties"),cl=Symbol("i18nUnsubs");function fl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qs:Js}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ll])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ll])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ll]&&new Set([...this[ll].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cl].has(t)||this[cl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[cl].forEach((t=>t())),this[cl].clear()}}return e=cl,sl([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hl extends(fl(Ze)){}class dl extends(fl(ni)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends dl{constructor(){super(),this.editorMode=!1,this.addStore(Gs)}render(){return this.key&&this.context?he`
1461
+ `}update(t){super.update(t),t.has("baseUrl")&&Gs.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Gs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Gs.actions.noCustom(this.noCustom),t.has("editorMode")&&Gs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Gs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Gs.actions.session(this.session),t.has("availableUiLocales")&&Gs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Js.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}el.elementDefinitions={},el.styles=Hs,tl([k()],el.prototype,"baseUrl",void 0),tl([k()],el.prototype,"apiIntegrationIdentifier",void 0),tl([k()],el.prototype,"uiLocale",void 0),tl([F(null)],el.prototype,"availableUiLocales",void 0),tl([F(null)],el.prototype,"metadataConfiguration",void 0),tl([k({type:Boolean})],el.prototype,"editorMode",void 0),tl([k({type:Boolean})],el.prototype,"noCustom",void 0),tl([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],el.prototype,"noCustomComponent",void 0),tl([k({type:Boolean})],el.prototype,"withManualResources",void 0),tl([F([])],el.prototype,"messageContexts",void 0),tl([F(void 0)],el.prototype,"session",void 0),tl([k({type:Object})],el.prototype,"apiProvider",void 0);class il{async listMySearches(){var t;return(null===(t=Gs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vs.await()).listMySearches(Gs.getState().session.profile.userId):[]}}const ol=new o;class rl{async listMyBookmarks(){return ol.get("bookmarks",(async()=>(await Vs.await()).listMyBookmarks(Gs.getState().session.profile.userId)))}clearCache(){ol.clear("bookmarks")}}const nl=qr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const al=new class{constructor(){this.currentSession=Gs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rl,Gs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Gs.getState();D(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){nl.actions.savedSearches(void 0)}clearMyBookmarks(){nl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new il,e=await t.listMySearches();nl.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;nl.actions.bookmarks(e)}}};W("ft-app-context")(el);var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ll=Symbol("i18nProperties"),cl=Symbol("i18nUnsubs");function fl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qs:Js}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ll])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ll])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ll]&&new Set([...this[ll].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cl].has(t)||this[cl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[cl].forEach((t=>t())),this[cl].clear()}}return e=cl,sl([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hl extends(fl(Hi)){}class dl extends(fl(ao)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends dl{constructor(){super(),this.editorMode=!1,this.addStore(Gs)}render(){return this.key&&this.context?he`
1460
1462
  <span class="ft-i18n">
1461
1463
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1462
1464
  </span>
1463
- `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}pl.elementDefinitions={},pl.styles=Zs,ul([Ye()],pl.prototype,"editorMode",void 0),ul([k()],pl.prototype,"context",void 0),ul([k()],pl.prototype,"key",void 0),ul([F([])],pl.prototype,"args",void 0),ul([k()],pl.prototype,"defaultMessage",void 0);class yl{static build(t){return new yl(t)}static fromGwt(t){return new yl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Js.resolveMessage(this.name,e,...t)})}}const gl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ll]=null!==(n=i[ll])&&void 0!==n?n:new Map,i[ll].set(o,a)};W("ft-i18n")(pl);const bl=yl.build("integratedFeedbackComponent"),vl={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ml={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",Te.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",Te.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(Te.colorSurface,"Design system"),colorOutline:Re.external(Te.colorOutline,"Design system"),elevation02:Re.external(Te.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},xl=Rt`
1465
+ `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}pl.elementDefinitions={},pl.styles=Zs,ul([Xi()],pl.prototype,"editorMode",void 0),ul([k()],pl.prototype,"context",void 0),ul([k()],pl.prototype,"key",void 0),ul([F([])],pl.prototype,"args",void 0),ul([k()],pl.prototype,"defaultMessage",void 0);class yl{static build(t){return new yl(t)}static fromGwt(t){return new yl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Js.resolveMessage(this.name,e,...t)})}}const gl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ll]=null!==(n=i[ll])&&void 0!==n?n:new Map,i[ll].set(o,a)};W("ft-i18n")(pl);const bl=yl.build("integratedFeedbackComponent"),vl={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ml={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",Te.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",Te.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(Te.colorSurface,"Design system"),colorOutline:Re.external(Te.colorOutline,"Design system"),elevation02:Re.external(Te.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},xl=Rt`
1464
1466
  *:focus {
1465
1467
  outline: none;
1466
1468
  }
@@ -1493,13 +1495,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1493
1495
  overflow: hidden;
1494
1496
  padding: 0 ${ml.horizontalSpacing};
1495
1497
 
1496
- ${Ie(Lr.fontSize,ml.fontSize)};
1497
- ${Ie(Lr.lineHeight,ml.fontSize)};
1498
+ ${Ie(_n.fontSize,ml.fontSize)};
1499
+ ${Ie(_n.lineHeight,ml.fontSize)};
1498
1500
  }
1499
1501
 
1500
1502
  .ft-text-field--input-panel ft-ripple {
1501
- ${Ie(sr.opacityContentOnSurfaceHover,"0.08")};
1502
- ${Ie(sr.opacityContentOnSurfacePressed,"0.04")};
1503
+ ${Ie(cn.opacityContentOnSurfaceHover,"0.08")};
1504
+ ${Ie(cn.opacityContentOnSurfacePressed,"0.04")};
1503
1505
  }
1504
1506
 
1505
1507
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1610,14 +1612,14 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1610
1612
  }
1611
1613
 
1612
1614
  .ft-text-field--with-icon {
1613
- ${Ie(ws.labelMaxWidth,`calc(100% - ${pn.size} - ${ws.horizontalSpacing})`)};
1615
+ ${Ie(ws.labelMaxWidth,`calc(100% - ${ya.size} - ${ws.horizontalSpacing})`)};
1614
1616
  }
1615
1617
 
1616
1618
  .ft-text-field--with-password ft-icon:hover {
1617
1619
  cursor: pointer;
1618
1620
  }
1619
- `;var wl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ol extends(Yo(Ze,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=es.EYE_SLASH,this.passwordRevealedIcon=es.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return he`
1620
- <div class="${Mn(t)}">
1621
+ `;var wl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ol extends(Xr(Hi,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=es.EYE_SLASH,this.passwordRevealedIcon=es.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return he`
1622
+ <div class="${ja(t)}">
1621
1623
  <div class="ft-text-field--main-panel"
1622
1624
  @keydown=${this.handleKeyboardNavigation}
1623
1625
  @focusout=${this.onMainPanelBlur}>
@@ -1668,7 +1670,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1668
1670
  .variant=${this.iconVariant}
1669
1671
  .value=${this.icon}
1670
1672
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1671
- `:ue}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ol.elementDefinitions={"ft-input-label":$s,"ft-ripple":zn,"ft-typography":Tn,"ft-icon":ns},Ol.styles=[rn,xl],wl([k()],Ol.prototype,"label",void 0),wl([k({noAccessor:!0})],Ol.prototype,"value",null),wl([R()],Ol.prototype,"dispatchedValue",void 0),wl([k()],Ol.prototype,"helper",void 0),wl([k({type:Boolean})],Ol.prototype,"outlined",void 0),wl([k({type:Boolean})],Ol.prototype,"disabled",void 0),wl([k({type:Boolean})],Ol.prototype,"error",void 0),wl([k()],Ol.prototype,"prefix",void 0),wl([k()],Ol.prototype,"icon",void 0),wl([k()],Ol.prototype,"passwordHiddenIcon",void 0),wl([k()],Ol.prototype,"passwordRevealedIcon",void 0),wl([k()],Ol.prototype,"iconVariant",void 0),wl([k({type:Boolean})],Ol.prototype,"filterSuggestions",void 0),wl([k({type:Number})],Ol.prototype,"maxLength",void 0),wl([k({type:Boolean})],Ol.prototype,"password",void 0),wl([R()],Ol.prototype,"focused",void 0),wl([R()],Ol.prototype,"hidePassword",void 0),wl([R()],Ol.prototype,"suggestionsOnTop",void 0),wl([R()],Ol.prototype,"hideSuggestions",void 0),wl([R()],Ol.prototype,"visibleSuggestions",void 0),wl([L(".ft-text-field--main-panel")],Ol.prototype,"mainPanel",void 0),wl([L(".ft-text-field--input")],Ol.prototype,"input",void 0),wl([L(".ft-text-field--suggestions")],Ol.prototype,"suggestionsContainer",void 0),wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ol.prototype,"suggestions",void 0);const Sl=Rt`
1673
+ `:ue}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ol.elementDefinitions={"ft-input-label":$s,"ft-ripple":Ba,"ft-typography":Da,"ft-icon":ns},Ol.styles=[na,xl],wl([k()],Ol.prototype,"label",void 0),wl([k({noAccessor:!0})],Ol.prototype,"value",null),wl([R()],Ol.prototype,"dispatchedValue",void 0),wl([k()],Ol.prototype,"helper",void 0),wl([k({type:Boolean})],Ol.prototype,"outlined",void 0),wl([k({type:Boolean})],Ol.prototype,"disabled",void 0),wl([k({type:Boolean})],Ol.prototype,"error",void 0),wl([k()],Ol.prototype,"prefix",void 0),wl([k()],Ol.prototype,"icon",void 0),wl([k()],Ol.prototype,"passwordHiddenIcon",void 0),wl([k()],Ol.prototype,"passwordRevealedIcon",void 0),wl([k()],Ol.prototype,"iconVariant",void 0),wl([k({type:Boolean})],Ol.prototype,"filterSuggestions",void 0),wl([k({type:Number})],Ol.prototype,"maxLength",void 0),wl([k({type:Boolean})],Ol.prototype,"password",void 0),wl([R()],Ol.prototype,"focused",void 0),wl([R()],Ol.prototype,"hidePassword",void 0),wl([R()],Ol.prototype,"suggestionsOnTop",void 0),wl([R()],Ol.prototype,"hideSuggestions",void 0),wl([R()],Ol.prototype,"visibleSuggestions",void 0),wl([L(".ft-text-field--main-panel")],Ol.prototype,"mainPanel",void 0),wl([L(".ft-text-field--input")],Ol.prototype,"input",void 0),wl([L(".ft-text-field--suggestions")],Ol.prototype,"suggestionsContainer",void 0),wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ol.prototype,"suggestions",void 0);const Sl=Rt`
1672
1674
  .ft-text-field-suggestion {
1673
1675
  position: relative;
1674
1676
  padding: 8px 16px;
@@ -1693,7 +1695,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1693
1695
  slot {
1694
1696
  pointer-events: none;
1695
1697
  }
1696
- `;var $l=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Nl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Cl extends Ze{render(){return he`
1698
+ `;var $l=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Nl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Cl extends Hi{render(){return he`
1697
1699
  <div class="ft-text-field-suggestion"
1698
1700
  tabindex="-1"
1699
1701
  @keydown=${this.onKeyDown}
@@ -1705,15 +1707,15 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1705
1707
  <slot></slot>
1706
1708
  </ft-typography>
1707
1709
  </div>
1708
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Nl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Cl.elementDefinitions={"ft-ripple":zn,"ft-typography":Tn,"ft-icon":ns},Cl.styles=Sl,$l([k()],Cl.prototype,"value",void 0),$l([L(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),$l([A()],Cl.prototype,"assignedNodes",void 0),W("ft-text-field")(Ol),W("ft-text-field-suggestion")(Cl);class El{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class kl{convertPaginatedToc(t){return new El(t).build()}}var Rl,Il,Ul,Ll,Al,_l,Tl,Dl,Wl,Fl,Pl,Ml,jl,zl,Bl,Kl,Zl,Hl;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Rl||(Rl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Il||(Il={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ul||(Ul={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ll||(Ll={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Al||(Al={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(_l||(_l={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Tl||(Tl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dl||(Dl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Wl||(Wl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Fl||(Fl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pl||(Pl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ml||(Ml={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zl||(zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bl||(Bl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Kl||(Kl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zl||(Zl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Hl||(Hl={}));const Gl={[Zl.PERSONAL_BOOK_SHARE_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.HTML_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.PDF_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.KHUB_ADMIN]:[Zl.CONTENT_PUBLISHER],[Zl.ADMIN]:[Zl.KHUB_ADMIN,Zl.USERS_ADMIN,Zl.PORTAL_ADMIN],[Zl.DEVELOPER]:[Zl.BETA_USER,Zl.DEBUG_USER]};function Vl(t,e){return t===e||(Gl[t]??[]).some((t=>Vl(t,e)))}function ql(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Vl(t,e)))}class Yl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return ql(null!==(e=null===(t=Gs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Gs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case er.FEEDBACK:return ql(null!=e?e:[],Zl.FEEDBACK_USER);case er.RATING:return ql(null!=e?e:[],Zl.RATING_USER)&&null!=i&&i!==Tl.NO_RATING;case er.PRINT:return ql(null!=e?e:[],Zl.PRINT_USER);case er.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case er.COLLECTIONS:return ql(null!=e?e:[],Zl.COLLECTION_USER);case er.PERSONAL_BOOKS:return ql(null!=e?e:[],Zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Xl extends Yl{static async build(t){return new Xl(new kl,await Vs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Jl{static build(t,e){return new Jl((t=>Vo.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Xl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return T((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Ql=Rt`
1709
- `;class tc extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ec extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class ic extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class oc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class rc extends Event{constructor(){super("ft-reader-map-not-found")}}class nc extends Event{constructor(){super("ft-reader-map-unauthorized")}}var ac=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sc extends ni{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(Gs)}render(){return he`
1710
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Nl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Cl.elementDefinitions={"ft-ripple":Ba,"ft-typography":Da,"ft-icon":ns},Cl.styles=Sl,$l([k()],Cl.prototype,"value",void 0),$l([L(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),$l([A()],Cl.prototype,"assignedNodes",void 0),W("ft-text-field")(Ol),W("ft-text-field-suggestion")(Cl);class El{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class kl{convertPaginatedToc(t){return new El(t).build()}}var Rl,Il,Ul,Ll,Al,_l,Tl,Dl,Wl,Fl,Pl,Ml,jl,zl,Bl,Kl,Zl,Hl;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Rl||(Rl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Il||(Il={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ul||(Ul={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ll||(Ll={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Al||(Al={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(_l||(_l={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Tl||(Tl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dl||(Dl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Wl||(Wl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Fl||(Fl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pl||(Pl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ml||(Ml={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zl||(zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bl||(Bl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Kl||(Kl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zl||(Zl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Hl||(Hl={}));const Gl={[Zl.PERSONAL_BOOK_SHARE_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.HTML_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.PDF_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.KHUB_ADMIN]:[Zl.CONTENT_PUBLISHER],[Zl.ADMIN]:[Zl.KHUB_ADMIN,Zl.USERS_ADMIN,Zl.PORTAL_ADMIN],[Zl.DEVELOPER]:[Zl.BETA_USER,Zl.DEBUG_USER]};function Vl(t,e){return t===e||(Gl[t]??[]).some((t=>Vl(t,e)))}function ql(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Vl(t,e)))}class Yl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return ql(null!==(e=null===(t=Gs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Gs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case on.FEEDBACK:return ql(null!=e?e:[],Zl.FEEDBACK_USER);case on.RATING:return ql(null!=e?e:[],Zl.RATING_USER)&&null!=i&&i!==Tl.NO_RATING;case on.PRINT:return ql(null!=e?e:[],Zl.PRINT_USER);case on.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case on.COLLECTIONS:return ql(null!=e?e:[],Zl.COLLECTION_USER);case on.PERSONAL_BOOKS:return ql(null!=e?e:[],Zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Xl extends Yl{static async build(t){return new Xl(new kl,await Vs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Jl{static build(t,e){return new Jl((t=>qr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Xl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return T((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Ql=Rt`
1711
+ `;class tc extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ec extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class ic extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class oc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class rc extends Event{constructor(){super("ft-reader-map-not-found")}}class nc extends Event{constructor(){super("ft-reader-map-unauthorized")}}var ac=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sc extends ao{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(Gs)}render(){return he`
1710
1712
  ${this.importStyleIfNeeded()}
1711
1713
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1712
1714
  `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?ue:he`
1713
1715
  <style>
1714
1716
  @import "${i}"
1715
1717
  </style>
1716
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Jl.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new tc(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new ic(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new ec(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new rc):401===e.status?this.dispatchEvent(new nc):this.dispatchEvent(new oc(t))}reloadBookmarks(){al.reloadBookmarks()}}var lc;sc.styles=Ql,ac([Ye({store:Gs.name})],sc.prototype,"baseUrl",void 0),ac([k()],sc.prototype,"mapId",void 0),ac([k()],sc.prototype,"tocId",void 0),ac([k()],sc.prototype,"section",void 0),ac([k()],sc.prototype,"searchInDocumentQuery",void 0),ac([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:lc}})],sc.prototype,"page",void 0),ac([Ye({store:"reader"})],sc.prototype,"map",void 0),ac([Ye({store:"reader"})],sc.prototype,"toc",void 0),ac([Ye({store:"reader"})],sc.prototype,"visibleTopics",void 0),ac([Ye({store:"reader"})],sc.prototype,"currentPage",void 0),ac([Ye({store:"reader"})],sc.prototype,"scrollTarget",void 0),ac([k({attribute:!1})],sc.prototype,"readerServiceProvider",void 0),W("ft-reader-context")(sc);var cc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fc extends(fl(nr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(bl,vl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(er.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(er.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.canAccessFeedback||this.canAccessRating?he`
1718
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Jl.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new tc(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new ic(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new ec(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new rc):401===e.status?this.dispatchEvent(new nc):this.dispatchEvent(new oc(t))}reloadBookmarks(){al.reloadBookmarks()}}var lc;sc.styles=Ql,ac([Xi({store:Gs.name})],sc.prototype,"baseUrl",void 0),ac([k()],sc.prototype,"mapId",void 0),ac([k()],sc.prototype,"tocId",void 0),ac([k()],sc.prototype,"section",void 0),ac([k()],sc.prototype,"searchInDocumentQuery",void 0),ac([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:lc}})],sc.prototype,"page",void 0),ac([Xi({store:"reader"})],sc.prototype,"map",void 0),ac([Xi({store:"reader"})],sc.prototype,"toc",void 0),ac([Xi({store:"reader"})],sc.prototype,"visibleTopics",void 0),ac([Xi({store:"reader"})],sc.prototype,"currentPage",void 0),ac([Xi({store:"reader"})],sc.prototype,"scrollTarget",void 0),ac([k({attribute:!1})],sc.prototype,"readerServiceProvider",void 0),W("ft-reader-context")(sc);var cc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(bl,vl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.canAccessFeedback||this.canAccessRating?he`
1717
1719
  <div class="ft-reader-feedback">
1718
1720
  ${this.hideTitle?ue:he`
1719
1721
  <ft-typography variant="title" part="main-title">
@@ -1810,7 +1812,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1810
1812
  ></ft-text-area>
1811
1813
  ${r}
1812
1814
  </form>
1813
- `}return ue}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}fc.elementDefinitions={"ft-button":js,"ft-typography":Tn,"ft-switch":ps,"ft-switch-option":hs,"ft-text-area":ks,"ft-text-field":Ol},fc.styles=En,cc([k({type:Boolean})],fc.prototype,"editorMode",void 0),cc([k({type:Boolean})],fc.prototype,"hideTitle",void 0),cc([k({type:Boolean})],fc.prototype,"ratingAllowed",void 0),cc([k({attribute:!1})],fc.prototype,"i18nProperties",void 0),cc([k({attribute:!1})],fc.prototype,"ratingSummary",void 0),cc([k({attribute:!1})],fc.prototype,"session",void 0),cc([L(".ft-reader-feedback--feedback-input")],fc.prototype,"feedbackInput",void 0),cc([R()],fc.prototype,"from",void 0),cc([R()],fc.prototype,"feedbackMessage",void 0),cc([k()],fc.prototype,"iconVariant",void 0),cc([k()],fc.prototype,"emptyStarIcon",void 0),cc([k()],fc.prototype,"filledStarIcon",void 0),cc([k()],fc.prototype,"emptyLikeIcon",void 0),cc([k()],fc.prototype,"filledLikeIcon",void 0),cc([k()],fc.prototype,"emptyDislikeIcon",void 0),cc([k()],fc.prototype,"filledDislikeIcon",void 0),cc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fc.prototype,"configuration",void 0),cc([k()],fc.prototype,"feedbackMailLinkBuilder",void 0);const hc=yl.fromGwt("server");class dc{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${hc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const uc=yl.build("inDesignerFeedbackComponent"),pc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var yc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class gc extends(fl(nr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.mapFeedbackMainTitle(),ratingSectionTitle:bl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){return he`
1815
+ `}return ue}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}fc.elementDefinitions={"ft-button":js,"ft-typography":Da,"ft-switch":ps,"ft-switch-option":hs,"ft-text-area":ks,"ft-text-field":Ol},fc.styles=ka,cc([k({type:Boolean})],fc.prototype,"editorMode",void 0),cc([k({type:Boolean})],fc.prototype,"hideTitle",void 0),cc([k({type:Boolean})],fc.prototype,"ratingAllowed",void 0),cc([k({attribute:!1})],fc.prototype,"i18nProperties",void 0),cc([k({attribute:!1})],fc.prototype,"ratingSummary",void 0),cc([k({attribute:!1})],fc.prototype,"session",void 0),cc([L(".ft-reader-feedback--feedback-input")],fc.prototype,"feedbackInput",void 0),cc([R()],fc.prototype,"from",void 0),cc([R()],fc.prototype,"feedbackMessage",void 0),cc([k()],fc.prototype,"iconVariant",void 0),cc([k()],fc.prototype,"emptyStarIcon",void 0),cc([k()],fc.prototype,"filledStarIcon",void 0),cc([k()],fc.prototype,"emptyLikeIcon",void 0),cc([k()],fc.prototype,"filledLikeIcon",void 0),cc([k()],fc.prototype,"emptyDislikeIcon",void 0),cc([k()],fc.prototype,"filledDislikeIcon",void 0),cc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fc.prototype,"configuration",void 0),cc([k()],fc.prototype,"feedbackMailLinkBuilder",void 0);const hc=yl.fromGwt("server");class dc{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${hc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const uc=yl.build("inDesignerFeedbackComponent"),pc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var yc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class gc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.mapFeedbackMainTitle(),ratingSectionTitle:bl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){return he`
1814
1816
  <ft-reader-feedback
1815
1817
  ratingAllowed
1816
1818
  .i18nProperties=${this.i18nProperties}
@@ -1830,7 +1832,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1830
1832
  @send-feedback=${this.sendFeedback}
1831
1833
  @mailer-feedback=${this.onMailerFeedbackSent}
1832
1834
  ></ft-reader-feedback>
1833
- `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}gc.elementDefinitions={"ft-reader-feedback":fc},yc([Ye({store:Gs.name})],gc.prototype,"session",void 0),yc([Ye({store:"reader"})],gc.prototype,"map",void 0),yc([Ye({store:Gs.name})],gc.prototype,"editorMode",void 0),yc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],gc.prototype,"configuration",void 0),yc([R()],gc.prototype,"ratingSummary",void 0),yc([k({type:Boolean})],gc.prototype,"hideTitle",void 0),yc([k()],gc.prototype,"iconVariant",void 0),yc([k()],gc.prototype,"emptyStarIcon",void 0),yc([k()],gc.prototype,"filledStarIcon",void 0),yc([k()],gc.prototype,"emptyLikeIcon",void 0),yc([k()],gc.prototype,"filledLikeIcon",void 0),yc([k()],gc.prototype,"emptyDislikeIcon",void 0),yc([k()],gc.prototype,"filledDislikeIcon",void 0),yc([L("ft-reader-feedback")],gc.prototype,"readerFeedback",void 0),yc([gl(hc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],gc.prototype,"mailSubject",void 0);var bc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const mc=Symbol("registerInterval");class xc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[mc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[mc]):this.dispatchEvent(new vc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=mc,bc([R()],i.prototype,"tocNode",void 0),bc([R()],i.prototype,"disableContextInteractions",void 0),i}(nr)){}var wc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Oc extends(fl(xc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.topicFeedbackMainTitle(),ratingSectionTitle:bl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){var t;return he`
1835
+ `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}gc.elementDefinitions={"ft-reader-feedback":fc},yc([Xi({store:Gs.name})],gc.prototype,"session",void 0),yc([Xi({store:"reader"})],gc.prototype,"map",void 0),yc([Xi({store:Gs.name})],gc.prototype,"editorMode",void 0),yc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],gc.prototype,"configuration",void 0),yc([R()],gc.prototype,"ratingSummary",void 0),yc([k({type:Boolean})],gc.prototype,"hideTitle",void 0),yc([k()],gc.prototype,"iconVariant",void 0),yc([k()],gc.prototype,"emptyStarIcon",void 0),yc([k()],gc.prototype,"filledStarIcon",void 0),yc([k()],gc.prototype,"emptyLikeIcon",void 0),yc([k()],gc.prototype,"filledLikeIcon",void 0),yc([k()],gc.prototype,"emptyDislikeIcon",void 0),yc([k()],gc.prototype,"filledDislikeIcon",void 0),yc([L("ft-reader-feedback")],gc.prototype,"readerFeedback",void 0),yc([gl(hc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],gc.prototype,"mailSubject",void 0);var bc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const mc=Symbol("registerInterval");class xc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[mc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[mc]):this.dispatchEvent(new vc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=mc,bc([R()],i.prototype,"tocNode",void 0),bc([R()],i.prototype,"disableContextInteractions",void 0),i}(sn)){}var wc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Oc extends(fl(xc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.topicFeedbackMainTitle(),ratingSectionTitle:bl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){var t;return he`
1834
1836
  <ft-reader-feedback
1835
1837
  .i18nProperties=${this.i18nProperties}
1836
1838
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
@@ -1850,4 +1852,4 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1850
1852
  @send-feedback=${this.sendFeedback}
1851
1853
  @mailer-feedback=${this.onMailerFeedbackSent}
1852
1854
  ></ft-reader-feedback>
1853
- `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Oc.elementDefinitions={"ft-reader-feedback":fc},wc([Ye({store:Gs.name})],Oc.prototype,"session",void 0),wc([Ye({store:"reader"})],Oc.prototype,"map",void 0),wc([Ye({store:Gs.name})],Oc.prototype,"editorMode",void 0),wc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Oc.prototype,"configuration",void 0),wc([R()],Oc.prototype,"ratingSummary",void 0),wc([k({type:Boolean})],Oc.prototype,"hideTitle",void 0),wc([k()],Oc.prototype,"iconVariant",void 0),wc([k()],Oc.prototype,"emptyStarIcon",void 0),wc([k()],Oc.prototype,"filledStarIcon",void 0),wc([k()],Oc.prototype,"emptyLikeIcon",void 0),wc([k()],Oc.prototype,"filledLikeIcon",void 0),wc([k()],Oc.prototype,"emptyDislikeIcon",void 0),wc([k()],Oc.prototype,"filledDislikeIcon",void 0),wc([L("ft-reader-feedback")],Oc.prototype,"readerFeedback",void 0),wc([gl(hc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Oc.prototype,"mailSubject",void 0),W("ft-reader-map-feedback")(gc),W("ft-reader-topic-feedback")(Oc),t.FtReaderFeedbackCssVariables=Cn,t.FtReaderMapFeedback=gc,t.FtReaderTopicFeedback=Oc,t.styles=En}({});
1855
+ `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Oc.elementDefinitions={"ft-reader-feedback":fc},wc([Xi({store:Gs.name})],Oc.prototype,"session",void 0),wc([Xi({store:"reader"})],Oc.prototype,"map",void 0),wc([Xi({store:Gs.name})],Oc.prototype,"editorMode",void 0),wc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Oc.prototype,"configuration",void 0),wc([R()],Oc.prototype,"ratingSummary",void 0),wc([k({type:Boolean})],Oc.prototype,"hideTitle",void 0),wc([k()],Oc.prototype,"iconVariant",void 0),wc([k()],Oc.prototype,"emptyStarIcon",void 0),wc([k()],Oc.prototype,"filledStarIcon",void 0),wc([k()],Oc.prototype,"emptyLikeIcon",void 0),wc([k()],Oc.prototype,"filledLikeIcon",void 0),wc([k()],Oc.prototype,"emptyDislikeIcon",void 0),wc([k()],Oc.prototype,"filledDislikeIcon",void 0),wc([L("ft-reader-feedback")],Oc.prototype,"readerFeedback",void 0),wc([gl(hc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Oc.prototype,"mailSubject",void 0),W("ft-reader-map-feedback")(gc),W("ft-reader-topic-feedback")(Oc),t.FtReaderFeedbackCssVariables=Ea,t.FtReaderMapFeedback=gc,t.FtReaderTopicFeedback=Oc,t.styles=ka}({});