@fluid-topics/ft-search-type 1.1.0 → 1.1.2

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.
@@ -10,7 +10,7 @@
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:j}),G=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=M(a));)l+=r+o[++c],h=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),h){const t=n.join("$$lit$$");void 0===(o=G.get(t))&&(n.raw=n,G.set(t,o=n)),e=s}return t(o,...e)})(k);var q;!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"}(q||(q={}));const Y=t=>"string"==typeof t?e.unsafeCSS(t):t;class X{static create(t,o,i,r){const a=t=>Y(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):Y(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${Y(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${Y(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const Q={colorWhite:X.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:X.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:X.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:X.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:X.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:X.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:X.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:X.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:X.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:X.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:X.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:X.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:X.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:X.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:X.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:X.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:X.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:X.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:X.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:X.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:X.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:X.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:X.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:X.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:X.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:X.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:X.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:X.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:X.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:X.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:X.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:X.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:X.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:X.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:X.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:X.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:X.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:X.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:X.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:X.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:X.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:X.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:X.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:X.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:X.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:X.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:X.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:X.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:X.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:X.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:X.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:X.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:X.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:X.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:X.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:X.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:X.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:X.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:X.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:X.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:X.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:X.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:X.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:X.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:X.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:X.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:X.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:X.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:X.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:X.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:X.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:X.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:X.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:X.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:X.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:X.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:X.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:X.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:X.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:X.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:X.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:X.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:X.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:X.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:X.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:X.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:X.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:X.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:X.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:X.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:X.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:X.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:X.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:X.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:X.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:X.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:X.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:X.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:X.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:X.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:X.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:X.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:X.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:X.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:X.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:X.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:X.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:X.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:X.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:X.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:X.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:X.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:X.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:X.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:X.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:X.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:X.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:X.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:X.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:X.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:X.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:X.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:X.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:X.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:X.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:X.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:X.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:X.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:X.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:X.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:X.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:X.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:X.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:X.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:X.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:X.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:X.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:X.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:X.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:X.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:X.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:X.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:X.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:X.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:X.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:X.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:X.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:X.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:X.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:X.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:X.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:X.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:X.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:X.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:X.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:X.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:X.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:X.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:X.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:X.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:X.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:X.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:X.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:X.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:X.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:X.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:X.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:X.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:X.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:X.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:X.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:X.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:X.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:X.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:X.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:X.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:X.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:X.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:X.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:X.create("--ft-icon-size-6","","SIZE","48px"),opacity0:X.create("--ft-opacity-0","","NUMBER","0"),opacity8:X.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:X.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:X.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:X.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:X.create("--ft-opacity-80","","NUMBER","0.8")},J={display:{fontFamily:X.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:X.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:X.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:X.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:X.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:X.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:X.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:X.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:X.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:X.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:X.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:X.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:X.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:X.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:X.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:X.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:X.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:X.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:X.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:X.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:X.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:X.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:X.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:X.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:X.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:X.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:X.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:X.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Q.colorBrand0),backgroundErrorPrimary:X.extend("--ft-background-error-primary","Used as background of error components.",Q.colorRed0),backgroundErrorSubtle:X.extend("--ft-background-error-subtle","Used as background of subtle error components.",Q.colorRed10),backgroundInfoPrimary:X.extend("--ft-background-info-primary","Used as background of information components.",Q.colorCyan200),backgroundInfoSubtle:X.extend("--ft-background-info-subtle","Used as background of subtle information components.",Q.colorCyan10),backgroundWarningPrimary:X.extend("--ft-background-warning-primary","Used as background of warning components.",Q.colorOrange300),backgroundWarningSubtle:X.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Q.colorOrange10),backgroundSuccessPrimary:X.extend("--ft-background-success-primary","Used as background of success components.",Q.colorGreen200),backgroundSuccessSubtle:X.extend("--ft-background-success-subtle","Used as background of subtle success components.",Q.colorGreen10),backgroundGlobalSurface:X.extend("--ft-background-global-surface","Used as app background.",Q.colorWhite),backgroundGlobalOnSurface:X.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Q.colorGray10),backgroundGlobalOnSurfaceDark:X.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Q.colorGray30),contentActionPrimary:X.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Q.colorBrand0),contentWarningPrimary:X.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Q.colorOrange300),contentWarningIconOnly:X.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Q.colorOrange0),contentErrorPrimary:X.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Q.colorRed0),contentErrorIconOnly:X.extend("--ft-content-error-icon-only","Used on error status icons alone",Q.colorRed0),contentInfoPrimary:X.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Q.colorCyan200),contentInfoIconOnly:X.extend("--ft-content-info-icon-only","Used on info status icons alone",Q.colorCyan0),contentSuccessIconOnly:X.extend("--ft-content-success-icon-only","Used on success status icons alone",Q.colorGreen0),contentSuccessPrimary:X.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Q.colorGreen200),contentGlobalPrimary:X.extend("--ft-content-global-primary","Used for main content on the page.",Q.colorGray500),contentGlobalSecondary:X.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Q.colorGray200),contentGlobalSubtle:X.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Q.colorGray0),contentGlobalOnColor:X.extend("--ft-content-global-on-color","Used for content on a dominant color.",Q.colorWhite),borderActionPrimary:X.extend("--ft-border-action-primary","Used as border for primary action components.",Q.colorBrand0),borderActionFocusRing:X.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Q.colorCyan0),borderWarningPrimary:X.extend("--ft-border-warning-primary","Used as border for warning components.",Q.colorOrange30),borderSuccessPrimary:X.extend("--ft-border-success-primary","Used as border for success components.",Q.colorGreen30),borderErrorPrimary:X.extend("--ft-border-error-primary","Used as border for error components.",Q.colorRed30),borderInfoPrimary:X.extend("--ft-border-info-primary","Used as border for information components.",Q.colorCyan30),borderGlobalSubtle:X.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Q.colorGray30),borderGlobalPrimary:X.extend("--ft-border-global-primary","Used as border for element like input.",Q.colorGray50),borderInputPrimary:X.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Q.colorGray80)},ot={largeHeight:X.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:X.extend("--ft-button-large-horizontal-padding","",Q.spacing4),largeGap:X.extend("--ft-button-large-gap","",Q.spacing2),largeBorderRadius:X.extend("--ft-button-large-border-radius","",Q.borderRadiusS),largeIconSize:X.extend("--ft-button-large-icon-size","",Q.iconSize3),largeBorderWidth:X.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:X.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:X.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:X.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:X.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:X.extend("--ft-button-small-horizontal-padding","",Q.spacing3),smallGap:X.extend("--ft-button-small-gap","",Q.spacing2),smallBorderRadius:X.extend("--ft-button-small-border-radius","",Q.borderRadiusS),smallIconSize:X.extend("--ft-button-small-icon-size","",Q.iconSize2),smallBorderWidth:X.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:X.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:X.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:X.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:X.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:X.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:X.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:X.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:X.extend("--ft-button-primary-state-layer-opacity-hover","",Q.opacity16),primaryStateLayerOpacityFocus:X.extend("--ft-button-primary-state-layer-opacity-focus","",Q.opacity16),primaryStateLayerOpacityActive:X.extend("--ft-button-primary-state-layer-opacity-active","",Q.opacity24),primaryComponentOpacityDisabled:X.extend("--ft-button-primary-component-opacity-disabled","",Q.opacity40),focusFocusRingColor:X.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:X.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:X.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:X.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:X.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:X.extend("--ft-button-tertiary-state-layer-opacity-hover","",Q.opacity8),tertiaryStateLayerOpacityFocus:X.extend("--ft-button-tertiary-state-layer-opacity-focus","",Q.opacity8),tertiaryStateLayerOpacityActive:X.extend("--ft-button-tertiary-state-layer-opacity-active","",Q.opacity16),tertiaryComponentOpacityDisabled:X.extend("--ft-button-tertiary-component-opacity-disabled","",Q.opacity40),secondaryBackgroundColor:X.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:X.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:X.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:X.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:X.extend("--ft-button-secondary-state-layer-opacity-hover","",Q.opacity8),secondaryStateLayerOpacityFocus:X.extend("--ft-button-secondary-state-layer-opacity-focus","",Q.opacity8),secondaryStateLayerOpacityActive:X.extend("--ft-button-secondary-state-layer-opacity-active","",Q.opacity16),secondaryComponentOpacityDisabled:X.extend("--ft-button-secondary-component-opacity-disabled","",Q.opacity40),secondaryBorderColor:X.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:X.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:X.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:X.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:X.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:X.extend("--ft-button-neutral-state-layer-opacity-hover","",Q.opacity8),neutralStateLayerOpacityFocus:X.extend("--ft-button-neutral-state-layer-opacity-focus","",Q.opacity8),neutralStateLayerOpacityActive:X.extend("--ft-button-neutral-state-layer-opacity-active","",Q.opacity16),neutralComponentOpacityDisabled:X.extend("--ft-button-neutral-component-opacity-disabled","",Q.opacity40)};X.extend("--ft-tabs-top-left-border-radius","",Q.borderRadiusS),X.extend("--ft-tabs-top-right-border-radius","",Q.borderRadiusS),X.extend("--ft-tabs-label-horizontal-padding","",Q.spacing4),X.extend("--ft-tabs-label-vertical-padding","",Q.spacing3),X.extend("--ft-tabs-label-gap","",Q.spacing1),X.extend("--ft-switch-group-horizontal-padding","",Q.spacing1),X.extend("--ft-switch-group-vertical-padding","",Q.spacing1),X.extend("--ft-switch-group-gap","",Q.spacing1),X.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),X.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),X.create("--ft-switch-group-border-radius","","SIZE","6px"),X.extend("--ft-switch-label-horizontal-padding","",Q.spacing2),X.extend("--ft-switch-label-vertical-padding","",Q.spacing1),X.extend("--ft-switch-icon-horizontal-padding","",Q.spacing1),X.extend("--ft-switch-icon-vertical-padding","",Q.spacing1),X.create("--ft-switch-focus-outline-width","","SIZE","2px"),X.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-switch-option-border-radius","",Q.borderRadiusS),X.extend("--ft-switch-off-state-layer-opacity-hover","",Q.opacity8),X.extend("--ft-switch-off-state-layer-opacity-focus","",Q.opacity8),X.extend("--ft-switch-off-state-layer-opacity-active","",Q.opacity16),X.extend("--ft-switch-off-component-opacity-disabled","",Q.opacity40),X.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),X.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-chart-1-light","for area color charts",Q.colorBrand40),X.extend("--ft-chart-1-base","for line charts",Q.colorBrand0),X.extend("--ft-chart-2-light","for area color charts",Q.colorYellow60),X.extend("--ft-chart-2-base","for line charts",Q.colorYellow100),X.extend("--ft-chart-3-light","",Q.colorUltramarine40),X.extend("--ft-chart-3-base","",Q.colorUltramarine70),X.extend("--ft-chart-4-light","",Q.colorCyan50),X.extend("--ft-chart-4-base","",Q.colorCyan100),X.extend("--ft-chart-5-light","",Q.colorRed40),X.extend("--ft-chart-5-base","",Q.colorRed60),X.extend("--ft-chart-6-light","",Q.colorGreen40),X.extend("--ft-chart-6-base","",Q.colorGreen70),X.extend("--ft-chart-7-light","",Q.colorOrange70),X.extend("--ft-chart-7-base","",Q.colorOrange100),X.extend("--ft-chart-8-light","",Q.colorAvocado70),X.extend("--ft-chart-8-base","",Q.colorAvocado200),X.extend("--ft-chart-9-light","",Q.colorBrown50),X.extend("--ft-chart-9-base","",Q.colorBrown200),X.extend("--ft-chart-10-light","",Q.colorGray50),X.extend("--ft-chart-10-base","",Q.colorGray80),X.extend("--ft-chart-monochrome-10","",Q.colorBrand10),X.extend("--ft-chart-monochrome-20","",Q.colorBrand20),X.extend("--ft-chart-monochrome-30","",Q.colorBrand40),X.extend("--ft-chart-monochrome-40","",Q.colorBrand60),X.extend("--ft-chart-monochrome-50","",Q.colorBrand0),X.extend("--ft-chart-monochrome-60","",Q.colorBrand200),X.extend("--ft-chip-large-horizontal-padding","",Q.spacing4),X.extend("--ft-chip-large-vertical-padding","",Q.spacing2),X.extend("--ft-chip-large-gap","",Q.spacing1),X.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-large-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-large-border-width","","SIZE","1px"),X.extend("--ft-chip-large-icon-size","",Q.iconSize3),X.extend("--ft-chip-medium-horizontal-padding","",Q.spacing3),X.extend("--ft-chip-medium-vertical-padding","",Q.spacing1),X.extend("--ft-chip-medium-gap","",Q.spacing1),X.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-medium-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-medium-border-width","","SIZE","1px"),X.extend("--ft-chip-medium-icon-size","",Q.iconSize2),X.extend("--ft-chip-small-horizontal-padding","",Q.spacing2),X.extend("--ft-chip-small-vertical-padding","",Q.spacing05),X.extend("--ft-chip-small-gap","",Q.spacing1),X.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-small-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-small-border-width","","SIZE","1px"),X.extend("--ft-chip-small-icon-size","",Q.iconSize1),X.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),X.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),X.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),X.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-chip-info-color","",tt.contentInfoPrimary),X.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),X.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),X.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-chip-error-color","",tt.contentErrorPrimary),X.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),X.create("--ft-notice-border-width","","SIZE","1px"),X.extend("--ft-notice-horizontal-padding","",Q.spacing2),X.extend("--ft-notice-vertical-padding","",Q.spacing1),X.extend("--ft-notice-border-radius","",Q.borderRadiusS),X.extend("--ft-notice-gap","",Q.spacing2),X.extend("--ft-notice-icon-size","",Q.iconSize3),X.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notice-info-color","",tt.contentInfoPrimary),X.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),X.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),X.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),X.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-checkbox-checked-component-opacity-disabled","",Q.opacity40),X.extend("--ft-checkbox-unchecked-border-color","",Q.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-color","",Q.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Q.opacity40),X.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),X.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),X.extend("--ft-checkbox-gap","",Q.spacing3),X.extend("--ft-toggle-off-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-toggle-off-component-opacity-disabled","",Q.opacity40),X.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-on-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-toggle-on-component-opacity-disabled","",Q.opacity40),X.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),X.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-toggle-gap","",Q.spacing3),X.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),X.extend("--ft-radio-selected-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-radio-selected-component-opacity-disabled","",Q.opacity40),X.extend("--ft-radio-unselected-state-layer-color","",Q.colorGray80),X.extend("--ft-radio-unselected-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-radio-unselected-component-opacity-disabled","",Q.opacity40),X.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-radio-focus-outline-offset","","SIZE","3px"),X.create("--ft-radio-focus-outline-width","","SIZE","2px"),X.extend("--ft-radio-gap","",Q.spacing3),X.extend("--ft-notification-icon-size","",Q.iconSize4),X.extend("--ft-notification-horizontal-padding","",Q.spacing4),X.extend("--ft-notification-vertical-padding","",Q.spacing4),X.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notification-info-color","",tt.contentInfoPrimary),X.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),X.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),X.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-notification-error-color","",tt.contentErrorPrimary),X.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),X.extend("--ft-notification-border-radius","",Q.borderRadiusPill),X.create("--ft-notification-border-width","","SIZE","1px"),X.extend("--ft-notification-gap-leading","",Q.spacing2),X.extend("--ft-notification-gap-trailing","",Q.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),st=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Et=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),zt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit")},Bt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),At=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),Dt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),Zt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),Tt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Pt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),Mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Xt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),to={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},oo=e.css`
13
+ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:j}),G=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=M(a));)l+=r+o[++c],h=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),h){const t=n.join("$$lit$$");void 0===(o=G.get(t))&&(n.raw=n,G.set(t,o=n)),e=s}return t(o,...e)})(k);var q;!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"}(q||(q={}));const Y=t=>"string"==typeof t?e.unsafeCSS(t):t;class Q{static create(t,o,i,r){const a=t=>Y(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):Y(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${Y(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${Y(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const X={colorWhite:Q.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Q.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Q.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Q.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Q.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Q.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Q.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Q.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Q.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Q.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Q.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Q.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Q.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Q.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Q.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Q.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Q.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Q.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Q.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Q.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Q.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Q.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Q.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Q.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Q.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Q.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Q.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Q.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Q.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Q.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Q.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Q.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Q.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Q.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Q.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Q.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Q.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Q.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Q.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Q.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Q.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Q.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Q.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Q.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Q.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Q.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Q.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Q.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Q.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Q.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Q.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Q.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Q.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Q.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Q.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Q.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Q.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Q.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Q.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Q.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Q.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Q.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Q.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Q.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Q.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Q.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Q.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Q.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Q.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Q.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Q.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Q.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Q.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Q.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Q.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Q.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Q.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Q.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Q.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Q.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Q.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Q.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Q.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Q.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Q.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Q.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Q.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Q.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Q.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Q.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Q.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Q.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Q.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Q.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Q.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Q.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Q.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Q.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Q.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Q.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Q.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Q.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Q.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Q.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Q.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Q.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Q.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Q.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Q.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Q.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Q.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Q.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Q.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Q.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Q.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Q.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Q.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Q.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Q.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Q.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Q.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Q.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Q.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Q.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Q.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Q.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Q.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Q.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Q.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Q.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Q.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Q.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Q.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Q.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Q.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Q.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Q.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Q.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Q.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Q.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Q.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Q.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Q.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Q.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Q.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Q.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Q.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Q.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Q.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Q.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Q.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Q.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Q.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Q.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Q.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Q.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Q.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Q.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Q.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Q.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Q.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Q.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Q.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Q.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Q.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Q.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Q.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Q.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Q.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Q.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Q.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Q.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Q.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Q.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Q.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Q.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Q.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Q.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Q.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Q.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Q.create("--ft-opacity-0","","NUMBER","0"),opacity8:Q.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Q.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Q.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Q.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Q.create("--ft-opacity-80","","NUMBER","0.8")},J={display:{fontFamily:Q.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Q.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Q.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Q.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Q.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Q.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Q.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Q.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Q.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Q.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Q.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Q.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Q.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Q.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Q.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Q.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Q.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Q.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Q.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Q.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Q.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Q.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Q.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Q.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Q.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Q.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Q.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Q.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Q.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:Q.extend("--ft-background-action-primary","Used as backgorund of primary action components.",X.colorBrand0),backgroundErrorPrimary:Q.extend("--ft-background-error-primary","Used as background of error components.",X.colorRed0),backgroundErrorSubtle:Q.extend("--ft-background-error-subtle","Used as background of subtle error components.",X.colorRed10),backgroundInfoPrimary:Q.extend("--ft-background-info-primary","Used as background of information components.",X.colorCyan200),backgroundInfoSubtle:Q.extend("--ft-background-info-subtle","Used as background of subtle information components.",X.colorCyan10),backgroundWarningPrimary:Q.extend("--ft-background-warning-primary","Used as background of warning components.",X.colorOrange300),backgroundWarningSubtle:Q.extend("--ft-background-warning-subtle","Used as background of subtle information components.",X.colorOrange10),backgroundSuccessPrimary:Q.extend("--ft-background-success-primary","Used as background of success components.",X.colorGreen200),backgroundSuccessSubtle:Q.extend("--ft-background-success-subtle","Used as background of subtle success components.",X.colorGreen10),backgroundGlobalSurface:Q.extend("--ft-background-global-surface","Used as app background.",X.colorWhite),backgroundGlobalOnSurface:Q.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",X.colorGray10),backgroundGlobalOnSurfaceDark:Q.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",X.colorGray30),contentActionPrimary:Q.extend("--ft-content-action-primary","Used on label of primary action on light surface.",X.colorBrand0),contentWarningPrimary:Q.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",X.colorOrange300),contentWarningIconOnly:Q.extend("--ft-content-warning-icon-only","Used on warning status icons alone",X.colorOrange0),contentErrorPrimary:Q.extend("--ft-content-error-primary","Used on label of error messages on light surface.",X.colorRed0),contentErrorIconOnly:Q.extend("--ft-content-error-icon-only","Used on error status icons alone",X.colorRed0),contentInfoPrimary:Q.extend("--ft-content-info-primary","Used on label of information messages on light surface.",X.colorCyan200),contentInfoIconOnly:Q.extend("--ft-content-info-icon-only","Used on info status icons alone",X.colorCyan0),contentSuccessIconOnly:Q.extend("--ft-content-success-icon-only","Used on success status icons alone",X.colorGreen0),contentSuccessPrimary:Q.extend("--ft-content-success-primary","Used on label of success messages on light surface.",X.colorGreen200),contentGlobalPrimary:Q.extend("--ft-content-global-primary","Used for main content on the page.",X.colorGray500),contentGlobalSecondary:Q.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",X.colorGray200),contentGlobalSubtle:Q.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",X.colorGray0),contentGlobalOnColor:Q.extend("--ft-content-global-on-color","Used for content on a dominant color.",X.colorWhite),borderActionPrimary:Q.extend("--ft-border-action-primary","Used as border for primary action components.",X.colorBrand0),borderActionFocusRing:Q.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",X.colorCyan0),borderWarningPrimary:Q.extend("--ft-border-warning-primary","Used as border for warning components.",X.colorOrange30),borderSuccessPrimary:Q.extend("--ft-border-success-primary","Used as border for success components.",X.colorGreen30),borderErrorPrimary:Q.extend("--ft-border-error-primary","Used as border for error components.",X.colorRed30),borderInfoPrimary:Q.extend("--ft-border-info-primary","Used as border for information components.",X.colorCyan30),borderGlobalSubtle:Q.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",X.colorGray30),borderGlobalPrimary:Q.extend("--ft-border-global-primary","Used as border for element like input.",X.colorGray50),borderInputPrimary:Q.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",X.colorGray80)},ot={largeHeight:Q.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Q.extend("--ft-button-large-horizontal-padding","",X.spacing4),largeGap:Q.extend("--ft-button-large-gap","",X.spacing2),largeBorderRadius:Q.extend("--ft-button-large-border-radius","",X.borderRadiusS),largeIconSize:Q.extend("--ft-button-large-icon-size","",X.iconSize3),largeBorderWidth:Q.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Q.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Q.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Q.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Q.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Q.extend("--ft-button-small-horizontal-padding","",X.spacing3),smallGap:Q.extend("--ft-button-small-gap","",X.spacing2),smallBorderRadius:Q.extend("--ft-button-small-border-radius","",X.borderRadiusS),smallIconSize:Q.extend("--ft-button-small-icon-size","",X.iconSize2),smallBorderWidth:Q.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Q.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Q.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Q.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Q.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:Q.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:Q.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:Q.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:Q.extend("--ft-button-primary-state-layer-opacity-hover","",X.opacity16),primaryStateLayerOpacityFocus:Q.extend("--ft-button-primary-state-layer-opacity-focus","",X.opacity16),primaryStateLayerOpacityActive:Q.extend("--ft-button-primary-state-layer-opacity-active","",X.opacity24),primaryComponentOpacityDisabled:Q.extend("--ft-button-primary-component-opacity-disabled","",X.opacity40),focusFocusRingColor:Q.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:Q.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Q.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:Q.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:Q.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:Q.extend("--ft-button-tertiary-state-layer-opacity-hover","",X.opacity8),tertiaryStateLayerOpacityFocus:Q.extend("--ft-button-tertiary-state-layer-opacity-focus","",X.opacity8),tertiaryStateLayerOpacityActive:Q.extend("--ft-button-tertiary-state-layer-opacity-active","",X.opacity16),tertiaryComponentOpacityDisabled:Q.extend("--ft-button-tertiary-component-opacity-disabled","",X.opacity40),secondaryBackgroundColor:Q.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Q.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:Q.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:Q.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:Q.extend("--ft-button-secondary-state-layer-opacity-hover","",X.opacity8),secondaryStateLayerOpacityFocus:Q.extend("--ft-button-secondary-state-layer-opacity-focus","",X.opacity8),secondaryStateLayerOpacityActive:Q.extend("--ft-button-secondary-state-layer-opacity-active","",X.opacity16),secondaryComponentOpacityDisabled:Q.extend("--ft-button-secondary-component-opacity-disabled","",X.opacity40),secondaryBorderColor:Q.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:Q.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Q.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:Q.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:Q.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:Q.extend("--ft-button-neutral-state-layer-opacity-hover","",X.opacity8),neutralStateLayerOpacityFocus:Q.extend("--ft-button-neutral-state-layer-opacity-focus","",X.opacity8),neutralStateLayerOpacityActive:Q.extend("--ft-button-neutral-state-layer-opacity-active","",X.opacity16),neutralComponentOpacityDisabled:Q.extend("--ft-button-neutral-component-opacity-disabled","",X.opacity40)};Q.extend("--ft-tabs-top-left-border-radius","",X.borderRadiusS),Q.extend("--ft-tabs-top-right-border-radius","",X.borderRadiusS),Q.extend("--ft-tabs-label-horizontal-padding","",X.spacing4),Q.extend("--ft-tabs-label-vertical-padding","",X.spacing3),Q.extend("--ft-tabs-label-gap","",X.spacing1),Q.extend("--ft-switch-group-horizontal-padding","",X.spacing1),Q.extend("--ft-switch-group-vertical-padding","",X.spacing1),Q.extend("--ft-switch-group-gap","",X.spacing1),Q.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),Q.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),Q.create("--ft-switch-group-border-radius","","SIZE","6px"),Q.extend("--ft-switch-label-horizontal-padding","",X.spacing2),Q.extend("--ft-switch-label-vertical-padding","",X.spacing1),Q.extend("--ft-switch-icon-horizontal-padding","",X.spacing1),Q.extend("--ft-switch-icon-vertical-padding","",X.spacing1),Q.create("--ft-switch-focus-outline-width","","SIZE","2px"),Q.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),Q.extend("--ft-switch-option-border-radius","",X.borderRadiusS),Q.extend("--ft-switch-off-state-layer-opacity-hover","",X.opacity8),Q.extend("--ft-switch-off-state-layer-opacity-focus","",X.opacity8),Q.extend("--ft-switch-off-state-layer-opacity-active","",X.opacity16),Q.extend("--ft-switch-off-component-opacity-disabled","",X.opacity40),Q.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),Q.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),Q.extend("--ft-chart-1-light","for area color charts",X.colorBrand40),Q.extend("--ft-chart-1-base","for line charts",X.colorBrand0),Q.extend("--ft-chart-2-light","for area color charts",X.colorYellow60),Q.extend("--ft-chart-2-base","for line charts",X.colorYellow100),Q.extend("--ft-chart-3-light","",X.colorUltramarine40),Q.extend("--ft-chart-3-base","",X.colorUltramarine70),Q.extend("--ft-chart-4-light","",X.colorCyan50),Q.extend("--ft-chart-4-base","",X.colorCyan100),Q.extend("--ft-chart-5-light","",X.colorRed40),Q.extend("--ft-chart-5-base","",X.colorRed60),Q.extend("--ft-chart-6-light","",X.colorGreen40),Q.extend("--ft-chart-6-base","",X.colorGreen70),Q.extend("--ft-chart-7-light","",X.colorOrange70),Q.extend("--ft-chart-7-base","",X.colorOrange100),Q.extend("--ft-chart-8-light","",X.colorAvocado70),Q.extend("--ft-chart-8-base","",X.colorAvocado200),Q.extend("--ft-chart-9-light","",X.colorBrown50),Q.extend("--ft-chart-9-base","",X.colorBrown200),Q.extend("--ft-chart-10-light","",X.colorGray50),Q.extend("--ft-chart-10-base","",X.colorGray80),Q.extend("--ft-chart-monochrome-10","",X.colorBrand10),Q.extend("--ft-chart-monochrome-20","",X.colorBrand20),Q.extend("--ft-chart-monochrome-30","",X.colorBrand40),Q.extend("--ft-chart-monochrome-40","",X.colorBrand60),Q.extend("--ft-chart-monochrome-50","",X.colorBrand0),Q.extend("--ft-chart-monochrome-60","",X.colorBrand200),Q.extend("--ft-chip-large-horizontal-padding","",X.spacing4),Q.extend("--ft-chip-large-vertical-padding","",X.spacing2),Q.extend("--ft-chip-large-gap","",X.spacing1),Q.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-large-border-radius","",X.borderRadiusPill),Q.create("--ft-chip-large-border-width","","SIZE","1px"),Q.extend("--ft-chip-large-icon-size","",X.iconSize3),Q.extend("--ft-chip-medium-horizontal-padding","",X.spacing3),Q.extend("--ft-chip-medium-vertical-padding","",X.spacing1),Q.extend("--ft-chip-medium-gap","",X.spacing1),Q.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-medium-border-radius","",X.borderRadiusPill),Q.create("--ft-chip-medium-border-width","","SIZE","1px"),Q.extend("--ft-chip-medium-icon-size","",X.iconSize2),Q.extend("--ft-chip-small-horizontal-padding","",X.spacing2),Q.extend("--ft-chip-small-vertical-padding","",X.spacing05),Q.extend("--ft-chip-small-gap","",X.spacing1),Q.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-small-border-radius","",X.borderRadiusPill),Q.create("--ft-chip-small-border-width","","SIZE","1px"),Q.extend("--ft-chip-small-icon-size","",X.iconSize1),Q.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),Q.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),Q.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),Q.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),Q.extend("--ft-chip-info-color","",tt.contentInfoPrimary),Q.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),Q.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),Q.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),Q.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),Q.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),Q.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),Q.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),Q.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),Q.extend("--ft-chip-error-color","",tt.contentErrorPrimary),Q.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),Q.create("--ft-notice-border-width","","SIZE","1px"),Q.extend("--ft-notice-horizontal-padding","",X.spacing2),Q.extend("--ft-notice-vertical-padding","",X.spacing1),Q.extend("--ft-notice-border-radius","",X.borderRadiusS),Q.extend("--ft-notice-gap","",X.spacing2),Q.extend("--ft-notice-icon-size","",X.iconSize3),Q.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),Q.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),Q.extend("--ft-notice-info-color","",tt.contentInfoPrimary),Q.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),Q.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),Q.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),Q.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),Q.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),Q.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),Q.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),Q.extend("--ft-checkbox-checked-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-checkbox-checked-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-checkbox-checked-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-checkbox-checked-component-opacity-disabled","",X.opacity40),Q.extend("--ft-checkbox-unchecked-border-color","",X.colorGray80),Q.extend("--ft-checkbox-unchecked-state-layer-color","",X.colorGray80),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-checkbox-unchecked-component-opacity-disabled","",X.opacity40),Q.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),Q.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Q.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Q.extend("--ft-checkbox-gap","",X.spacing3),Q.extend("--ft-toggle-off-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-toggle-off-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-toggle-off-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-toggle-off-component-opacity-disabled","",X.opacity40),Q.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),Q.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),Q.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),Q.extend("--ft-toggle-on-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-toggle-on-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-toggle-on-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-toggle-on-component-opacity-disabled","",X.opacity40),Q.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),Q.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),Q.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),Q.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),Q.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),Q.extend("--ft-toggle-gap","",X.spacing3),Q.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),Q.extend("--ft-radio-selected-color","",tt.contentActionPrimary),Q.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),Q.extend("--ft-radio-selected-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-radio-selected-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-radio-selected-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-radio-selected-component-opacity-disabled","",X.opacity40),Q.extend("--ft-radio-unselected-state-layer-color","",X.colorGray80),Q.extend("--ft-radio-unselected-state-layer-opacity-hover","",X.opacity16),Q.extend("--ft-radio-unselected-state-layer-opacity-focus","",X.opacity16),Q.extend("--ft-radio-unselected-state-layer-opacity-active","",X.opacity24),Q.extend("--ft-radio-unselected-component-opacity-disabled","",X.opacity40),Q.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),Q.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Q.create("--ft-radio-focus-outline-width","","SIZE","2px"),Q.extend("--ft-radio-gap","",X.spacing3),Q.extend("--ft-notification-icon-size","",X.iconSize4),Q.extend("--ft-notification-horizontal-padding","",X.spacing4),Q.extend("--ft-notification-vertical-padding","",X.spacing4),Q.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),Q.extend("--ft-notification-info-color","",tt.contentInfoPrimary),Q.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),Q.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),Q.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),Q.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),Q.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),Q.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),Q.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),Q.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),Q.extend("--ft-notification-error-color","",tt.contentErrorPrimary),Q.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),Q.extend("--ft-notification-border-radius","",X.borderRadiusPill),Q.create("--ft-notification-border-width","","SIZE","1px"),Q.extend("--ft-notification-gap-leading","",X.spacing2),Q.extend("--ft-notification-gap-trailing","",X.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),st=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Et=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),zt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit")},Bt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),At=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),Dt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),Zt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),Tt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Pt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),Mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),Xt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),to={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},oo=e.css`
14
14
  .ft-typography--title {
15
15
  font-family: ${at};
16
16
  font-size: ${nt};
@@ -88,8 +88,8 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
88
88
  font-family: ${Vt};
89
89
  font-size: ${qt};
90
90
  font-weight: ${Yt};
91
- letter-spacing: ${Xt};
92
- line-height: ${Qt};
91
+ letter-spacing: ${Qt};
92
+ line-height: ${Xt};
93
93
  text-transform: ${Jt};
94
94
  }
95
95
  `,ho=e.css`
@@ -527,7 +527,7 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
527
527
  position: relative;
528
528
  word-break: break-word;
529
529
  }
530
- `;var Go,Vo,qo,Yo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Xo extends o.FtLitElement{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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
530
+ `;var Go,Vo,qo,Yo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Qo extends o.FtLitElement{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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
531
531
  <div part="container"
532
532
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
533
533
  @mouseenter=${this.onHover}
@@ -545,12 +545,12 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
545
545
  </div>
546
546
  </div>
547
547
  </div>
548
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Mo})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Xo.elementDefinitions={"ft-typography":yo},Xo.styles=_o,Yo([i.property()],Xo.prototype,"text",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"manual",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"inline",void 0),Yo([i.property({type:Number})],Xo.prototype,"delay",void 0),Yo([i.property()],Xo.prototype,"position",void 0),Yo([i.queryAssignedNodes()],Xo.prototype,"slotNodes",void 0),Yo([i.query(".ft-tooltip--container")],Xo.prototype,"container",void 0),Yo([i.query(".ft-tooltip")],Xo.prototype,"tooltip",void 0),Yo([i.query(".ft-tooltip--content")],Xo.prototype,"tooltipContent",void 0),Yo([i.state()],Xo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Xo),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;"}(Go||(Go={})),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;"}(Vo||(Vo={})),new Map([...["abw"].map((t=>[t,Vo.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,Vo.AUDIO])),...["avi"].map((t=>[t,Vo.AVI])),...["chm","xhs"].map((t=>[t,Vo.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,Vo.CODE])),...["csv"].map((t=>[t,Vo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vo.DITA])),...["epub"].map((t=>[t,Vo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vo.EXCEL])),...["flac"].map((t=>[t,Vo.FLAC])),...["gif"].map((t=>[t,Vo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vo.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,Vo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vo.JPEG])),...["json"].map((t=>[t,Vo.JSON])),...["m4a","m4p"].map((t=>[t,Vo.M4A])),...["mov","qt"].map((t=>[t,Vo.MOV])),...["mp3"].map((t=>[t,Vo.MP3])),...["mp4","m4v"].map((t=>[t,Vo.MP4])),...["ogg","oga"].map((t=>[t,Vo.OGG])),...["pdf","ps"].map((t=>[t,Vo.PDF])),...["png"].map((t=>[t,Vo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vo.POWERPOINT])),...["rar"].map((t=>[t,Vo.RAR])),...["stp"].map((t=>[t,Vo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vo.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,Vo.VIDEO])),...["wav"].map((t=>[t,Vo.WAV])),...["wma"].map((t=>[t,Vo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vo.YAML])),...["zip"].map((t=>[t,Vo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qo||(qo={}));var Qo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Jo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(qo).includes(this.variant)?this.variant:qo.fluid_topics,o=t!==qo.material||!!this.value;return e.html`
548
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Mo})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Qo.elementDefinitions={"ft-typography":yo},Qo.styles=_o,Yo([i.property()],Qo.prototype,"text",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"manual",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"inline",void 0),Yo([i.property({type:Number})],Qo.prototype,"delay",void 0),Yo([i.property()],Qo.prototype,"position",void 0),Yo([i.queryAssignedNodes()],Qo.prototype,"slotNodes",void 0),Yo([i.query(".ft-tooltip--container")],Qo.prototype,"container",void 0),Yo([i.query(".ft-tooltip")],Qo.prototype,"tooltip",void 0),Yo([i.query(".ft-tooltip--content")],Qo.prototype,"tooltipContent",void 0),Yo([i.state()],Qo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Qo),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;"}(Go||(Go={})),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;"}(Vo||(Vo={})),new Map([...["abw"].map((t=>[t,Vo.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,Vo.AUDIO])),...["avi"].map((t=>[t,Vo.AVI])),...["chm","xhs"].map((t=>[t,Vo.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,Vo.CODE])),...["csv"].map((t=>[t,Vo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vo.DITA])),...["epub"].map((t=>[t,Vo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vo.EXCEL])),...["flac"].map((t=>[t,Vo.FLAC])),...["gif"].map((t=>[t,Vo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vo.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,Vo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vo.JPEG])),...["json"].map((t=>[t,Vo.JSON])),...["m4a","m4p"].map((t=>[t,Vo.M4A])),...["mov","qt"].map((t=>[t,Vo.MOV])),...["mp3"].map((t=>[t,Vo.MP3])),...["mp4","m4v"].map((t=>[t,Vo.MP4])),...["ogg","oga"].map((t=>[t,Vo.OGG])),...["pdf","ps"].map((t=>[t,Vo.PDF])),...["png"].map((t=>[t,Vo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vo.POWERPOINT])),...["rar"].map((t=>[t,Vo.RAR])),...["stp"].map((t=>[t,Vo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vo.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,Vo.VIDEO])),...["wav"].map((t=>[t,Vo.WAV])),...["wma"].map((t=>[t,Vo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vo.YAML])),...["zip"].map((t=>[t,Vo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qo||(qo={}));var Xo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Jo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(qo).includes(this.variant)?this.variant:qo.fluid_topics,o=t!==qo.material||!!this.value;return e.html`
549
549
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
550
550
  ${n.unsafeHTML(this.resolvedIcon)}
551
551
  <slot ?hidden=${o}></slot>
552
552
  </i>
553
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case qo.file_format:this.resolvedIcon=null!==(t=Vo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case qo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Go[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Jo.elementDefinitions={},Jo.styles=Io,Qo([i.property()],Jo.prototype,"variant",void 0),Qo([i.property()],Jo.prototype,"value",void 0),Qo([i.state()],Jo.prototype,"resolvedIcon",void 0),Qo([i.query("slot")],Jo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Jo);class te extends o.FtLitElement{render(){return e.html`
553
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case qo.file_format:this.resolvedIcon=null!==(t=Vo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case qo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Go[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Jo.elementDefinitions={},Jo.styles=Io,Xo([i.property()],Jo.prototype,"variant",void 0),Xo([i.property()],Jo.prototype,"value",void 0),Xo([i.state()],Jo.prototype,"resolvedIcon",void 0),Xo([i.query("slot")],Jo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Jo);class te extends o.FtLitElement{render(){return e.html`
554
554
  <div class="ft-loader">
555
555
  <div></div>
556
556
  <div></div>
@@ -580,7 +580,7 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
580
580
  </ft-tooltip>
581
581
  `:t}resolveIcon(){return this.loading?e.html`
582
582
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
583
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Zo,"ft-tooltip":Xo,"ft-typography":yo,"ft-icon":Jo,"ft-loader":te},oe([i.property({type:String,reflect:!0})],ee.prototype,"role",void 0),oe([i.property()],ee.prototype,"type",void 0),oe([i.property({type:Boolean})],ee.prototype,"disabled",void 0),oe([i.property()],ee.prototype,"label",void 0),oe([i.property()],ee.prototype,"icon",void 0),oe([i.property()],ee.prototype,"iconVariant",void 0),oe([i.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),oe([i.property({type:Boolean})],ee.prototype,"loading",void 0),oe([i.property()],ee.prototype,"tooltipPosition",void 0),oe([i.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),oe([i.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),oe([i.query(".ft-button")],ee.prototype,"button",void 0),oe([i.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);var ie=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends ee{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"}}re.styles=[o.safariEllipsisFix,Ao],ie([i.property({type:Boolean})],re.prototype,"primary",void 0),ie([i.property({type:Boolean})],re.prototype,"outlined",void 0),ie([i.property({type:Boolean})],re.prototype,"dense",void 0),ie([i.property({type:Boolean})],re.prototype,"round",void 0);const ae=[e.css`
583
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Zo,"ft-tooltip":Qo,"ft-typography":yo,"ft-icon":Jo,"ft-loader":te},oe([i.property({type:String,reflect:!0})],ee.prototype,"role",void 0),oe([i.property()],ee.prototype,"type",void 0),oe([i.property({type:Boolean})],ee.prototype,"disabled",void 0),oe([i.property()],ee.prototype,"label",void 0),oe([i.property()],ee.prototype,"icon",void 0),oe([i.property()],ee.prototype,"iconVariant",void 0),oe([i.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),oe([i.property({type:Boolean})],ee.prototype,"loading",void 0),oe([i.property()],ee.prototype,"tooltipPosition",void 0),oe([i.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),oe([i.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),oe([i.query(".ft-button")],ee.prototype,"button",void 0),oe([i.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);var ie=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends ee{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"}}re.styles=[o.safariEllipsisFix,Ao],ie([i.property({type:Boolean})],re.prototype,"primary",void 0),ie([i.property({type:Boolean})],re.prototype,"outlined",void 0),ie([i.property({type:Boolean})],re.prototype,"dense",void 0),ie([i.property({type:Boolean})],re.prototype,"round",void 0);const ae=[e.css`
584
584
  :host {
585
585
  display: inline-block;
586
586
  max-width: 100%;
@@ -1481,16 +1481,16 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
1481
1481
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1482
1482
  `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ve.elementDefinitions={},Ge([i.property({type:String})],Ve.prototype,"label",void 0),Ge([i.property({type:Object,converter:t=>t})],Ve.prototype,"value",void 0),Ge([i.property({type:Boolean,reflect:!0})],Ve.prototype,"selected",void 0),Ge([i.property({type:Object})],Ve.prototype,"subOptions",void 0),Ge([o.jsonProperty({})],Ve.prototype,"renderOption",void 0),Ge([i.query(".ft-filter-option--slot")],Ve.prototype,"slotElement",void 0),o.customElement("ft-filter")(_e),o.customElement("ft-filter-option")(Ve);const qe=e.css`
1483
1483
  `,Ye=e.css`
1484
- `,Xe=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Qe{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Xe.getState(),i=null!=t?t:e;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static get(t){var o;return null!=t?Qe.build(t):null!==(o=Qe.API)&&void 0!==o?o:Qe.API=Qe.build()}static await(t){return new Promise((o=>{let e=Qe.get(t);if(e)o(e);else{const i=Xe.subscribe((()=>{e=Qe.get(t),e&&(i(),o(e))}))}}))}}var Je;const ti=Symbol("clearAfterUnitTest");class oi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Je]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Xe.getState().uiLocale,Xe.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Xe.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};o.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var r,a,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(a=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==a?a:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Je=ti,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new oi((async(t,o)=>(await Qe.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new oi((async(t,o)=>(await Qe.await()).getCustomMessageContext(t,o))));const ei=window.FluidTopicsI18nService,ii=window.FluidTopicsCustomI18nService;var ri=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ai extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Qe.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
1484
+ `,Qe=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Xe{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Qe.getState(),i=null!=t?t:e;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static get(t){var o;return null!=t?Xe.build(t):null!==(o=Xe.API)&&void 0!==o?o:Xe.API=Xe.build()}static await(t){return new Promise((o=>{let e=Xe.get(t);if(e)o(e);else{const i=Qe.subscribe((()=>{e=Xe.get(t),e&&(i(),o(e))}))}}))}}var Je;const ti=Symbol("clearAfterUnitTest");class oi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Je]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Qe.getState().uiLocale,Qe.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qe.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};o.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var r,a,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(a=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==a?a:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Je=ti,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new oi((async(t,o)=>(await Xe.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new oi((async(t,o)=>(await Xe.await()).getCustomMessageContext(t,o))));const ei=window.FluidTopicsI18nService,ii=window.FluidTopicsCustomI18nService;var ri=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ai extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Xe.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
1485
1485
  <slot></slot>
1486
- `}update(t){super.update(t),t.has("baseUrl")&&Xe.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Xe.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Xe.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Xe.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Xe.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Xe.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Xe.actions.setSession(this.session),t.has("availableUiLocales")&&Xe.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ai.elementDefinitions={},ai.styles=Ye,ri([i.property()],ai.prototype,"baseUrl",void 0),ri([i.property()],ai.prototype,"apiIntegrationIdentifier",void 0),ri([i.property()],ai.prototype,"uiLocale",void 0),ri([o.jsonProperty([])],ai.prototype,"availableUiLocales",void 0),ri([i.property({type:Boolean})],ai.prototype,"editorMode",void 0),ri([i.property({type:Boolean})],ai.prototype,"noCustom",void 0),ri([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ai.prototype,"noCustomComponent",void 0),ri([i.property({type:Boolean})],ai.prototype,"withManualResources",void 0),ri([o.jsonProperty([])],ai.prototype,"messageContexts",void 0),ri([o.jsonProperty(void 0)],ai.prototype,"session",void 0),ri([i.property({type:Object})],ai.prototype,"apiProvider",void 0);class ni{async listMySearches(){var t;return(null===(t=Xe.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Qe.await()).listMySearches(Xe.getState().session.profile.userId):[]}}const si=new o.CacheRegistry;class li{async listMyBookmarks(){return si.get("bookmarks",(async()=>(await Qe.await()).listMyBookmarks(Xe.getState().session.profile.userId)))}clearCache(){si.clear("bookmarks")}}const ci=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const hi=new class{constructor(){this.currentSession=Xe.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new li,Xe.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Xe.getState();o.deepEqual(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(){ci.actions.savedSearches(void 0)}clearMyBookmarks(){ci.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ni,o=await t.listMySearches();ci.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;ci.actions.bookmarks(o)}}};o.customElement("ft-app-context")(ai);var pi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const fi=Symbol("i18nProperties"),di=Symbol("i18nUnsubs");function ui(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?ii:ei}i18n(t,o,...e){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var o;null===(o=this[fi])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[fi])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[fi]&&new Set([...this[fi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[di].has(t)||this[di].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[di].forEach((t=>t())),this[di].clear()}}return o=di,pi([i.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class yi extends(ui(o.FtLitElement)){}class gi extends(ui(o.FtLitElementRedux)){}var bi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class mi extends gi{constructor(){super(),this.editorMode=!1,this.addStore(Xe)}render(){return this.key&&this.context?e.html`
1486
+ `}update(t){super.update(t),t.has("baseUrl")&&Qe.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qe.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qe.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qe.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qe.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qe.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qe.actions.setSession(this.session),t.has("availableUiLocales")&&Qe.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ai.elementDefinitions={},ai.styles=Ye,ri([i.property()],ai.prototype,"baseUrl",void 0),ri([i.property()],ai.prototype,"apiIntegrationIdentifier",void 0),ri([i.property()],ai.prototype,"uiLocale",void 0),ri([o.jsonProperty([])],ai.prototype,"availableUiLocales",void 0),ri([i.property({type:Boolean})],ai.prototype,"editorMode",void 0),ri([i.property({type:Boolean})],ai.prototype,"noCustom",void 0),ri([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ai.prototype,"noCustomComponent",void 0),ri([i.property({type:Boolean})],ai.prototype,"withManualResources",void 0),ri([o.jsonProperty([])],ai.prototype,"messageContexts",void 0),ri([o.jsonProperty(void 0)],ai.prototype,"session",void 0),ri([i.property({type:Object})],ai.prototype,"apiProvider",void 0);class ni{async listMySearches(){var t;return(null===(t=Qe.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Xe.await()).listMySearches(Qe.getState().session.profile.userId):[]}}const si=new o.CacheRegistry;class li{async listMyBookmarks(){return si.get("bookmarks",(async()=>(await Xe.await()).listMyBookmarks(Qe.getState().session.profile.userId)))}clearCache(){si.clear("bookmarks")}}const ci=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const hi=new class{constructor(){this.currentSession=Qe.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new li,Qe.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Qe.getState();o.deepEqual(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(){ci.actions.savedSearches(void 0)}clearMyBookmarks(){ci.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ni,o=await t.listMySearches();ci.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;ci.actions.bookmarks(o)}}};o.customElement("ft-app-context")(ai);var pi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const fi=Symbol("i18nProperties"),di=Symbol("i18nUnsubs");function ui(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?ii:ei}i18n(t,o,...e){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var o;null===(o=this[fi])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[fi])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[fi]&&new Set([...this[fi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[di].has(t)||this[di].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[di].forEach((t=>t())),this[di].clear()}}return o=di,pi([i.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class yi extends(ui(o.FtLitElement)){}class gi extends(ui(o.FtLitElementRedux)){}var bi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class mi extends gi{constructor(){super(),this.editorMode=!1,this.addStore(Qe)}render(){return this.key&&this.context?e.html`
1487
1487
  <span class="ft-i18n">
1488
1488
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1489
1489
  </span>
1490
- `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}mi.elementDefinitions={},mi.styles=qe,bi([o.redux()],mi.prototype,"editorMode",void 0),bi([i.property()],mi.prototype,"context",void 0),bi([i.property()],mi.prototype,"key",void 0),bi([o.jsonProperty([])],mi.prototype,"args",void 0),bi([i.property()],mi.prototype,"defaultMessage",void 0);class vi{static build(t){return new vi(t)}static fromGwt(t){return new vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>ei.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(mi);const xi={setRequest:(t,o)=>{t.request=o.payload},setRequestQuery:(t,o)=>{t.request.query=o.payload},setRequestContentLocale:(t,o)=>{t.request.contentLocale=o.payload},setPageSize:(t,o)=>{t.request.paging.perPage=o.payload},setPageNumber:(t,o)=>{t.request.paging.page=o.payload},setRequestSort:(t,o)=>{t.request.sort=o.payload},setRequestFilters:(t,o)=>{t.request.filters=o.payload},setRequestFacets:(t,o)=>{t.request.facets=o.payload},setRequestVirtualField:(t,o)=>{t.request.virtualField=o.payload},setRequestScope:(t,o)=>{t.request.scope=o.payload},setResults:(t,o)=>{t.results=o.payload},setFacets:(t,o)=>{t.facets=o.payload},setSpellcheck:(t,o)=>{t.spellcheck=o.payload},setLocales:(t,o)=>{t.locales=o.payload},setPaging:(t,o)=>{t.paging=o.payload},setLiveQuery:(t,o)=>{t.liveQuery=o.payload},setSuggestResults:(t,o)=>{t.suggestResults=o.payload}};var Oi,Ni,Si,wi,$i,Ci,ki,Ii,Ei,Ri,Ui,Li,Wi,zi;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var i=["[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&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(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 n(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function l(t){this.map={},t instanceof l?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=h(o);return o.readAsArrayBuffer(t),e}function f(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=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(p)}),this.text=function(){var t,o,e,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=h(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),i=0;i<o.length;i++)e[i]=String.fromCharCode(o[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,o){t=a(t),o=n(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},l.prototype.delete=function(t){delete this.map[a(t)]},l.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},l.prototype.set=function(t,o){this.map[a(t)]=n(o)},l.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,i,r=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new 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=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new l(o.headers)),this.method=(e=o.method||this.method||"GET",i=e.toUpperCase(),u.indexOf(i)>-1?i:e),this.mode=o.mode||this.mode||null,this.signal=o.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 o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(i),decodeURIComponent(r))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new l(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(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 m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,i){return new Promise((function(r,a){var n=new y(t,i);if(n.signal&&n.signal.aborted)return a(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();o.append(i,r)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,e))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new o.DOMException("Aborted","AbortError"))},s.open(n.method,n.url,!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),n.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),n.signal&&(n.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",c)}),s.send(void 0===n._bodyInit?null:n._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=b),o.Headers=l,o.Request=y,o.Response=b,o.fetch=v,Object.defineProperty(o,"t",{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"}(Oi||(Oi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ni||(Ni={})),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"}(Si||(Si={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(wi||(wi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($i||($i={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ci||(Ci={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ki||(ki={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ii||(Ii={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ei||(Ei={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ri||(Ri={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ui||(Ui={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Li||(Li={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Wi||(Wi={})),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"}(zi||(zi={})),zi.PERSONAL_BOOK_SHARE_USER,zi.PERSONAL_BOOK_USER,zi.HTML_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.PDF_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.KHUB_ADMIN,zi.CONTENT_PUBLISHER,zi.ADMIN,zi.KHUB_ADMIN,zi.USERS_ADMIN,zi.PORTAL_ADMIN,zi.DEVELOPER,zi.BETA_USER,zi.DEBUG_USER;class Ki{static async build(){return new Ki(await Qe.await())}constructor(t){this.api=t,this.cache=new o.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Bi=t=>t.request.virtualField===Ii.TITLE_ONLY&&t.request.scope===Wi.DOCUMENTS;class Ai extends Event{constructor(){super(Ai.eventName)}}Ai.eventName="search-context-clear-all-filters";class Di{static build(t){return new Di((t=>o.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:xi}))(t.trim()||"context"),Ki.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new o.Debouncer(100),this.suggestDebouncer=new o.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await o.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let o=this.store.getState().locales,e=this.store.getState().request.contentLocale;if(t!=e){if(o){const i=t=>o.some((o=>o.lang==t));i(t)||(t=i(e)?e:o[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const o=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ii.TITLE_ONLY),this.store.actions.setRequestScope(Wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ii.EVERYWHERE),this.store.actions.setRequestScope(Wi.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Bi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ai)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,o){let e=this.facetIds.filter((o=>o!=t));o&&e.push(o),this.facetIds=e,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let o=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(o)}setFilter(t,o){let e=this.store.getState().request.filters,i={key:t,values:o,negative:!1},r=[...e.filter((o=>o.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.cancelableSearch=o.cancelable(this.service.launchSearch(this.store.getState().request));const i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let t=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(i.results);this.store.actions.setResults(t)}this.store.actions.setPaging(i.paging)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),i=e.request,r={input:e.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=o.cancelable(this.service.launchSuggest(r));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}}var Zi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Fi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ti=Symbol("registerInterval");class Hi extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ti]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ti]):this.dispatchEvent(new Fi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Ti,Zi([i.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const Pi=vi.build("designedSearchType"),ji={label:"Search scope",documentTitlesOnly:"Search in document titles only"},Mi=e.css`
1491
- `;var _i=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Gi extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Vi extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class qi extends CustomEvent{constructor(t,o,e){super("ft-search-results-change",{detail:{request:t,paging:o,spellcheck:e}})}}class Yi extends o.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=Di.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.filters=[],this.sort=[],this.addStore(Xe)}render(){return e.html`
1490
+ `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}mi.elementDefinitions={},mi.styles=qe,bi([o.redux()],mi.prototype,"editorMode",void 0),bi([i.property()],mi.prototype,"context",void 0),bi([i.property()],mi.prototype,"key",void 0),bi([o.jsonProperty([])],mi.prototype,"args",void 0),bi([i.property()],mi.prototype,"defaultMessage",void 0);class vi{static build(t){return new vi(t)}static fromGwt(t){return new vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>ei.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(mi);const xi={setRequest:(t,o)=>{t.request=o.payload},setRequestQuery:(t,o)=>{t.request.query=o.payload},setRequestContentLocale:(t,o)=>{t.request.contentLocale=o.payload},setPageSize:(t,o)=>{t.request.paging.perPage=o.payload},setPageNumber:(t,o)=>{t.request.paging.page=o.payload},setRequestSort:(t,o)=>{t.request.sort=o.payload},setRequestFilters:(t,o)=>{t.request.filters=o.payload},setRequestFacets:(t,o)=>{t.request.facets=o.payload},setRequestVirtualField:(t,o)=>{t.request.virtualField=o.payload},setRequestScope:(t,o)=>{t.request.scope=o.payload},setResults:(t,o)=>{t.results=o.payload},setFacets:(t,o)=>{t.facets=o.payload},setSpellcheck:(t,o)=>{t.spellcheck=o.payload},setLocales:(t,o)=>{t.locales=o.payload},setPaging:(t,o)=>{t.paging=o.payload},setLiveQuery:(t,o)=>{t.liveQuery=o.payload},setSuggestResults:(t,o)=>{t.suggestResults=o.payload}};var Oi,Ni,Si,wi,$i,Ci,ki,Ii,Ei,Ri,Ui,Li,Wi,zi;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var i=["[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&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(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 n(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function l(t){this.map={},t instanceof l?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=h(o);return o.readAsArrayBuffer(t),e}function f(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=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(p)}),this.text=function(){var t,o,e,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=h(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),i=0;i<o.length;i++)e[i]=String.fromCharCode(o[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,o){t=a(t),o=n(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},l.prototype.delete=function(t){delete this.map[a(t)]},l.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},l.prototype.set=function(t,o){this.map[a(t)]=n(o)},l.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,i,r=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new 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=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new l(o.headers)),this.method=(e=o.method||this.method||"GET",i=e.toUpperCase(),u.indexOf(i)>-1?i:e),this.mode=o.mode||this.mode||null,this.signal=o.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 o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(i),decodeURIComponent(r))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new l(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(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 m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,i){return new Promise((function(r,a){var n=new y(t,i);if(n.signal&&n.signal.aborted)return a(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();o.append(i,r)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,e))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new o.DOMException("Aborted","AbortError"))},s.open(n.method,n.url,!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),n.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),n.signal&&(n.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",c)}),s.send(void 0===n._bodyInit?null:n._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=b),o.Headers=l,o.Request=y,o.Response=b,o.fetch=v,Object.defineProperty(o,"t",{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"}(Oi||(Oi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ni||(Ni={})),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"}(Si||(Si={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(wi||(wi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($i||($i={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ci||(Ci={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ki||(ki={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ii||(Ii={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ei||(Ei={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ri||(Ri={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ui||(Ui={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Li||(Li={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Wi||(Wi={})),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"}(zi||(zi={})),zi.PERSONAL_BOOK_SHARE_USER,zi.PERSONAL_BOOK_USER,zi.HTML_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.PDF_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.KHUB_ADMIN,zi.CONTENT_PUBLISHER,zi.ADMIN,zi.KHUB_ADMIN,zi.USERS_ADMIN,zi.PORTAL_ADMIN,zi.DEVELOPER,zi.BETA_USER,zi.DEBUG_USER;class Ki{static async build(){return new Ki(await Xe.await())}constructor(t){this.api=t,this.cache=new o.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Bi=t=>t.request.virtualField===Ii.TITLE_ONLY&&t.request.scope===Wi.DOCUMENTS;class Ai extends Event{constructor(){super(Ai.eventName)}}Ai.eventName="search-context-clear-all-filters";class Di{static build(t){return new Di((t=>o.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:xi}))(t.trim()||"context"),Ki.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new o.Debouncer(100),this.suggestDebouncer=new o.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await o.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let o=this.store.getState().locales,e=this.store.getState().request.contentLocale;if(t!=e){if(o){const i=t=>o.some((o=>o.lang==t));i(t)||(t=i(e)?e:o[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const o=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ii.TITLE_ONLY),this.store.actions.setRequestScope(Wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ii.EVERYWHERE),this.store.actions.setRequestScope(Wi.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Bi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ai)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,o){let e=this.facetIds.filter((o=>o!=t));o&&e.push(o),this.facetIds=e,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let o=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(o)}setFilter(t,o){let e=this.store.getState().request.filters,i={key:t,values:o,negative:!1},r=[...e.filter((o=>o.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let i=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==i.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=o.cancelable(this.service.launchSearch(i));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let o=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(t.results);this.store.actions.setResults(o)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),i=e.request,r={input:e.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=o.cancelable(this.service.launchSuggest(r));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Zi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Fi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ti=Symbol("registerInterval");class Hi extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ti]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ti]):this.dispatchEvent(new Fi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Ti,Zi([i.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const Pi=vi.build("designedSearchType"),ji={label:"Search scope",documentTitlesOnly:"Search in document titles only"},Mi=e.css`
1491
+ `;var _i=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Gi extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Vi extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class qi extends CustomEvent{constructor(t,o,e){super("ft-search-results-change",{detail:{request:t,paging:o,spellcheck:e}})}}class Yi extends o.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=Di.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Qe)}render(){return e.html`
1492
1492
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1493
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Vi(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new qi(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Gi(t))}reloadSavedSearches(){hi.clearMySearches()}}Yi.elementDefinitions={},Yi.styles=Mi,_i([i.property()],Yi.prototype,"query",void 0),_i([i.property()],Yi.prototype,"contentLocale",void 0),_i([i.property({type:Number})],Yi.prototype,"pageSize",void 0),_i([i.property({type:Boolean})],Yi.prototype,"searchInDocumentTitlesOnly",void 0),_i([o.jsonProperty([])],Yi.prototype,"filters",void 0),_i([o.jsonProperty([])],Yi.prototype,"sort",void 0),_i([o.redux({store:"search"})],Yi.prototype,"request",void 0),_i([o.redux({store:"search"})],Yi.prototype,"paging",void 0),_i([o.redux({store:"search",selector:t=>t.spellcheck})],Yi.prototype,"autocorrect",void 0),_i([o.redux({store:Xe.name})],Yi.prototype,"session",void 0),o.customElement("ft-search-context")(Yi);var Xi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Qi extends(ui(Hi)){constructor(){super(),this.addI18nContext(Pi,ji)}render(){return e.html`
1493
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Vi(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new qi(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Gi(t))}reloadSavedSearches(){hi.clearMySearches()}clear(){this.stateManager.clear()}}Yi.elementDefinitions={},Yi.styles=Mi,_i([i.property()],Yi.prototype,"query",void 0),_i([i.property()],Yi.prototype,"contentLocale",void 0),_i([i.property({type:Number})],Yi.prototype,"pageSize",void 0),_i([i.property({type:Boolean})],Yi.prototype,"searchInDocumentTitlesOnly",void 0),_i([i.property()],Yi.prototype,"scope",void 0),_i([i.property({type:Boolean})],Yi.prototype,"ignoreEmptyQuery",void 0),_i([o.jsonProperty([])],Yi.prototype,"filters",void 0),_i([o.jsonProperty([])],Yi.prototype,"sort",void 0),_i([o.redux({store:"search"})],Yi.prototype,"request",void 0),_i([o.redux({store:"search"})],Yi.prototype,"paging",void 0),_i([o.redux({store:"search",selector:t=>t.spellcheck})],Yi.prototype,"autocorrect",void 0),_i([o.redux({store:Qe.name})],Yi.prototype,"session",void 0),o.customElement("ft-search-context")(Yi);var Qi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Xi extends(ui(Hi)){constructor(){super(),this.addI18nContext(Pi,ji)}render(){return e.html`
1494
1494
  <ft-filter
1495
1495
  label=${Pi.messages.label()}
1496
1496
  .options=${[{label:Pi.messages.documentTitlesOnly(),value:t=>{var o;return null===(o=this.stateManager)||void 0===o?void 0:o.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
@@ -1499,4 +1499,4 @@ const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litSta
1499
1499
  multivalued
1500
1500
  @change=${this.onSelected}
1501
1501
  ></ft-filter>
1502
- `}onSelected(t){var o;null===(o=this.filter)||void 0===o||o.options.forEach((t=>t.value(t.selected)))}}Qi.elementDefinitions={"ft-filter":_e},Qi.styles=s,Xi([o.redux({selector:Bi})],Qi.prototype,"searchInDocumentTitlesOnly",void 0),Xi([i.query("ft-filter")],Qi.prototype,"filter",void 0),o.customElement("ft-search-type")(Qi),t.FtSearchType=Qi,t.FtSearchTypeCssVariables={},t.searchTypeContext=Pi,t.searchTypeDefaultMessages=ji,t.styles=s}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
1502
+ `}onSelected(t){var o;null===(o=this.filter)||void 0===o||o.options.forEach((t=>t.value(t.selected)))}}Xi.elementDefinitions={"ft-filter":_e},Xi.styles=s,Qi([o.redux({selector:Bi})],Xi.prototype,"searchInDocumentTitlesOnly",void 0),Qi([i.query("ft-filter")],Xi.prototype,"filter",void 0),o.customElement("ft-search-type")(Xi),t.FtSearchType=Xi,t.FtSearchTypeCssVariables={},t.searchTypeContext=Pi,t.searchTypeDefaultMessages=ji,t.styles=s}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);