@fluid-topics/ft-reader-search-in-document 1.3.30 → 1.3.31

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.
@@ -121,7 +121,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
121
121
  text-decoration: ${r.textDecoration};
122
122
  text-transform: ${r.textCase};
123
123
  }
124
- `}var hi,Nu=p(()=>{"use strict";hi=f(R());oe()});var qt,L,Bu,Hr,T,mi,gi,yi,bi,Ur,We,Ze,xi,vi,Sr,Du,Fu,Mu,zu,Uu,no,Cr,Hu,Wu,Vu,ju,Gu,Zt=p(()=>{"use strict";qt=f(R()),L=f(v());oe();Nu();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();Bu=L.FtCssVariableFactory.extend("--ft-typography-font-family","",L.designSystemVariables.titleFont),Hr=L.FtCssVariableFactory.extend("--ft-typography-font-family","",L.designSystemVariables.contentFont),T={fontFamily:Hr,fontSize:L.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:L.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:L.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:L.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:L.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},mi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bu),fontSize:L.FtCssVariableFactory.extend("--ft-typography-title-font-size","",T.fontSize,"20px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",T.letterSpacing,"0.15px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-title-line-height","",T.lineHeight,"1.2"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",T.textTransform,"inherit")},gi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bu),fontSize:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",T.letterSpacing,"0.105px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",T.lineHeight,"1.7"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",T.textTransform,"inherit")},yi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",T.fontSize,"16px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",T.fontWeight,"600"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",T.letterSpacing,"0.144px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",T.lineHeight,"1.5"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",T.textTransform,"inherit")},bi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",T.letterSpacing,"0.098px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",T.lineHeight,"1.7"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",T.textTransform,"inherit")},Ur={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",T.fontSize,"16px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",T.letterSpacing,"0.496px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",T.lineHeight,"1.5"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",T.textTransform,"inherit")},We={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",T.letterSpacing,"0.252px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",T.lineHeight,"1.4"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",T.textTransform,"inherit")},Ze={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",T.fontSize,"12px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",T.letterSpacing,"0.396px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",T.lineHeight,"1.33"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",T.textTransform,"inherit")},xi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",T.fontSize,"10px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",T.letterSpacing,"0.33px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",T.lineHeight,"1.6"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",T.textTransform,"inherit")},vi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",T.fontSize,"10px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",T.letterSpacing,"1.5px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",T.lineHeight,"1.6"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",T.textTransform,"uppercase")},Sr={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-button-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",T.fontWeight,"600"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",T.letterSpacing,"1.246px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-button-line-height","",T.lineHeight,"1.15"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",T.textTransform,"uppercase")},Du=qt.css`
124
+ `}var hi,Nu=p(()=>{"use strict";hi=f(R());oe()});var Zt,L,Bu,Hr,T,mi,gi,yi,bi,Ur,We,Ze,xi,vi,Sr,Du,Fu,Mu,zu,Uu,no,Cr,Hu,Wu,Vu,ju,Gu,Qt=p(()=>{"use strict";Zt=f(R()),L=f(v());oe();Nu();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();Bu=L.FtCssVariableFactory.extend("--ft-typography-font-family","",L.designSystemVariables.titleFont),Hr=L.FtCssVariableFactory.extend("--ft-typography-font-family","",L.designSystemVariables.contentFont),T={fontFamily:Hr,fontSize:L.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:L.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:L.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:L.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:L.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},mi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bu),fontSize:L.FtCssVariableFactory.extend("--ft-typography-title-font-size","",T.fontSize,"20px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",T.letterSpacing,"0.15px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-title-line-height","",T.lineHeight,"1.2"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",T.textTransform,"inherit")},gi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bu),fontSize:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",T.letterSpacing,"0.105px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",T.lineHeight,"1.7"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",T.textTransform,"inherit")},yi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",T.fontSize,"16px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",T.fontWeight,"600"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",T.letterSpacing,"0.144px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",T.lineHeight,"1.5"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",T.textTransform,"inherit")},bi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",T.letterSpacing,"0.098px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",T.lineHeight,"1.7"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",T.textTransform,"inherit")},Ur={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",T.fontSize,"16px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",T.letterSpacing,"0.496px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",T.lineHeight,"1.5"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",T.textTransform,"inherit")},We={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",T.letterSpacing,"0.252px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",T.lineHeight,"1.4"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",T.textTransform,"inherit")},Ze={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",T.fontSize,"12px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",T.letterSpacing,"0.396px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",T.lineHeight,"1.33"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",T.textTransform,"inherit")},xi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",T.fontSize,"10px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",T.letterSpacing,"0.33px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",T.lineHeight,"1.6"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",T.textTransform,"inherit")},vi={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",T.fontSize,"10px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",T.fontWeight,"normal"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",T.letterSpacing,"1.5px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",T.lineHeight,"1.6"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",T.textTransform,"uppercase")},Sr={fontFamily:L.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Hr),fontSize:L.FtCssVariableFactory.extend("--ft-typography-button-font-size","",T.fontSize,"14px"),fontWeight:L.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",T.fontWeight,"600"),letterSpacing:L.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",T.letterSpacing,"1.246px"),lineHeight:L.FtCssVariableFactory.extend("--ft-typography-button-line-height","",T.lineHeight,"1.15"),textTransform:L.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",T.textTransform,"uppercase")},Du=Zt.css`
125
125
  .ft-typography--title {
126
126
  font-family: ${mi.fontFamily};
127
127
  font-size: ${mi.fontSize};
@@ -130,7 +130,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
130
130
  line-height: ${mi.lineHeight};
131
131
  text-transform: ${mi.textTransform};
132
132
  }
133
- `,Fu=qt.css`
133
+ `,Fu=Zt.css`
134
134
  .ft-typography--title-dense {
135
135
  font-family: ${gi.fontFamily};
136
136
  font-size: ${gi.fontSize};
@@ -139,7 +139,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
139
139
  line-height: ${gi.lineHeight};
140
140
  text-transform: ${gi.textTransform};
141
141
  }
142
- `,Mu=qt.css`
142
+ `,Mu=Zt.css`
143
143
  .ft-typography--subtitle1 {
144
144
  font-family: ${yi.fontFamily};
145
145
  font-size: ${yi.fontSize};
@@ -148,7 +148,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
148
148
  line-height: ${yi.lineHeight};
149
149
  text-transform: ${yi.textTransform};
150
150
  }
151
- `,zu=qt.css`
151
+ `,zu=Zt.css`
152
152
  .ft-typography--subtitle2 {
153
153
  font-family: ${bi.fontFamily};
154
154
  font-size: ${bi.fontSize};
@@ -158,7 +158,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
158
158
  text-transform: ${bi.textTransform};
159
159
  }
160
160
 
161
- `,Uu=qt.css`
161
+ `,Uu=Zt.css`
162
162
  .ft-typography--body1 {
163
163
  font-family: ${Ur.fontFamily};
164
164
  font-size: ${Ur.fontSize};
@@ -167,7 +167,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
167
167
  line-height: ${Ur.lineHeight};
168
168
  text-transform: ${Ur.textTransform};
169
169
  }
170
- `,no=qt.css`
170
+ `,no=Zt.css`
171
171
  .ft-typography--body2 {
172
172
  font-family: ${We.fontFamily};
173
173
  font-size: ${We.fontSize};
@@ -176,7 +176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
176
176
  line-height: ${We.lineHeight};
177
177
  text-transform: ${We.textTransform};
178
178
  }
179
- `,Cr=qt.css`
179
+ `,Cr=Zt.css`
180
180
  .ft-typography--caption {
181
181
  font-family: ${Ze.fontFamily};
182
182
  font-size: ${Ze.fontSize};
@@ -185,7 +185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
185
185
  line-height: ${Ze.lineHeight};
186
186
  text-transform: ${Ze.textTransform};
187
187
  }
188
- `,Hu=qt.css`
188
+ `,Hu=Zt.css`
189
189
  .ft-typography--breadcrumb {
190
190
  font-family: ${xi.fontFamily};
191
191
  font-size: ${xi.fontSize};
@@ -194,7 +194,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
194
194
  line-height: ${xi.lineHeight};
195
195
  text-transform: ${xi.textTransform};
196
196
  }
197
- `,Wu=qt.css`
197
+ `,Wu=Zt.css`
198
198
  .ft-typography--overline {
199
199
  font-family: ${vi.fontFamily};
200
200
  font-size: ${vi.fontSize};
@@ -203,7 +203,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
203
203
  line-height: ${vi.lineHeight};
204
204
  text-transform: ${vi.textTransform};
205
205
  }
206
- `,Vu=qt.css`
206
+ `,Vu=Zt.css`
207
207
  .ft-typography--button {
208
208
  font-family: ${Sr.fontFamily};
209
209
  font-size: ${Sr.fontSize};
@@ -212,7 +212,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
212
212
  line-height: ${Sr.lineHeight};
213
213
  text-transform: ${Sr.textTransform};
214
214
  }
215
- `,ju=qt.css`
215
+ `,ju=Zt.css`
216
216
  .ft-typography {
217
217
  vertical-align: inherit;
218
218
  }
@@ -333,7 +333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
333
333
  .ft-icon--material {
334
334
  font-family: ${Te.materialFontFamily}, "Material Icons", sans-serif;
335
335
  }
336
- `,lr.noTextSelect]});var Ju,q,Yu,j,Xu,js,Or,ef,Fo=p(()=>{"use strict";Ju=f(R()),q=f(v());Mr();Zt();nn();Do();Yu=q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorPrimary),j={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorSurface),borderRadius:q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusL),color:Yu,fontSize:q.FtCssVariableFactory.extend("--ft-button-font-size","",Sr.fontSize),iconSize:q.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:q.FtCssVariableFactory.extend("--ft-button-ripple-color","",Yu),verticalPadding:q.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOpacityDisabled,"Design system")},Xu=q.FtCssVariableFactory.extend("--ft-button-primary-color","",q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorOnPrimary)),js={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-primary-background-color","",q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorPrimary)),color:Xu,rippleColor:q.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Xu)},Or={borderRadius:q.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusM)),verticalPadding:q.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ef=[Ju.css`
336
+ `,lr.noTextSelect]});var Ju,q,Yu,j,Xu,js,Or,ef,Fo=p(()=>{"use strict";Ju=f(R()),q=f(v());Mr();Qt();nn();Do();Yu=q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorPrimary),j={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorSurface),borderRadius:q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusL),color:Yu,fontSize:q.FtCssVariableFactory.extend("--ft-button-font-size","",Sr.fontSize),iconSize:q.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:q.FtCssVariableFactory.extend("--ft-button-ripple-color","",Yu),verticalPadding:q.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOpacityDisabled,"Design system")},Xu=q.FtCssVariableFactory.extend("--ft-button-primary-color","",q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorOnPrimary)),js={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-primary-background-color","",q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorPrimary)),color:Xu,rippleColor:q.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Xu)},Or={borderRadius:q.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusM)),verticalPadding:q.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ef=[Ju.css`
337
337
  :host {
338
338
  display: inline-block;
339
339
  max-width: 100%;
@@ -483,7 +483,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
483
483
  </div>
484
484
  `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>u=>{l.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};G.elementDefinitions={};G.styles=Ep;Et([(0,et.property)({type:Boolean})],G.prototype,"primary",void 0);Et([(0,et.property)({type:Boolean})],G.prototype,"secondary",void 0);Et([(0,et.property)({type:Boolean})],G.prototype,"unbounded",void 0);Et([(0,et.property)({type:Boolean})],G.prototype,"activated",void 0);Et([(0,et.property)({type:Boolean})],G.prototype,"selected",void 0);Et([(0,et.property)({type:Boolean})],G.prototype,"disabled",void 0);Et([(0,et.state)()],G.prototype,"hovered",void 0);Et([(0,et.state)()],G.prototype,"focused",void 0);Et([(0,et.state)()],G.prototype,"pressed",void 0);Et([(0,et.state)()],G.prototype,"rippling",void 0);Et([(0,et.state)()],G.prototype,"originX",void 0);Et([(0,et.state)()],G.prototype,"originY",void 0);Et([(0,et.query)(".ft-ripple")],G.prototype,"ripple",void 0);Et([(0,et.query)(".ft-ripple--effect")],G.prototype,"rippleEffect",void 0)});var nf=p(()=>{"use strict"});var af,yt=p(()=>{"use strict";af=f(v());Gs();Gs();Mr();nf();(0,af.customElement)("ft-ripple")(G)});function xf(t,e){if(!el(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sf!==void 0?sf.createHTML(e):e}function Si(t,e,r=t,i){if(e===cn)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=ln(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Si(t,n._$AS(t,e.values),n,i)),e}var Js,Kn,sf,ff,ao,hf,Ev,Uo,qn,ln,el,Av,Ks,sn,lf,cf,Mo,df,pf,mf,tl,gf,yf,bf,cn,Fe,uf,zo,Rv,dn,qs,Zn,Ci,Zs,Qs,Ys,Xs,Iv,rl=p(()=>{Js=globalThis,Kn=Js.trustedTypes,sf=Kn?Kn.createPolicy("lit-html",{createHTML:t=>t}):void 0,ff="$lit$",ao=`lit$${Math.random().toFixed(9).slice(2)}$`,hf="?"+ao,Ev=`<${hf}>`,Uo=document,qn=()=>Uo.createComment(""),ln=t=>t===null||typeof t!="object"&&typeof t!="function",el=Array.isArray,Av=t=>el(t)||typeof t?.[Symbol.iterator]=="function",Ks=`[
485
485
  \f\r]`,sn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lf=/-->/g,cf=/>/g,Mo=RegExp(`>|${Ks}(?:([^\\s"'>=/]+)(${Ks}*=${Ks}*(?:[^
486
- \f\r"'\`<>=]|("|')|))|$)`,"g"),df=/'/g,pf=/"/g,mf=/^(?:script|style|textarea|title)$/i,tl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gf=tl(1),yf=tl(2),bf=tl(3),cn=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),uf=new WeakMap,zo=Uo.createTreeWalker(Uo,129);Rv=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=sn;for(let l=0;l<r;l++){let u=t[l],h,y,g=-1,x=0;for(;x<u.length&&(s.lastIndex=x,y=s.exec(u),y!==null);)x=s.lastIndex,s===sn?y[1]==="!--"?s=lf:y[1]!==void 0?s=cf:y[2]!==void 0?(mf.test(y[2])&&(n=RegExp("</"+y[2],"g")),s=Mo):y[3]!==void 0&&(s=Mo):s===Mo?y[0]===">"?(s=n??sn,g=-1):y[1]===void 0?g=-2:(g=s.lastIndex-y[2].length,h=y[1],s=y[3]===void 0?Mo:y[3]==='"'?pf:df):s===pf||s===df?s=Mo:s===lf||s===cf?s=sn:(s=Mo,n=void 0);let w=s===Mo&&t[l+1].startsWith("/>")?" ":"";a+=s===sn?u+Ev:g>=0?(i.push(h),u.slice(0,g)+ff+u.slice(g)+ao+w):u+ao+(g===-2?l:w)}return[xf(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},dn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,u=this.parts,[h,y]=Rv(e,r);if(this.el=t.createElement(h,i),zo.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=zo.nextNode())!==null&&u.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(ff)){let x=y[s++],w=n.getAttribute(g).split(ao),O=/([.?@])?(.*)/.exec(x);u.push({type:1,index:a,name:O[2],strings:w,ctor:O[1]==="."?Zs:O[1]==="?"?Qs:O[1]==="@"?Ys:Ci}),n.removeAttribute(g)}else g.startsWith(ao)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(mf.test(n.tagName)){let g=n.textContent.split(ao),x=g.length-1;if(x>0){n.textContent=Kn?Kn.emptyScript:"";for(let w=0;w<x;w++)n.append(g[w],qn()),zo.nextNode(),u.push({type:2,index:++a});n.append(g[x],qn())}}}else if(n.nodeType===8)if(n.data===hf)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(ao,g+1))!==-1;)u.push({type:7,index:a}),g+=ao.length-1}a++}}static createElement(e,r){let i=Uo.createElement("template");return i.innerHTML=e,i}};qs=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Uo).importNode(r,!0);zo.currentNode=n;let a=zo.nextNode(),s=0,l=0,u=i[0];for(;u!==void 0;){if(s===u.index){let h;u.type===2?h=new Zn(a,a.nextSibling,this,e):u.type===1?h=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(h=new Xs(a,this,e)),this._$AV.push(h),u=i[++l]}s!==u?.index&&(a=zo.nextNode(),s++)}return zo.currentNode=Uo,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Zn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Fe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Si(this,e,r),ln(e)?e===Fe||e==null||e===""?(this._$AH!==Fe&&this._$AR(),this._$AH=Fe):e!==this._$AH&&e!==cn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Av(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Fe&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.T(Uo.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=dn.createElement(xf(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new qs(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=uf.get(e.strings);return r===void 0&&uf.set(e.strings,r=new dn(e)),r}k(e){el(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(qn()),this.O(qn()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ci=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Fe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Fe}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Si(this,e,r,0),s=!ln(e)||e!==this._$AH&&e!==cn,s&&(this._$AH=e);else{let l=e,u,h;for(e=a[0],u=0;u<a.length-1;u++)h=Si(this,l[i+u],r,u),h===cn&&(h=this._$AH[u]),s||=!ln(h)||h!==this._$AH[u],h===Fe?e=Fe:e!==Fe&&(e+=(h??"")+a[u+1]),this._$AH[u]=h}s&&!n&&this.j(e)}j(e){e===Fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zs=class extends Ci{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Fe?void 0:e}},Qs=class extends Ci{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Fe)}},Ys=class extends Ci{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Si(this,e,r,0)??Fe)===cn)return;let i=this._$AH,n=e===Fe&&i!==Fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Fe&&(i===Fe||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Si(this,e)}},Iv=Js.litHtmlPolyfillSupport;Iv?.(dn,Zn),(Js.litHtmlVersions??=[]).push("3.3.0")});var Sf,Lv,ol,vf,il,nl,YE,XE,Cf=p(()=>{rl();Sf=Symbol.for(""),Lv=t=>{if(t?.r===Sf)return t?._$litStatic$},ol=t=>({_$litStatic$:t,r:Sf}),vf=new Map,il=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],u,h=0,y=!1;for(;h<i;){for(u=e[h];h<i&&(a=r[h],(n=Lv(a))!==void 0);)u+=n+e[++h],y=!0;h!==i&&l.push(a),s.push(u),h++}if(h===i&&s.push(e[i]),y){let g=s.join("$$lit$$");(e=vf.get(g))===void 0&&(s.raw=s,vf.set(g,e=s)),r=l}return t(e,...r)},nl=il(gf),YE=il(yf),XE=il(bf)});var Of=p(()=>{Cf()});var $e,Oi=p(()=>{"use strict";(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"})($e||($e={}))});var al,Ef,wf,Z,sl=p(()=>{"use strict";Of();al=f(W()),Ef=f(v());Oi();Zt();wf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends Ef.FtLitElement{constructor(){super(...arguments),this.variant=$e.body1}render(){return this.element?nl`
486
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),df=/'/g,pf=/"/g,mf=/^(?:script|style|textarea|title)$/i,tl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gf=tl(1),yf=tl(2),bf=tl(3),cn=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),uf=new WeakMap,zo=Uo.createTreeWalker(Uo,129);Rv=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=sn;for(let l=0;l<r;l++){let u=t[l],h,y,g=-1,x=0;for(;x<u.length&&(s.lastIndex=x,y=s.exec(u),y!==null);)x=s.lastIndex,s===sn?y[1]==="!--"?s=lf:y[1]!==void 0?s=cf:y[2]!==void 0?(mf.test(y[2])&&(n=RegExp("</"+y[2],"g")),s=Mo):y[3]!==void 0&&(s=Mo):s===Mo?y[0]===">"?(s=n??sn,g=-1):y[1]===void 0?g=-2:(g=s.lastIndex-y[2].length,h=y[1],s=y[3]===void 0?Mo:y[3]==='"'?pf:df):s===pf||s===df?s=Mo:s===lf||s===cf?s=sn:(s=Mo,n=void 0);let w=s===Mo&&t[l+1].startsWith("/>")?" ":"";a+=s===sn?u+Ev:g>=0?(i.push(h),u.slice(0,g)+ff+u.slice(g)+ao+w):u+ao+(g===-2?l:w)}return[xf(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},dn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,u=this.parts,[h,y]=Rv(e,r);if(this.el=t.createElement(h,i),zo.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=zo.nextNode())!==null&&u.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(ff)){let x=y[s++],w=n.getAttribute(g).split(ao),O=/([.?@])?(.*)/.exec(x);u.push({type:1,index:a,name:O[2],strings:w,ctor:O[1]==="."?Zs:O[1]==="?"?Qs:O[1]==="@"?Ys:Ci}),n.removeAttribute(g)}else g.startsWith(ao)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(mf.test(n.tagName)){let g=n.textContent.split(ao),x=g.length-1;if(x>0){n.textContent=Kn?Kn.emptyScript:"";for(let w=0;w<x;w++)n.append(g[w],qn()),zo.nextNode(),u.push({type:2,index:++a});n.append(g[x],qn())}}}else if(n.nodeType===8)if(n.data===hf)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(ao,g+1))!==-1;)u.push({type:7,index:a}),g+=ao.length-1}a++}}static createElement(e,r){let i=Uo.createElement("template");return i.innerHTML=e,i}};qs=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Uo).importNode(r,!0);zo.currentNode=n;let a=zo.nextNode(),s=0,l=0,u=i[0];for(;u!==void 0;){if(s===u.index){let h;u.type===2?h=new Zn(a,a.nextSibling,this,e):u.type===1?h=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(h=new Xs(a,this,e)),this._$AV.push(h),u=i[++l]}s!==u?.index&&(a=zo.nextNode(),s++)}return zo.currentNode=Uo,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Zn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Fe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Si(this,e,r),ln(e)?e===Fe||e==null||e===""?(this._$AH!==Fe&&this._$AR(),this._$AH=Fe):e!==this._$AH&&e!==cn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Av(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Fe&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.T(Uo.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=dn.createElement(xf(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new qs(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=uf.get(e.strings);return r===void 0&&uf.set(e.strings,r=new dn(e)),r}k(e){el(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(qn()),this.O(qn()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ci=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Fe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Fe}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Si(this,e,r,0),s=!ln(e)||e!==this._$AH&&e!==cn,s&&(this._$AH=e);else{let l=e,u,h;for(e=a[0],u=0;u<a.length-1;u++)h=Si(this,l[i+u],r,u),h===cn&&(h=this._$AH[u]),s||=!ln(h)||h!==this._$AH[u],h===Fe?e=Fe:e!==Fe&&(e+=(h??"")+a[u+1]),this._$AH[u]=h}s&&!n&&this.j(e)}j(e){e===Fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zs=class extends Ci{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Fe?void 0:e}},Qs=class extends Ci{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Fe)}},Ys=class extends Ci{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Si(this,e,r,0)??Fe)===cn)return;let i=this._$AH,n=e===Fe&&i!==Fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Fe&&(i===Fe||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Si(this,e)}},Iv=Js.litHtmlPolyfillSupport;Iv?.(dn,Zn),(Js.litHtmlVersions??=[]).push("3.3.0")});var Sf,Lv,ol,vf,il,nl,YE,XE,Cf=p(()=>{rl();Sf=Symbol.for(""),Lv=t=>{if(t?.r===Sf)return t?._$litStatic$},ol=t=>({_$litStatic$:t,r:Sf}),vf=new Map,il=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],u,h=0,y=!1;for(;h<i;){for(u=e[h];h<i&&(a=r[h],(n=Lv(a))!==void 0);)u+=n+e[++h],y=!0;h!==i&&l.push(a),s.push(u),h++}if(h===i&&s.push(e[i]),y){let g=s.join("$$lit$$");(e=vf.get(g))===void 0&&(s.raw=s,vf.set(g,e=s)),r=l}return t(e,...r)},nl=il(gf),YE=il(yf),XE=il(bf)});var Of=p(()=>{Cf()});var $e,Oi=p(()=>{"use strict";(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"})($e||($e={}))});var al,Ef,wf,Z,sl=p(()=>{"use strict";Of();al=f(W()),Ef=f(v());Oi();Qt();wf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends Ef.FtLitElement{constructor(){super(...arguments),this.variant=$e.body1}render(){return this.element?nl`
487
487
  <${ol(this.element)}
488
488
  part="text"
489
489
  class="ft-typography ft-typography--${this.variant}">
@@ -491,7 +491,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
491
491
  </${ol(this.element)}>
492
492
  `:nl`
493
493
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
494
- `}};Z.styles=[Du,Fu,Mu,zu,Uu,no,Cr,Hu,Wu,Vu,ju,...Gu];wf([(0,al.property)()],Z.prototype,"element",void 0);wf([(0,al.property)()],Z.prototype,"variant",void 0)});var Af,Be=p(()=>{"use strict";Af=f(v());sl();sl();Zt();Oi();(0,Af.customElement)("ft-typography")(Z)});var Rf,Wr,wr,If,Qn=p(()=>{"use strict";Rf=f(R()),Wr=f(v()),wr={distance:Wr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Wr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Wr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Wr.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Wr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},If=Rf.css`
494
+ `}};Z.styles=[Du,Fu,Mu,zu,Uu,no,Cr,Hu,Wu,Vu,ju,...Gu];wf([(0,al.property)()],Z.prototype,"element",void 0);wf([(0,al.property)()],Z.prototype,"variant",void 0)});var Af,Be=p(()=>{"use strict";Af=f(v());sl();sl();Qt();Oi();(0,Af.customElement)("ft-typography")(Z)});var Rf,Wr,wr,If,Qn=p(()=>{"use strict";Rf=f(R()),Wr=f(v()),wr={distance:Wr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Wr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Wr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Wr.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Wr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},If=Rf.css`
495
495
  .ft-tooltip--container {
496
496
  display: block;
497
497
  }
@@ -543,14 +543,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
543
543
  ${(0,dh.unsafeHTML)(this.resolvedIcon)}
544
544
  <slot ?hidden=${r}></slot>
545
545
  </i>
546
- `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Qe.file_format:this.resolvedIcon=(e=I[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Qe.material:this.resolvedIcon=this.value||mn.nothing;break;default:this.resolvedIcon=(r=tt[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Qu;gn([(0,co.property)()],he.prototype,"variant",void 0);gn([(0,co.property)()],he.prototype,"value",void 0);gn([(0,co.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);gn([(0,co.state)()],he.prototype,"resolvedIcon",void 0);gn([(0,co.query)("slot")],he.prototype,"slottedContent",void 0)});var ph,Qt=p(()=>{"use strict";ph=f(v());El();Do();wl();El();Ol();(0,ph.customElement)("ft-icon")(he)});var uh,fh,Vo,Al=p(()=>{"use strict";uh=f(R()),fh=f(v());nn();Vo=class extends fh.FtLitElement{render(){return uh.html`
546
+ `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Qe.file_format:this.resolvedIcon=(e=I[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Qe.material:this.resolvedIcon=this.value||mn.nothing;break;default:this.resolvedIcon=(r=tt[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Qu;gn([(0,co.property)()],he.prototype,"variant",void 0);gn([(0,co.property)()],he.prototype,"value",void 0);gn([(0,co.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);gn([(0,co.state)()],he.prototype,"resolvedIcon",void 0);gn([(0,co.query)("slot")],he.prototype,"slottedContent",void 0)});var ph,Yt=p(()=>{"use strict";ph=f(v());El();Do();wl();El();Ol();(0,ph.customElement)("ft-icon")(he)});var uh,fh,Vo,Al=p(()=>{"use strict";uh=f(R()),fh=f(v());nn();Vo=class extends fh.FtLitElement{render(){return uh.html`
547
547
  <div class="ft-loader">
548
548
  <div></div>
549
549
  <div></div>
550
550
  <div></div>
551
551
  <div></div>
552
552
  </div>
553
- `}};Vo.styles=qu});var hh=p(()=>{"use strict"});var mh,gh=p(()=>{"use strict";mh=f(v());Al();nn();hh();Al();(0,mh.customElement)("ft-loader")(Vo)});var jo,yh=p(()=>{rl();jo=t=>t??Fe});var aa=p(()=>{yh()});var uo,po,Rl,Me,Ye,ve,Il=p(()=>{"use strict";uo=f(v());yt();oa();Be();Qt();gh();po=f(R()),Rl=f(wt()),Me=f(W());aa();Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends(0,uo.toFtFormComponent)(uo.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=po.html`
553
+ `}};Vo.styles=qu});var hh=p(()=>{"use strict"});var mh,gh=p(()=>{"use strict";mh=f(v());Al();nn();hh();Al();(0,mh.customElement)("ft-loader")(Vo)});var jo,yh=p(()=>{rl();jo=t=>t??Fe});var aa=p(()=>{yh()});var uo,po,Rl,Me,Ye,ve,Il=p(()=>{"use strict";uo=f(v());yt();oa();Be();Yt();gh();po=f(R()),Rl=f(wt()),Me=f(W());aa();Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends(0,uo.toFtFormComponent)(uo.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=po.html`
554
554
  <ft-ripple part="ripple"
555
555
  ?disabled=${this.isDisabled()}
556
556
  ?activated=${this.activated}
@@ -1061,7 +1061,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1061
1061
  .ftds--size-small.ft-button--icon-only {
1062
1062
  width: ${m.smallIconOnlyWidth};
1063
1063
  }
1064
- `,E.noTextSelect]});var bn,ca,la,dr,$l=p(()=>{"use strict";Il();bn=f(W());Oi();ca=f(v());Tl();oe();Qt();la=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dr=class extends(0,ca.toFtdsBase)(ve){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=io.brand,this.iconVariant=Qe.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case gt.large:return $e.body2medium;case gt.medium:return $e.caption1medium;case gt.small:return $e.caption2medium}}};dr.styles=[ca.safariEllipsisFix,vh];la([(0,bn.property)({type:Boolean})],dr.prototype,"primary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"secondary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"tertiary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"round",void 0)});var Sh=p(()=>{"use strict"});var Ch=p(()=>{"use strict"});var Pl,Yt=p(()=>{"use strict";Pl=f(v());Ll();$l();Ll();Fo();Sh();$l();Tl();Ch();(0,Pl.customElement)("ft-button")(Pe);(0,Pl.customElement)("ftds-button")(dr)});var Oh,ue,me,_l,xn=p(()=>{"use strict";Oh=f(R()),ue=f(v());Yt();oa();me={height:ue.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ue.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ue.designSystemVariables.borderRadiusS),desktopFiltersHeight:ue.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ue.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ue.FtCssVariableFactory.extend("--ft-search-input-background-color","",ue.designSystemVariables.colorSurface),colorOnSurface:ue.FtCssVariableFactory.extend("--ft-search-input-color","",ue.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ue.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ue.designSystemVariables.colorOnSurfaceMedium),colorOutline:ue.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ue.designSystemVariables.colorOutline),elevation02:ue.FtCssVariableFactory.extend("--ft-search-input-elevation","",ue.designSystemVariables.elevation02),focusOutlineColor:ue.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ue.designSystemVariables.colorPrimary),buttonColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-color","",ue.designSystemVariables.colorPrimary),buttonRippleColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ue.designSystemVariables.colorPrimary)},_l=Oh.css`
1064
+ `,E.noTextSelect]});var bn,ca,la,dr,$l=p(()=>{"use strict";Il();bn=f(W());Oi();ca=f(v());Tl();oe();Yt();la=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dr=class extends(0,ca.toFtdsBase)(ve){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=io.brand,this.iconVariant=Qe.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case gt.large:return $e.body2medium;case gt.medium:return $e.caption1medium;case gt.small:return $e.caption2medium}}};dr.styles=[ca.safariEllipsisFix,vh];la([(0,bn.property)({type:Boolean})],dr.prototype,"primary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"secondary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"tertiary",void 0);la([(0,bn.property)({type:Boolean})],dr.prototype,"round",void 0)});var Sh=p(()=>{"use strict"});var Ch=p(()=>{"use strict"});var Pl,Xt=p(()=>{"use strict";Pl=f(v());Ll();$l();Ll();Fo();Sh();$l();Tl();Ch();(0,Pl.customElement)("ft-button")(Pe);(0,Pl.customElement)("ftds-button")(dr)});var Oh,ue,me,_l,xn=p(()=>{"use strict";Oh=f(R()),ue=f(v());Xt();oa();me={height:ue.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ue.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ue.designSystemVariables.borderRadiusS),desktopFiltersHeight:ue.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ue.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ue.FtCssVariableFactory.extend("--ft-search-input-background-color","",ue.designSystemVariables.colorSurface),colorOnSurface:ue.FtCssVariableFactory.extend("--ft-search-input-color","",ue.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ue.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ue.designSystemVariables.colorOnSurfaceMedium),colorOutline:ue.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ue.designSystemVariables.colorOutline),elevation02:ue.FtCssVariableFactory.extend("--ft-search-input-elevation","",ue.designSystemVariables.elevation02),focusOutlineColor:ue.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ue.designSystemVariables.colorPrimary),buttonColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-color","",ue.designSystemVariables.colorPrimary),buttonRippleColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ue.designSystemVariables.colorPrimary)},_l=Oh.css`
1065
1065
  * {
1066
1066
  box-sizing: border-box;
1067
1067
  ${(0,ue.setVariable)(j.color,me.buttonColor)};
@@ -1158,18 +1158,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1158
1158
  }
1159
1159
  `});var kh,Th,Fl=p(()=>{"use strict";kh=f(R()),Th=kh.css`
1160
1160
  `});var $h,Ph,Ml=p(()=>{"use strict";$h=f(R()),Ph=$h.css`
1161
- `});var ha,Yv,Go,Xv,k,ct=p(()=>{"use strict";ha=f(v()),Yv="ft-app-info",Go=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Go.eventName="authentication-change";Xv={session:(t,e)=>{(0,ha.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Go(e.payload)),0))}},k=ha.FtReduxStore.get({name:Yv,reducers:Xv,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ko,zl=p(()=>{"use strict";ct();Ko=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}}});var ma,_h=p(()=>{"use strict";zl();ma=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ko.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ko.await()}}});var Ul,dt,fo=p(()=>{"use strict";Ul=f(v());_h();dt=class extends ma{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[u])=>l.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ul.CacheRegistry,this.cache=e?n.commonCache:new Ul.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ga,Hl=p(()=>{"use strict";ct();fo();ga=class extends dt{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Wl,Nh=p(()=>{"use strict";ct();Wl=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wl});var Xt,Bh,Ii,Jv,ya,Li,ba,Dh=p(()=>{"use strict";ct();Xt=f(v());fo();Ii=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jv=Symbol("clearAfterUnitTest"),ya=class extends(0,Xt.withEventBus)(dt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bh]=()=>{this.defaultMessages={},this.cache=new Xt.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Xt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Xt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Xt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ii({loadedContexts:e})),this.dispatchEvent(new Ii({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ii({loadedContexts:[e]})),this.dispatchEvent(new Ii({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Xt.delay)(0).then(()=>i()).catch(()=>null)))}};Bh=Jv;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ya{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ya{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Li=window.FluidTopicsI18nService,ba=window.FluidTopicsCustomI18nService});var Fh,Vl,Mh=p(()=>{"use strict";Fh=f(v()),Vl=class{highlightHtml(e,r,i){(0,Fh.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vl});var Uh=_o((ho,zh)=>{var xa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,va=function(){function t(){this.fetch=!1,this.DOMException=xa.DOMException}return t.prototype=xa,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(b){return b&&DataView.prototype.isPrototypeOf(b)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function u(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function h(b){return typeof b!="string"&&(b=String(b)),b}function y(b){var C={next:function(){var D=b.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function g(b){this.map={},b instanceof g?b.forEach(function(C,D){this.append(D,C)},this):Array.isArray(b)?b.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(C){this.append(C,b[C])},this)}g.prototype.append=function(b,C){b=u(b),C=h(C);var D=this.map[b];this.map[b]=D?D+", "+C:C},g.prototype.delete=function(b){delete this.map[u(b)]},g.prototype.get=function(b){return b=u(b),this.has(b)?this.map[b]:null},g.prototype.has=function(b){return this.map.hasOwnProperty(u(b))},g.prototype.set=function(b,C){this.map[u(b)]=h(C)},g.prototype.forEach=function(b,C){for(var D in this.map)this.map.hasOwnProperty(D)&&b.call(C,this.map[D],D,this)},g.prototype.keys=function(){var b=[];return this.forEach(function(C,D){b.push(D)}),y(b)},g.prototype.values=function(){var b=[];return this.forEach(function(C){b.push(C)}),y(b)},g.prototype.entries=function(){var b=[];return this.forEach(function(C,D){b.push([D,C])}),y(b)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function w(b){return new Promise(function(C,D){b.onload=function(){C(b.result)},b.onerror=function(){D(b.error)}})}function O(b){var C=new FileReader,D=w(C);return C.readAsArrayBuffer(b),D}function A(b){var C=new FileReader,D=w(C),fe=/charset=([A-Za-z0-9_-]+)/.exec(b.type),ke=fe?fe[1]:"utf-8";return C.readAsText(b,ke),D}function _(b){for(var C=new Uint8Array(b),D=new Array(C.length),fe=0;fe<C.length;fe++)D[fe]=String.fromCharCode(C[fe]);return D.join("")}function $(b){if(b.slice)return b.slice(0);var C=new Uint8Array(b.byteLength);return C.set(new Uint8Array(b)),C.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:n.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:n.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():n.arrayBuffer&&n.blob&&a(b)?(this._bodyArrayBuffer=$(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=$(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var b=x(this);if(b)return b;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(){if(this._bodyArrayBuffer){var b=x(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(O);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=x(this);if(b)return b;if(this._bodyBlob)return A(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(Ot)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function te(b){var C=b.toUpperCase();return H.indexOf(C)>-1?C:b}function ie(b,C){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(b instanceof ie){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,C.headers||(this.headers=new g(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!D&&b._bodyInit!=null&&(D=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new g(C.headers)),this.method=te(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var ne=new AbortController;return ne.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var fe=/([?&])_=[^&]*/;if(fe.test(this.url))this.url=this.url.replace(fe,"$1_="+new Date().getTime());else{var ke=/\?/;this.url+=(ke.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})};function Ot(b){var C=new FormData;return b.trim().split("&").forEach(function(D){if(D){var fe=D.split("="),ke=fe.shift().replace(/\+/g," "),ne=fe.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ke),decodeURIComponent(ne))}}),C}function xr(b){var C=new g,D=b.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(fe){return fe.indexOf(`
1162
- `)===0?fe.substr(1,fe.length):fe}).forEach(function(fe){var ke=fe.split(":"),ne=ke.shift().trim();if(ne){var jn=ke.join(":").trim();try{C.append(ne,jn)}catch(Ws){console.warn("Response "+Ws.message)}}}),C}P.call(ie.prototype);function mt(b,C){if(!(this instanceof mt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new g(C.headers),this.url=C.url||"",this._initBody(b)}P.call(mt.prototype),mt.prototype.clone=function(){return new mt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},mt.error=function(){var b=new mt(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var vr=[301,302,303,307,308];mt.redirect=function(b,C){if(vr.indexOf(C)===-1)throw new RangeError("Invalid status code");return new mt(null,{status:C,headers:{location:b}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var fe=Error(C);this.stack=fe.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Xe(b,C){return new Promise(function(D,fe){var ke=new ie(b,C);if(ke.signal&&ke.signal.aborted)return fe(new r.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function jn(){ne.abort()}ne.onload=function(){var Je={statusText:ne.statusText,headers:xr(ne.getAllResponseHeaders()||"")};ke.url.indexOf("file://")===0&&(ne.status<200||ne.status>599)?Je.status=200:Je.status=ne.status,Je.url="responseURL"in ne?ne.responseURL:Je.headers.get("X-Request-URL");var Po="response"in ne?ne.response:ne.responseText;setTimeout(function(){D(new mt(Po,Je))},0)},ne.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},ne.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},ne.onabort=function(){setTimeout(function(){fe(new r.DOMException("Aborted","AbortError"))},0)};function Ws(Je){try{return Je===""&&i.location.href?i.location.href:Je}catch{return Je}}if(ne.open(ke.method,Ws(ke.url),!0),ke.credentials==="include"?ne.withCredentials=!0:ke.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&(n.blob?ne.responseType="blob":n.arrayBuffer&&(ne.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof g||i.Headers&&C.headers instanceof i.Headers)){var gp=[];Object.getOwnPropertyNames(C.headers).forEach(function(Je){gp.push(u(Je)),ne.setRequestHeader(Je,h(C.headers[Je]))}),ke.headers.forEach(function(Je,Po){gp.indexOf(Po)===-1&&ne.setRequestHeader(Po,Je)})}else ke.headers.forEach(function(Je,Po){ne.setRequestHeader(Po,Je)});ke.signal&&(ke.signal.addEventListener("abort",jn),ne.onreadystatechange=function(){ne.readyState===4&&ke.signal.removeEventListener("abort",jn)}),ne.send(typeof ke._bodyInit>"u"?null:ke._bodyInit)})}return Xe.polyfill=!0,i.fetch||(i.fetch=Xe,i.Headers=g,i.Request=ie,i.Response=mt),r.Headers=g,r.Request=ie,r.Response=mt,r.fetch=Xe,r}({})})(va);va.fetch.ponyfill=!0;delete va.fetch.polyfill;var ki=xa.fetch?xa:va;ho=ki.fetch;ho.default=ki.fetch;ho.fetch=ki.fetch;ho.Headers=ki.Headers;ho.Request=ki.Request;ho.Response=ki.Response;zh.exports=ho});var jl=p(()=>{});var Hh,Wh,Vh,Ti,jh,Gh,qo,Kh,qh,Zh,Qh,Yh,Xh,Jh,em,tm,$i,rm,Sa,om,im,Jt,Pi,nm,je,_t,Gl=p(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Hh||(Hh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wh||(Wh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Vh||(Vh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ti||(Ti={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jh||(jh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Gh||(Gh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(qo||(qo={}));(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"})(Kh||(Kh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(qh||(qh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Zh||(Zh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Qh||(Qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Yh||(Yh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Xh||(Xh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Jh||(Jh={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(em||(em={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(tm||(tm={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($i||($i={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(rm||(rm={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sa||(Sa={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(om||(om={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(im||(im={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Jt||(Jt={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pi||(Pi={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nm||(nm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(je||(je={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(_t||(_t={}))});var am,sm,lm,cm,dm=p(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(am||(am={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sm||(sm={}));(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(lm||(lm={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cm||(cm={}))});function pm(t,e){return t===e||(e0[t]??[]).some(r=>pm(r,e))}function um(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>pm(i,e))}var e0,fm=p(()=>{Gl();e0={[je.PERSONAL_BOOK_SHARE_USER]:[je.PERSONAL_BOOK_USER],[je.HTML_EXPORT_USER]:[je.PERSONAL_BOOK_USER],[je.PDF_EXPORT_USER]:[je.PERSONAL_BOOK_USER],[je.KHUB_ADMIN]:[je.CONTENT_PUBLISHER],[je.ADMIN]:[je.KHUB_ADMIN,je.USERS_ADMIN,je.PORTAL_ADMIN],[je.GENERATIVE_AI_EXPORT_USER]:[je.GENERATIVE_AI_USER]}});var hm=p(()=>{});var t0,Zo=p(()=>{t0=f(Uh(),1);jl();Gl();dm();fm();hm();jl()});var Ca,Kl=p(()=>{"use strict";ct();Zo();fo();Ca=class extends dt{async listMySearches(){let{session:e}=k.getState();return um(e,je.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var mm,ql,gm=p(()=>{"use strict";mm=f(v());ct();ql=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return mm.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ql});var ym,Kr,Zl=p(()=>{"use strict";ym=f(v());ct();Kr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new ym.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}}});var Oa,bm=p(()=>{"use strict";fo();Oa=class extends dt{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(r),console.debug(n),i)),1e3)}}});var Ql,xm=p(()=>{"use strict";Zl();Ql=class{urlToSearchRequest(e){return Kr.get().parse(e)}searchRequestToUrl(e){return Kr.get().serialize(e)}};window.FluidTopicsUrlService=new Ql});var Qo,vm=p(()=>{"use strict";Qo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qo.eventName="change"});var Yl,Sm,Cm=p(()=>{"use strict";Yl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Sm=new Yl});var mo,wa,Om=p(()=>{"use strict";mo=f(v());vm();Cm();wa=class t extends mo.WithEventBus{static build(){return new t(window.history,Sm,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,mo.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let u=r(),h={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[h,s,l]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Qo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qo.eventName,e)}currentItem(){return(0,mo.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,mo.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,mo.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var wm=p(()=>{"use strict";Om();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wa.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var Em=p(()=>{"use strict";ct()});var Xl=p(()=>{"use strict";Hl();zl();Nh();Dh();fo();Mh();Kl();gm();Zl();bm();xm();wm();Em()});function Rm(t,e){var r;return Am.getState().authenticationRequired&&!(!((r=Am.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Am,Im=p(()=>{"use strict";ct();Am=k});var Lm,rt,pr,Ge,Se,Jl=p(()=>{"use strict";Lm=f(R()),rt=f(W()),pr=f(v());Ml();ct();Xl();Im();Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends pr.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ko.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new pr.CacheRegistry,this.cleanSessionDebouncer=new pr.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Lm.html`
1161
+ `});var ha,Yv,Go,Xv,k,ct=p(()=>{"use strict";ha=f(v()),Yv="ft-app-info",Go=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Go.eventName="authentication-change";Xv={session:(t,e)=>{(0,ha.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Go(e.payload)),0))}},k=ha.FtReduxStore.get({name:Yv,reducers:Xv,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ko,zl=p(()=>{"use strict";ct();Ko=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}}});var ma,_h=p(()=>{"use strict";zl();ma=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ko.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ko.await()}}});var Ul,dt,fo=p(()=>{"use strict";Ul=f(v());_h();dt=class extends ma{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[u])=>l.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ul.CacheRegistry,this.cache=e?n.commonCache:new Ul.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ga,Hl=p(()=>{"use strict";ct();fo();ga=class extends dt{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Wl,Nh=p(()=>{"use strict";ct();Wl=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wl});var Jt,Bh,Ii,Jv,ya,Li,ba,Dh=p(()=>{"use strict";ct();Jt=f(v());fo();Ii=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jv=Symbol("clearAfterUnitTest"),ya=class extends(0,Jt.withEventBus)(dt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bh]=()=>{this.defaultMessages={},this.cache=new Jt.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Jt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Jt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Jt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ii({loadedContexts:e})),this.dispatchEvent(new Ii({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ii({loadedContexts:[e]})),this.dispatchEvent(new Ii({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Jt.delay)(0).then(()=>i()).catch(()=>null)))}};Bh=Jv;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ya{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ya{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Li=window.FluidTopicsI18nService,ba=window.FluidTopicsCustomI18nService});var Fh,Vl,Mh=p(()=>{"use strict";Fh=f(v()),Vl=class{highlightHtml(e,r,i){(0,Fh.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vl});var Uh=_o((ho,zh)=>{var xa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,va=function(){function t(){this.fetch=!1,this.DOMException=xa.DOMException}return t.prototype=xa,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(b){return b&&DataView.prototype.isPrototypeOf(b)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function u(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function h(b){return typeof b!="string"&&(b=String(b)),b}function y(b){var C={next:function(){var D=b.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function g(b){this.map={},b instanceof g?b.forEach(function(C,D){this.append(D,C)},this):Array.isArray(b)?b.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(C){this.append(C,b[C])},this)}g.prototype.append=function(b,C){b=u(b),C=h(C);var D=this.map[b];this.map[b]=D?D+", "+C:C},g.prototype.delete=function(b){delete this.map[u(b)]},g.prototype.get=function(b){return b=u(b),this.has(b)?this.map[b]:null},g.prototype.has=function(b){return this.map.hasOwnProperty(u(b))},g.prototype.set=function(b,C){this.map[u(b)]=h(C)},g.prototype.forEach=function(b,C){for(var D in this.map)this.map.hasOwnProperty(D)&&b.call(C,this.map[D],D,this)},g.prototype.keys=function(){var b=[];return this.forEach(function(C,D){b.push(D)}),y(b)},g.prototype.values=function(){var b=[];return this.forEach(function(C){b.push(C)}),y(b)},g.prototype.entries=function(){var b=[];return this.forEach(function(C,D){b.push([D,C])}),y(b)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function w(b){return new Promise(function(C,D){b.onload=function(){C(b.result)},b.onerror=function(){D(b.error)}})}function O(b){var C=new FileReader,D=w(C);return C.readAsArrayBuffer(b),D}function A(b){var C=new FileReader,D=w(C),fe=/charset=([A-Za-z0-9_-]+)/.exec(b.type),ke=fe?fe[1]:"utf-8";return C.readAsText(b,ke),D}function _(b){for(var C=new Uint8Array(b),D=new Array(C.length),fe=0;fe<C.length;fe++)D[fe]=String.fromCharCode(C[fe]);return D.join("")}function $(b){if(b.slice)return b.slice(0);var C=new Uint8Array(b.byteLength);return C.set(new Uint8Array(b)),C.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:n.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:n.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():n.arrayBuffer&&n.blob&&a(b)?(this._bodyArrayBuffer=$(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=$(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var b=x(this);if(b)return b;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(){if(this._bodyArrayBuffer){var b=x(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(O);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=x(this);if(b)return b;if(this._bodyBlob)return A(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(Ot)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function te(b){var C=b.toUpperCase();return H.indexOf(C)>-1?C:b}function ie(b,C){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(b instanceof ie){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,C.headers||(this.headers=new g(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!D&&b._bodyInit!=null&&(D=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new g(C.headers)),this.method=te(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var ne=new AbortController;return ne.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var fe=/([?&])_=[^&]*/;if(fe.test(this.url))this.url=this.url.replace(fe,"$1_="+new Date().getTime());else{var ke=/\?/;this.url+=(ke.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})};function Ot(b){var C=new FormData;return b.trim().split("&").forEach(function(D){if(D){var fe=D.split("="),ke=fe.shift().replace(/\+/g," "),ne=fe.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ke),decodeURIComponent(ne))}}),C}function xr(b){var C=new g,D=b.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(fe){return fe.indexOf(`
1162
+ `)===0?fe.substr(1,fe.length):fe}).forEach(function(fe){var ke=fe.split(":"),ne=ke.shift().trim();if(ne){var jn=ke.join(":").trim();try{C.append(ne,jn)}catch(Ws){console.warn("Response "+Ws.message)}}}),C}P.call(ie.prototype);function mt(b,C){if(!(this instanceof mt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new g(C.headers),this.url=C.url||"",this._initBody(b)}P.call(mt.prototype),mt.prototype.clone=function(){return new mt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},mt.error=function(){var b=new mt(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var vr=[301,302,303,307,308];mt.redirect=function(b,C){if(vr.indexOf(C)===-1)throw new RangeError("Invalid status code");return new mt(null,{status:C,headers:{location:b}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var fe=Error(C);this.stack=fe.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Xe(b,C){return new Promise(function(D,fe){var ke=new ie(b,C);if(ke.signal&&ke.signal.aborted)return fe(new r.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function jn(){ne.abort()}ne.onload=function(){var Je={statusText:ne.statusText,headers:xr(ne.getAllResponseHeaders()||"")};ke.url.indexOf("file://")===0&&(ne.status<200||ne.status>599)?Je.status=200:Je.status=ne.status,Je.url="responseURL"in ne?ne.responseURL:Je.headers.get("X-Request-URL");var Po="response"in ne?ne.response:ne.responseText;setTimeout(function(){D(new mt(Po,Je))},0)},ne.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},ne.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},ne.onabort=function(){setTimeout(function(){fe(new r.DOMException("Aborted","AbortError"))},0)};function Ws(Je){try{return Je===""&&i.location.href?i.location.href:Je}catch{return Je}}if(ne.open(ke.method,Ws(ke.url),!0),ke.credentials==="include"?ne.withCredentials=!0:ke.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&(n.blob?ne.responseType="blob":n.arrayBuffer&&(ne.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof g||i.Headers&&C.headers instanceof i.Headers)){var gp=[];Object.getOwnPropertyNames(C.headers).forEach(function(Je){gp.push(u(Je)),ne.setRequestHeader(Je,h(C.headers[Je]))}),ke.headers.forEach(function(Je,Po){gp.indexOf(Po)===-1&&ne.setRequestHeader(Po,Je)})}else ke.headers.forEach(function(Je,Po){ne.setRequestHeader(Po,Je)});ke.signal&&(ke.signal.addEventListener("abort",jn),ne.onreadystatechange=function(){ne.readyState===4&&ke.signal.removeEventListener("abort",jn)}),ne.send(typeof ke._bodyInit>"u"?null:ke._bodyInit)})}return Xe.polyfill=!0,i.fetch||(i.fetch=Xe,i.Headers=g,i.Request=ie,i.Response=mt),r.Headers=g,r.Request=ie,r.Response=mt,r.fetch=Xe,r}({})})(va);va.fetch.ponyfill=!0;delete va.fetch.polyfill;var ki=xa.fetch?xa:va;ho=ki.fetch;ho.default=ki.fetch;ho.fetch=ki.fetch;ho.Headers=ki.Headers;ho.Request=ki.Request;ho.Response=ki.Response;zh.exports=ho});var jl=p(()=>{});var Hh,Wh,Vh,Ti,jh,Gh,qo,Kh,qh,Zh,Qh,Yh,Xh,Jh,em,tm,$i,rm,Sa,om,im,er,Pi,nm,je,_t,Gl=p(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Hh||(Hh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wh||(Wh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Vh||(Vh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ti||(Ti={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jh||(jh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Gh||(Gh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(qo||(qo={}));(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"})(Kh||(Kh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(qh||(qh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Zh||(Zh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Qh||(Qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Yh||(Yh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Xh||(Xh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Jh||(Jh={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(em||(em={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(tm||(tm={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($i||($i={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(rm||(rm={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sa||(Sa={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(om||(om={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(im||(im={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(er||(er={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pi||(Pi={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nm||(nm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(je||(je={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(_t||(_t={}))});var am,sm,lm,cm,dm=p(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(am||(am={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sm||(sm={}));(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(lm||(lm={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cm||(cm={}))});function pm(t,e){return t===e||(e0[t]??[]).some(r=>pm(r,e))}function um(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>pm(i,e))}var e0,fm=p(()=>{Gl();e0={[je.PERSONAL_BOOK_SHARE_USER]:[je.PERSONAL_BOOK_USER],[je.HTML_EXPORT_USER]:[je.PERSONAL_BOOK_USER],[je.PDF_EXPORT_USER]:[je.PERSONAL_BOOK_USER],[je.KHUB_ADMIN]:[je.CONTENT_PUBLISHER],[je.ADMIN]:[je.KHUB_ADMIN,je.USERS_ADMIN,je.PORTAL_ADMIN],[je.GENERATIVE_AI_EXPORT_USER]:[je.GENERATIVE_AI_USER]}});var hm=p(()=>{});var t0,Zo=p(()=>{t0=f(Uh(),1);jl();Gl();dm();fm();hm();jl()});var Ca,Kl=p(()=>{"use strict";ct();Zo();fo();Ca=class extends dt{async listMySearches(){let{session:e}=k.getState();return um(e,je.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var mm,ql,gm=p(()=>{"use strict";mm=f(v());ct();ql=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return mm.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ql});var ym,Kr,Zl=p(()=>{"use strict";ym=f(v());ct();Kr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new ym.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}}});var Oa,bm=p(()=>{"use strict";fo();Oa=class extends dt{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(r),console.debug(n),i)),1e3)}}});var Ql,xm=p(()=>{"use strict";Zl();Ql=class{urlToSearchRequest(e){return Kr.get().parse(e)}searchRequestToUrl(e){return Kr.get().serialize(e)}};window.FluidTopicsUrlService=new Ql});var Qo,vm=p(()=>{"use strict";Qo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qo.eventName="change"});var Yl,Sm,Cm=p(()=>{"use strict";Yl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Sm=new Yl});var mo,wa,Om=p(()=>{"use strict";mo=f(v());vm();Cm();wa=class t extends mo.WithEventBus{static build(){return new t(window.history,Sm,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,mo.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let u=r(),h={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[h,s,l]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Qo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qo.eventName,e)}currentItem(){return(0,mo.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,mo.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,mo.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var wm=p(()=>{"use strict";Om();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wa.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var Em=p(()=>{"use strict";ct()});var Xl=p(()=>{"use strict";Hl();zl();Nh();Dh();fo();Mh();Kl();gm();Zl();bm();xm();wm();Em()});function Rm(t,e){var r;return Am.getState().authenticationRequired&&!(!((r=Am.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Am,Im=p(()=>{"use strict";ct();Am=k});var Lm,rt,pr,Ge,Se,Jl=p(()=>{"use strict";Lm=f(R()),rt=f(W()),pr=f(v());Ml();ct();Xl();Im();Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends pr.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ko.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new pr.CacheRegistry,this.cleanSessionDebouncer=new pr.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Lm.html`
1163
1163
  <slot></slot>
1164
- `}connectedCallback(){super.connectedCallback(),k.addEventListener(Go.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Go.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,l,u;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(h=>Li.addContext(h)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Rm(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Se.elementDefinitions={};Se.styles=Ph;Ge([(0,rt.property)()],Se.prototype,"baseUrl",void 0);Ge([(0,rt.property)()],Se.prototype,"apiIntegrationIdentifier",void 0);Ge([(0,rt.property)()],Se.prototype,"apiIntegrationAppVersion",void 0);Ge([(0,rt.property)()],Se.prototype,"uiLocale",void 0);Ge([(0,pr.jsonProperty)(null)],Se.prototype,"availableUiLocales",void 0);Ge([(0,pr.jsonProperty)(null)],Se.prototype,"metadataConfiguration",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"editorMode",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"noCustom",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"openExternalDocumentInNewTab",void 0);Ge([(0,rt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Se.prototype,"noCustomComponent",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"withManualResources",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"navigatorOnline",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"forcedOffline",void 0);Ge([(0,rt.property)({type:Object})],Se.prototype,"apiProvider",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"authenticationRequired",void 0);Ge([(0,pr.jsonProperty)([])],Se.prototype,"messageContexts",void 0);Ge([(0,pr.jsonProperty)(void 0)],Se.prototype,"session",void 0);Ge([(0,rt.state)()],Se.prototype,"localesConfiguration",void 0);Ge([(0,rt.state)()],Se.prototype,"availableContentLocales",void 0)});function r0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ea(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ea(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ea(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ea(t,e){try{return r0(t,e)}catch{return!1}}function vn(t,e){return!Ea(t,e)}function Aa(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var _i=p(()=>{"use strict"});var km,ec,Tm=p(()=>{"use strict";_i();km=f(W(),1),ec=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:vn,attribute:!1,...e};(0,km.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}}});var Ra,tc=p(()=>{"use strict";Ra=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});function Pm(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,$m.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:vn,...e??{}})}var $m,_m=p(()=>{"use strict";$m=f(W(),1);_i()});var Ia,Nm=p(()=>{"use strict";Ia=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var La,o0,TL,Bm,Dm=p(()=>{La=globalThis,o0=La.ShadowRoot&&(La.ShadyCSS===void 0||La.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TL=Symbol(),Bm=(t,e)=>{if(o0)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=La.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}}});var Fm,ka,Mm=p(()=>{"use strict";Fm=f(R(),1);Dm();ka=class extends Fm.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Bm(i,e.elementStyles),i}}});function zm(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Um=p(()=>{"use strict"});var Ni,Sn,jm,Hm,Wm,Gm,Vm,qr,Km=p(()=>{"use strict";Ni=f(W(),1);_m();Nm();Mm();Um();Sn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hm=Symbol("constructorPrototype"),Wm=Symbol("constructorName"),Gm=Symbol("exportpartsDebouncer"),Vm=Symbol("dynamicDependenciesLoaded"),qr=class extends ka{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[jm]=new Ia(5),this[Wm]=this.constructor.name,this[Hm]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wm]&&Object.setPrototypeOf(this,this[Hm])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Vm]||(e[Vm]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=zm(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Gm].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,l;let u=x=>x!=null&&x.trim().length>0,h=e.filter(u).map(x=>x.trim());if(h.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let x of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let w=(a=(n=x.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],O=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...w,...O).filter(u).map(A=>A.trim()).forEach(A=>y.add(A))}if(y.size===0){this.removeAttribute("exportparts");return}let g=[...y.values()].flatMap(x=>h.map(w=>`${x}:${w}--${x}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};jm=Gm;Sn([(0,Ni.property)()],qr.prototype,"exportpartsPrefix",void 0);Sn([Pm([])],qr.prototype,"exportpartsPrefixes",void 0);Sn([(0,Ni.property)()],qr.prototype,"customStylesheet",void 0);Sn([(0,Ni.property)()],qr.prototype,"elementToFocus",void 0);Sn([(0,Ni.state)()],qr.prototype,"useAdoptedStyleSheets",void 0)});function Ta(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var $a=p(()=>{"use strict"});var Cn,go,Yo,i0,qm,Zm=p(()=>{"use strict";Km();$a();_i();Cn=Symbol("internalReduxEventsUnsubscribers"),go=Symbol("internalStoresUnsubscribers"),Yo=Symbol("internalStores"),i0=Aa(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Yo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Yo].get(s)}addStore(s,l){var u;l=(u=l??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[Yo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Yo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Yo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let h=this.getStore(s.store);h&&(s.store?this[go].has(s.store):this[go].size>0)&&(this[l]=s.selector(h.getState(),this))}})}subscribeToStore(s,l){var u;this[go].set(s,l.subscribe(()=>this.updateFromStores())),this[Cn].set(s,[]),Ta(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((h,y)=>{if(typeof this[y]=="function"&&(!h.store||l.name===h.store)){let g=x=>this[y](x);l.addEventListener(h.eventName,g),this[Cn].get(s).push(()=>l.removeEventListener(h.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[go].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[go].has(s)&&this[go].get(s)(),this[go].delete(s),(l=this[Cn].get(s))===null||l===void 0||l.forEach(u=>u()),this[Cn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=go,r=Yo,i=Cn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),qm=class extends i0(qr){}});function er(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zr(t){return!!t&&!!t[Re]}function ur(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===u0}(t)||Array.isArray(t)||!!t[rg]||!!(!((e=t.constructor)===null||e===void 0)&&e[rg])||dc(t)||pc(t))}function Xo(t,e,r){r===void 0&&(r=!1),Fi(t)===0?(r?Object.keys:Di)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Fi(t){var e=t[Re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:dc(t)?2:pc(t)?3:0}function Bi(t,e){return Fi(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function n0(t,e){return Fi(t)===2?t.get(e):t[e]}function og(t,e,r){var i=Fi(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function ig(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function dc(t){return d0&&t instanceof Map}function pc(t){return p0&&t instanceof Set}function yo(t){return t.o||t.t}function uc(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sg(t);delete e[Re];for(var r=Di(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function fc(t,e){return e===void 0&&(e=!1),hc(t)||Zr(t)||!ur(t)||(Fi(t)>1&&(t.set=t.add=t.clear=t.delete=a0),Object.freeze(t),e&&Xo(t,function(r,i){return fc(i,!0)},!0)),t}function a0(){er(2)}function hc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ar(t){var e=cc[t];return e||er(18,t),e}function s0(t,e){cc[t]||(cc[t]=e)}function ac(){return wn}function rc(t,e){e&&(Ar("Patches"),t.u=[],t.s=[],t.v=e)}function Pa(t){sc(t),t.p.forEach(l0),t.p=null}function sc(t){t===wn&&(wn=t.l)}function Qm(t){return wn={p:[],l:wn,h:t,m:!0,_:0}}function l0(t){var e=t[Re];e.i===0||e.i===1?e.j():e.g=!0}function oc(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Ar("ES5").S(e,t,i),i?(r[Re].P&&(Pa(e),er(4)),ur(t)&&(t=_a(e,t),e.l||Na(e,t)),e.u&&Ar("Patches").M(r[Re].t,t,e.u,e.s)):t=_a(e,r,[]),Pa(e),e.u&&e.v(e.u,e.s),t!==ag?t:void 0}function _a(t,e,r){if(hc(e))return e;var i=e[Re];if(!i)return Xo(e,function(l,u){return Ym(t,i,e,l,u,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Na(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=uc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Xo(a,function(l,u){return Ym(t,i,n,l,u,r,s)}),Na(t,n,!1),r&&t.u&&Ar("Patches").N(i,r,t.u,t.s)}return i.o}function Ym(t,e,r,i,n,a,s){if(Zr(n)){var l=_a(t,n,a&&e&&e.i!==3&&!Bi(e.R,i)?a.concat(i):void 0);if(og(r,i,l),!Zr(l))return;t.m=!1}else s&&r.add(n);if(ur(n)&&!hc(n)){if(!t.h.D&&t._<1)return;_a(t,n),e&&e.A.l||Na(t,n)}}function Na(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&fc(e,r)}function ic(t,e){var r=t[Re];return(r?yo(r):t)[e]}function Xm(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function nc(t){t.o||(t.o=uc(t.t))}function lc(t,e,r){var i=dc(e)?Ar("MapSet").F(e,r):pc(e)?Ar("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:ac(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=l,h=En;s&&(u=[l],h=On);var y=Proxy.revocable(u,h),g=y.revoke,x=y.proxy;return l.k=x,l.j=g,x}(e,r):Ar("ES5").J(e,r);return(r?r.A:ac()).p.push(i),i}function c0(t){return Zr(t)||er(22,t),function e(r){if(!ur(r))return r;var i,n=r[Re],a=Fi(r);if(n){if(!n.P&&(n.i<4||!Ar("ES5").K(n)))return n.t;n.I=!0,i=Jm(r,a),n.I=!1}else i=Jm(r,a);return Xo(i,function(s,l){n&&n0(n.t,s)===l||og(i,s,e(l))}),a===3?new Set(i):i}(t)}function Jm(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return uc(t)}function ng(){function t(s,l){var u=a[s];return u?u.enumerable=l:a[s]=u={configurable:!0,enumerable:l,get:function(){var h=this[Re];return En.get(h,s)},set:function(h){var y=this[Re];En.set(y,s,h)}},u}function e(s){for(var l=s.length-1;l>=0;l--){var u=s[l][Re];if(!u.P)switch(u.i){case 5:i(u)&&bo(u);break;case 4:r(u)&&bo(u)}}}function r(s){for(var l=s.t,u=s.k,h=Di(u),y=h.length-1;y>=0;y--){var g=h[y];if(g!==Re){var x=l[g];if(x===void 0&&!Bi(l,g))return!0;var w=u[g],O=w&&w[Re];if(O?O.t!==x:!ig(w,x))return!0}}var A=!!l[Re];return h.length!==Di(l).length+(A?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var h=0;h<l.length;h++)if(!l.hasOwnProperty(h))return!0;return!1}function n(s){s.g&&er(3,JSON.stringify(yo(s)))}var a={};s0("ES5",{J:function(s,l){var u=Array.isArray(s),h=function(g,x){if(g){for(var w=Array(x.length),O=0;O<x.length;O++)Object.defineProperty(w,""+O,t(O,!0));return w}var A=sg(x);delete A[Re];for(var _=Di(A),$=0;$<_.length;$++){var P=_[$];A[P]=t(P,g||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(x),A)}(u,s),y={i:u?5:4,A:l?l.A:ac(),P:!1,I:!1,R:{},l,t:s,k:h,o:null,g:!1,C:!1};return Object.defineProperty(h,Re,{value:y,writable:!0}),h},S:function(s,l,u){u?Zr(l)&&l[Re].A===s&&e(s.p):(s.u&&function h(y){if(y&&typeof y=="object"){var g=y[Re];if(g){var x=g.t,w=g.k,O=g.R,A=g.i;if(A===4)Xo(w,function(te){te!==Re&&(x[te]!==void 0||Bi(x,te)?O[te]||h(w[te]):(O[te]=!0,bo(g)))}),Xo(x,function(te){w[te]!==void 0||Bi(w,te)||(O[te]=!1,bo(g))});else if(A===5){if(i(g)&&(bo(g),O.length=!0),w.length<x.length)for(var _=w.length;_<x.length;_++)O[_]=!1;else for(var $=x.length;$<w.length;$++)O[$]=!0;for(var P=Math.min(w.length,x.length),H=0;H<P;H++)w.hasOwnProperty(H)||(O[H]=!0),O[H]===void 0&&h(w[H])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var eg,wn,mc,d0,p0,tg,ag,rg,Re,u0,Di,sg,cc,En,On,f0,Nt,h0,GL,KL,qL,ZL,QL,YL,Ba,Da=p(()=>{mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",d0=typeof Map<"u",p0=typeof Set<"u",tg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ag=mc?Symbol.for("immer-nothing"):((eg={})["immer-nothing"]=!0,eg),rg=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Re=mc?Symbol.for("immer-state"):"__$immer_state",u0=""+Object.prototype.constructor,Di=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sg=Object.getOwnPropertyDescriptors||function(t){var e={};return Di(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},cc={},En={get:function(t,e){if(e===Re)return t;var r=yo(t);if(!Bi(r,e))return function(n,a,s){var l,u=Xm(a,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!ur(i)?i:i===ic(t.t,e)?(nc(t),t.o[e]=lc(t.A.h,i,t)):i},has:function(t,e){return e in yo(t)},ownKeys:function(t){return Reflect.ownKeys(yo(t))},set:function(t,e,r){var i=Xm(yo(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ic(yo(t),e),a=n?.[Re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ig(r,n)&&(r!==void 0||Bi(t.t,e)))return!0;nc(t),bo(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ic(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,nc(t),bo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yo(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){er(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){er(12)}},On={};Xo(En,function(t,e){On[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),On.deleteProperty=function(t,e){return On.set.call(this,t,e,void 0)},On.set=function(t,e,r){return En.set.call(this,t[0],e,r,t[0])};f0=function(){function t(r){var i=this;this.O=tg,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var u=i;return function(A){var _=this;A===void 0&&(A=l);for(var $=arguments.length,P=Array($>1?$-1:0),H=1;H<$;H++)P[H-1]=arguments[H];return u.produce(A,function(te){var ie;return(ie=a).call.apply(ie,[_,te].concat(P))})}}var h;if(typeof a!="function"&&er(6),s!==void 0&&typeof s!="function"&&er(7),ur(n)){var y=Qm(i),g=lc(i,n,void 0),x=!0;try{h=a(g),x=!1}finally{x?Pa(y):sc(y)}return typeof Promise<"u"&&h instanceof Promise?h.then(function(A){return rc(y,s),oc(A,y)},function(A){throw Pa(y),A}):(rc(y,s),oc(h,y))}if(!n||typeof n!="object"){if((h=a(n))===void 0&&(h=n),h===ag&&(h=void 0),i.D&&fc(h,!0),s){var w=[],O=[];Ar("Patches").M(n,h,w,O),s(w,O)}return h}er(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(h){for(var y=arguments.length,g=Array(y>1?y-1:0),x=1;x<y;x++)g[x-1]=arguments[x];return i.produceWithPatches(h,function(w){return n.apply(void 0,[w].concat(g))})};var s,l,u=i.produce(n,a,function(h,y){s=h,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(h){return[h,s,l]}):[u,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ur(r)||er(8),Zr(r)&&(r=c0(r));var i=Qm(this),n=lc(this,r,void 0);return n[Re].C=!0,sc(i),n},e.finishDraft=function(r,i){var n=r&&r[Re],a=n.A;return rc(a,i),oc(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!tg&&er(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Ar("Patches").$;return Zr(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Nt=new f0,h0=Nt.produce,GL=Nt.produceWithPatches.bind(Nt),KL=Nt.setAutoFreeze.bind(Nt),qL=Nt.setUseProxies.bind(Nt),ZL=Nt.applyPatches.bind(Nt),QL=Nt.createDraft.bind(Nt),YL=Nt.finishDraft.bind(Nt),Ba=h0});function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}var gc=p(()=>{});function lg(t,e){if(Jo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Jo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cg=p(()=>{gc()});function dg(t){var e=lg(t,"string");return Jo(e)=="symbol"?e:e+""}var pg=p(()=>{gc();cg()});function ug(t,e,r){return(e=dg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fg=p(()=>{pg()});function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function yc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(i){ug(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var mg=p(()=>{fg()});function pt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function m0(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xc(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(pt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(pt(1));return r(xc)(t,e)}if(typeof t!="function")throw new Error(pt(2));var n=t,a=e,s=[],l=s,u=!1;function h(){l===s&&(l=s.slice())}function y(){if(u)throw new Error(pt(3));return a}function g(A){if(typeof A!="function")throw new Error(pt(4));if(u)throw new Error(pt(5));var _=!0;return h(),l.push(A),function(){if(_){if(u)throw new Error(pt(6));_=!1,h();var P=l.indexOf(A);l.splice(P,1),s=null}}}function x(A){if(!m0(A))throw new Error(pt(7));if(typeof A.type>"u")throw new Error(pt(8));if(u)throw new Error(pt(9));try{u=!0,a=n(a,A)}finally{u=!1}for(var _=s=l,$=0;$<_.length;$++){var P=_[$];P()}return A}function w(A){if(typeof A!="function")throw new Error(pt(10));n=A,x({type:Fa.REPLACE})}function O(){var A,_=g;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(pt(11));function H(){P.next&&P.next(y())}H();var te=_(H);return{unsubscribe:te}}},A[gg]=function(){return this},A}return x({type:Fa.INIT}),i={dispatch:x,subscribe:g,getState:y,replaceReducer:w},i[gg]=O,i}function g0(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Fa.INIT});if(typeof i>"u")throw new Error(pt(12));if(typeof r(void 0,{type:Fa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pt(13))})}function yg(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{g0(r)}catch(u){l=u}return function(h,y){if(h===void 0&&(h={}),l)throw l;if(0)var g;for(var x=!1,w={},O=0;O<a.length;O++){var A=a[O],_=r[A],$=h[A],P=_($,y);if(typeof P>"u"){var H=y&&y.type;throw new Error(pt(14))}w[A]=P,x=x||P!==$}return x=x||a.length!==Object.keys(h).length,x?w:h}}function Mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function bg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(pt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(u){return u(s)});return a=Mi.apply(void 0,l)(n.dispatch),yc(yc({},n),{},{dispatch:a})}}}var gg,bc,Fa,Ma=p(()=>{mg();gg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fa={INIT:"@@redux/INIT"+bc(),REPLACE:"@@redux/REPLACE"+bc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bc()}}});function xg(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var vg,vc,Sg=p(()=>{vg=xg();vg.withExtraArgument=xg;vc=vg});function E0(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function wc(t){return ur(t)?Ba(t,function(){}):t}function I0(t){return typeof t=="boolean"}function L0(){return function(e){return k0(e)}}function k0(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new A0;if(r&&(I0(r)?l.push(vc):l.push(vc.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var h}return l}function Rg(t){var e=L0(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,u=l===void 0?!0:l,h=r.preloadedState,y=h===void 0?void 0:h,g=r.enhancers,x=g===void 0?void 0:g,w;if(typeof n=="function")w=n;else if(E0(n))w=yg(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!Cc&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cc&&O.some(function(te){return typeof te!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=bg.apply(void 0,O),_=Mi;u&&(_=w0(xo({trace:!Cc},typeof u=="object"&&u)));var $=new R0(A),P=$;Array.isArray(x)?P=zi([A],x):typeof x=="function"&&(P=x($));var H=_.apply(void 0,P);return xc(w,y,H)}function vo(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return xo(xo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Ig(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function T0(t){return typeof t=="function"}function $0(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ig(e):[e,r,i],a=n[0],s=n[1],l=n[2],u;if(T0(t))u=function(){return wc(t())};else{var h=wc(t);u=function(){return h}}function y(g,x){g===void 0&&(g=u());var w=zi([a[x.type]],s.filter(function(O){var A=O.matcher;return A(x)}).map(function(O){var A=O.reducer;return A}));return w.filter(function(O){return!!O}).length===0&&(w=[l]),w.reduce(function(O,A){if(A)if(Zr(O)){var _=O,$=A(_,x);return $===void 0?O:$}else{if(ur(O))return Ba(O,function(P){return A(P,x)});var $=A(O,x);if($===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return $}return O},g)}return y.getInitialState=u,y}function P0(t,e){return t+"/"+e}function Lg(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:wc(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(y){var g=i[y],x=P0(e,y),w,O;"reducer"in g?(w=g.reducer,O=g.prepare):w=g,a[y]=w,s[x]=w,l[y]=O?vo(x,O):vo(x)});function u(){var y=typeof t.extraReducers=="function"?Ig(t.extraReducers):[t.extraReducers],g=y[0],x=g===void 0?{}:g,w=y[1],O=w===void 0?[]:w,A=y[2],_=A===void 0?void 0:A,$=xo(xo({},x),s);return $0(r,function(P){for(var H in $)P.addCase(H,$[H]);for(var te=0,ie=O;te<ie.length;te++){var Ot=ie[te];P.addMatcher(Ot.matcher,Ot.reducer)}_&&P.addDefaultCase(_)})}var h;return{name:e,reducer:function(y,g){return h||(h=u()),h(y,g)},actions:l,caseReducers:a,getInitialState:function(){return h||(h=u()),h.getInitialState()}}}function F0(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function M0(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ag,y0,zi,b0,x0,v0,Cg,S0,C0,Og,xo,Sc,O0,w0,mk,A0,R0,Cc,_0,N0,B0,Oc,wg,D0,xk,kg,Tg,$g,vk,Sk,Ck,Ok,Ec,wk,Ek,Ak,Eg,Rk,z0,Ik,Pg=p(()=>{Da();Ma();Ma();Ma();Sg();Da();Da();Ag=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),y0=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(y){return u([h,y])}}function u(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=h[0]&2?n.return:h[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,h[1])).done)return a;switch(n=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,n=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){r.label=h[1];break}if(h[0]===6&&r.label<a[1]){r.label=a[1],a=h;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(h);break}a[2]&&r.ops.pop(),r.trys.pop();continue}h=e.call(t,r)}catch(y){h=[6,y],n=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},zi=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},b0=Object.defineProperty,x0=Object.defineProperties,v0=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,S0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,Og=function(t,e,r){return e in t?b0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},xo=function(t,e){for(var r in e||(e={}))S0.call(e,r)&&Og(t,r,e[r]);if(Cg)for(var i=0,n=Cg(e);i<n.length;i++){var r=n[i];C0.call(e,r)&&Og(t,r,e[r])}return t},Sc=function(t,e){return x0(t,v0(e))},O0=function(t,e,r){return new Promise(function(i,n){var a=function(u){try{l(r.next(u))}catch(h){n(h)}},s=function(u){try{l(r.throw(u))}catch(h){n(h)}},l=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};l((r=r.apply(t,e)).next())})},w0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mi:Mi.apply(null,arguments)},mk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};A0=function(t){Ag(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zi([void 0],r[0].concat(this)))):new(e.bind.apply(e,zi([void 0],r.concat(this))))},e}(Array),R0=function(t){Ag(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zi([void 0],r[0].concat(this)))):new(e.bind.apply(e,zi([void 0],r.concat(this))))},e}(Array);Cc=!0;_0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",N0=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=_0[Math.random()*64|0];return e},B0=["name","message","stack","code"],Oc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),wg=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),D0=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=B0;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},xk=function(){function t(e,r,i){var n=vo(e+"/fulfilled",function(y,g,x,w){return{payload:y,meta:Sc(xo({},w||{}),{arg:x,requestId:g,requestStatus:"fulfilled"})}}),a=vo(e+"/pending",function(y,g,x){return{payload:void 0,meta:Sc(xo({},x||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=vo(e+"/rejected",function(y,g,x,w,O){return{payload:w,error:(i&&i.serializeError||D0)(y||"Rejected"),meta:Sc(xo({},O||{}),{arg:x,requestId:g,rejectedWithValue:!!w,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function h(y){return function(g,x,w){var O=i?.idGenerator?i.idGenerator(y):N0(),A=new u,_,$=!1;function P(te){_=te,A.abort()}var H=function(){return O0(this,null,function(){var te,ie,Ot,xr,mt,vr,Xe;return y0(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),xr=(te=i?.condition)==null?void 0:te.call(i,y,{getState:x,extra:w}),M0(xr)?[4,xr]:[3,2];case 1:xr=b.sent(),b.label=2;case 2:if(xr===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return $=!0,mt=new Promise(function(C,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:_||"Aborted"})})}),g(a(O,y,(ie=i?.getPendingMeta)==null?void 0:ie.call(i,{requestId:O,arg:y},{getState:x,extra:w}))),[4,Promise.race([mt,Promise.resolve(r(y,{dispatch:g,getState:x,extra:w,requestId:O,signal:A.signal,abort:P,rejectWithValue:function(C,D){return new Oc(C,D)},fulfillWithValue:function(C,D){return new wg(C,D)}})).then(function(C){if(C instanceof Oc)throw C;return C instanceof wg?n(C.payload,O,y,C.meta):n(C,O,y)})])];case 3:return Ot=b.sent(),[3,5];case 4:return vr=b.sent(),Ot=vr instanceof Oc?s(null,O,y,vr.payload,vr.meta):s(vr,O,y),[3,5];case 5:return Xe=i&&!i.dispatchConditionRejection&&s.match(Ot)&&Ot.meta.condition,Xe||g(Ot),[2,Ot]}})})}();return Object.assign(H,{abort:P,requestId:O,arg:y,unwrap:function(){return H.then(F0)}})}}return Object.assign(h,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();kg="listener",Tg="completed",$g="cancelled",vk="task-"+$g,Sk="task-"+Tg,Ck=kg+"-"+$g,Ok=kg+"-"+Tg,Ec="listenerMiddleware",wk=vo(Ec+"/add"),Ek=vo(Ec+"/removeAll"),Ak=vo(Ec+"/remove"),Rk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Eg||(Eg=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},z0=function(t){return function(e){setTimeout(e,t)}},Ik=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:z0(10);ng()});var U0,za,_g=p(()=>{"use strict";_i();U0=Aa(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),za=class extends U0(Object){}});var Ng,Bg=p(()=>{"use strict";Pg();$a();tc();_g();window.ftReduxStores||(window.ftReduxStores={});Ng=class t extends za{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ta(a))return a;if(n==null)return;let s=Lg({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Rg({reducer:(u,h)=>h.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof h.type=="string"&&h.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...h.overwrites}:s.reducer(u,h)});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ra;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let u=s,h=a[u];return h?(...y)=>{let g=h(...y.map(n));return this.reduxStore.dispatch(g),g}:y=>{this.setState({[u]:n(y)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Dg=p(()=>{"use strict";_i()});var Fg=p(()=>{"use strict";Tm();tc();Zm();Bg();$a();Dg()});var Ua,Mg=p(()=>{"use strict";Ua=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var Ac,zg,Ha,Xk,Ug=p(()=>{"use strict";Ac=f(W());Fg();Mg();ct();zg=f(v()),Ha=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xk=(0,zg.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Ua.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ha([(0,Ac.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ha([(0,Ac.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ha([ec({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ha([ec({store:k.name})],e.prototype,"uiLocale",void 0),e})});var Wa,Hg=p(()=>{"use strict";ct();fo();Wa=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var Va,Wg=p(()=>{"use strict";fo();ct();Va=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var ja,H0,W0,Bt,Rc,Ic,Ga=p(()=>{"use strict";Zo();ja=f(v());Kl();Hl();ct();Hg();Wg();H0="ft-user-assets",W0={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(_t).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;switch(r){case _t.BOOKMARKS:t.bookmarks?t.bookmarks.push(n):t.bookmarks=[n];break;case _t.SEARCHES:t.savedSearches?t.savedSearches.push(n):t.savedSearches=[n];break}let a=t.assetCounts.allAsset[r];if(a!==void 0&&(t.assetCounts.allAsset[r]=a+1),r===_t.BOOKMARKS&&i!==void 0){let s=t.assetCounts.bookmarkByMap[i];s!==void 0&&(t.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(t,e)=>{var r,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case _t.BOOKMARKS:t.bookmarks=(r=t.bookmarks)===null||r===void 0?void 0:r.filter(u=>u.id!==s);break;case _t.SEARCHES:t.savedSearches=(i=t.savedSearches)===null||i===void 0?void 0:i.filter(u=>u.id!==s);break}let l=t.assetCounts.allAsset[n];if(l!==void 0&&l>0&&(t.assetCounts.allAsset[n]=l-1),n===_t.BOOKMARKS&&a!==void 0){let u=t.assetCounts.bookmarkByMap[a];u!==void 0&&u>0&&(t.assetCounts.bookmarkByMap[a]=u-1)}}},Bt=ja.FtReduxStore.get({name:H0,reducers:W0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(_t).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rc=class{constructor(e=new Wa,r=new Va){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ga,this.savedSearchesService=new Ca,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,ja.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Bt.actions.clearAssetCount(),Bt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Bt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Bt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Bt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Bt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Bt.getState().assetCounts.bookmarkByMap).length!==0;e===_t.BOOKMARKS&&r&&Bt.actions.clearBookmarkCountByMap(),Bt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Bt.actions.bookmarks(r)}}},Ic=new Rc;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ic)});var Vg=p(()=>{"use strict";Zo();Ga()});var jg=p(()=>{"use strict"});var Gg,Rr=p(()=>{"use strict";Gg=f(v());Jl();Ug();ct();Ga();Vg();Xl();Ml();jg();Jl();(0,Gg.customElement)("ft-app-context")(Se)});var Lc,Kg,qg=p(()=>{"use strict";Lc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Kg=new Lc});var Ui,Qg,V0,j0,G0,Yg,Ka,An,It,Zg,qa,Za=p(()=>{"use strict";Ui=f(v());Rr();Qg=f(W());qg();V0=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},j0=Symbol("i18nAttributes"),G0=Symbol("i18nListAttributes"),Yg=Symbol("i18nProperties"),Ka=Symbol("i18nContexts"),An=Symbol("i18nUnsubs"),It=(0,Ui.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ba:Li}i18n(a){let{context:s,key:l,message:u}=a,{custom:h,args:y,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,h);let x=y??(g?g(this):[]);return this.getI18nService(h).resolveMessage(s,l,...x)}return u}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Kg.isI18nKey(a)){let[l,u]=a.split(".");return this.i18n({custom:!0,context:l,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,u)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,u)=>{var h;return((h=u?.context)===null||h===void 0?void 0:h.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let u=this,h=(y,g,x)=>x?.context&&x.key&&a(y,g,x)?{...x,message:this.i18n({context:x.context,key:x.key,custom:x.custom,...y})}:x;(s=this[j0])===null||s===void 0||s.forEach((y,g)=>u[g]=h(y,g,u[g])),(l=this[G0])===null||l===void 0||l.forEach((y,g)=>{var x;return u[g]=(x=u[g])===null||x===void 0?void 0:x.map(w=>h(y,g,w))})}updateI18nProperties(a){var s;(s=this[Yg])===null||s===void 0||s.forEach((l,u)=>{a(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let u=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Ka].set(u,{isCustomContext:l}),this[An].has(u)||this[An].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,s)}hasI18nContext(a){return this[Ka].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ka].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[An].forEach(a=>a()),this[An].clear()}}return e=Ka,r=An,V0([(0,Qg.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Zg=class extends It(Ui.FtLitElement){},qa=class extends It(Ui.FtLitElementRedux){}});var Qa,Ya,Xa,Rn,fr,kc=p(()=>{"use strict";Qa=f(R()),Ya=f(W()),Xa=f(v());Fl();Za();Rr();Rn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fr=class extends qa{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Qa.nothing:Qa.html`
1164
+ `}connectedCallback(){super.connectedCallback(),k.addEventListener(Go.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Go.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,l,u;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(h=>Li.addContext(h)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Rm(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Se.elementDefinitions={};Se.styles=Ph;Ge([(0,rt.property)()],Se.prototype,"baseUrl",void 0);Ge([(0,rt.property)()],Se.prototype,"apiIntegrationIdentifier",void 0);Ge([(0,rt.property)()],Se.prototype,"apiIntegrationAppVersion",void 0);Ge([(0,rt.property)()],Se.prototype,"uiLocale",void 0);Ge([(0,pr.jsonProperty)(null)],Se.prototype,"availableUiLocales",void 0);Ge([(0,pr.jsonProperty)(null)],Se.prototype,"metadataConfiguration",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"editorMode",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"noCustom",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"openExternalDocumentInNewTab",void 0);Ge([(0,rt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Se.prototype,"noCustomComponent",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"withManualResources",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"navigatorOnline",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"forcedOffline",void 0);Ge([(0,rt.property)({type:Object})],Se.prototype,"apiProvider",void 0);Ge([(0,rt.property)({type:Boolean})],Se.prototype,"authenticationRequired",void 0);Ge([(0,pr.jsonProperty)([])],Se.prototype,"messageContexts",void 0);Ge([(0,pr.jsonProperty)(void 0)],Se.prototype,"session",void 0);Ge([(0,rt.state)()],Se.prototype,"localesConfiguration",void 0);Ge([(0,rt.state)()],Se.prototype,"availableContentLocales",void 0)});function r0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ea(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ea(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ea(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ea(t,e){try{return r0(t,e)}catch{return!1}}function vn(t,e){return!Ea(t,e)}function Aa(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var _i=p(()=>{"use strict"});var km,ec,Tm=p(()=>{"use strict";_i();km=f(W(),1),ec=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:vn,attribute:!1,...e};(0,km.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}}});var Ra,tc=p(()=>{"use strict";Ra=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});function Pm(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,$m.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:vn,...e??{}})}var $m,_m=p(()=>{"use strict";$m=f(W(),1);_i()});var Ia,Nm=p(()=>{"use strict";Ia=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var La,o0,TL,Bm,Dm=p(()=>{La=globalThis,o0=La.ShadowRoot&&(La.ShadyCSS===void 0||La.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TL=Symbol(),Bm=(t,e)=>{if(o0)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=La.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}}});var Fm,ka,Mm=p(()=>{"use strict";Fm=f(R(),1);Dm();ka=class extends Fm.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Bm(i,e.elementStyles),i}}});function zm(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Um=p(()=>{"use strict"});var Ni,Sn,jm,Hm,Wm,Gm,Vm,qr,Km=p(()=>{"use strict";Ni=f(W(),1);_m();Nm();Mm();Um();Sn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hm=Symbol("constructorPrototype"),Wm=Symbol("constructorName"),Gm=Symbol("exportpartsDebouncer"),Vm=Symbol("dynamicDependenciesLoaded"),qr=class extends ka{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[jm]=new Ia(5),this[Wm]=this.constructor.name,this[Hm]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wm]&&Object.setPrototypeOf(this,this[Hm])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Vm]||(e[Vm]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=zm(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Gm].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,l;let u=x=>x!=null&&x.trim().length>0,h=e.filter(u).map(x=>x.trim());if(h.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let x of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let w=(a=(n=x.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],O=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...w,...O).filter(u).map(A=>A.trim()).forEach(A=>y.add(A))}if(y.size===0){this.removeAttribute("exportparts");return}let g=[...y.values()].flatMap(x=>h.map(w=>`${x}:${w}--${x}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};jm=Gm;Sn([(0,Ni.property)()],qr.prototype,"exportpartsPrefix",void 0);Sn([Pm([])],qr.prototype,"exportpartsPrefixes",void 0);Sn([(0,Ni.property)()],qr.prototype,"customStylesheet",void 0);Sn([(0,Ni.property)()],qr.prototype,"elementToFocus",void 0);Sn([(0,Ni.state)()],qr.prototype,"useAdoptedStyleSheets",void 0)});function Ta(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var $a=p(()=>{"use strict"});var Cn,go,Yo,i0,qm,Zm=p(()=>{"use strict";Km();$a();_i();Cn=Symbol("internalReduxEventsUnsubscribers"),go=Symbol("internalStoresUnsubscribers"),Yo=Symbol("internalStores"),i0=Aa(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Yo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Yo].get(s)}addStore(s,l){var u;l=(u=l??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[Yo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Yo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Yo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let h=this.getStore(s.store);h&&(s.store?this[go].has(s.store):this[go].size>0)&&(this[l]=s.selector(h.getState(),this))}})}subscribeToStore(s,l){var u;this[go].set(s,l.subscribe(()=>this.updateFromStores())),this[Cn].set(s,[]),Ta(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((h,y)=>{if(typeof this[y]=="function"&&(!h.store||l.name===h.store)){let g=x=>this[y](x);l.addEventListener(h.eventName,g),this[Cn].get(s).push(()=>l.removeEventListener(h.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[go].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[go].has(s)&&this[go].get(s)(),this[go].delete(s),(l=this[Cn].get(s))===null||l===void 0||l.forEach(u=>u()),this[Cn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=go,r=Yo,i=Cn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),qm=class extends i0(qr){}});function tr(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zr(t){return!!t&&!!t[Re]}function ur(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===u0}(t)||Array.isArray(t)||!!t[rg]||!!(!((e=t.constructor)===null||e===void 0)&&e[rg])||dc(t)||pc(t))}function Xo(t,e,r){r===void 0&&(r=!1),Fi(t)===0?(r?Object.keys:Di)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Fi(t){var e=t[Re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:dc(t)?2:pc(t)?3:0}function Bi(t,e){return Fi(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function n0(t,e){return Fi(t)===2?t.get(e):t[e]}function og(t,e,r){var i=Fi(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function ig(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function dc(t){return d0&&t instanceof Map}function pc(t){return p0&&t instanceof Set}function yo(t){return t.o||t.t}function uc(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sg(t);delete e[Re];for(var r=Di(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function fc(t,e){return e===void 0&&(e=!1),hc(t)||Zr(t)||!ur(t)||(Fi(t)>1&&(t.set=t.add=t.clear=t.delete=a0),Object.freeze(t),e&&Xo(t,function(r,i){return fc(i,!0)},!0)),t}function a0(){tr(2)}function hc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ar(t){var e=cc[t];return e||tr(18,t),e}function s0(t,e){cc[t]||(cc[t]=e)}function ac(){return wn}function rc(t,e){e&&(Ar("Patches"),t.u=[],t.s=[],t.v=e)}function Pa(t){sc(t),t.p.forEach(l0),t.p=null}function sc(t){t===wn&&(wn=t.l)}function Qm(t){return wn={p:[],l:wn,h:t,m:!0,_:0}}function l0(t){var e=t[Re];e.i===0||e.i===1?e.j():e.g=!0}function oc(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Ar("ES5").S(e,t,i),i?(r[Re].P&&(Pa(e),tr(4)),ur(t)&&(t=_a(e,t),e.l||Na(e,t)),e.u&&Ar("Patches").M(r[Re].t,t,e.u,e.s)):t=_a(e,r,[]),Pa(e),e.u&&e.v(e.u,e.s),t!==ag?t:void 0}function _a(t,e,r){if(hc(e))return e;var i=e[Re];if(!i)return Xo(e,function(l,u){return Ym(t,i,e,l,u,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Na(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=uc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Xo(a,function(l,u){return Ym(t,i,n,l,u,r,s)}),Na(t,n,!1),r&&t.u&&Ar("Patches").N(i,r,t.u,t.s)}return i.o}function Ym(t,e,r,i,n,a,s){if(Zr(n)){var l=_a(t,n,a&&e&&e.i!==3&&!Bi(e.R,i)?a.concat(i):void 0);if(og(r,i,l),!Zr(l))return;t.m=!1}else s&&r.add(n);if(ur(n)&&!hc(n)){if(!t.h.D&&t._<1)return;_a(t,n),e&&e.A.l||Na(t,n)}}function Na(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&fc(e,r)}function ic(t,e){var r=t[Re];return(r?yo(r):t)[e]}function Xm(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function nc(t){t.o||(t.o=uc(t.t))}function lc(t,e,r){var i=dc(e)?Ar("MapSet").F(e,r):pc(e)?Ar("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:ac(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=l,h=En;s&&(u=[l],h=On);var y=Proxy.revocable(u,h),g=y.revoke,x=y.proxy;return l.k=x,l.j=g,x}(e,r):Ar("ES5").J(e,r);return(r?r.A:ac()).p.push(i),i}function c0(t){return Zr(t)||tr(22,t),function e(r){if(!ur(r))return r;var i,n=r[Re],a=Fi(r);if(n){if(!n.P&&(n.i<4||!Ar("ES5").K(n)))return n.t;n.I=!0,i=Jm(r,a),n.I=!1}else i=Jm(r,a);return Xo(i,function(s,l){n&&n0(n.t,s)===l||og(i,s,e(l))}),a===3?new Set(i):i}(t)}function Jm(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return uc(t)}function ng(){function t(s,l){var u=a[s];return u?u.enumerable=l:a[s]=u={configurable:!0,enumerable:l,get:function(){var h=this[Re];return En.get(h,s)},set:function(h){var y=this[Re];En.set(y,s,h)}},u}function e(s){for(var l=s.length-1;l>=0;l--){var u=s[l][Re];if(!u.P)switch(u.i){case 5:i(u)&&bo(u);break;case 4:r(u)&&bo(u)}}}function r(s){for(var l=s.t,u=s.k,h=Di(u),y=h.length-1;y>=0;y--){var g=h[y];if(g!==Re){var x=l[g];if(x===void 0&&!Bi(l,g))return!0;var w=u[g],O=w&&w[Re];if(O?O.t!==x:!ig(w,x))return!0}}var A=!!l[Re];return h.length!==Di(l).length+(A?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var h=0;h<l.length;h++)if(!l.hasOwnProperty(h))return!0;return!1}function n(s){s.g&&tr(3,JSON.stringify(yo(s)))}var a={};s0("ES5",{J:function(s,l){var u=Array.isArray(s),h=function(g,x){if(g){for(var w=Array(x.length),O=0;O<x.length;O++)Object.defineProperty(w,""+O,t(O,!0));return w}var A=sg(x);delete A[Re];for(var _=Di(A),$=0;$<_.length;$++){var P=_[$];A[P]=t(P,g||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(x),A)}(u,s),y={i:u?5:4,A:l?l.A:ac(),P:!1,I:!1,R:{},l,t:s,k:h,o:null,g:!1,C:!1};return Object.defineProperty(h,Re,{value:y,writable:!0}),h},S:function(s,l,u){u?Zr(l)&&l[Re].A===s&&e(s.p):(s.u&&function h(y){if(y&&typeof y=="object"){var g=y[Re];if(g){var x=g.t,w=g.k,O=g.R,A=g.i;if(A===4)Xo(w,function(te){te!==Re&&(x[te]!==void 0||Bi(x,te)?O[te]||h(w[te]):(O[te]=!0,bo(g)))}),Xo(x,function(te){w[te]!==void 0||Bi(w,te)||(O[te]=!1,bo(g))});else if(A===5){if(i(g)&&(bo(g),O.length=!0),w.length<x.length)for(var _=w.length;_<x.length;_++)O[_]=!1;else for(var $=x.length;$<w.length;$++)O[$]=!0;for(var P=Math.min(w.length,x.length),H=0;H<P;H++)w.hasOwnProperty(H)||(O[H]=!0),O[H]===void 0&&h(w[H])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var eg,wn,mc,d0,p0,tg,ag,rg,Re,u0,Di,sg,cc,En,On,f0,Nt,h0,GL,KL,qL,ZL,QL,YL,Ba,Da=p(()=>{mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",d0=typeof Map<"u",p0=typeof Set<"u",tg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ag=mc?Symbol.for("immer-nothing"):((eg={})["immer-nothing"]=!0,eg),rg=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Re=mc?Symbol.for("immer-state"):"__$immer_state",u0=""+Object.prototype.constructor,Di=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sg=Object.getOwnPropertyDescriptors||function(t){var e={};return Di(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},cc={},En={get:function(t,e){if(e===Re)return t;var r=yo(t);if(!Bi(r,e))return function(n,a,s){var l,u=Xm(a,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!ur(i)?i:i===ic(t.t,e)?(nc(t),t.o[e]=lc(t.A.h,i,t)):i},has:function(t,e){return e in yo(t)},ownKeys:function(t){return Reflect.ownKeys(yo(t))},set:function(t,e,r){var i=Xm(yo(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ic(yo(t),e),a=n?.[Re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ig(r,n)&&(r!==void 0||Bi(t.t,e)))return!0;nc(t),bo(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ic(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,nc(t),bo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yo(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){tr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){tr(12)}},On={};Xo(En,function(t,e){On[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),On.deleteProperty=function(t,e){return On.set.call(this,t,e,void 0)},On.set=function(t,e,r){return En.set.call(this,t[0],e,r,t[0])};f0=function(){function t(r){var i=this;this.O=tg,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var u=i;return function(A){var _=this;A===void 0&&(A=l);for(var $=arguments.length,P=Array($>1?$-1:0),H=1;H<$;H++)P[H-1]=arguments[H];return u.produce(A,function(te){var ie;return(ie=a).call.apply(ie,[_,te].concat(P))})}}var h;if(typeof a!="function"&&tr(6),s!==void 0&&typeof s!="function"&&tr(7),ur(n)){var y=Qm(i),g=lc(i,n,void 0),x=!0;try{h=a(g),x=!1}finally{x?Pa(y):sc(y)}return typeof Promise<"u"&&h instanceof Promise?h.then(function(A){return rc(y,s),oc(A,y)},function(A){throw Pa(y),A}):(rc(y,s),oc(h,y))}if(!n||typeof n!="object"){if((h=a(n))===void 0&&(h=n),h===ag&&(h=void 0),i.D&&fc(h,!0),s){var w=[],O=[];Ar("Patches").M(n,h,w,O),s(w,O)}return h}tr(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(h){for(var y=arguments.length,g=Array(y>1?y-1:0),x=1;x<y;x++)g[x-1]=arguments[x];return i.produceWithPatches(h,function(w){return n.apply(void 0,[w].concat(g))})};var s,l,u=i.produce(n,a,function(h,y){s=h,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(h){return[h,s,l]}):[u,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ur(r)||tr(8),Zr(r)&&(r=c0(r));var i=Qm(this),n=lc(this,r,void 0);return n[Re].C=!0,sc(i),n},e.finishDraft=function(r,i){var n=r&&r[Re],a=n.A;return rc(a,i),oc(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!tg&&tr(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Ar("Patches").$;return Zr(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Nt=new f0,h0=Nt.produce,GL=Nt.produceWithPatches.bind(Nt),KL=Nt.setAutoFreeze.bind(Nt),qL=Nt.setUseProxies.bind(Nt),ZL=Nt.applyPatches.bind(Nt),QL=Nt.createDraft.bind(Nt),YL=Nt.finishDraft.bind(Nt),Ba=h0});function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}var gc=p(()=>{});function lg(t,e){if(Jo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Jo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cg=p(()=>{gc()});function dg(t){var e=lg(t,"string");return Jo(e)=="symbol"?e:e+""}var pg=p(()=>{gc();cg()});function ug(t,e,r){return(e=dg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fg=p(()=>{pg()});function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function yc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(i){ug(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var mg=p(()=>{fg()});function pt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function m0(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xc(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(pt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(pt(1));return r(xc)(t,e)}if(typeof t!="function")throw new Error(pt(2));var n=t,a=e,s=[],l=s,u=!1;function h(){l===s&&(l=s.slice())}function y(){if(u)throw new Error(pt(3));return a}function g(A){if(typeof A!="function")throw new Error(pt(4));if(u)throw new Error(pt(5));var _=!0;return h(),l.push(A),function(){if(_){if(u)throw new Error(pt(6));_=!1,h();var P=l.indexOf(A);l.splice(P,1),s=null}}}function x(A){if(!m0(A))throw new Error(pt(7));if(typeof A.type>"u")throw new Error(pt(8));if(u)throw new Error(pt(9));try{u=!0,a=n(a,A)}finally{u=!1}for(var _=s=l,$=0;$<_.length;$++){var P=_[$];P()}return A}function w(A){if(typeof A!="function")throw new Error(pt(10));n=A,x({type:Fa.REPLACE})}function O(){var A,_=g;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(pt(11));function H(){P.next&&P.next(y())}H();var te=_(H);return{unsubscribe:te}}},A[gg]=function(){return this},A}return x({type:Fa.INIT}),i={dispatch:x,subscribe:g,getState:y,replaceReducer:w},i[gg]=O,i}function g0(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Fa.INIT});if(typeof i>"u")throw new Error(pt(12));if(typeof r(void 0,{type:Fa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pt(13))})}function yg(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{g0(r)}catch(u){l=u}return function(h,y){if(h===void 0&&(h={}),l)throw l;if(0)var g;for(var x=!1,w={},O=0;O<a.length;O++){var A=a[O],_=r[A],$=h[A],P=_($,y);if(typeof P>"u"){var H=y&&y.type;throw new Error(pt(14))}w[A]=P,x=x||P!==$}return x=x||a.length!==Object.keys(h).length,x?w:h}}function Mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function bg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(pt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(u){return u(s)});return a=Mi.apply(void 0,l)(n.dispatch),yc(yc({},n),{},{dispatch:a})}}}var gg,bc,Fa,Ma=p(()=>{mg();gg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fa={INIT:"@@redux/INIT"+bc(),REPLACE:"@@redux/REPLACE"+bc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bc()}}});function xg(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var vg,vc,Sg=p(()=>{vg=xg();vg.withExtraArgument=xg;vc=vg});function E0(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function wc(t){return ur(t)?Ba(t,function(){}):t}function I0(t){return typeof t=="boolean"}function L0(){return function(e){return k0(e)}}function k0(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new A0;if(r&&(I0(r)?l.push(vc):l.push(vc.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var h}return l}function Rg(t){var e=L0(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,u=l===void 0?!0:l,h=r.preloadedState,y=h===void 0?void 0:h,g=r.enhancers,x=g===void 0?void 0:g,w;if(typeof n=="function")w=n;else if(E0(n))w=yg(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!Cc&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cc&&O.some(function(te){return typeof te!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=bg.apply(void 0,O),_=Mi;u&&(_=w0(xo({trace:!Cc},typeof u=="object"&&u)));var $=new R0(A),P=$;Array.isArray(x)?P=zi([A],x):typeof x=="function"&&(P=x($));var H=_.apply(void 0,P);return xc(w,y,H)}function vo(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return xo(xo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Ig(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function T0(t){return typeof t=="function"}function $0(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ig(e):[e,r,i],a=n[0],s=n[1],l=n[2],u;if(T0(t))u=function(){return wc(t())};else{var h=wc(t);u=function(){return h}}function y(g,x){g===void 0&&(g=u());var w=zi([a[x.type]],s.filter(function(O){var A=O.matcher;return A(x)}).map(function(O){var A=O.reducer;return A}));return w.filter(function(O){return!!O}).length===0&&(w=[l]),w.reduce(function(O,A){if(A)if(Zr(O)){var _=O,$=A(_,x);return $===void 0?O:$}else{if(ur(O))return Ba(O,function(P){return A(P,x)});var $=A(O,x);if($===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return $}return O},g)}return y.getInitialState=u,y}function P0(t,e){return t+"/"+e}function Lg(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:wc(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(y){var g=i[y],x=P0(e,y),w,O;"reducer"in g?(w=g.reducer,O=g.prepare):w=g,a[y]=w,s[x]=w,l[y]=O?vo(x,O):vo(x)});function u(){var y=typeof t.extraReducers=="function"?Ig(t.extraReducers):[t.extraReducers],g=y[0],x=g===void 0?{}:g,w=y[1],O=w===void 0?[]:w,A=y[2],_=A===void 0?void 0:A,$=xo(xo({},x),s);return $0(r,function(P){for(var H in $)P.addCase(H,$[H]);for(var te=0,ie=O;te<ie.length;te++){var Ot=ie[te];P.addMatcher(Ot.matcher,Ot.reducer)}_&&P.addDefaultCase(_)})}var h;return{name:e,reducer:function(y,g){return h||(h=u()),h(y,g)},actions:l,caseReducers:a,getInitialState:function(){return h||(h=u()),h.getInitialState()}}}function F0(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function M0(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ag,y0,zi,b0,x0,v0,Cg,S0,C0,Og,xo,Sc,O0,w0,mk,A0,R0,Cc,_0,N0,B0,Oc,wg,D0,xk,kg,Tg,$g,vk,Sk,Ck,Ok,Ec,wk,Ek,Ak,Eg,Rk,z0,Ik,Pg=p(()=>{Da();Ma();Ma();Ma();Sg();Da();Da();Ag=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),y0=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(y){return u([h,y])}}function u(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=h[0]&2?n.return:h[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,h[1])).done)return a;switch(n=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,n=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){r.label=h[1];break}if(h[0]===6&&r.label<a[1]){r.label=a[1],a=h;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(h);break}a[2]&&r.ops.pop(),r.trys.pop();continue}h=e.call(t,r)}catch(y){h=[6,y],n=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},zi=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},b0=Object.defineProperty,x0=Object.defineProperties,v0=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertySymbols,S0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,Og=function(t,e,r){return e in t?b0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},xo=function(t,e){for(var r in e||(e={}))S0.call(e,r)&&Og(t,r,e[r]);if(Cg)for(var i=0,n=Cg(e);i<n.length;i++){var r=n[i];C0.call(e,r)&&Og(t,r,e[r])}return t},Sc=function(t,e){return x0(t,v0(e))},O0=function(t,e,r){return new Promise(function(i,n){var a=function(u){try{l(r.next(u))}catch(h){n(h)}},s=function(u){try{l(r.throw(u))}catch(h){n(h)}},l=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};l((r=r.apply(t,e)).next())})},w0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mi:Mi.apply(null,arguments)},mk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};A0=function(t){Ag(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zi([void 0],r[0].concat(this)))):new(e.bind.apply(e,zi([void 0],r.concat(this))))},e}(Array),R0=function(t){Ag(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zi([void 0],r[0].concat(this)))):new(e.bind.apply(e,zi([void 0],r.concat(this))))},e}(Array);Cc=!0;_0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",N0=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=_0[Math.random()*64|0];return e},B0=["name","message","stack","code"],Oc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),wg=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),D0=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=B0;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},xk=function(){function t(e,r,i){var n=vo(e+"/fulfilled",function(y,g,x,w){return{payload:y,meta:Sc(xo({},w||{}),{arg:x,requestId:g,requestStatus:"fulfilled"})}}),a=vo(e+"/pending",function(y,g,x){return{payload:void 0,meta:Sc(xo({},x||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=vo(e+"/rejected",function(y,g,x,w,O){return{payload:w,error:(i&&i.serializeError||D0)(y||"Rejected"),meta:Sc(xo({},O||{}),{arg:x,requestId:g,rejectedWithValue:!!w,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function h(y){return function(g,x,w){var O=i?.idGenerator?i.idGenerator(y):N0(),A=new u,_,$=!1;function P(te){_=te,A.abort()}var H=function(){return O0(this,null,function(){var te,ie,Ot,xr,mt,vr,Xe;return y0(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),xr=(te=i?.condition)==null?void 0:te.call(i,y,{getState:x,extra:w}),M0(xr)?[4,xr]:[3,2];case 1:xr=b.sent(),b.label=2;case 2:if(xr===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return $=!0,mt=new Promise(function(C,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:_||"Aborted"})})}),g(a(O,y,(ie=i?.getPendingMeta)==null?void 0:ie.call(i,{requestId:O,arg:y},{getState:x,extra:w}))),[4,Promise.race([mt,Promise.resolve(r(y,{dispatch:g,getState:x,extra:w,requestId:O,signal:A.signal,abort:P,rejectWithValue:function(C,D){return new Oc(C,D)},fulfillWithValue:function(C,D){return new wg(C,D)}})).then(function(C){if(C instanceof Oc)throw C;return C instanceof wg?n(C.payload,O,y,C.meta):n(C,O,y)})])];case 3:return Ot=b.sent(),[3,5];case 4:return vr=b.sent(),Ot=vr instanceof Oc?s(null,O,y,vr.payload,vr.meta):s(vr,O,y),[3,5];case 5:return Xe=i&&!i.dispatchConditionRejection&&s.match(Ot)&&Ot.meta.condition,Xe||g(Ot),[2,Ot]}})})}();return Object.assign(H,{abort:P,requestId:O,arg:y,unwrap:function(){return H.then(F0)}})}}return Object.assign(h,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();kg="listener",Tg="completed",$g="cancelled",vk="task-"+$g,Sk="task-"+Tg,Ck=kg+"-"+$g,Ok=kg+"-"+Tg,Ec="listenerMiddleware",wk=vo(Ec+"/add"),Ek=vo(Ec+"/removeAll"),Ak=vo(Ec+"/remove"),Rk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Eg||(Eg=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},z0=function(t){return function(e){setTimeout(e,t)}},Ik=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:z0(10);ng()});var U0,za,_g=p(()=>{"use strict";_i();U0=Aa(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),za=class extends U0(Object){}});var Ng,Bg=p(()=>{"use strict";Pg();$a();tc();_g();window.ftReduxStores||(window.ftReduxStores={});Ng=class t extends za{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ta(a))return a;if(n==null)return;let s=Lg({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Rg({reducer:(u,h)=>h.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof h.type=="string"&&h.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...h.overwrites}:s.reducer(u,h)});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ra;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let u=s,h=a[u];return h?(...y)=>{let g=h(...y.map(n));return this.reduxStore.dispatch(g),g}:y=>{this.setState({[u]:n(y)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Dg=p(()=>{"use strict";_i()});var Fg=p(()=>{"use strict";Tm();tc();Zm();Bg();$a();Dg()});var Ua,Mg=p(()=>{"use strict";Ua=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var Ac,zg,Ha,Xk,Ug=p(()=>{"use strict";Ac=f(W());Fg();Mg();ct();zg=f(v()),Ha=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xk=(0,zg.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Ua.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ha([(0,Ac.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ha([(0,Ac.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ha([ec({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ha([ec({store:k.name})],e.prototype,"uiLocale",void 0),e})});var Wa,Hg=p(()=>{"use strict";ct();fo();Wa=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var Va,Wg=p(()=>{"use strict";fo();ct();Va=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var ja,H0,W0,Bt,Rc,Ic,Ga=p(()=>{"use strict";Zo();ja=f(v());Kl();Hl();ct();Hg();Wg();H0="ft-user-assets",W0={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(_t).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;switch(r){case _t.BOOKMARKS:t.bookmarks?t.bookmarks.push(n):t.bookmarks=[n];break;case _t.SEARCHES:t.savedSearches?t.savedSearches.push(n):t.savedSearches=[n];break}let a=t.assetCounts.allAsset[r];if(a!==void 0&&(t.assetCounts.allAsset[r]=a+1),r===_t.BOOKMARKS&&i!==void 0){let s=t.assetCounts.bookmarkByMap[i];s!==void 0&&(t.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(t,e)=>{var r,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case _t.BOOKMARKS:t.bookmarks=(r=t.bookmarks)===null||r===void 0?void 0:r.filter(u=>u.id!==s);break;case _t.SEARCHES:t.savedSearches=(i=t.savedSearches)===null||i===void 0?void 0:i.filter(u=>u.id!==s);break}let l=t.assetCounts.allAsset[n];if(l!==void 0&&l>0&&(t.assetCounts.allAsset[n]=l-1),n===_t.BOOKMARKS&&a!==void 0){let u=t.assetCounts.bookmarkByMap[a];u!==void 0&&u>0&&(t.assetCounts.bookmarkByMap[a]=u-1)}}},Bt=ja.FtReduxStore.get({name:H0,reducers:W0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(_t).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rc=class{constructor(e=new Wa,r=new Va){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ga,this.savedSearchesService=new Ca,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,ja.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Bt.actions.clearAssetCount(),Bt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Bt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Bt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Bt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Bt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Bt.getState().assetCounts.bookmarkByMap).length!==0;e===_t.BOOKMARKS&&r&&Bt.actions.clearBookmarkCountByMap(),Bt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Bt.actions.bookmarks(r)}}},Ic=new Rc;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ic)});var Vg=p(()=>{"use strict";Zo();Ga()});var jg=p(()=>{"use strict"});var Gg,Rr=p(()=>{"use strict";Gg=f(v());Jl();Ug();ct();Ga();Vg();Xl();Ml();jg();Jl();(0,Gg.customElement)("ft-app-context")(Se)});var Lc,Kg,qg=p(()=>{"use strict";Lc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Kg=new Lc});var Ui,Qg,V0,j0,G0,Yg,Ka,An,It,Zg,qa,Za=p(()=>{"use strict";Ui=f(v());Rr();Qg=f(W());qg();V0=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},j0=Symbol("i18nAttributes"),G0=Symbol("i18nListAttributes"),Yg=Symbol("i18nProperties"),Ka=Symbol("i18nContexts"),An=Symbol("i18nUnsubs"),It=(0,Ui.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ba:Li}i18n(a){let{context:s,key:l,message:u}=a,{custom:h,args:y,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,h);let x=y??(g?g(this):[]);return this.getI18nService(h).resolveMessage(s,l,...x)}return u}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Kg.isI18nKey(a)){let[l,u]=a.split(".");return this.i18n({custom:!0,context:l,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,u)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,u)=>{var h;return((h=u?.context)===null||h===void 0?void 0:h.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let u=this,h=(y,g,x)=>x?.context&&x.key&&a(y,g,x)?{...x,message:this.i18n({context:x.context,key:x.key,custom:x.custom,...y})}:x;(s=this[j0])===null||s===void 0||s.forEach((y,g)=>u[g]=h(y,g,u[g])),(l=this[G0])===null||l===void 0||l.forEach((y,g)=>{var x;return u[g]=(x=u[g])===null||x===void 0?void 0:x.map(w=>h(y,g,w))})}updateI18nProperties(a){var s;(s=this[Yg])===null||s===void 0||s.forEach((l,u)=>{a(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let u=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Ka].set(u,{isCustomContext:l}),this[An].has(u)||this[An].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,s)}hasI18nContext(a){return this[Ka].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ka].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[An].forEach(a=>a()),this[An].clear()}}return e=Ka,r=An,V0([(0,Qg.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Zg=class extends It(Ui.FtLitElement){},qa=class extends It(Ui.FtLitElementRedux){}});var Qa,Ya,Xa,Rn,fr,kc=p(()=>{"use strict";Qa=f(R()),Ya=f(W()),Xa=f(v());Fl();Za();Rr();Rn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fr=class extends qa{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Qa.nothing:Qa.html`
1165
1165
  <span class="ft-i18n">
1166
1166
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1167
1167
  </span>
1168
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};fr.elementDefinitions={};fr.styles=Th;Rn([(0,Xa.redux)()],fr.prototype,"editorMode",void 0);Rn([(0,Ya.property)()],fr.prototype,"context",void 0);Rn([(0,Ya.property)()],fr.prototype,"key",void 0);Rn([(0,Xa.jsonProperty)([])],fr.prototype,"args",void 0);Rn([(0,Ya.property)()],fr.prototype,"defaultMessage",void 0)});var Ir,Xg=p(()=>{"use strict";Rr();Ir=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ba:Li}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Jg=p(()=>{"use strict";Za()});var ey=p(()=>{"use strict"});var ty,hr=p(()=>{"use strict";ty=f(v());kc();Xg();Za();Jg();Fl();ey();kc();(0,ty.customElement)("ft-i18n")(fr)});function ny(t){var e,r,i,n,a;return((n=(r=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.openMode)===Sa.EXTERNAL}function ts(t){var e,r,i,n,a;if(ny(t))return(n=(r=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.originUrl;switch(t.type){case Jt.MAP:return t.map.readerUrl;case Jt.DOCUMENT:return t.document.viewerUrl;case Jt.TOPIC:return t.topic.readerUrl}return""}function ay(t,e){return jo(e&&ny(t)?"_blank":void 0)}var Pc=p(()=>{"use strict";Zo();aa()});var Wi,Vi,Nc=p(()=>{"use strict";Wi=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Vi=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}}});var dy,Z0,Bc,Dc=p(()=>{"use strict";dy=f(R()),Z0={},Bc=dy.css`
1169
- `});var py=p(()=>{"use strict"});var rs,Q0,uy,fy=p(()=>{"use strict";rs=f(v()),Q0={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var r;let i=+((r=e.payload)!==null&&r!==void 0?r:20);t.request.paging.perPage=isNaN(i)?20:(0,rs.minmax)(1,i,1e3)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestSortId:(t,e)=>{t.request.sortId=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]}},uy=t=>rs.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:Q0})});var os,hy=p(()=>{"use strict";Rr();os=class extends dt{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Dt,my,Ln,ji,Fc=p(()=>{"use strict";Dt=f(v());fy();Zo();hy();my=t=>t.request.virtualField===$i.TITLE_ONLY&&t.request.scope===Pi.DOCUMENTS,Ln=class t extends Event{constructor(){super(t.eventName)}};Ln.eventName="search-context-clear-all-filters";ji=class t{static build(e,r){return new t(uy(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Dt.Debouncer(10),this.searchDebouncer=new Dt.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new Dt.Debouncer(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=r??new os,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Dt.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Dt.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var r;let i=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var r;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(r=this.sortOptions.find(n=>n.id==e))!==null&&r!==void 0?r:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField($i.TITLE_ONLY),this.store.actions.setRequestScope(Pi.DOCUMENTS)):(this.store.actions.setRequestVirtualField($i.EVERYWHERE),this.store.actions.setRequestScope(Pi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return my(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Ln)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(n=>n!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,n,a;try{if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,Dt.cancelable)(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof Dt.CanceledPromiseError||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var r;try{(r=this.cancelableSuggest)===null||r===void 0||r.cancel(),this.cancelableSuggest=(0,Dt.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Dt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var is,yy,Y0,zc,gy,Mc,X0,J0,tr,ti=p(()=>{"use strict";is=f(v()),yy=f(W());py();Fc();Y0=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},gy=Symbol("registerInterval"),Mc=Symbol("registerAttempts"),X0=40,J0=(0,is.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Mc]=0,this[gy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Mc]>X0?window.clearInterval(this[gy]):(this[Mc]++,this.dispatchEvent(new zc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Y0([(0,yy.state)()],e.prototype,"stateManager",void 0),e}),tr=class extends J0(is.FtLitElementRedux){}});function kn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Tn(t){var e;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values}}var Uc=p(()=>{"use strict"});var by,ns,xy=p(()=>{"use strict";by=f(v());Zo();Rr();Uc();ns=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=r??new Oa,this.resultsWatcher=(0,by.watch)(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=k.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}convertToAnalyticsMap(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=k.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:kn(e.metadataFilters),facets:e.metadataFilters.map(n=>Tn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Jt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:kn(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Jt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:kn(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Jt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ti.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Jt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ti.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Jt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ti.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var vy,Lr,rr,ot,as,ss,ls,Ie,Hc=p(()=>{"use strict";vy=f(R()),Lr=f(W()),rr=f(v());Dc();ti();Rr();Ga();xy();ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},as=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ss=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ls=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},Ie=class extends rr.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=ji.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ns(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(k)}render(){return vy.html`
1168
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};fr.elementDefinitions={};fr.styles=Th;Rn([(0,Xa.redux)()],fr.prototype,"editorMode",void 0);Rn([(0,Ya.property)()],fr.prototype,"context",void 0);Rn([(0,Ya.property)()],fr.prototype,"key",void 0);Rn([(0,Xa.jsonProperty)([])],fr.prototype,"args",void 0);Rn([(0,Ya.property)()],fr.prototype,"defaultMessage",void 0)});var Ir,Xg=p(()=>{"use strict";Rr();Ir=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ba:Li}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Jg=p(()=>{"use strict";Za()});var ey=p(()=>{"use strict"});var ty,hr=p(()=>{"use strict";ty=f(v());kc();Xg();Za();Jg();Fl();ey();kc();(0,ty.customElement)("ft-i18n")(fr)});function ny(t){var e,r,i,n,a;return((n=(r=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.openMode)===Sa.EXTERNAL}function ts(t){var e,r,i,n,a;if(ny(t))return(n=(r=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.originUrl;switch(t.type){case er.MAP:return t.map.readerUrl;case er.DOCUMENT:return t.document.viewerUrl;case er.TOPIC:return t.topic.readerUrl}return""}function ay(t,e){return jo(e&&ny(t)?"_blank":void 0)}var Pc=p(()=>{"use strict";Zo();aa()});var Wi,Vi,Nc=p(()=>{"use strict";Wi=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Vi=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}}});var dy,Z0,Bc,Dc=p(()=>{"use strict";dy=f(R()),Z0={},Bc=dy.css`
1169
+ `});var py=p(()=>{"use strict"});var rs,Q0,uy,fy=p(()=>{"use strict";rs=f(v()),Q0={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var r;let i=+((r=e.payload)!==null&&r!==void 0?r:20);t.request.paging.perPage=isNaN(i)?20:(0,rs.minmax)(1,i,1e3)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestSortId:(t,e)=>{t.request.sortId=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]}},uy=t=>rs.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:Q0})});var os,hy=p(()=>{"use strict";Rr();os=class extends dt{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Dt,my,Ln,ji,Fc=p(()=>{"use strict";Dt=f(v());fy();Zo();hy();my=t=>t.request.virtualField===$i.TITLE_ONLY&&t.request.scope===Pi.DOCUMENTS,Ln=class t extends Event{constructor(){super(t.eventName)}};Ln.eventName="search-context-clear-all-filters";ji=class t{static build(e,r){return new t(uy(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Dt.Debouncer(10),this.searchDebouncer=new Dt.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new Dt.Debouncer(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=r??new os,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Dt.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Dt.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var r;let i=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var r;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(r=this.sortOptions.find(n=>n.id==e))!==null&&r!==void 0?r:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField($i.TITLE_ONLY),this.store.actions.setRequestScope(Pi.DOCUMENTS)):(this.store.actions.setRequestVirtualField($i.EVERYWHERE),this.store.actions.setRequestScope(Pi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return my(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Ln)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(n=>n!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,n,a;try{if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,Dt.cancelable)(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof Dt.CanceledPromiseError||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var r;try{(r=this.cancelableSuggest)===null||r===void 0||r.cancel(),this.cancelableSuggest=(0,Dt.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Dt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var is,yy,Y0,zc,gy,Mc,X0,J0,rr,ti=p(()=>{"use strict";is=f(v()),yy=f(W());py();Fc();Y0=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},gy=Symbol("registerInterval"),Mc=Symbol("registerAttempts"),X0=40,J0=(0,is.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Mc]=0,this[gy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Mc]>X0?window.clearInterval(this[gy]):(this[Mc]++,this.dispatchEvent(new zc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Y0([(0,yy.state)()],e.prototype,"stateManager",void 0),e}),rr=class extends J0(is.FtLitElementRedux){}});function kn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Tn(t){var e;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values}}var Uc=p(()=>{"use strict"});var by,ns,xy=p(()=>{"use strict";by=f(v());Zo();Rr();Uc();ns=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=r??new Oa,this.resultsWatcher=(0,by.watch)(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=k.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}convertToAnalyticsMap(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=k.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:kn(e.metadataFilters),facets:e.metadataFilters.map(n=>Tn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==er.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:kn(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==er.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:qo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:kn(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case er.MAP:return{id:e.map.mapId,title:e.map.title,type:Ti.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case er.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ti.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case er.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ti.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var vy,Lr,or,ot,as,ss,ls,Ie,Hc=p(()=>{"use strict";vy=f(R()),Lr=f(W()),or=f(v());Dc();ti();Rr();Ga();xy();ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},as=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ss=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ls=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},Ie=class extends or.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=ji.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ns(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(k)}render(){return vy.html`
1170
1170
  <slot @register-ft-search-component="${this.registerComponent}" @ft-search-result-click="${this.onResultClicked}"
1171
1171
  @ft-search-result-open-context-menu="${this.onResultContextMenuOpened}"></slot>
1172
- `}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ss(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ls(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new as(e))}reloadSavedSearches(){Ic.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Ie.elementDefinitions={};Ie.styles=Bc;ot([(0,rr.redux)({store:k.name})],Ie.prototype,"session",void 0);ot([(0,Lr.property)()],Ie.prototype,"query",void 0);ot([(0,Lr.property)()],Ie.prototype,"contentLocale",void 0);ot([(0,Lr.property)({type:Number})],Ie.prototype,"pageSize",void 0);ot([(0,Lr.property)({type:Boolean})],Ie.prototype,"searchInDocumentTitlesOnly",void 0);ot([(0,Lr.property)()],Ie.prototype,"scope",void 0);ot([(0,Lr.property)()],Ie.prototype,"virtualField",void 0);ot([(0,Lr.property)({type:Boolean})],Ie.prototype,"ignoreEmptyQuery",void 0);ot([(0,rr.redux)({store:k.name})],Ie.prototype,"openExternalDocumentInNewTab",void 0);ot([(0,rr.jsonProperty)([])],Ie.prototype,"filters",void 0);ot([(0,Lr.property)()],Ie.prototype,"sortId",void 0);ot([(0,rr.jsonProperty)([])],Ie.prototype,"sort",void 0);ot([(0,rr.jsonProperty)({})],Ie.prototype,"otherQueryParams",void 0);ot([(0,rr.redux)({store:"search"})],Ie.prototype,"request",void 0);ot([(0,rr.redux)({store:"search"})],Ie.prototype,"paging",void 0);ot([(0,rr.redux)({store:"search",selector:t=>t.spellcheck})],Ie.prototype,"autocorrect",void 0);ot([(0,Lr.property)({attribute:!1})],Ie.prototype,"searchServiceProvider",void 0)});var Sy=p(()=>{"use strict"});var Oy={};No(Oy,{ClearAllFiltersEvent:()=>Ln,FtSearchContext:()=>Ie,FtSearchContextCssVariables:()=>Z0,FtSearchStateManager:()=>ji,LoadErrorEvent:()=>as,SearchRequestChangeEvent:()=>ss,SearchResultsChangeEvent:()=>ls,convertMetadataFilterToAnalyticsFacet:()=>Tn,getAnalyticsLastUpdate:()=>kn,searchInDocumentTitlesOnlySelector:()=>my,styles:()=>Bc});var Cy,wy=p(()=>{"use strict";Cy=f(v());Hc();Dc();Sy();Hc();Fc();Uc();(0,Cy.customElement)("ft-search-context")(Ie)});var So,Wc=p(()=>{"use strict";hr();So=Ir.build("designedSearchInput")});var Qr=_o((z$,Ey)=>{Ey.exports=ftGlobals.litRepeat});var or,Vc=p(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(or||(or={}))});var Ay,Ry,jc=p(()=>{"use strict";Ay=f(R()),Ry=Ay.css`
1172
+ `}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ss(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ls(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new as(e))}reloadSavedSearches(){Ic.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Ie.elementDefinitions={};Ie.styles=Bc;ot([(0,or.redux)({store:k.name})],Ie.prototype,"session",void 0);ot([(0,Lr.property)()],Ie.prototype,"query",void 0);ot([(0,Lr.property)()],Ie.prototype,"contentLocale",void 0);ot([(0,Lr.property)({type:Number})],Ie.prototype,"pageSize",void 0);ot([(0,Lr.property)({type:Boolean})],Ie.prototype,"searchInDocumentTitlesOnly",void 0);ot([(0,Lr.property)()],Ie.prototype,"scope",void 0);ot([(0,Lr.property)()],Ie.prototype,"virtualField",void 0);ot([(0,Lr.property)({type:Boolean})],Ie.prototype,"ignoreEmptyQuery",void 0);ot([(0,or.redux)({store:k.name})],Ie.prototype,"openExternalDocumentInNewTab",void 0);ot([(0,or.jsonProperty)([])],Ie.prototype,"filters",void 0);ot([(0,Lr.property)()],Ie.prototype,"sortId",void 0);ot([(0,or.jsonProperty)([])],Ie.prototype,"sort",void 0);ot([(0,or.jsonProperty)({})],Ie.prototype,"otherQueryParams",void 0);ot([(0,or.redux)({store:"search"})],Ie.prototype,"request",void 0);ot([(0,or.redux)({store:"search"})],Ie.prototype,"paging",void 0);ot([(0,or.redux)({store:"search",selector:t=>t.spellcheck})],Ie.prototype,"autocorrect",void 0);ot([(0,Lr.property)({attribute:!1})],Ie.prototype,"searchServiceProvider",void 0)});var Sy=p(()=>{"use strict"});var Oy={};No(Oy,{ClearAllFiltersEvent:()=>Ln,FtSearchContext:()=>Ie,FtSearchContextCssVariables:()=>Z0,FtSearchStateManager:()=>ji,LoadErrorEvent:()=>as,SearchRequestChangeEvent:()=>ss,SearchResultsChangeEvent:()=>ls,convertMetadataFilterToAnalyticsFacet:()=>Tn,getAnalyticsLastUpdate:()=>kn,searchInDocumentTitlesOnlySelector:()=>my,styles:()=>Bc});var Cy,wy=p(()=>{"use strict";Cy=f(v());Hc();Dc();Sy();Hc();Fc();Uc();(0,Cy.customElement)("ft-search-context")(Ie)});var So,Wc=p(()=>{"use strict";hr();So=Ir.build("designedSearchInput")});var Qr=_o((z$,Ey)=>{Ey.exports=ftGlobals.litRepeat});var ir,Vc=p(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(ir||(ir={}))});var Ay,Ry,jc=p(()=>{"use strict";Ay=f(R()),Ry=Ay.css`
1173
1173
  .ft-size-watcher--pixel {
1174
1174
  width: 0;
1175
1175
  height: 0;
@@ -1188,11 +1188,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1188
1188
  .ft-size-watcher--local .ft-size-watcher--watcher {
1189
1189
  width: 100%;
1190
1190
  }
1191
- `});var Iy,ri,cs,$n,Gc,Ft,Kc=p(()=>{"use strict";Iy=f(R()),ri=f(W()),cs=f(v());Vc();jc();$n=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ft=class extends cs.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=or.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new cs.Debouncer}render(){return Iy.html`
1191
+ `});var Iy,ri,cs,$n,Gc,Ft,Kc=p(()=>{"use strict";Iy=f(R()),ri=f(W()),cs=f(v());Vc();jc();$n=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ft=class extends cs.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ir.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new cs.Debouncer}render(){return Iy.html`
1192
1192
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
1193
1193
  <div class="ft-size-watcher--watcher"></div>
1194
1194
  </div>
1195
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=or.S:this.size<976?this.category=or.M:this.size<1024?this.category=or.L:this.size<1440?this.category=or.XL:this.category=or.XXL,this.dispatchEvent(new Gc(this.size,this.category)))},this.debounceTimeout)}};Ft.elementDefinitions={};Ft.styles=Ry;$n([(0,ri.property)({type:Number})],Ft.prototype,"debounceTimeout",void 0);$n([(0,ri.property)({type:Boolean})],Ft.prototype,"local",void 0);$n([(0,ri.property)({type:Number,reflect:!0})],Ft.prototype,"size",void 0);$n([(0,ri.property)({type:String,reflect:!0})],Ft.prototype,"category",void 0);$n([(0,ri.query)(".ft-size-watcher--watcher")],Ft.prototype,"watcher",void 0)});var Ly,ky=p(()=>{"use strict";Ly=f(v());Kc();Kc();jc();Vc();(0,Ly.customElement)("ft-size-watcher")(Ft)});function ds(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Ty(t){return ds(t).split("|").pop()}function $y(t){return ds(t).split("|").join(" > ")}function Py(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Py(r,t.selected)),value:t.value}}function _y(t){return(0,qc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Zc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Py(e,!1))}}function Ny(t){return(0,qc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var qc,Qc=p(()=>{"use strict";qc=f(v())});var it,By,Mt,Dy,Yc=p(()=>{"use strict";it=f(v()),By=f(R());Be();yt();Mt={textColor:it.FtCssVariableFactory.extend("--ft-checkbox-text-color","",it.designSystemVariables.colorOnSurfaceHigh),fontSize:it.FtCssVariableFactory.extend("--ft-checkbox-font-size","",T.fontSize),activeColor:it.FtCssVariableFactory.extend("--ft-checkbox-active-color","",it.designSystemVariables.colorPrimary),checkColor:it.FtCssVariableFactory.extend("--ft-checkbox-check-color","",it.designSystemVariables.colorOnPrimary),borderColor:it.FtCssVariableFactory.extend("--ft-checkbox-border-color","",it.designSystemVariables.colorOnSurfaceMedium),disabledColor:it.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",it.designSystemVariables.colorOnSurfaceDisabled),errorColor:it.FtCssVariableFactory.extend("--ft-checkbox-error-color","",it.designSystemVariables.colorError)},Dy=By.css`
1195
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=ir.S:this.size<976?this.category=ir.M:this.size<1024?this.category=ir.L:this.size<1440?this.category=ir.XL:this.category=ir.XXL,this.dispatchEvent(new Gc(this.size,this.category)))},this.debounceTimeout)}};Ft.elementDefinitions={};Ft.styles=Ry;$n([(0,ri.property)({type:Number})],Ft.prototype,"debounceTimeout",void 0);$n([(0,ri.property)({type:Boolean})],Ft.prototype,"local",void 0);$n([(0,ri.property)({type:Number,reflect:!0})],Ft.prototype,"size",void 0);$n([(0,ri.property)({type:String,reflect:!0})],Ft.prototype,"category",void 0);$n([(0,ri.query)(".ft-size-watcher--watcher")],Ft.prototype,"watcher",void 0)});var Ly,ky=p(()=>{"use strict";Ly=f(v());Kc();Kc();jc();Vc();(0,Ly.customElement)("ft-size-watcher")(Ft)});function ds(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Ty(t){return ds(t).split("|").pop()}function $y(t){return ds(t).split("|").join(" > ")}function Py(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Py(r,t.selected)),value:t.value}}function _y(t){return(0,qc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Zc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Py(e,!1))}}function Ny(t){return(0,qc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var qc,Qc=p(()=>{"use strict";qc=f(v())});var it,By,Mt,Dy,Yc=p(()=>{"use strict";it=f(v()),By=f(R());Be();yt();Mt={textColor:it.FtCssVariableFactory.extend("--ft-checkbox-text-color","",it.designSystemVariables.colorOnSurfaceHigh),fontSize:it.FtCssVariableFactory.extend("--ft-checkbox-font-size","",T.fontSize),activeColor:it.FtCssVariableFactory.extend("--ft-checkbox-active-color","",it.designSystemVariables.colorPrimary),checkColor:it.FtCssVariableFactory.extend("--ft-checkbox-check-color","",it.designSystemVariables.colorOnPrimary),borderColor:it.FtCssVariableFactory.extend("--ft-checkbox-border-color","",it.designSystemVariables.colorOnSurfaceMedium),disabledColor:it.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",it.designSystemVariables.colorOnSurfaceDisabled),errorColor:it.FtCssVariableFactory.extend("--ft-checkbox-error-color","",it.designSystemVariables.colorError)},Dy=By.css`
1196
1196
  * {
1197
1197
  box-sizing: border-box;
1198
1198
  }
@@ -1558,7 +1558,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1558
1558
  :host(:focus-visible) {
1559
1559
  outline: none;
1560
1560
  }
1561
- `});var ms,_n,ad=p(()=>{"use strict";hs();ms=f(v());nd();oe();_n=class extends(0,ms.toFtdsBase)(zt){constructor(){super(...arguments),this.family=io.brand}};_n.styles=[ms.safariEllipsisFix,ob]});var Nn,sd=p(()=>{"use strict";Nn=f(v());ed();rd();id();ad();ed();Jc();rd();td();id();od();ad();nd();(0,Nn.customElement)("ft-radio")(Yr);(0,Nn.customElement)("ftds-radio")(Pn);(0,Nn.customElement)("ft-radio-group")(oi);(0,Nn.customElement)("ftds-radio-group")(_n)});var ib,ge,Bn,nb,ld=p(()=>{"use strict";ib=f(R()),ge=f(v());Fo();Zt();Bn={buttonMoreColor:ge.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ge.designSystemVariables.colorOnSurface),borderRadiusM:ge.FtCssVariableFactory.external(ge.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ge.FtCssVariableFactory.external(We.fontFamily,"Body2 typography"),fontSize:ge.FtCssVariableFactory.external(We.fontSize,"Body2 typography"),fontWeight:ge.FtCssVariableFactory.external(We.fontWeight,"Body2 typography"),letterSpacing:ge.FtCssVariableFactory.external(We.letterSpacing,"Body2 typography"),lineHeight:ge.FtCssVariableFactory.external(We.lineHeight,"Body2 typography"),textTransform:ge.FtCssVariableFactory.external(We.textTransform,"Body2 typography")},nb=ib.css`
1561
+ `});var ms,_n,ad=p(()=>{"use strict";hs();ms=f(v());nd();oe();_n=class extends(0,ms.toFtdsBase)(zt){constructor(){super(...arguments),this.family=io.brand}};_n.styles=[ms.safariEllipsisFix,ob]});var Nn,sd=p(()=>{"use strict";Nn=f(v());ed();rd();id();ad();ed();Jc();rd();td();id();od();ad();nd();(0,Nn.customElement)("ft-radio")(Yr);(0,Nn.customElement)("ftds-radio")(Pn);(0,Nn.customElement)("ft-radio-group")(oi);(0,Nn.customElement)("ftds-radio-group")(_n)});var ib,ge,Bn,nb,ld=p(()=>{"use strict";ib=f(R()),ge=f(v());Fo();Qt();Bn={buttonMoreColor:ge.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ge.designSystemVariables.colorOnSurface),borderRadiusM:ge.FtCssVariableFactory.external(ge.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ge.FtCssVariableFactory.external(We.fontFamily,"Body2 typography"),fontSize:ge.FtCssVariableFactory.external(We.fontSize,"Body2 typography"),fontWeight:ge.FtCssVariableFactory.external(We.fontWeight,"Body2 typography"),letterSpacing:ge.FtCssVariableFactory.external(We.letterSpacing,"Body2 typography"),lineHeight:ge.FtCssVariableFactory.external(We.lineHeight,"Body2 typography"),textTransform:ge.FtCssVariableFactory.external(We.textTransform,"Body2 typography")},nb=ib.css`
1562
1562
  .ft-filter-level--container {
1563
1563
  display: flex;
1564
1564
  flex-direction: column;
@@ -1628,7 +1628,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1628
1628
  margin: 10px 0;
1629
1629
  color: ${Bn.colorOnSurfaceMedium};
1630
1630
  }
1631
- `});var Ut,Ke,ab,ir,nt,_e,sb=p(()=>{"use strict";Ut=f(R()),Ke=f(W()),ab=f(Qr()),ir=f(v());Yt();Be();yt();Qt();Wy();sd();ld();hr();nt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_e=class extends It((0,ir.withAriaNotification)(ir.FtLitElement)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ir.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){if(super.willUpdate(e),e.has("options")||e.has("hideSelectedOptions")||e.has("filter")){let r=[...this.options];this.hideSelectedOptions&&(r=r.filter(i=>!i.selected)),this.filter&&(r=r.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase()))),r!=this.filteredOptions&&(this.filteredOptions=r)}}render(){let e=this.filteredOptions.slice(0,this.limit);return Ut.html`
1631
+ `});var Ut,Ke,ab,Ht,nt,_e,sb=p(()=>{"use strict";Ut=f(R()),Ke=f(W()),ab=f(Qr()),Ht=f(v());Xt();Be();yt();Yt();Wy();sd();ld();hr();nt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_e=class extends It((0,Ht.withAriaNotification)(Ht.FtLitElement)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Ht.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),e!=this.filteredOptions&&(this.filteredOptions=e)}render(){let e=this.filteredOptions.slice(0,this.limit);return Ut.html`
1632
1632
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1633
1633
  ${this.parent==null?null:Ut.html`
1634
1634
  <div tabindex="0"
@@ -1680,7 +1680,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1680
1680
  data-value="${e.value}"
1681
1681
  .checked=${e.selected}
1682
1682
  .disabled=${this.disabled}
1683
- .indeterminate=${(0,ir.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1683
+ .indeterminate=${(0,Ht.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1684
1684
  @change=${i=>this.optionsChanged(i,e)}>
1685
1685
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1686
1686
  </ft-checkbox>
@@ -1695,7 +1695,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1695
1695
  @change=${r=>this.optionsChanged(r,e)}>
1696
1696
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1697
1697
  </ft-radio>
1698
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};_e.elementDefinitions={"ft-button":Pe,"ft-ripple":G,"ft-typography":Z,"ft-checkbox":ut,"ft-icon":he,"ft-radio":Yr};_e.styles=nb;nt([(0,Ke.property)({type:String})],_e.prototype,"filterId",void 0);nt([(0,Ke.property)({type:Object})],_e.prototype,"parent",void 0);nt([(0,Ke.property)({type:Array,hasChanged:ir.hasChanged})],_e.prototype,"options",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"multivalued",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"disabled",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"hideSelectedOptions",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"displayCount",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"preventNavigation",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"filter",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"moreValuesButtonLabel",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"noValuesLabel",void 0);nt([(0,Ke.property)()],_e.prototype,"filteredOptionsNumberAriaNotification",void 0);nt([(0,ir.numberProperty)()],_e.prototype,"displayedValuesLimit",void 0);nt([(0,Ke.query)(".ft-filter-level--container")],_e.prototype,"container",void 0);nt([(0,Ke.state)()],_e.prototype,"radios",void 0);nt([(0,Ke.state)()],_e.prototype,"displayedPages",void 0);nt([(0,Ke.state)()],_e.prototype,"filteredOptions",void 0)});var lb,mr,xt,cb,gs=p(()=>{"use strict";lb=f(R()),mr=f(v());Fo();xt={buttonsColor:mr.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",mr.designSystemVariables.colorPrimary),buttonsZIndex:mr.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:mr.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:mr.FtCssVariableFactory.external(mr.designSystemVariables.colorSurface,"Design system")},cb=lb.css`
1698
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};_e.elementDefinitions={"ft-button":Pe,"ft-ripple":G,"ft-typography":Z,"ft-checkbox":ut,"ft-icon":he,"ft-radio":Yr};_e.styles=nb;nt([(0,Ke.property)({type:String})],_e.prototype,"filterId",void 0);nt([(0,Ke.property)({type:Object})],_e.prototype,"parent",void 0);nt([(0,Ke.property)({type:Array,hasChanged:Ht.hasChanged})],_e.prototype,"options",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"multivalued",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"disabled",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"hideSelectedOptions",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"displayCount",void 0);nt([(0,Ke.property)({type:Boolean})],_e.prototype,"preventNavigation",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"filter",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"moreValuesButtonLabel",void 0);nt([(0,Ke.property)({type:String})],_e.prototype,"noValuesLabel",void 0);nt([(0,Ke.property)()],_e.prototype,"filteredOptionsNumberAriaNotification",void 0);nt([(0,Ht.numberProperty)()],_e.prototype,"displayedValuesLimit",void 0);nt([(0,Ke.query)(".ft-filter-level--container")],_e.prototype,"container",void 0);nt([(0,Ke.state)()],_e.prototype,"radios",void 0);nt([(0,Ke.state)()],_e.prototype,"displayedPages",void 0);nt([(0,Ke.state)({hasChanged:Ht.hasChanged})],_e.prototype,"filteredOptions",void 0)});var lb,mr,xt,cb,gs=p(()=>{"use strict";lb=f(R()),mr=f(v());Fo();xt={buttonsColor:mr.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",mr.designSystemVariables.colorPrimary),buttonsZIndex:mr.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:mr.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:mr.FtCssVariableFactory.external(mr.designSystemVariables.colorSurface,"Design system")},cb=lb.css`
1699
1699
  .ft-snap-scroll {
1700
1700
  box-sizing: border-box;
1701
1701
  position: relative;
@@ -1820,7 +1820,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1820
1820
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1821
1821
  background-color: ${xt.colorSurface};
1822
1822
  }
1823
- `});var db,Ht,ii,pb,$r,cd,ze,dd=p(()=>{"use strict";db=f(R()),Ht=f(W()),ii=f(v());Yt();pb=f(wt());gs();$r=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cd=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ze=class extends ii.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ii.Debouncer(200),this.updateScrollDebouncer=new ii.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,pb.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ii.isSafari}),r=this.controls&&this.withScroll;return db.html`
1823
+ `});var db,Wt,ii,pb,$r,cd,ze,dd=p(()=>{"use strict";db=f(R()),Wt=f(W()),ii=f(v());Xt();pb=f(wt());gs();$r=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cd=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ze=class extends ii.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ii.Debouncer(200),this.updateScrollDebouncer=new ii.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,pb.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ii.isSafari}),r=this.controls&&this.withScroll;return db.html`
1824
1824
  <div part="container" class="${e}">
1825
1825
  <ft-button
1826
1826
  class="ft-snap-scroll--previous"
@@ -1844,7 +1844,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1844
1844
  @click=${this.next}
1845
1845
  ></ft-button>
1846
1846
  </div>
1847
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new cd(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ze.elementDefinitions={"ft-button":Pe};ze.styles=cb;$r([(0,Ht.property)({type:Boolean})],ze.prototype,"horizontal",void 0);$r([(0,Ht.property)({type:Boolean})],ze.prototype,"hideScrollbar",void 0);$r([(0,Ht.property)({type:Boolean})],ze.prototype,"controls",void 0);$r([(0,Ht.property)({type:Boolean})],ze.prototype,"limitSize",void 0);$r([(0,Ht.state)()],ze.prototype,"elements",void 0);$r([(0,Ht.state)()],ze.prototype,"currentElement",void 0);$r([(0,Ht.state)()],ze.prototype,"withScroll",void 0);$r([(0,Ht.state)()],ze.prototype,"startReached",void 0);$r([(0,Ht.state)()],ze.prototype,"endReached",void 0);$r([(0,Ht.query)(".ft-snap-scroll--content")],ze.prototype,"contentSlot",void 0)});var ub=p(()=>{"use strict"});var fb,ys=p(()=>{"use strict";fb=f(v());dd();dd();gs();ub();(0,fb.customElement)("ft-snap-scroll")(ze)});var hb,Ce,Tt,mb,bs=p(()=>{"use strict";hb=f(R()),Ce=f(v());Zt();Fo();Tt={colorOutline:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:Ce.FtCssVariableFactory.extend("--ft-filter-label-color","",Ce.designSystemVariables.colorOnSurface),labelFontSize:Ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",T.fontSize,"16px")},mb=[Cr,Ce.noTextInputDefaultClearButton,hb.css`
1847
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new cd(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ze.elementDefinitions={"ft-button":Pe};ze.styles=cb;$r([(0,Wt.property)({type:Boolean})],ze.prototype,"horizontal",void 0);$r([(0,Wt.property)({type:Boolean})],ze.prototype,"hideScrollbar",void 0);$r([(0,Wt.property)({type:Boolean})],ze.prototype,"controls",void 0);$r([(0,Wt.property)({type:Boolean})],ze.prototype,"limitSize",void 0);$r([(0,Wt.state)()],ze.prototype,"elements",void 0);$r([(0,Wt.state)()],ze.prototype,"currentElement",void 0);$r([(0,Wt.state)()],ze.prototype,"withScroll",void 0);$r([(0,Wt.state)()],ze.prototype,"startReached",void 0);$r([(0,Wt.state)()],ze.prototype,"endReached",void 0);$r([(0,Wt.query)(".ft-snap-scroll--content")],ze.prototype,"contentSlot",void 0)});var ub=p(()=>{"use strict"});var fb,ys=p(()=>{"use strict";fb=f(v());dd();dd();gs();ub();(0,fb.customElement)("ft-snap-scroll")(ze)});var hb,Ce,Tt,mb,bs=p(()=>{"use strict";hb=f(R()),Ce=f(v());Qt();Fo();Tt={colorOutline:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:Ce.FtCssVariableFactory.extend("--ft-filter-label-color","",Ce.designSystemVariables.colorOnSurface),labelFontSize:Ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",T.fontSize,"16px")},mb=[Cr,Ce.noTextInputDefaultClearButton,hb.css`
1848
1848
  :host {
1849
1849
  display: flex;
1850
1850
  max-height: 100%;
@@ -1961,7 +1961,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1961
1961
  slot:not([name]) {
1962
1962
  display: none;
1963
1963
  }
1964
- `]});var ni,xe,qe,Oe,pd,se,ud=p(()=>{"use strict";ni=f(R()),xe=f(W()),qe=f(v());Be();sb();Yt();ys();bs();Oe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},se=class extends qe.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new qe.Debouncer(300),this.changeDebouncer=new qe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,qe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,qe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return ni.html`
1964
+ `]});var ni,xe,qe,Oe,pd,se,ud=p(()=>{"use strict";ni=f(R()),xe=f(W()),qe=f(v());Be();sb();Xt();ys();bs();Oe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},se=class extends qe.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new qe.Debouncer(300),this.changeDebouncer=new qe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,qe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,qe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return ni.html`
1965
1965
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1966
1966
  part="container">
1967
1967
  ${!this.label&&!e?null:ni.html`
@@ -2044,9 +2044,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2044
2044
  noValuesLabel="${this.noValuesLabel}"
2045
2045
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
2046
2046
  ></ft-filter-level>
2047
- `}goBack(e){this.slideOut=e.detail.value,(0,qe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,qe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,qe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,qe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new pd(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};se.elementDefinitions={"ft-button":Pe,"ft-filter-level":_e,"ft-snap-scroll":ze,"ft-typography":Z};se.styles=mb;Oe([(0,xe.property)({type:String})],se.prototype,"id",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"label",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"filterPlaceHolder",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"clearButtonLabel",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"noValuesLabel",void 0);Oe([(0,qe.jsonProperty)([])],se.prototype,"options",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"multivalued",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"disabled",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"raiseSelectedOptions",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"displayCount",void 0);Oe([(0,qe.numberProperty)()],se.prototype,"displayedValuesLimit",void 0);Oe([(0,qe.jsonProperty)(void 0)],se.prototype,"filteredOptionsNumberAriaNotification",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"hideClearButton",void 0);Oe([(0,xe.query)(".ft-filter--slot")],se.prototype,"slotElement",void 0);Oe([(0,xe.query)(".ft-filter--container")],se.prototype,"container",void 0);Oe([(0,xe.query)(".ft-filter--values")],se.prototype,"valuesContainer",void 0);Oe([(0,xe.query)(".ft-filter--levels")],se.prototype,"levelsContainer",void 0);Oe([(0,xe.state)()],se.prototype,"lastLevelHasHiddenvalues",void 0);Oe([(0,xe.query)(".ft-filter--filter input")],se.prototype,"filterInput",void 0);Oe([(0,xe.queryAll)(".ft-filter--levels ft-filter-level")],se.prototype,"levels",void 0);Oe([(0,xe.state)()],se.prototype,"withScroll",void 0);Oe([(0,xe.state)()],se.prototype,"filter",void 0);Oe([(0,xe.state)()],se.prototype,"slideIn",void 0);Oe([(0,xe.state)()],se.prototype,"slideOut",void 0)});var xs,ai,gb,Ki,Wt,fd=p(()=>{"use strict";xs=f(v()),ai=f(W()),gb=f(R()),Ki=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wt=class extends xs.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return gb.html`
2047
+ `}goBack(e){this.slideOut=e.detail.value,(0,qe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,qe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,qe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,qe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new pd(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};se.elementDefinitions={"ft-button":Pe,"ft-filter-level":_e,"ft-snap-scroll":ze,"ft-typography":Z};se.styles=mb;Oe([(0,xe.property)({type:String})],se.prototype,"id",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"label",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"filterPlaceHolder",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"clearButtonLabel",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);Oe([(0,xe.property)({type:String})],se.prototype,"noValuesLabel",void 0);Oe([(0,qe.jsonProperty)([])],se.prototype,"options",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"multivalued",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"disabled",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"raiseSelectedOptions",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"displayCount",void 0);Oe([(0,qe.numberProperty)()],se.prototype,"displayedValuesLimit",void 0);Oe([(0,qe.jsonProperty)(void 0)],se.prototype,"filteredOptionsNumberAriaNotification",void 0);Oe([(0,xe.property)({type:Boolean})],se.prototype,"hideClearButton",void 0);Oe([(0,xe.query)(".ft-filter--slot")],se.prototype,"slotElement",void 0);Oe([(0,xe.query)(".ft-filter--container")],se.prototype,"container",void 0);Oe([(0,xe.query)(".ft-filter--values")],se.prototype,"valuesContainer",void 0);Oe([(0,xe.query)(".ft-filter--levels")],se.prototype,"levelsContainer",void 0);Oe([(0,xe.state)()],se.prototype,"lastLevelHasHiddenvalues",void 0);Oe([(0,xe.query)(".ft-filter--filter input")],se.prototype,"filterInput",void 0);Oe([(0,xe.queryAll)(".ft-filter--levels ft-filter-level")],se.prototype,"levels",void 0);Oe([(0,xe.state)()],se.prototype,"withScroll",void 0);Oe([(0,xe.state)()],se.prototype,"filter",void 0);Oe([(0,xe.state)()],se.prototype,"slideIn",void 0);Oe([(0,xe.state)()],se.prototype,"slideOut",void 0)});var xs,ai,gb,Ki,Vt,fd=p(()=>{"use strict";xs=f(v()),ai=f(W()),gb=f(R()),Ki=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vt=class extends xs.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return gb.html`
2048
2048
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
2049
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Wt.elementDefinitions={};Ki([(0,ai.property)({type:String})],Wt.prototype,"label",void 0);Ki([(0,ai.property)({type:Object,converter:t=>t})],Wt.prototype,"value",void 0);Ki([(0,ai.property)({type:Boolean,reflect:!0})],Wt.prototype,"selected",void 0);Ki([(0,ai.property)({type:Object})],Wt.prototype,"subOptions",void 0);Ki([(0,xs.jsonProperty)({})],Wt.prototype,"renderOption",void 0);Ki([(0,ai.query)(".ft-filter-option--slot")],Wt.prototype,"slotElement",void 0)});var yb=p(()=>{"use strict"});var bb=p(()=>{"use strict"});var hd,xb=p(()=>{"use strict";hd=f(v());ud();fd();ld();ud();bs();yb();fd();bb();(0,hd.customElement)("ft-filter")(se);(0,hd.customElement)("ft-filter-option")(Wt)});var vb,Sb,md=p(()=>{"use strict";vb=f(R()),Sb=vb.css`
2049
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Vt.elementDefinitions={};Ki([(0,ai.property)({type:String})],Vt.prototype,"label",void 0);Ki([(0,ai.property)({type:Object,converter:t=>t})],Vt.prototype,"value",void 0);Ki([(0,ai.property)({type:Boolean,reflect:!0})],Vt.prototype,"selected",void 0);Ki([(0,ai.property)({type:Object})],Vt.prototype,"subOptions",void 0);Ki([(0,xs.jsonProperty)({})],Vt.prototype,"renderOption",void 0);Ki([(0,ai.query)(".ft-filter-option--slot")],Vt.prototype,"slotElement",void 0)});var yb=p(()=>{"use strict"});var bb=p(()=>{"use strict"});var hd,xb=p(()=>{"use strict";hd=f(v());ud();fd();ld();ud();bs();yb();fd();bb();(0,hd.customElement)("ft-filter")(se);(0,hd.customElement)("ft-filter-option")(Vt)});var vb,Sb,md=p(()=>{"use strict";vb=f(R()),Sb=vb.css`
2050
2050
  .ft-accordion {
2051
2051
  box-sizing: border-box;
2052
2052
  }
@@ -2100,7 +2100,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2100
2100
  .ft-accordion-item--separator {
2101
2101
  border-bottom: 1px solid ${si.colorOutline};
2102
2102
  }
2103
- `});var Dn,Fn,Rb,Ss,nr,bd=p(()=>{"use strict";Dn=f(R()),Fn=f(W()),Rb=f(v());yt();Be();Qt();yd();Ss=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nr=class extends Rb.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Dn.html`
2103
+ `});var Dn,Fn,Rb,Ss,nr,bd=p(()=>{"use strict";Dn=f(R()),Fn=f(W()),Rb=f(v());yt();Be();Yt();yd();Ss=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nr=class extends Rb.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Dn.html`
2104
2104
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
2105
2105
  <div class="ft-accordion-item--toggle"
2106
2106
  part="toggle"
@@ -2130,7 +2130,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2130
2130
  </div>
2131
2131
  <div class="ft-accordion-item--separator" part="separator"></div>
2132
2132
  </div>
2133
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};nr.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};nr.styles=Ab;Ss([(0,Fn.property)()],nr.prototype,"icon",void 0);Ss([(0,Fn.property)()],nr.prototype,"iconVariant",void 0);Ss([(0,Fn.property)()],nr.prototype,"label",void 0);Ss([(0,Fn.property)({type:Boolean,reflect:!0})],nr.prototype,"active",void 0)});var Ib=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var xd,kb=p(()=>{"use strict";xd=f(v());gd();bd();gd();md();Ib();bd();yd();Lb();(0,xd.customElement)("ft-accordion")(Pr);(0,xd.customElement)("ft-accordion-item")(nr)});var Mn,Q,Tb,at,$b,vd,Pb,_b,Sd=p(()=>{"use strict";Mn=f(R()),Q=f(v());Mr();Zt();Do();Yt();Tb=Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnSurface),at={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorSurface),color:Tb,fontSize:Q.FtCssVariableFactory.extend("--ft-chip-font-size","",We.fontSize),fontWeight:Q.FtCssVariableFactory.extend("--ft-chip-font-weight","",We.fontWeight),iconSize:Q.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:Q.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Tb),horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:Q.FtCssVariableFactory.extend("--ft-chip-border-color","",Q.designSystemVariables.colorOutline),opacityDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOpacityDisabled,"Design system")},$b=Q.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnPrimary)),vd={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorPrimary)),color:$b,rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$b)},Pb={horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},_b=[Q.noTextSelect,Mn.css`
2133
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};nr.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};nr.styles=Ab;Ss([(0,Fn.property)()],nr.prototype,"icon",void 0);Ss([(0,Fn.property)()],nr.prototype,"iconVariant",void 0);Ss([(0,Fn.property)()],nr.prototype,"label",void 0);Ss([(0,Fn.property)({type:Boolean,reflect:!0})],nr.prototype,"active",void 0)});var Ib=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var xd,kb=p(()=>{"use strict";xd=f(v());gd();bd();gd();md();Ib();bd();yd();Lb();(0,xd.customElement)("ft-accordion")(Pr);(0,xd.customElement)("ft-accordion-item")(nr)});var Mn,Q,Tb,at,$b,vd,Pb,_b,Sd=p(()=>{"use strict";Mn=f(R()),Q=f(v());Mr();Qt();Do();Xt();Tb=Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnSurface),at={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorSurface),color:Tb,fontSize:Q.FtCssVariableFactory.extend("--ft-chip-font-size","",We.fontSize),fontWeight:Q.FtCssVariableFactory.extend("--ft-chip-font-weight","",We.fontWeight),iconSize:Q.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:Q.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Tb),horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:Q.FtCssVariableFactory.extend("--ft-chip-border-color","",Q.designSystemVariables.colorOutline),opacityDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOpacityDisabled,"Design system")},$b=Q.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnPrimary)),vd={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorPrimary)),color:$b,rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$b)},Pb={horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},_b=[Q.noTextSelect,Mn.css`
2134
2134
  :host {
2135
2135
  display: inline-block;
2136
2136
  max-width: 100%;
@@ -2270,7 +2270,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2270
2270
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2271
2271
  order: -1;
2272
2272
  }
2273
- `]});var Cs,ft,Nb,qi,$t,Os,Ne,Cd=p(()=>{"use strict";Cs=f(R()),ft=f(W()),Nb=f(wt()),qi=f(v());yt();Be();Qt();Sd();Yt();$t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Os=class extends CustomEvent{constructor(){super("icon-click")}},Ne=class extends qi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":qi.isSafari};return Cs.html`
2273
+ `]});var Cs,ft,Nb,qi,$t,Os,Ne,Cd=p(()=>{"use strict";Cs=f(R()),ft=f(W()),Nb=f(wt()),qi=f(v());yt();Be();Yt();Sd();Xt();$t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Os=class extends CustomEvent{constructor(){super("icon-click")}},Ne=class extends qi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":qi.isSafari};return Cs.html`
2274
2274
  <div class="${(0,Nb.classMap)(e)}"
2275
2275
  aria-label="${this.getLabel()}"
2276
2276
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -2297,7 +2297,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2297
2297
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2298
2298
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
2299
2299
  </div>
2300
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Os))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Os))}getLabel(){return this.label||this.textContent}get textContent(){return(0,qi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ne.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he,"ft-button":Pe};Ne.styles=_b;$t([(0,ft.property)({type:Boolean})],Ne.prototype,"highlighted",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"removable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"disabled",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"clickable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"iconClickable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"dense",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"multiLine",void 0);$t([(0,ft.property)()],Ne.prototype,"label",void 0);$t([(0,ft.property)()],Ne.prototype,"iconLabel",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"hideIconTooltip",void 0);$t([(0,ft.property)()],Ne.prototype,"icon",void 0);$t([(0,ft.property)()],Ne.prototype,"iconVariant",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"trailingIcon",void 0);$t([(0,ft.query)("ft-typography slot")],Ne.prototype,"slottedContent",void 0)});var Bb,ws,Db,Od=p(()=>{"use strict";Bb=f(R());oe();ws=f(v());Qt();Yt();Db=[Bb.css`
2300
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Os))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Os))}getLabel(){return this.label||this.textContent}get textContent(){return(0,qi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ne.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he,"ft-button":Pe};Ne.styles=_b;$t([(0,ft.property)({type:Boolean})],Ne.prototype,"highlighted",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"removable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"disabled",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"clickable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"iconClickable",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"dense",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"multiLine",void 0);$t([(0,ft.property)()],Ne.prototype,"label",void 0);$t([(0,ft.property)()],Ne.prototype,"iconLabel",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"hideIconTooltip",void 0);$t([(0,ft.property)()],Ne.prototype,"icon",void 0);$t([(0,ft.property)()],Ne.prototype,"iconVariant",void 0);$t([(0,ft.property)({type:Boolean})],Ne.prototype,"trailingIcon",void 0);$t([(0,ft.query)("ft-typography slot")],Ne.prototype,"slottedContent",void 0)});var Bb,ws,Db,Od=p(()=>{"use strict";Bb=f(R());oe();ws=f(v());Yt();Xt();Db=[Bb.css`
2301
2301
  :host {
2302
2302
  display: inline-block;
2303
2303
  max-width: 100%;
@@ -2464,7 +2464,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2464
2464
  .ftds--family-error .ftds-chip--icon-container {
2465
2465
  color: ${F.errorIconColor};
2466
2466
  }
2467
- `]});var Eo,Ao,Fb,Es,Zi,wd,ar,Ed=p(()=>{"use strict";Eo=f(R()),Ao=f(W()),Fb=f(wt()),Es=f(v());Be();Qt();Od();oe();Yt();Zi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wd=class extends CustomEvent{constructor(){super("remove")}},ar=class extends Es.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Eo.html`
2467
+ `]});var Eo,Ao,Fb,Es,Zi,wd,ar,Ed=p(()=>{"use strict";Eo=f(R()),Ao=f(W()),Fb=f(wt()),Es=f(v());Be();Yt();Od();oe();Xt();Zi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wd=class extends CustomEvent{constructor(){super("remove")}},ar=class extends Es.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Eo.html`
2468
2468
  <div class="${(0,Fb.classMap)(e)}"
2469
2469
  aria-label="${this.getLabel()}"
2470
2470
  part="chip">
@@ -2490,7 +2490,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2490
2490
  ></ftds-button>
2491
2491
  `:this.withAction?Eo.html`
2492
2492
  <slot name="action"></slot>
2493
- `:Eo.nothing}resolveButtonSize(){switch(this.size){case gt.large:return gt.medium;case gt.medium:case gt.small:return gt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new wd)}typographyVariant(){switch(this.size){case gt.large:return $e.body2medium;case gt.medium:case gt.small:return $e.caption1medium}}};ar.elementDefinitions={"ft-typography":Z,"ft-icon":he,"ftds-button":dr};ar.styles=Db;Zi([(0,Ao.property)({type:Boolean})],ar.prototype,"withAction",void 0);Zi([(0,Ao.property)({type:Boolean})],ar.prototype,"removable",void 0);Zi([(0,Ao.property)()],ar.prototype,"removeButtonLabel",void 0);Zi([(0,Ao.property)()],ar.prototype,"label",void 0);Zi([(0,Ao.property)()],ar.prototype,"icon",void 0);Zi([(0,Ao.query)("ft-typography slot")],ar.prototype,"slottedContent",void 0)});var Mb=p(()=>{"use strict"});var zb=p(()=>{"use strict"});var Ad,Rd=p(()=>{"use strict";Ad=f(v());Cd();Ed();Cd();Sd();Mb();Ed();Od();zb();(0,Ad.customElement)("ft-chip")(Ne);(0,Ad.customElement)("ftds-chip")(ar)});function As(t,e,r){return t?e(t):r?.(t)}var Ub=p(()=>{});var Id=p(()=>{Ub()});var Hb,we,U,Wb,Qi=p(()=>{"use strict";Hb=f(R()),we=f(v());Zt();U={fontSize:we.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:we.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:we.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:we.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:we.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:we.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:we.FtCssVariableFactory.extend("--ft-input-label-border-color","",we.designSystemVariables.colorOutline),textColor:we.FtCssVariableFactory.extend("--ft-input-label-text-color","",we.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:we.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",we.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:we.FtCssVariableFactory.extend("--ft-input-label-background-color","",we.designSystemVariables.colorSurface),borderRadius:we.FtCssVariableFactory.extend("--ft-input-label-border-radius","",we.designSystemVariables.borderRadiusS),colorError:we.FtCssVariableFactory.external(we.designSystemVariables.colorError,"Design system")},Wb=Hb.css`
2493
+ `:Eo.nothing}resolveButtonSize(){switch(this.size){case gt.large:return gt.medium;case gt.medium:case gt.small:return gt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new wd)}typographyVariant(){switch(this.size){case gt.large:return $e.body2medium;case gt.medium:case gt.small:return $e.caption1medium}}};ar.elementDefinitions={"ft-typography":Z,"ft-icon":he,"ftds-button":dr};ar.styles=Db;Zi([(0,Ao.property)({type:Boolean})],ar.prototype,"withAction",void 0);Zi([(0,Ao.property)({type:Boolean})],ar.prototype,"removable",void 0);Zi([(0,Ao.property)()],ar.prototype,"removeButtonLabel",void 0);Zi([(0,Ao.property)()],ar.prototype,"label",void 0);Zi([(0,Ao.property)()],ar.prototype,"icon",void 0);Zi([(0,Ao.query)("ft-typography slot")],ar.prototype,"slottedContent",void 0)});var Mb=p(()=>{"use strict"});var zb=p(()=>{"use strict"});var Ad,Rd=p(()=>{"use strict";Ad=f(v());Cd();Ed();Cd();Sd();Mb();Ed();Od();zb();(0,Ad.customElement)("ft-chip")(Ne);(0,Ad.customElement)("ftds-chip")(ar)});function As(t,e,r){return t?e(t):r?.(t)}var Ub=p(()=>{});var Id=p(()=>{Ub()});var Hb,we,U,Wb,Qi=p(()=>{"use strict";Hb=f(R()),we=f(v());Qt();U={fontSize:we.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:we.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:we.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:we.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:we.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:we.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:we.FtCssVariableFactory.extend("--ft-input-label-border-color","",we.designSystemVariables.colorOutline),textColor:we.FtCssVariableFactory.extend("--ft-input-label-text-color","",we.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:we.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",we.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:we.FtCssVariableFactory.extend("--ft-input-label-background-color","",we.designSystemVariables.colorSurface),borderRadius:we.FtCssVariableFactory.extend("--ft-input-label-border-radius","",we.designSystemVariables.borderRadiusS),colorError:we.FtCssVariableFactory.external(we.designSystemVariables.colorError,"Design system")},Wb=Hb.css`
2494
2494
  .ft-input-label {
2495
2495
  position: absolute;
2496
2496
  inset: 0;
@@ -2621,7 +2621,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2621
2621
  </div>
2622
2622
  `)}
2623
2623
  </div>
2624
- `}};Jr.elementDefinitions={};Vb([(0,kd.property)({type:String})],Jr.prototype,"text",void 0);Vb([(0,kd.property)({type:Boolean})],Jr.prototype,"raised",void 0)});var Rs,$d,gr,Pd=p(()=>{"use strict";Rs=f(W());Zt();Qi();Td();$d=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gr=class extends Jr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};gr.elementDefinitions={};gr.styles=[Cr,Wb];$d([(0,Rs.property)({type:Boolean})],gr.prototype,"outlined",void 0);$d([(0,Rs.property)({type:Boolean})],gr.prototype,"error",void 0);$d([(0,Rs.property)({type:Boolean})],gr.prototype,"disabled",void 0)});var Kb,Ue,ht,qb,_d=p(()=>{"use strict";Kb=f(R());oe();Zt();Qi();Ue=f(v()),ht={fontSize:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size","",fi.fontSize),fontSizeRaised:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",Bo.fontSize),lineHeight:Ue.FtCssVariableFactory.extend("--ft-input-label-line-height","",Bo.lineHeight),color:Ue.FtCssVariableFactory.extend("--ft-input-label-color","",Ue.semantic.contentGlobalSubtle),largeFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Ue.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},qb=[Kb.css`
2624
+ `}};Jr.elementDefinitions={};Vb([(0,kd.property)({type:String})],Jr.prototype,"text",void 0);Vb([(0,kd.property)({type:Boolean})],Jr.prototype,"raised",void 0)});var Rs,$d,gr,Pd=p(()=>{"use strict";Rs=f(W());Qt();Qi();Td();$d=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gr=class extends Jr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};gr.elementDefinitions={};gr.styles=[Cr,Wb];$d([(0,Rs.property)({type:Boolean})],gr.prototype,"outlined",void 0);$d([(0,Rs.property)({type:Boolean})],gr.prototype,"error",void 0);$d([(0,Rs.property)({type:Boolean})],gr.prototype,"disabled",void 0)});var Kb,Ue,ht,qb,_d=p(()=>{"use strict";Kb=f(R());oe();Qt();Qi();Ue=f(v()),ht={fontSize:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size","",fi.fontSize),fontSizeRaised:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",Bo.fontSize),lineHeight:Ue.FtCssVariableFactory.extend("--ft-input-label-line-height","",Bo.lineHeight),color:Ue.FtCssVariableFactory.extend("--ft-input-label-color","",Ue.semantic.contentGlobalSubtle),largeFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Ue.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},qb=[Kb.css`
2625
2625
 
2626
2626
  :root {
2627
2627
  --field-height: ${ht.largeFieldHeight};
@@ -2703,7 +2703,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2703
2703
  top: var(--input-content-vertical-padding);
2704
2704
  }
2705
2705
 
2706
- `]});var Zb,zn,Nd=p(()=>{"use strict";Td();Zb=f(v());_d();Be();zn=class extends(0,Zb.toFtdsBase)(Jr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};zn.styles=[Cr,qb]});var Qb=p(()=>{"use strict"});var Yb=p(()=>{"use strict"});var Bd,Xb=p(()=>{"use strict";Bd=f(v());Pd();Nd();Pd();Qi();Qb();Nd();_d();Yb();(0,Bd.customElement)("ft-input-label")(gr);(0,Bd.customElement)("ftds-input-label")(zn)});var Jb,K,Y,ex,Is=p(()=>{"use strict";Jb=f(R()),K=f(v());Qi();Zt();Mr();Do();Y={labelSize:K.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:K.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:K.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:K.FtCssVariableFactory.extend("--ft-select-selected-option-color","",K.designSystemVariables.colorOnSurface),helperColor:K.FtCssVariableFactory.extend("--ft-select-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),optionsColor:K.FtCssVariableFactory.extend("--ft-select-options-color","",K.designSystemVariables.colorOnSurface),optionsZIndex:K.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:K.FtCssVariableFactory.extend("--ft-select-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),elevation02:K.FtCssVariableFactory.external(K.designSystemVariables.elevation02,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},ex=Jb.css`
2706
+ `]});var Zb,zn,Nd=p(()=>{"use strict";Td();Zb=f(v());_d();Be();zn=class extends(0,Zb.toFtdsBase)(Jr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};zn.styles=[Cr,qb]});var Qb=p(()=>{"use strict"});var Yb=p(()=>{"use strict"});var Bd,Xb=p(()=>{"use strict";Bd=f(v());Pd();Nd();Pd();Qi();Qb();Nd();_d();Yb();(0,Bd.customElement)("ft-input-label")(gr);(0,Bd.customElement)("ftds-input-label")(zn)});var Jb,K,Y,ex,Is=p(()=>{"use strict";Jb=f(R()),K=f(v());Qi();Qt();Mr();Do();Y={labelSize:K.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:K.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:K.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:K.FtCssVariableFactory.extend("--ft-select-selected-option-color","",K.designSystemVariables.colorOnSurface),helperColor:K.FtCssVariableFactory.extend("--ft-select-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),optionsColor:K.FtCssVariableFactory.extend("--ft-select-options-color","",K.designSystemVariables.colorOnSurface),optionsZIndex:K.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:K.FtCssVariableFactory.extend("--ft-select-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),elevation02:K.FtCssVariableFactory.external(K.designSystemVariables.elevation02,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},ex=Jb.css`
2707
2707
  *:focus {
2708
2708
  outline: none;
2709
2709
  }
@@ -2853,7 +2853,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2853
2853
  .ft-select--in-error .ft-select--helper-text {
2854
2854
  color: ${Y.colorError};
2855
2855
  }
2856
- `});var ci,ye,Dd,tx,Ro,Le,_r,de,Fd=p(()=>{"use strict";ci=f(R()),ye=f(W()),Dd=f(wt()),tx=f(Qr());Id();aa();Ro=f(v());Be();Xb();yt();Qt();Is();Le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_r=class extends Ro.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return ci.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};_r.elementDefinitions={};Le([(0,ye.property)({type:String})],_r.prototype,"label",void 0);Le([(0,ye.property)({type:Object,converter:t=>t})],_r.prototype,"value",void 0);Le([(0,ye.property)({type:Boolean,reflect:!0})],_r.prototype,"selected",void 0);de=class t extends Ro.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return ci.html`
2856
+ `});var ci,ye,Dd,tx,Ro,Le,_r,de,Fd=p(()=>{"use strict";ci=f(R()),ye=f(W()),Dd=f(wt()),tx=f(Qr());Id();aa();Ro=f(v());Be();Xb();yt();Yt();Is();Le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_r=class extends Ro.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return ci.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};_r.elementDefinitions={};Le([(0,ye.property)({type:String})],_r.prototype,"label",void 0);Le([(0,ye.property)({type:Object,converter:t=>t})],_r.prototype,"value",void 0);Le([(0,ye.property)({type:Boolean,reflect:!0})],_r.prototype,"selected",void 0);de=class t extends Ro.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return ci.html`
2857
2857
  <div class="${(0,Dd.classMap)(h)}" part="container">
2858
2858
  <div class="ft-select--main-panel" part="main-panel">
2859
2859
  <ft-input-label text="${this.label}"
@@ -2936,7 +2936,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2936
2936
  background-position: calc(100vw + ${st.glareWidth}) 0, calc(${st.glareWidth} * -1) 0;
2937
2937
  }
2938
2938
  }
2939
- `});var z,zd,B,ax,sx,ks=p(()=>{"use strict";z=f(v()),zd=f(R());Fo();Qi();Is();Ls();Qn();gs();bs();Zt();B={height:z.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:z.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",z.designSystemVariables.borderRadiusS),mobileOpenPosition:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:z.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:z.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorSurface,"Design system"),colorOnSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:z.FtCssVariableFactory.external(z.designSystemVariables.colorOutline,"Design system"),colorPrimary:z.FtCssVariableFactory.external(z.designSystemVariables.colorPrimary,"Design system"),elevation02:z.FtCssVariableFactory.external(z.designSystemVariables.elevation02,"Design system"),buttonColor:z.FtCssVariableFactory.external(j.color,"Button"),buttonRippleColor:z.FtCssVariableFactory.external(j.rippleColor,"Button"),activeItemBorderColor:z.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",z.designSystemVariables.colorPrimary)},ax=zd.css`
2939
+ `});var z,zd,B,ax,sx,ks=p(()=>{"use strict";z=f(v()),zd=f(R());Fo();Qi();Is();Ls();Qn();gs();bs();Qt();B={height:z.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:z.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",z.designSystemVariables.borderRadiusS),mobileOpenPosition:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:z.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:z.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorSurface,"Design system"),colorOnSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:z.FtCssVariableFactory.external(z.designSystemVariables.colorOutline,"Design system"),colorPrimary:z.FtCssVariableFactory.external(z.designSystemVariables.colorPrimary,"Design system"),elevation02:z.FtCssVariableFactory.external(z.designSystemVariables.elevation02,"Design system"),buttonColor:z.FtCssVariableFactory.external(j.color,"Button"),buttonRippleColor:z.FtCssVariableFactory.external(j.rippleColor,"Button"),activeItemBorderColor:z.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",z.designSystemVariables.colorPrimary)},ax=zd.css`
2940
2940
  * {
2941
2941
  box-sizing: border-box;
2942
2942
  }
@@ -3293,7 +3293,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3293
3293
  margin: 0;
3294
3294
  }
3295
3295
  `});var lx,cx,Io,Ud=p(()=>{"use strict";lx=f(R()),cx=f(v());Ls();Io=class extends cx.FtLitElement{render(){return lx.html`
3296
- `}};Io.elementDefinitions={};Io.styles=nx});var dx=p(()=>{"use strict"});var px,ux=p(()=>{"use strict";px=f(v());Ud();Ud();Ls();dx();(0,px.customElement)("ft-skeleton")(Io)});var Nr,Hd,Yi,Br,Ts=p(()=>{"use strict";Nr=f(R()),Hd=f(Qr());Qt();Yi=f(v());ks();yt();Br=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Yi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Nr.html`
3296
+ `}};Io.elementDefinitions={};Io.styles=nx});var dx=p(()=>{"use strict"});var px,ux=p(()=>{"use strict";px=f(v());Ud();Ud();Ls();dx();(0,px.customElement)("ft-skeleton")(Io)});var Nr,Hd,Yi,Br,Ts=p(()=>{"use strict";Nr=f(R()),Hd=f(Qr());Yt();Yi=f(v());ks();yt();Br=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Yi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Nr.html`
3297
3297
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
3298
3298
  id="${this.listboxId}"
3299
3299
  role="listbox"
@@ -3656,7 +3656,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3656
3656
  </div>
3657
3657
  `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Hn.styles=St.css`
3658
3658
 
3659
- `});var ce,ee,Wn,be,X,bx,Vd,eS,M,jd=p(()=>{"use strict";ce=f(R()),ee=f(W()),Wn=f(Qr()),be=f(v());ky();Be();Qc();xb();Qt();kb();Yt();Rd();ox();ys();oa();yt();ks();ux();Ts();Ps();hx();yx();sd();Rr();X=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");bx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Vd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},eS=()=>{},M=class extends be.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new be.ParametrizedLabelResolver(bx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new be.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=or.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Br(this),this.selectedFacetsManager=new Dr(this),this.desktopSearchBarManager=new Hn(this),this.mobileSearchBarManager=new Un(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new be.Debouncer(10),this.updateLocalesDebouncer=new be.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new be.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===or.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,be.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return ce.html`
3659
+ `});var ce,ee,Wn,be,X,bx,Vd,eS,M,jd=p(()=>{"use strict";ce=f(R()),ee=f(W()),Wn=f(Qr()),be=f(v());ky();Be();Qc();xb();Yt();kb();Xt();Rd();ox();ys();oa();yt();ks();ux();Ts();Ps();hx();yx();sd();Rr();X=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");bx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Vd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},eS=()=>{},M=class extends be.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new be.ParametrizedLabelResolver(bx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new be.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=ir.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Br(this),this.selectedFacetsManager=new Dr(this),this.desktopSearchBarManager=new Hn(this),this.mobileSearchBarManager=new Un(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new be.Debouncer(10),this.updateLocalesDebouncer=new be.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new be.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===ir.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,be.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return ce.html`
3660
3660
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
3661
3661
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3662
3662
  ${this.renderLiveText()}
@@ -3803,7 +3803,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3803
3803
  part="floating-panel"
3804
3804
  tabindex="-1">
3805
3805
  ${this.renderDesktopMenu()}
3806
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};M.elementDefinitions={"ft-accordion":Pr,"ft-accordion-item":nr,"ft-button":Pe,"ft-chip":Ne,"ft-filter":se,"ft-filter-option":Wt,"ft-icon":he,"ft-ripple":G,"ft-select":de,"ft-select-option":_r,"ft-size-watcher":Ft,"ft-skeleton":Io,"ft-snap-scroll":ze,"ft-tooltip":Ae,"ft-typography":Z,"ft-radio-group":oi,"ft-radio":Yr};M.styles=[no,be.noTextInputDefaultClearButton,ax,sx,Dr.styles,Br.styles,be.screenReaderStyles];X([(0,ee.property)({type:Boolean})],M.prototype,"dense",void 0);X([(0,ee.property)()],M.prototype,"mode",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMobileMenuOpen",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMenuOpen",void 0);X([(0,ee.property)()],M.prototype,"baseUrl",void 0);X([(0,ee.property)()],M.prototype,"apiIntegrationIdentifier",void 0);X([(0,ee.property)()],M.prototype,"contentLocale",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocales",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocalesInitialized",void 0);X([(0,ee.property)()],M.prototype,"uiLocale",void 0);X([(0,be.jsonProperty)({})],M.prototype,"labels",void 0);X([(0,be.jsonProperty)([])],M.prototype,"displayedFilters",void 0);X([(0,be.jsonProperty)([])],M.prototype,"presets",void 0);X([(0,ee.property)({type:String,reflect:!0})],M.prototype,"selectedPreset",void 0);X([(0,be.jsonProperty)([])],M.prototype,"priors",void 0);X([(0,ee.property)()],M.prototype,"searchRequestSerializer",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"focusOnDisplay",void 0);X([(0,ee.state)()],M.prototype,"metadataFilters",void 0);X([(0,ee.state)()],M.prototype,"sizeCategory",void 0);X([(0,ee.state)()],M.prototype,"displayFacets",void 0);X([(0,ee.state)()],M.prototype,"mobileMenuOpen",void 0);X([(0,ee.state)()],M.prototype,"facets",void 0);X([(0,ee.state)()],M.prototype,"facetsInitialized",void 0);X([(0,ee.query)(".ft-search-bar--container")],M.prototype,"container",void 0);X([(0,ee.query)(".ft-search-bar--filters-opener")],M.prototype,"filtersOpener",void 0);X([(0,ee.query)(".ft-search-bar--floating-panel")],M.prototype,"floatingContainer",void 0);X([(0,ee.query)("ft-snap-scroll.ft-search-bar--filters-container")],M.prototype,"scrollingFiltersContainer",void 0);X([(0,ee.query)(".ft-search-bar--input")],M.prototype,"input",void 0);X([(0,ee.query)(".ft-search-bar--launch-search")],M.prototype,"launchSearchButton",void 0);X([(0,ee.state)()],M.prototype,"query",void 0);X([(0,ee.state)()],M.prototype,"suggestions",void 0);X([(0,ee.state)()],M.prototype,"recentSearches",void 0);X([(0,ee.state)()],M.prototype,"scrollToFacet",void 0);X([(0,ee.state)()],M.prototype,"api",void 0);X([(0,ee.state)()],M.prototype,"displaySuggestListbox",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestOptionId",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestRemoveRecent",void 0);X([(0,ee.state)()],M.prototype,"facetsLoaded",void 0)});var xx=p(()=>{"use strict"});var vx,Sx=p(()=>{"use strict";vx=f(v());jd();jd();ks();xx();(0,vx.customElement)("ft-search-bar")(M)});var Cx,Ox,wx,Ex=p(()=>{"use strict";Cx=f(R());xn();Ox=f(v());yt();Sx();wx=Cx.css`
3806
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};M.elementDefinitions={"ft-accordion":Pr,"ft-accordion-item":nr,"ft-button":Pe,"ft-chip":Ne,"ft-filter":se,"ft-filter-option":Vt,"ft-icon":he,"ft-ripple":G,"ft-select":de,"ft-select-option":_r,"ft-size-watcher":Ft,"ft-skeleton":Io,"ft-snap-scroll":ze,"ft-tooltip":Ae,"ft-typography":Z,"ft-radio-group":oi,"ft-radio":Yr};M.styles=[no,be.noTextInputDefaultClearButton,ax,sx,Dr.styles,Br.styles,be.screenReaderStyles];X([(0,ee.property)({type:Boolean})],M.prototype,"dense",void 0);X([(0,ee.property)()],M.prototype,"mode",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMobileMenuOpen",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMenuOpen",void 0);X([(0,ee.property)()],M.prototype,"baseUrl",void 0);X([(0,ee.property)()],M.prototype,"apiIntegrationIdentifier",void 0);X([(0,ee.property)()],M.prototype,"contentLocale",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocales",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocalesInitialized",void 0);X([(0,ee.property)()],M.prototype,"uiLocale",void 0);X([(0,be.jsonProperty)({})],M.prototype,"labels",void 0);X([(0,be.jsonProperty)([])],M.prototype,"displayedFilters",void 0);X([(0,be.jsonProperty)([])],M.prototype,"presets",void 0);X([(0,ee.property)({type:String,reflect:!0})],M.prototype,"selectedPreset",void 0);X([(0,be.jsonProperty)([])],M.prototype,"priors",void 0);X([(0,ee.property)()],M.prototype,"searchRequestSerializer",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"focusOnDisplay",void 0);X([(0,ee.state)()],M.prototype,"metadataFilters",void 0);X([(0,ee.state)()],M.prototype,"sizeCategory",void 0);X([(0,ee.state)()],M.prototype,"displayFacets",void 0);X([(0,ee.state)()],M.prototype,"mobileMenuOpen",void 0);X([(0,ee.state)()],M.prototype,"facets",void 0);X([(0,ee.state)()],M.prototype,"facetsInitialized",void 0);X([(0,ee.query)(".ft-search-bar--container")],M.prototype,"container",void 0);X([(0,ee.query)(".ft-search-bar--filters-opener")],M.prototype,"filtersOpener",void 0);X([(0,ee.query)(".ft-search-bar--floating-panel")],M.prototype,"floatingContainer",void 0);X([(0,ee.query)("ft-snap-scroll.ft-search-bar--filters-container")],M.prototype,"scrollingFiltersContainer",void 0);X([(0,ee.query)(".ft-search-bar--input")],M.prototype,"input",void 0);X([(0,ee.query)(".ft-search-bar--launch-search")],M.prototype,"launchSearchButton",void 0);X([(0,ee.state)()],M.prototype,"query",void 0);X([(0,ee.state)()],M.prototype,"suggestions",void 0);X([(0,ee.state)()],M.prototype,"recentSearches",void 0);X([(0,ee.state)()],M.prototype,"scrollToFacet",void 0);X([(0,ee.state)()],M.prototype,"api",void 0);X([(0,ee.state)()],M.prototype,"displaySuggestListbox",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestOptionId",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestRemoveRecent",void 0);X([(0,ee.state)()],M.prototype,"facetsLoaded",void 0)});var xx=p(()=>{"use strict"});var vx,Sx=p(()=>{"use strict";vx=f(v());jd();jd();ks();xx();(0,vx.customElement)("ft-search-bar")(M)});var Cx,Ox,wx,Ex=p(()=>{"use strict";Cx=f(R());xn();Ox=f(v());yt();Sx();wx=Cx.css`
3807
3807
  * {
3808
3808
  box-sizing: border-box;
3809
3809
  }
@@ -3852,7 +3852,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3852
3852
  ft-ripple {
3853
3853
  ${(0,Ox.setVariable)(S.opacityContentOnSurfaceHover,S.opacityContentOnSurfaceSelected)}
3854
3854
  }
3855
- `});var Ax,Xi,Rx,Lo,Ix=p(()=>{"use strict";Ax=f(v()),Xi=f(R());Ex();Rx=f(Qr());Qt();yt();Be();Rr();Wc();Lo=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Kr.get();return Xi.html`
3855
+ `});var Ax,Xi,Rx,Lo,Ix=p(()=>{"use strict";Ax=f(v()),Xi=f(R());Ex();Rx=f(Qr());Yt();yt();Be();Rr();Wc();Lo=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Kr.get();return Xi.html`
3856
3856
  <div class="ft-search-input-suggestion ft-word-wrap"
3857
3857
  id="${this.listboxId}"
3858
3858
  role="listbox"
@@ -3888,7 +3888,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3888
3888
  </div>
3889
3889
  `}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Qe.file_format:Qe.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?tt.BOOK:tt.ARTICLE;break;case"DOCUMENT":i=na(e.mimeType,e.filenameExtension);break;case"TOPIC":i=tt.TOPICS;break}return Xi.html`
3890
3890
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
3891
- `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};Lo.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};Lo.styles=[Ax.wordWrap,wx]});var Ji,sr,jt,Lx,Vt,He,Gd=p(()=>{"use strict";Ji=f(R()),sr=f(v());xn();ti();hr();Wc();jt=f(W()),Lx=f(wt());Ix();Yt();Be();Rr();Vt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},He=class extends It(tr){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=So.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Lo(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(So)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Kr.get().serializeToCurrentPageIfPossible(a,s);return Ji.html`
3891
+ `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};Lo.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};Lo.styles=[Ax.wordWrap,wx]});var Ji,sr,Gt,Lx,jt,He,Gd=p(()=>{"use strict";Ji=f(R()),sr=f(v());xn();ti();hr();Wc();Gt=f(W()),Lx=f(wt());Ix();Xt();Be();Rr();jt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},He=class extends It(rr){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=So.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Lo(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(So)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Kr.get().serializeToCurrentPageIfPossible(a,s);return Ji.html`
3892
3892
  <div class="${(0,Lx.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3893
3893
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3894
3894
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3935,12 +3935,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3935
3935
  ></ft-button>
3936
3936
  </div>
3937
3937
  </div>
3938
- `}renderLiveText(){return this.shouldDisplaySuggestions?So.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,sr.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!sr.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};He.elementDefinitions={"ft-button":Pe,...Lo.elementDefinitions};He.styles=[no,sr.noTextInputDefaultClearButton,_l,...Lo.styles,sr.screenReaderStyles];Vt([(0,sr.redux)()],He.prototype,"request",void 0);Vt([(0,sr.redux)()],He.prototype,"liveQuery",void 0);Vt([(0,sr.redux)()],He.prototype,"suggestResults",void 0);Vt([(0,jt.state)()],He.prototype,"forceCloseSuggestion",void 0);Vt([(0,jt.state)()],He.prototype,"displaySuggestListbox",void 0);Vt([(0,jt.state)()],He.prototype,"selectedSuggestOptionId",void 0);Vt([(0,jt.property)()],He.prototype,"launchSearchPath",void 0);Vt([(0,jt.property)()],He.prototype,"placeholder",void 0);Vt([(0,jt.property)({type:Boolean})],He.prototype,"useCustomSearchPath",void 0);Vt([(0,jt.property)({type:Boolean})],He.prototype,"triggerSearchOnClear",void 0);Vt([(0,jt.property)({type:Boolean})],He.prototype,"focusOnDisplay",void 0);Vt([(0,jt.query)(".ft-search-input--input")],He.prototype,"input",void 0);Vt([(0,jt.query)('[part="launch-search-in-input"]')],He.prototype,"launchSearchButton",void 0)});var kx=p(()=>{"use strict"});var $x={};No($x,{FtSearchInput:()=>He,FtSearchInputCssVariables:()=>me,styles:()=>_l});var Tx,Px=p(()=>{"use strict";Tx=f(v());Gd();xn();kx();Gd();(0,Tx.customElement)("ft-search-input")(He)});var _x,tS,Kd,qd=p(()=>{"use strict";_x=f(R()),tS={},Kd=_x.css`
3939
- `});var Zd,Nx=p(()=>{"use strict";hr();Zd=Ir.fromGwt("designedActionBlockAriaLabels")});var _s,Qd,Bx,eo,Yd=p(()=>{"use strict";_s=f(R()),Qd=f(v());qd();Yt();ti();hr();Nx();Bx=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},eo=class extends It(tr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(Zd)}render(){return this.isLastPage?_s.nothing:_s.html`
3938
+ `}renderLiveText(){return this.shouldDisplaySuggestions?So.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,sr.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!sr.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};He.elementDefinitions={"ft-button":Pe,...Lo.elementDefinitions};He.styles=[no,sr.noTextInputDefaultClearButton,_l,...Lo.styles,sr.screenReaderStyles];jt([(0,sr.redux)()],He.prototype,"request",void 0);jt([(0,sr.redux)()],He.prototype,"liveQuery",void 0);jt([(0,sr.redux)()],He.prototype,"suggestResults",void 0);jt([(0,Gt.state)()],He.prototype,"forceCloseSuggestion",void 0);jt([(0,Gt.state)()],He.prototype,"displaySuggestListbox",void 0);jt([(0,Gt.state)()],He.prototype,"selectedSuggestOptionId",void 0);jt([(0,Gt.property)()],He.prototype,"launchSearchPath",void 0);jt([(0,Gt.property)()],He.prototype,"placeholder",void 0);jt([(0,Gt.property)({type:Boolean})],He.prototype,"useCustomSearchPath",void 0);jt([(0,Gt.property)({type:Boolean})],He.prototype,"triggerSearchOnClear",void 0);jt([(0,Gt.property)({type:Boolean})],He.prototype,"focusOnDisplay",void 0);jt([(0,Gt.query)(".ft-search-input--input")],He.prototype,"input",void 0);jt([(0,Gt.query)('[part="launch-search-in-input"]')],He.prototype,"launchSearchButton",void 0)});var kx=p(()=>{"use strict"});var $x={};No($x,{FtSearchInput:()=>He,FtSearchInputCssVariables:()=>me,styles:()=>_l});var Tx,Px=p(()=>{"use strict";Tx=f(v());Gd();xn();kx();Gd();(0,Tx.customElement)("ft-search-input")(He)});var _x,tS,Kd,qd=p(()=>{"use strict";_x=f(R()),tS={},Kd=_x.css`
3939
+ `});var Zd,Nx=p(()=>{"use strict";hr();Zd=Ir.fromGwt("designedActionBlockAriaLabels")});var _s,Qd,Bx,eo,Yd=p(()=>{"use strict";_s=f(R()),Qd=f(v());qd();Xt();ti();hr();Nx();Bx=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},eo=class extends It(rr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(Zd)}render(){return this.isLastPage?_s.nothing:_s.html`
3940
3940
  <ft-button @click="${this.loadMore}">
3941
3941
  ${Zd.messages.searchPageLoadMore()}
3942
3942
  </ft-button>
3943
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};eo.elementDefinitions={"ft-button":Pe};eo.styles=Kd;Bx([(0,Qd.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],eo.prototype,"currentPage",void 0);Bx([(0,Qd.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],eo.prototype,"isLastPage",void 0)});var Dx=p(()=>{"use strict"});var Mx={};No(Mx,{FtSearchLoadMoreButton:()=>eo,FtSearchLoadMoreButtonCssVariables:()=>tS,styles:()=>Kd});var Fx,zx=p(()=>{"use strict";Fx=f(v());Yd();qd();Dx();Yd();(0,Fx.customElement)("ft-search-load-more-button")(eo)});var Ds,Bs,Ns,Jd,Xd,rS,en,ep=p(()=>{"use strict";Ds=f(v());ti();Bs=f(W()),Ns=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jd=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Xd=Symbol("registerInterval"),rS=(0,Ds.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Xd]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Xd]):this.dispatchEvent(new Jd)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Xd,Ns([(0,Bs.property)({attribute:!1})],r.prototype,"cluster",void 0),Ns([(0,Bs.property)({attribute:!1})],r.prototype,"result",void 0),Ns([(0,Ds.numberProperty)()],r.prototype,"rank",void 0),Ns([(0,Bs.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),en=class extends rS(tr){}});var tp,Ux,di,rp=p(()=>{"use strict";tp=f(R());ep();pa();Ux=f(ia());Be();di=class extends en{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?tp.html`
3943
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};eo.elementDefinitions={"ft-button":Pe};eo.styles=Kd;Bx([(0,Qd.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],eo.prototype,"currentPage",void 0);Bx([(0,Qd.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],eo.prototype,"isLastPage",void 0)});var Dx=p(()=>{"use strict"});var Mx={};No(Mx,{FtSearchLoadMoreButton:()=>eo,FtSearchLoadMoreButtonCssVariables:()=>tS,styles:()=>Kd});var Fx,zx=p(()=>{"use strict";Fx=f(v());Yd();qd();Dx();Yd();(0,Fx.customElement)("ft-search-load-more-button")(eo)});var Ds,Bs,Ns,Jd,Xd,rS,en,ep=p(()=>{"use strict";Ds=f(v());ti();Bs=f(W()),Ns=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jd=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Xd=Symbol("registerInterval"),rS=(0,Ds.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Xd]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Xd]):this.dispatchEvent(new Jd)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Xd,Ns([(0,Bs.property)({attribute:!1})],r.prototype,"cluster",void 0),Ns([(0,Bs.property)({attribute:!1})],r.prototype,"result",void 0),Ns([(0,Ds.numberProperty)()],r.prototype,"rank",void 0),Ns([(0,Bs.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),en=class extends rS(rr){}});var tp,Ux,di,rp=p(()=>{"use strict";tp=f(R());ep();pa();Ux=f(ia());Be();di=class extends en{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?tp.html`
3944
3944
  <ft-typography variant="body1" part="text">${(0,Ux.unsafeHTML)(e)}</ft-typography>
3945
3945
  `:tp.html`
3946
3946
  <style>
@@ -3971,7 +3971,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3971
3971
  }
3972
3972
  `});var Fs,Jx=p(()=>{"use strict";Fs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var ev,tn,tv,Ms,cp,Fr,dp=p(()=>{"use strict";ev=f(R()),tn=f(W()),tv=f(v());lp();Jx();Ms=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Fr=class extends tv.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Fs(e=>this.onResultSelected(e))}render(){return ev.html`
3973
3973
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3974
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new cp(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Fr.elementDefinitions={};Fr.styles=Xx;Ms([(0,tn.property)({attribute:!1})],Fr.prototype,"cluster",void 0);Ms([(0,tn.property)({attribute:!1,type:Boolean})],Fr.prototype,"openResultInNewTab",void 0);Ms([(0,tn.state)()],Fr.prototype,"result",void 0);Ms([(0,tn.property)()],Fr.prototype,"index",void 0)});var rv=p(()=>{"use strict"});var ov,iv=p(()=>{"use strict";ov=f(v());dp();lp();rv();dp();(0,ov.customElement)("ft-search-result-context")(Fr)});var rn,nv,pp=p(()=>{"use strict";hr();rn=Ir.build("searchResultsNumber"),nv={results:"{0} results","results[\\=1]":"1 result"}});var zs,av,Us,To,pi,Gt,up=p(()=>{"use strict";zs=f(R()),av=f(Qr()),Us=f(W()),To=f(v());sp();ti();iv();np();op();hr();pp();pi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gt=class extends It(tr){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>zs.html`
3974
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new cp(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Fr.elementDefinitions={};Fr.styles=Xx;Ms([(0,tn.property)({attribute:!1})],Fr.prototype,"cluster",void 0);Ms([(0,tn.property)({attribute:!1,type:Boolean})],Fr.prototype,"openResultInNewTab",void 0);Ms([(0,tn.state)()],Fr.prototype,"result",void 0);Ms([(0,tn.property)()],Fr.prototype,"index",void 0)});var rv=p(()=>{"use strict"});var ov,iv=p(()=>{"use strict";ov=f(v());dp();lp();rv();dp();(0,ov.customElement)("ft-search-result-context")(Fr)});var rn,nv,pp=p(()=>{"use strict";hr();rn=Ir.build("searchResultsNumber"),nv={results:"{0} results","results[\\=1]":"1 result"}});var zs,av,Us,To,pi,Kt,up=p(()=>{"use strict";zs=f(R()),av=f(Qr()),Us=f(W()),To=f(v());sp();ti();iv();np();op();hr();pp();pi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Kt=class extends It(rr){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>zs.html`
3975
3975
  <ft-search-result-title></ft-search-result-title>
3976
3976
  <ft-search-result-abstract></ft-search-result-abstract>
3977
3977
  `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(rn)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return zs.html`
@@ -3981,13 +3981,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3981
3981
  @ft-search-result-cluster-change=${a=>this.onClusterChange(r.id,a.detail)}>
3982
3982
  ${this.renderResult((n=this.selectedResultByCluster[r.id])!==null&&n!==void 0?n:r.entries[0],i)}
3983
3983
  </ft-search-result-context>
3984
- `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&To.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let n=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Gt.styles=ap;pi([(0,Us.property)({type:String,attribute:"cluster-policy"})],Gt.prototype,"clusterPolicy",void 0);pi([(0,Us.property)({type:Boolean})],Gt.prototype,"displayNoResultsMessage",void 0);pi([(0,Us.property)({attribute:!1})],Gt.prototype,"renderResult",void 0);pi([(0,To.jsonProperty)([])],Gt.prototype,"clusterSortCriterion",void 0);pi([(0,To.redux)({selector:t=>({...t.request,paging:void 0})})],Gt.prototype,"requestWithoutPaging",void 0);pi([(0,To.redux)({selector:t=>t.request.paging})],Gt.prototype,"paging",void 0);pi([(0,To.redux)()],Gt.prototype,"results",void 0)});var sv=p(()=>{"use strict"});var cv={};No(cv,{FtSearchResults:()=>Gt,FtSearchResultsCssVariables:()=>iS,styles:()=>ap});var lv,dv=p(()=>{"use strict";lv=f(v());up();sp();sv();up();(0,lv.customElement)("ft-search-results")(Gt)});var pv,nS,fp,hp=p(()=>{"use strict";pv=f(R()),nS={},fp=pv.css`
3984
+ `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&To.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let n=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Kt.styles=ap;pi([(0,Us.property)({type:String,attribute:"cluster-policy"})],Kt.prototype,"clusterPolicy",void 0);pi([(0,Us.property)({type:Boolean})],Kt.prototype,"displayNoResultsMessage",void 0);pi([(0,Us.property)({attribute:!1})],Kt.prototype,"renderResult",void 0);pi([(0,To.jsonProperty)([])],Kt.prototype,"clusterSortCriterion",void 0);pi([(0,To.redux)({selector:t=>({...t.request,paging:void 0})})],Kt.prototype,"requestWithoutPaging",void 0);pi([(0,To.redux)({selector:t=>t.request.paging})],Kt.prototype,"paging",void 0);pi([(0,To.redux)()],Kt.prototype,"results",void 0)});var sv=p(()=>{"use strict"});var cv={};No(cv,{FtSearchResults:()=>Kt,FtSearchResultsCssVariables:()=>iS,styles:()=>ap});var lv,dv=p(()=>{"use strict";lv=f(v());up();sp();sv();up();(0,lv.customElement)("ft-search-results")(Kt)});var pv,nS,fp,hp=p(()=>{"use strict";pv=f(R()),nS={},fp=pv.css`
3985
3985
 
3986
- `});var Hs,uv,aS,$o,mp=p(()=>{"use strict";Hs=f(R()),uv=f(v());hp();ti();hr();pp();Be();aS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$o=class extends It(tr){constructor(){super(),this.addI18nContext(rn,nv)}render(){return this.paging==null?Hs.nothing:Hs.html`
3986
+ `});var Hs,uv,aS,$o,mp=p(()=>{"use strict";Hs=f(R()),uv=f(v());hp();ti();hr();pp();Be();aS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$o=class extends It(rr){constructor(){super(),this.addI18nContext(rn,nv)}render(){return this.paging==null?Hs.nothing:Hs.html`
3987
3987
  <ft-typography variant="body1">
3988
3988
  ${rn.messages.results(this.paging.totalClustersCount)}
3989
3989
  </ft-typography>
3990
- `}};$o.elementDefinitions={"ft-typography":Z};$o.styles=fp;aS([(0,uv.redux)()],$o.prototype,"paging",void 0)});var fv=p(()=>{"use strict"});var mv={};No(mv,{FtSearchResultsNumber:()=>$o,FtSearchResultsNumberCssVariables:()=>nS,styles:()=>fp});var hv,gv=p(()=>{"use strict";hv=f(v());mp();hp();fv();mp();(0,hv.customElement)("ft-search-results-number")($o)});var yv=f(v());var Kt=f(R()),ui=f(v());var Dl=f(R()),N=f(v());var Ap=f(R()),ae=f(v());Mr();var pe={padding:ae.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:ae.FtCssVariableFactory.extend("--ft-card-border-radius","",ae.designSystemVariables.borderRadiusM),borderStyle:ae.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:ae.FtCssVariableFactory.extend("--ft-card-border-color","",ae.designSystemVariables.colorOutline),hoverBorderColor:ae.FtCssVariableFactory.extend("--ft-card-hover-border-color","",ae.designSystemVariables.colorPrimary),outlineStyle:ae.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:ae.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:ae.FtCssVariableFactory.extend("--ft-card-outline-color","",ae.designSystemVariables.colorPrimary),selectedOutlineStyle:ae.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:ae.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:ae.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",ae.designSystemVariables.colorPrimary),selectedBorderRadius:ae.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",ae.designSystemVariables.borderRadiusM),colorSurface:ae.FtCssVariableFactory.extend("--ft-card-background-color","",ae.designSystemVariables.colorSurface),colorOnSurfaceMedium:ae.FtCssVariableFactory.extend("--ft-card-content-color","",ae.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:ae.FtCssVariableFactory.extend("--ft-card-title-color","",ae.designSystemVariables.colorOnSurfaceHigh),elevation02:ae.FtCssVariableFactory.extend("--ft-card-elevation","",ae.designSystemVariables.elevation02),elevation04:ae.FtCssVariableFactory.extend("--ft-card-selected-elevation","",ae.designSystemVariables.elevation04)},Rp=Ap.css`
3990
+ `}};$o.elementDefinitions={"ft-typography":Z};$o.styles=fp;aS([(0,uv.redux)()],$o.prototype,"paging",void 0)});var fv=p(()=>{"use strict"});var mv={};No(mv,{FtSearchResultsNumber:()=>$o,FtSearchResultsNumberCssVariables:()=>nS,styles:()=>fp});var hv,gv=p(()=>{"use strict";hv=f(v());mp();hp();fv();mp();(0,hv.customElement)("ft-search-results-number")($o)});var yv=f(v());var qt=f(R()),ui=f(v());var Dl=f(R()),N=f(v());var Ap=f(R()),ae=f(v());Mr();var pe={padding:ae.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:ae.FtCssVariableFactory.extend("--ft-card-border-radius","",ae.designSystemVariables.borderRadiusM),borderStyle:ae.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:ae.FtCssVariableFactory.extend("--ft-card-border-color","",ae.designSystemVariables.colorOutline),hoverBorderColor:ae.FtCssVariableFactory.extend("--ft-card-hover-border-color","",ae.designSystemVariables.colorPrimary),outlineStyle:ae.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:ae.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:ae.FtCssVariableFactory.extend("--ft-card-outline-color","",ae.designSystemVariables.colorPrimary),selectedOutlineStyle:ae.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:ae.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:ae.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",ae.designSystemVariables.colorPrimary),selectedBorderRadius:ae.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",ae.designSystemVariables.borderRadiusM),colorSurface:ae.FtCssVariableFactory.extend("--ft-card-background-color","",ae.designSystemVariables.colorSurface),colorOnSurfaceMedium:ae.FtCssVariableFactory.extend("--ft-card-content-color","",ae.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:ae.FtCssVariableFactory.extend("--ft-card-title-color","",ae.designSystemVariables.colorOnSurfaceHigh),elevation02:ae.FtCssVariableFactory.extend("--ft-card-elevation","",ae.designSystemVariables.elevation02),elevation04:ae.FtCssVariableFactory.extend("--ft-card-selected-elevation","",ae.designSystemVariables.elevation04)},Rp=Ap.css`
3991
3991
  :host {
3992
3992
  display: block;
3993
3993
  }
@@ -4161,25 +4161,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4161
4161
  </ft-typography>
4162
4162
  </div>
4163
4163
  </div>
4164
- `}};Lt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};Lt.styles=Rp;Hi([(0,ei.property)()],Lt.prototype,"title",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"clickable",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"selected",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"noHeader",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"noContent",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"oneLineHeader",void 0);(0,cy.customElement)("ft-card")(Lt);Nc();var to=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class t extends It(Ja){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,ui.randomId)(6,"search-in-document-"),this.addI18nContext(_c)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return Kt.html`
4164
+ `}};Lt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};Lt.styles=Rp;Hi([(0,ei.property)()],Lt.prototype,"title",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"clickable",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"selected",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"noHeader",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"noContent",void 0);Hi([(0,ei.property)({type:Boolean})],Lt.prototype,"oneLineHeader",void 0);(0,cy.customElement)("ft-card")(Lt);Nc();var to=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class t extends It(Ja){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,ui.randomId)(6,"search-in-document-"),this.addI18nContext(_c)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return qt.html`
4165
4165
  <style> ${Lh}</style>
4166
4166
  <a href="${ts(e)}" @click=${()=>this.onLinkClick(e,r)}
4167
4167
  @auxclick=${n=>this.onAuxClick(n,e,r)}
4168
4168
  @contextmenu=${()=>this.onContextMenu(e,r)}>
4169
4169
  <ft-card clickable noheader>
4170
4170
  <div class="result-container">
4171
- ${this.hideResultTitle?Kt.nothing:Kt.html`
4171
+ ${this.hideResultTitle?qt.nothing:qt.html`
4172
4172
  <ft-search-result-title withoutLink="true"></ft-search-result-title>`}
4173
- ${this.hideResultBreadcrumb?Kt.nothing:Kt.html`
4173
+ ${this.hideResultBreadcrumb?qt.nothing:qt.html`
4174
4174
  <ft-typography class="breadcrumb" variant="caption">${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}</ft-typography>
4175
4175
  `}
4176
- ${this.hideResultAbstract?Kt.nothing:Kt.html`
4176
+ ${this.hideResultAbstract?qt.nothing:qt.html`
4177
4177
  <ft-search-result-abstract></ft-search-result-abstract>
4178
4178
  `}
4179
4179
  </div>
4180
4180
  </ft-card>
4181
4181
  </a>
4182
- `}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new Vi(e,r))}render(){return this.map?Kt.html`
4182
+ `}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new Vi(e,r))}render(){return this.map?qt.html`
4183
4183
  <ft-search-context id="${this.uniqueId}"
4184
4184
  part="search-context"
4185
4185
  contentLocale="${this.map.lang}"
@@ -4191,7 +4191,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4191
4191
  <ft-search-input placeholder="${_c.messages.placeholder()}"
4192
4192
  ?triggerSearchOnClear=${this.emptyResultOnClear}
4193
4193
  @change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
4194
- ${this.hideResultsNumber?Kt.nothing:Kt.html`
4194
+ ${this.hideResultsNumber?qt.nothing:qt.html`
4195
4195
  <ft-search-results-number></ft-search-results-number>
4196
4196
  `}
4197
4197
  <ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
@@ -4203,7 +4203,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4203
4203
  </slot>
4204
4204
  </div>
4205
4205
  </ft-search-context>
4206
- `:Kt.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,ui.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new Wi(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(wy(),Oy)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Px(),$x)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(zx(),Mx)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(op(),Vx)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(np(),Zx)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(dv(),cv)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(gv(),mv)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};Ct.elementDefinitions={"ft-card":Lt};Ct.styles=Ih;to([(0,ui.redux)()],Ct.prototype,"map",void 0);to([(0,ui.redux)()],Ct.prototype,"searchInDocumentQuery",void 0);to([(0,ro.query)("ft-search-results")],Ct.prototype,"searchResults",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultTitle",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultBreadcrumb",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultAbstract",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultsNumber",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"emptyResultOnClear",void 0);to([(0,ro.query)('[part="search-context"]')],Ct.prototype,"searchContext",void 0);(0,yv.customElement)("ft-reader-search-in-document")(Ct);})();
4206
+ `:qt.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,ui.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new Wi(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(wy(),Oy)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Px(),$x)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(zx(),Mx)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(op(),Vx)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(np(),Zx)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(dv(),cv)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(gv(),mv)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};Ct.elementDefinitions={"ft-card":Lt};Ct.styles=Ih;to([(0,ui.redux)()],Ct.prototype,"map",void 0);to([(0,ui.redux)()],Ct.prototype,"searchInDocumentQuery",void 0);to([(0,ro.query)("ft-search-results")],Ct.prototype,"searchResults",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultTitle",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultBreadcrumb",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultAbstract",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"hideResultsNumber",void 0);to([(0,ro.property)({type:Boolean})],Ct.prototype,"emptyResultOnClear",void 0);to([(0,ro.query)('[part="search-context"]')],Ct.prototype,"searchContext",void 0);(0,yv.customElement)("ft-reader-search-in-document")(Ct);})();
4207
4207
  /*! Bundled license information:
4208
4208
 
4209
4209
  lit-html/lit-html.js: