@aquera/nile-elements 0.1.24 → 0.1.26

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.
Files changed (220) hide show
  1. package/README.md +13 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/index.html +0 -2
  4. package/demo/variables.css +1 -0
  5. package/demo/variables_v2.css +1 -0
  6. package/dist/{angular-ts-a62c12b7.cjs.js → angular-ts-5f927069.cjs.js} +2 -2
  7. package/dist/{angular-ts-a62c12b7.cjs.js.map → angular-ts-5f927069.cjs.js.map} +1 -1
  8. package/dist/index.cjs.js +1 -1
  9. package/dist/index.esm.js +1 -1
  10. package/dist/lit-element-9e4e16c6.cjs.js +18 -0
  11. package/dist/lit-element-9e4e16c6.cjs.js.map +1 -0
  12. package/dist/lit-element-a5a64515.esm.js +23 -0
  13. package/dist/nile-auto-complete/index.cjs.js +1 -1
  14. package/dist/nile-auto-complete/index.esm.js +1 -1
  15. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +5 -13
  16. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  17. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +6 -4
  20. package/dist/nile-auto-complete/nile-auto-complete.esm.js +9 -22
  21. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  26. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  27. package/dist/nile-badge/index.cjs.js +1 -1
  28. package/dist/nile-badge/index.esm.js +1 -1
  29. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  30. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  31. package/dist/nile-badge/nile-badge.esm.js +1 -1
  32. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  33. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  34. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  35. package/dist/nile-button/index.cjs.js +1 -1
  36. package/dist/nile-button/index.esm.js +1 -1
  37. package/dist/nile-button/nile-button.cjs.js +1 -1
  38. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  39. package/dist/nile-button/nile-button.esm.js +1 -1
  40. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  41. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  42. package/dist/nile-button/nile-button.test.esm.js +1 -1
  43. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  44. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  45. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  46. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  47. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  48. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  49. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  50. package/dist/nile-dialog/index.cjs.js +1 -1
  51. package/dist/nile-dialog/index.esm.js +1 -1
  52. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  53. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  54. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  55. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  56. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  57. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  58. package/dist/nile-drawer/index.cjs.js +1 -1
  59. package/dist/nile-drawer/index.esm.js +1 -1
  60. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  61. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  62. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  63. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  64. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  65. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  66. package/dist/nile-highlighter/index.cjs.js +1 -1
  67. package/dist/nile-highlighter/index.esm.js +1 -1
  68. package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
  69. package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
  70. package/dist/nile-icon/icons/svg/comment.cjs.js +2 -0
  71. package/dist/nile-icon/icons/svg/comment.cjs.js.map +1 -0
  72. package/dist/nile-icon/icons/svg/comment.esm.js +1 -0
  73. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  74. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  75. package/dist/nile-icon/icons/svg/returnvalue.cjs.js +1 -1
  76. package/dist/nile-icon/icons/svg/returnvalue.cjs.js.map +1 -1
  77. package/dist/nile-icon/icons/svg/returnvalue.esm.js +1 -1
  78. package/dist/nile-icon/index.cjs.js +1 -1
  79. package/dist/nile-icon/index.cjs.js.map +1 -1
  80. package/dist/nile-icon/index.esm.js +1 -1
  81. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  82. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  83. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  84. package/dist/nile-icon-button/index.cjs.js +1 -1
  85. package/dist/nile-icon-button/index.esm.js +1 -1
  86. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  87. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  88. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  89. package/dist/nile-input/index.cjs.js +1 -1
  90. package/dist/nile-input/index.esm.js +1 -1
  91. package/dist/nile-input/nile-input.cjs.js +1 -1
  92. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  93. package/dist/nile-input/nile-input.esm.js +1 -1
  94. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  95. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  96. package/dist/nile-input/nile-input.test.esm.js +1 -1
  97. package/dist/nile-menu-item/index.cjs.js +1 -1
  98. package/dist/nile-menu-item/index.esm.js +1 -1
  99. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  100. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  101. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  102. package/dist/nile-option/index.cjs.js +1 -1
  103. package/dist/nile-option/index.esm.js +1 -1
  104. package/dist/nile-option/nile-option.cjs.js +1 -1
  105. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  106. package/dist/nile-option/nile-option.esm.js +1 -1
  107. package/dist/nile-popover/index.cjs.js +1 -1
  108. package/dist/nile-popover/index.esm.js +1 -1
  109. package/dist/nile-popover/nile-popover.cjs.js +1 -1
  110. package/dist/nile-popover/nile-popover.esm.js +1 -1
  111. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  112. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  113. package/dist/nile-select/index.cjs.js +1 -1
  114. package/dist/nile-select/index.esm.js +1 -1
  115. package/dist/nile-select/nile-select.cjs.js +1 -1
  116. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  117. package/dist/nile-select/nile-select.esm.js +1 -1
  118. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  119. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  120. package/dist/nile-select/nile-select.test.esm.js +1 -1
  121. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  122. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  123. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  124. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  125. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +1 -1
  126. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  127. package/dist/nile-tab/index.cjs.js +1 -1
  128. package/dist/nile-tab/index.esm.js +1 -1
  129. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  130. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  131. package/dist/nile-tab/nile-tab.esm.js +1 -1
  132. package/dist/nile-tab-group/index.cjs.js +1 -1
  133. package/dist/nile-tab-group/index.esm.js +1 -1
  134. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  135. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  136. package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
  137. package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
  138. package/dist/nile-tab-group/nile-tab-group.css.esm.js +1 -1
  139. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  140. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  141. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  142. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  143. package/dist/nile-tag/index.cjs.js +1 -1
  144. package/dist/nile-tag/index.esm.js +1 -1
  145. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  146. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  147. package/dist/nile-tag/nile-tag.esm.js +1 -1
  148. package/dist/nile-toast/index.cjs.js +1 -1
  149. package/dist/nile-toast/index.esm.js +1 -1
  150. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  151. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  152. package/dist/nile-toast/nile-toast.esm.js +2 -2
  153. package/dist/nile-tree/index.cjs.js +1 -1
  154. package/dist/nile-tree/index.esm.js +1 -1
  155. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  156. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  157. package/dist/nile-tree/nile-tree.esm.js +1 -1
  158. package/dist/nile-tree-item/index.cjs.js +1 -1
  159. package/dist/nile-tree-item/index.esm.js +1 -1
  160. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  161. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  162. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  163. package/dist/src/index.d.ts +0 -1
  164. package/dist/src/index.js +0 -1
  165. package/dist/src/index.js.map +1 -1
  166. package/dist/src/nile-auto-complete/nile-auto-complete.css.js +6 -4
  167. package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
  168. package/dist/src/nile-auto-complete/nile-auto-complete.d.ts +4 -3
  169. package/dist/src/nile-auto-complete/nile-auto-complete.js +35 -11
  170. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  171. package/dist/src/nile-chip/nile-chip.d.ts +2 -2
  172. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  173. package/dist/src/nile-icon/icons/svg/comment.d.ts +5 -0
  174. package/dist/src/nile-icon/icons/svg/comment.js +5 -0
  175. package/dist/src/nile-icon/icons/svg/comment.js.map +1 -0
  176. package/dist/src/nile-icon/icons/svg/index.d.ts +1 -1
  177. package/dist/src/nile-icon/icons/svg/index.js +1 -1
  178. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  179. package/dist/src/nile-slide-toggle/nile-slide-toggle.js +2 -2
  180. package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
  181. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +2 -2
  182. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
  183. package/dist/src/nile-tab-group/nile-tab-group.css.js +1 -1
  184. package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +3 -4
  187. package/src/index.ts +1 -2
  188. package/src/nile-auto-complete/nile-auto-complete.css.ts +6 -4
  189. package/src/nile-auto-complete/nile-auto-complete.ts +37 -13
  190. package/src/nile-chip/nile-chip.ts +2 -2
  191. package/src/nile-icon/icons/svg/comment.ts +5 -0
  192. package/src/nile-icon/icons/svg/index.ts +1 -1
  193. package/src/nile-slide-toggle/nile-slide-toggle.test.ts +2 -2
  194. package/src/nile-slide-toggle/nile-slide-toggle.ts +2 -2
  195. package/src/nile-tab-group/nile-tab-group.css.ts +1 -1
  196. package/vscode-html-custom-data.json +6 -21
  197. package/dist/lit-element-3b4aa6c6.esm.js +0 -23
  198. package/dist/lit-element-b510b02d.cjs.js +0 -14
  199. package/dist/lit-element-b510b02d.cjs.js.map +0 -1
  200. package/dist/nile-tour/index.cjs.js +0 -2
  201. package/dist/nile-tour/index.cjs.js.map +0 -1
  202. package/dist/nile-tour/index.esm.js +0 -1
  203. package/dist/nile-tour/nile-tour.cjs.js +0 -10
  204. package/dist/nile-tour/nile-tour.cjs.js.map +0 -1
  205. package/dist/nile-tour/nile-tour.css.cjs.js +0 -2
  206. package/dist/nile-tour/nile-tour.css.cjs.js.map +0 -1
  207. package/dist/nile-tour/nile-tour.css.esm.js +0 -233
  208. package/dist/nile-tour/nile-tour.esm.js +0 -24
  209. package/dist/src/nile-tour/index.d.ts +0 -1
  210. package/dist/src/nile-tour/index.js +0 -2
  211. package/dist/src/nile-tour/index.js.map +0 -1
  212. package/dist/src/nile-tour/nile-tour.css.d.ts +0 -12
  213. package/dist/src/nile-tour/nile-tour.css.js +0 -245
  214. package/dist/src/nile-tour/nile-tour.css.js.map +0 -1
  215. package/dist/src/nile-tour/nile-tour.d.ts +0 -36
  216. package/dist/src/nile-tour/nile-tour.js +0 -180
  217. package/dist/src/nile-tour/nile-tour.js.map +0 -1
  218. package/src/nile-tour/index.ts +0 -1
  219. package/src/nile-tour/nile-tour.css.ts +0 -247
  220. package/src/nile-tour/nile-tour.ts +0 -199
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.24",
6
+ "version": "0.1.26",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -121,8 +121,7 @@
121
121
  "@lit-labs/virtualizer": "^2.0.15",
122
122
  "codemirror": "6.0.1",
123
123
  "chalk": "5.3.0",
124
- "figlet": "1.7.0",
125
- "intro.js": "7.2.0"
124
+ "figlet": "1.7.0"
126
125
  },
127
126
  "devDependencies": {
128
127
  "@custom-elements-manifest/analyzer": "^0.4.17",
@@ -191,4 +190,4 @@
191
190
  "prettier --write"
192
191
  ]
193
192
  }
194
- }
193
+ }
package/src/index.ts CHANGED
@@ -76,5 +76,4 @@ export { NileSectionMessage } from './nile-section-message';
76
76
  export { NileToolbar } from './nile-toolbar';
77
77
  export { NileHighlighter } from './nile-highlighter';
78
78
 
79
- export { NileInlineEdit } from './nile-inline-edit';
80
- export { NileTour } from './nile-tour';
79
+ export { NileInlineEdit } from './nile-inline-edit';
@@ -12,18 +12,20 @@ import { css } from 'lit';
12
12
  */
13
13
  export const styles = css`
14
14
  :host {
15
- --virtual-scroll-container-width:100px;
15
+ --virtual-scroll-container-width:110px;
16
+ --virtual-scroll-container-height:200px;
16
17
  }
17
18
 
18
19
  .nile-dropdown--input {
19
20
  width: 100%;
20
21
  }
21
22
 
22
- .nile-dropdown--input lit-virtualizer{
23
- min-width: var(--virtual-scroll-container-width)!important;
23
+ .virtualized__menu{
24
+ min-width: var(--virtual-scroll-container-width);
25
+ min-height: var(--virtual-scroll-container-height) !important;
24
26
  }
25
27
 
26
- .nile-dropdown--input nile-menu-item{
28
+ .virtualized__menu nile-menu-item{
27
29
  width:100%;
28
30
  }
29
31
 
@@ -10,7 +10,8 @@ import { styles } from './nile-auto-complete.css';
10
10
  import NileElement from '../internal/nile-element';
11
11
  import type { CSSResultGroup, PropertyValues } from 'lit';
12
12
  import { NileDropdown } from '../nile-dropdown';
13
- import '@lit-labs/virtualizer';
13
+
14
+ import { virtualize } from '@lit-labs/virtualizer/virtualize.js';
14
15
 
15
16
  // Define the custom element 'nile-auto-complete'
16
17
  @customElement('nile-auto-complete')
@@ -22,6 +23,8 @@ export class NileAutoComplete extends NileElement {
22
23
 
23
24
  // Define component properties
24
25
 
26
+ @property({ type: Boolean }) disabled: boolean = false;
27
+
25
28
  @property({ type: Boolean }) isDropdownOpen: boolean = false;
26
29
 
27
30
  @property({ type: Boolean }) enableVirtualScroll: boolean = false;
@@ -36,9 +39,9 @@ export class NileAutoComplete extends NileElement {
36
39
 
37
40
  @property({ type: Boolean }) loading: boolean = false;
38
41
 
39
- @property({ attribute:false}) filterFunction: any = (item:string,searchedValue:string)=>item.toLowerCase().includes(searchedValue.toLowerCase());
42
+ @property({ attribute:false}) filterFunction: (item:string,searchedValue:string)=>boolean=(item:string,searchedValue:string)=>item.toLowerCase().includes(searchedValue.toLowerCase());
40
43
 
41
- @property({ attribute:false}) renderItemFunction: any = (item:any)=>item;
44
+ @property({ attribute:false}) renderItemFunction: (item:any)=>string = (item:any)=>item;
42
45
 
43
46
  @property({ type: Array }) allMenuItems: any = [];
44
47
 
@@ -46,13 +49,19 @@ export class NileAutoComplete extends NileElement {
46
49
 
47
50
  connectedCallback() {
48
51
  super.connectedCallback();
49
- this.menuItems = [...this.allMenuItems];
52
+ this.renderItemFunction=(item:any)=>item;
50
53
  }
51
54
 
52
55
  protected updated(changedProperties: PropertyValues): void {
53
56
  super.updated(changedProperties);
54
- if (changedProperties.has('allMenuItems')) this.menuItems = [...this.allMenuItems];
57
+ if (changedProperties.has('allMenuItems')){
58
+ this.menuItems = this.applyFilter(this.allMenuItems,this.filterFunction);
59
+ this.setVirtualMenuWidth();
60
+ }
55
61
  if (changedProperties.has('isDropdownOpen')) this.menuItems = this.applyFilter(this.allMenuItems,this.filterFunction);
62
+ if (changedProperties.has('value')){
63
+ this.menuItems = this.applyFilter(this.allMenuItems,this.filterFunction);
64
+ }
56
65
  }
57
66
 
58
67
  public render(): TemplateResult {
@@ -61,6 +70,7 @@ export class NileAutoComplete extends NileElement {
61
70
  <nile-dropdown class="nile-dropdown--input" ?open=${this.isDropdownOpen} noOpenOnCLick>
62
71
  <nile-input class="nile-auto-complete--input"
63
72
  ?no-border=${this.noBorder}
73
+ .disabled=${this.disabled}
64
74
  .value=${this.value}
65
75
  @nile-input=${this.handleSearch}
66
76
  @focus=${this.handleFocus}
@@ -79,11 +89,12 @@ export class NileAutoComplete extends NileElement {
79
89
 
80
90
  getVirtualizedContent():TemplateResult{
81
91
  return html`
82
- <nile-menu @nile-select=${this.handleSelect} id="content-menu" exportparts="menu__items-wrapper:options__wrapper">
83
- <lit-virtualizer
84
- .items=${this.menuItems}
85
- .renderItem=${(item:any):TemplateResult=>this.getItemRenderFunction(item)}
86
- ></lit-virtualizer>
92
+ <nile-menu class="virtualized__menu" @nile-select=${this.handleSelect} id="content-menu" exportparts="menu__items-wrapper:options__wrapper">
93
+ ${virtualize({
94
+ items: this.menuItems,
95
+ renderItem: (item:any):TemplateResult=>this.getItemRenderFunction(item),
96
+ scroller:true
97
+ })}
87
98
  </nile-menu>
88
99
  `
89
100
  }
@@ -107,13 +118,25 @@ export class NileAutoComplete extends NileElement {
107
118
  private handleSelect(event: CustomEvent) {
108
119
  this.value = event.detail.value;
109
120
  this.emit('nile-complete', { value: event.detail.value });
121
+ this.emit('nile-input', { value: event.detail.value });
110
122
  this.isDropdownOpen = false;
111
123
  this.dropdownElement?.hide();
112
124
  }
113
125
 
126
+ private setVirtualMenuWidth() {
127
+ const maxLengthOption = this.menuItems
128
+ .reduce((acc: number, curr: any) => {
129
+ const currLength = this.renderItemFunction(curr).length
130
+ return acc > currLength ? acc : currLength
131
+ }, 0)
132
+ const defaultWith = 110;
133
+ const pixelMultiplier = 9.5;
134
+ const menuWidth = maxLengthOption * pixelMultiplier < defaultWith ? defaultWith : maxLengthOption * pixelMultiplier;
135
+ this.style.setProperty("--virtual-scroll-container-width", menuWidth + "px");
136
+ }
137
+
114
138
  private handleSearch(event: CustomEvent) {
115
- const searchValue = event.detail.value.toLowerCase();
116
- this.value = searchValue;
139
+ this.value = event.detail.value.toLowerCase();
117
140
 
118
141
  // Filter menu items based on the search value
119
142
  this.menuItems = this.applyFilter(this.allMenuItems,this.filterFunction);
@@ -140,6 +163,7 @@ export class NileAutoComplete extends NileElement {
140
163
  }
141
164
 
142
165
  applyFilter<T>(list: T[], filterFn: (item: T,searchValue?:string) => boolean): T[] {
166
+ if(typeof(list)!=='object') return []
143
167
  const res:T[]=[]
144
168
  list.forEach( el=> filterFn(el,this.value) && res.push(el) )
145
169
  return res
@@ -153,4 +177,4 @@ declare global {
153
177
  interface HTMLElementTagNameMap {
154
178
  'nile-auto-complete': NileAutoComplete;
155
179
  }
156
- }
180
+ }
@@ -93,9 +93,9 @@ export class NileChip extends NileElement {
93
93
 
94
94
  @property({ attribute: 'error-message', reflect: true }) errorMessage = '';
95
95
 
96
- @property({ attribute:false}) filterFunction: any = (item:string,searchedValue:string)=>item.toLowerCase().includes(searchedValue.toLowerCase());
96
+ @property({ attribute:false}) filterFunction: (item:string,searchedValue:string)=>boolean = (item:string,searchedValue:string)=>item.toLowerCase().includes(searchedValue.toLowerCase());
97
97
 
98
- @property({ attribute:false}) renderItemFunction: any = (item:any)=>item;
98
+ @property({ attribute:false}) renderItemFunction: (item:any)=>string = (item:any)=>item;
99
99
 
100
100
  protected updated(changedProperties: PropertyValues): void {
101
101
  super.updated(changedProperties);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit directly
3
+ */
4
+
5
+ export default "PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEuNSAxMy4yODU3VjEuNUgxMi41VjEwLjc2NjRIMy43MTY0MkwxLjUgMTMuMjg1N1pNMi4zMjA5IDIuMzcxNzJWMTEuMDg5TDMuMzE0MTggOS45MzgyOUgxMS42NzkxVjIuMzcxNzJIMi4zMjA5Wk0zLjcxNzI5IDdIMTAuMjY2NFY3LjgxMzU2SDMuNzE3MjlWN1pNMTAuMjY2NCA0LjVIMy43MTcyOVY1LjMxMzU2SDEwLjI2NjRWNC41WiIgZmlsbD0iYmxhY2siLz48L3N2Zz4=";
@@ -89,6 +89,7 @@ export { default as color } from './color';
89
89
  export { default as column02 } from './column-02';
90
90
  export { default as columns03 } from './columns-03';
91
91
  export { default as combo1 } from './combo1';
92
+ export { default as comment } from './comment';
92
93
  export { default as compact } from './compact';
93
94
  export { default as comparetiles } from './compare-tiles';
94
95
  export { default as compare } from './compare';
@@ -414,7 +415,6 @@ export { default as reminder } from './reminder';
414
415
  export { default as resize } from './resize';
415
416
  export { default as resource } from './resource';
416
417
  export { default as restart_alt } from './restart_alt';
417
- export { default as returnvalue } from './returnvalue';
418
418
  export { default as revocationcycle } from './revocationcycle';
419
419
  export { default as revokationcycle } from './revokation-cycle';
420
420
  export { default as rightjoin } from './right-join';
@@ -40,9 +40,9 @@ describe('NileSlideToggle', () => {
40
40
  });
41
41
  const input = el.shadowRoot!.querySelector('input')!;
42
42
  input.click();
43
- expect(changeDetail).to.deep.equal({ checked: true });
43
+ expect(changeDetail).to.deep.contain({ checked: true,value: true });
44
44
  input.click();
45
- expect(changeDetail).to.deep.equal({ checked: false });
45
+ expect(changeDetail).to.deep.contain({ checked: false,value: false });
46
46
  });
47
47
 
48
48
  it('should show help text when provided', async () => {
@@ -38,8 +38,8 @@ export class NileSlideToggle extends NileElement {
38
38
 
39
39
  toggleValue() {
40
40
  this.isChecked = !this.isChecked;
41
- this.emit('change',{ checked: this.isChecked });
42
- this.emit('nile-change',{ checked: this.isChecked });
41
+ this.emit('change',{ checked: this.isChecked, value: this.isChecked });
42
+ this.emit('nile-change',{ checked: this.isChecked, value: this.isChecked });
43
43
  }
44
44
 
45
45
  public render() {
@@ -49,7 +49,7 @@ export const styles = css`
49
49
  position: absolute;
50
50
  height: var(--track-width);
51
51
  width: 100%;
52
- background: var(--nile-colors-neutral-400);
52
+ background: var(--nile-tab-track-color);
53
53
  bottom:0px;
54
54
  z-index:-1;
55
55
  }
@@ -62,8 +62,13 @@
62
62
  },
63
63
  {
64
64
  "name": "nile-auto-complete",
65
- "description": "Attributes:\n\n * `isDropdownOpen` {`boolean`} - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `openOnFocus` {`boolean`} - \n\n * `value` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `noBorder` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `allMenuItems` - \n\nProperties:\n\n * `styles` - \n\n * `dropdownElement` - \n\n * `isDropdownOpen` {`boolean`} - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `openOnFocus` {`boolean`} - \n\n * `value` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `noBorder` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `filterFunction` - \n\n * `renderItemFunction` - \n\n * `allMenuItems` - \n\n * `menuItems` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
65
+ "description": "Attributes:\n\n * `disabled` {`boolean`} - \n\n * `isDropdownOpen` {`boolean`} - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `openOnFocus` {`boolean`} - \n\n * `value` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `noBorder` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `allMenuItems` - \n\nProperties:\n\n * `styles` - \n\n * `dropdownElement` - \n\n * `disabled` {`boolean`} - \n\n * `isDropdownOpen` {`boolean`} - \n\n * `enableVirtualScroll` {`boolean`} - \n\n * `openOnFocus` {`boolean`} - \n\n * `value` {`string`} - \n\n * `placeholder` {`string`} - \n\n * `noBorder` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `filterFunction` - \n\n * `renderItemFunction` - \n\n * `allMenuItems` - \n\n * `menuItems` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
66
66
  "attributes": [
67
+ {
68
+ "name": "disabled",
69
+ "description": "`disabled` {`boolean`} - \n\nProperty: disabled\n\nDefault: false",
70
+ "valueSet": "v"
71
+ },
67
72
  {
68
73
  "name": "isDropdownOpen",
69
74
  "description": "`isDropdownOpen` {`boolean`} - \n\nProperty: isDropdownOpen\n\nDefault: false",
@@ -3848,26 +3853,6 @@
3848
3853
  }
3849
3854
  ]
3850
3855
  },
3851
- {
3852
- "name": "nile-tour",
3853
- "description": "Attributes:\n\n * `stepsJson` {`string`} - JSON string for steps.\n\n * `showBackdrop` {`boolean`} - Whether to show the backdrop overlay.\n\n * `disableInteraction` {`boolean`} - Whether to disable interaction during the tour.\n\nProperties:\n\n * `tourInstance` - \n\n * `stepsJson` {`string`} - JSON string for steps.\n\n * `showBackdrop` {`boolean`} - Whether to show the backdrop overlay.\n\n * `disableInteraction` {`boolean`} - Whether to disable interaction during the tour.",
3854
- "attributes": [
3855
- {
3856
- "name": "stepsJson",
3857
- "description": "`stepsJson` {`string`} - JSON string for steps.\n\nProperty: stepsJson\n\nDefault: "
3858
- },
3859
- {
3860
- "name": "showBackdrop",
3861
- "description": "`showBackdrop` {`boolean`} - Whether to show the backdrop overlay.\n\nProperty: showBackdrop\n\nDefault: false",
3862
- "valueSet": "v"
3863
- },
3864
- {
3865
- "name": "disableInteraction",
3866
- "description": "`disableInteraction` {`boolean`} - Whether to disable interaction during the tour.\n\nProperty: disableInteraction\n\nDefault: false",
3867
- "valueSet": "v"
3868
- }
3869
- ]
3870
- },
3871
3856
  {
3872
3857
  "name": "nile-tree-item",
3873
3858
  "description": "Events:\n\n * `nile-expand` {} - Emitted when the tree item expands.\n\n * `nile-after-expand` {} - Emitted after the tree item expands and all animations are complete.\n\n * `nile-collapse` {} - Emitted when the tree item collapses.\n\n * `nile-after-collapse` {} - Emitted after the tree item collapses and all animations are complete.\n\n * `nile-lazy-change` {} - Emitted when the tree item's lazy state changes.\n\n * `nile-lazy-load` {} - Emitted when a lazy item is selected. Use this event to asynchronously load data and append\nitems to the tree before expanding. After appending new items, remove the `lazy` attribute to remove the loading\nstate and update the tree.\n\nSlots:\n\n * ` ` {} - The default slot.\n\n * `expand-icon` {} - The icon to show when the tree item is expanded.\n\n * `collapse-icon` {} - The icon to show when the tree item is collapsed.\n\nAttributes:\n\n * `expanded` {`boolean`} - Expands the tree item.\n\n * `selected` {`boolean`} - Draws the tree item in a selected state.\n\n * `disabled` {`boolean`} - Disables the tree item.\n\n * `lazy` {`boolean`} - Enables lazy loading behavior.\n\nProperties:\n\n * `styles` - \n\n * `indeterminate` {`boolean`} - \n\n * `isLeaf` {`boolean`} - \n\n * `loading` {`boolean`} - \n\n * `selectable` {`boolean`} - \n\n * `expanded` {`boolean`} - Expands the tree item.\n\n * `selected` {`boolean`} - Draws the tree item in a selected state.\n\n * `disabled` {`boolean`} - Disables the tree item.\n\n * `lazy` {`boolean`} - Enables lazy loading behavior.\n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `childrenSlot` {`HTMLSlotElement`} - \n\n * `itemElement` {`HTMLDivElement`} - \n\n * `childrenContainer` {`HTMLDivElement`} - \n\n * `expandButtonSlot` {`HTMLSlotElement`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
@@ -1,23 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t=globalThis,s=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),e=new WeakMap;let h=class{constructor(t,s,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const i=this.t;if(s&&void 0===t){const s=void 0!==i&&1===i.length;s&&(t=e.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&e.set(i,t))}return t}toString(){return this.cssText}};const o=(t,...s)=>{const e=1===t.length?t[0]:s.reduce(((s,i,e)=>s+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[e+1]),t[0]);return new h(e,t,i)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,i))(s)})(t):t
7
- /**
8
- * @license
9
- * Copyright 2017 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */,{is:r,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:a,getOwnPropertySymbols:u,getPrototypeOf:d}=Object,f=globalThis,p=f.trustedTypes,v=p?p.emptyScript:"",g=f.reactiveElementPolyfillSupport,y=(t,s)=>t,b={toAttribute(t,s){switch(s){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,s)=>!r(t,s),S={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=S){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);void 0!==e&&c(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=l(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const o=e?.call(this);h.call(this,s),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,s=[...a(t),...u(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)s.unshift(n(t))}else void 0!==t&&s.push(n(t));return s}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,e)=>{if(s)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),h=t.litNonce;void 0!==h&&e.setAttribute("nonce",h),e.textContent=s.cssText,i.appendChild(e)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:b).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=e,this[e]=h.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??m)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[y("elementProperties")]=new Map,w[y("finalized")]=new Map,g?.({ReactiveElement:w}),(f.reactiveElementVersions??=[]).push("2.0.4");
12
- /**
13
- * @license
14
- * Copyright 2017 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */
17
- const $=globalThis,_=$.trustedTypes,A=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,U="?"+E,x=`<${U}>`,M=document,P=()=>M.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,O="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,j=/>/g,z=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,L=/"/g,D=/^(?:script|style|textarea|title)$/i,W=(t=>(s,...i)=>({_$litType$:t,strings:s,values:i}))(1),B=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),J=new WeakMap,Z=M.createTreeWalker(M,129);function q(t,s){if(!T(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(s):s}const K=(t,s)=>{const i=t.length-1,e=[];let h,o=2===s?"<svg>":3===s?"<math>":"",n=N;for(let s=0;s<i;s++){const i=t[s];let r,c,l=-1,a=0;for(;a<i.length&&(n.lastIndex=a,c=n.exec(i),null!==c);)a=n.lastIndex,n===N?"!--"===c[1]?n=R:void 0!==c[1]?n=j:void 0!==c[2]?(D.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=z):void 0!==c[3]&&(n=z):n===z?">"===c[0]?(n=h??N,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,r=c[1],n=void 0===c[3]?z:'"'===c[3]?L:I):n===L||n===I?n=z:n===R||n===j?n=N:(n=z,h=void 0);const u=n===z&&t[s+1].startsWith("/>")?" ":"";o+=n===N?i+x:l>=0?(e.push(r),i.slice(0,l)+C+i.slice(l)+E+u):i+E+(-2===l?s:u)}return[q(t,o+(t[i]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),e]};class V{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let h=0,o=0;const n=t.length-1,r=this.parts,[c,l]=K(t,s);if(this.el=V.createElement(c,i),Z.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(e=Z.nextNode())&&r.length<n;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(C)){const s=l[o++],i=e.getAttribute(t).split(E),n=/([.?@])?(.*)/.exec(s);r.push({type:1,index:h,name:n[2],strings:i,ctor:"."===n[1]?Y:"?"===n[1]?tt:"@"===n[1]?st:X}),e.removeAttribute(t)}else t.startsWith(E)&&(r.push({type:6,index:h}),e.removeAttribute(t));if(D.test(e.tagName)){const t=e.textContent.split(E),s=t.length-1;if(s>0){e.textContent=_?_.emptyScript:"";for(let i=0;i<s;i++)e.append(t[i],P()),Z.nextNode(),r.push({type:2,index:++h});e.append(t[s],P())}}}else if(8===e.nodeType)if(e.data===U)r.push({type:2,index:h});else{let t=-1;for(;-1!==(t=e.data.indexOf(E,t+1));)r.push({type:7,index:h}),t+=E.length-1}h++}}static createElement(t,s){const i=M.createElement("template");return i.innerHTML=t,i}}function F(t,s,i=t,e){if(s===B)return s;let h=void 0!==e?i._$Co?.[e]:i._$Cl;const o=k(s)?void 0:s._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,i,e)),void 0!==e?(i._$Co??=[])[e]=h:i._$Cl=h),void 0!==h&&(s=F(t,h._$AS(t,s.values),h,e)),s}class G{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=(t?.creationScope??M).importNode(s,!0);Z.currentNode=e;let h=Z.nextNode(),o=0,n=0,r=i[0];for(;void 0!==r;){if(o===r.index){let s;2===r.type?s=new Q(h,h.nextSibling,this,t):1===r.type?s=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(s=new it(h,this,t)),this._$AV.push(s),r=i[++n]}o!==r?.index&&(h=Z.nextNode(),o++)}return Z.currentNode=M,e}p(t){let s=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return void 0!==s&&11===t?.nodeType&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=F(this,t,s),k(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:i}=t,e="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=V.createElement(q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===e)this._$AH.p(s);else{const t=new G(e,this),i=t.u(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let s=J.get(t.strings);return void 0===s&&J.set(t.strings,s=new V(t)),s}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const h of t)e===s.length?s.push(i=new Q(this.O(P()),this.O(P()),this,this.options)):i=s[e],i._$AI(h),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class X{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,h){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=h,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(t,s=this,i,e){const h=this.strings;let o=!1;if(void 0===h)t=F(this,t,s,0),o=!k(t)||t!==this._$AH&&t!==B,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=F(this,e[i+n],s,n),r===B&&(r=this._$AH[n]),o||=!k(r)||r!==this._$AH[n],r===H?t=H:t!==H&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Y extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}class tt extends X{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class st extends X{constructor(t,s,i,e,h){super(t,s,i,e,h),this.type=5}_$AI(t,s=this){if((t=F(this,t,s,0)??H)===B)return;const i=this._$AH,e=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,h=t!==H&&(i===H||e);e&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const et=$.litHtmlPolyfillSupport;et?.(V,Q),($.litHtmlVersions??=[]).push("3.2.1");
18
- /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */
23
- class ht extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,s,i)=>{const e=i?.renderBefore??s;let h=e._$litPart$;if(void 0===h){const t=i?.renderBefore??null;e._$litPart$=h=new Q(s.insertBefore(P(),t),t,void 0,i??{})}return h._$AI(t),h})(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return B}}ht._$litElement$=!0,ht.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ht});const ot=globalThis.litElementPolyfillSupport;ot?.({LitElement:ht}),(globalThis.litElementVersions??=[]).push("4.1.1");export{o as i,W as x};
@@ -1,14 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";var _Symbol$metadata,_f$litPropertyMetadat,_f$reactiveElementVer,_$$litHtmlVersions,_globalThis$litElemen,_globalThis$litElemen2,t,s,i,e,h,o,n,r,c,l,a,u,d,f,p,v,g,y,b,m,S,w,$,_,A,C,E,U,x,M,P,k,T,O,N,R,j,z,I,L,D,W,B,H,J,Z,K,V,G,Q,X,Y,tt,st,it,et,ht,ot;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n3=0,F=function F(){};return{s:F,n:function n(){return _n3>=r.length?{done:!0}:{done:!1,value:r[_n3++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function q(t,s){if(!T(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(s):s;}function F(t,s){var _i$_$Co,_h4,_h5,_h5$_$AO,_i$_$Co2;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;var e=arguments.length>3?arguments[3]:undefined;if(s===B)return s;var h=void 0!==e?(_i$_$Co=i._$Co)===null||_i$_$Co===void 0?void 0:_i$_$Co[e]:i._$Cl;var o=k(s)?void 0:s._$litDirective$;return((_h4=h)===null||_h4===void 0?void 0:_h4.constructor)!==o&&((_h5=h)!==null&&_h5!==void 0&&(_h5$_$AO=_h5._$AO)!==null&&_h5$_$AO!==void 0&&_h5$_$AO.call(_h5,!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,i,e)),void 0!==e?((_i$_$Co2=i._$Co)!==null&&_i$_$Co2!==void 0?_i$_$Co2:i._$Co=[])[e]=h:i._$Cl=h),void 0!==h&&(s=F(t,h._$AS(t,s.values),h,e)),s;}return{setters:[],execute:function execute(){/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */t=globalThis,s=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),e=new WeakMap();h=/*#__PURE__*/function(){function h(t,s,e){_classCallCheck(this,h);if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s;}return _createClass(h,[{key:"styleSheet",get:function get(){var t=this.o;var i=this.t;if(s&&void 0===t){var _s=void 0!==i&&1===i.length;_s&&(t=e.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet()).replaceSync(this.cssText),_s&&e.set(i,t));}return t;}},{key:"toString",value:function toString(){return this.cssText;}}]);}();_export("i",o=function o(t){for(var _len=arguments.length,s=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){s[_key-1]=arguments[_key];}var e=1===t.length?t[0]:s.reduce(function(s,i,e){return s+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");}(i)+t[e+1];},t[0]);return new h(e,t,i);}),n=s?function(t){return t;}:function(t){return t instanceof CSSStyleSheet?function(t){var s="";var _iterator=_createForOfIteratorHelper(t.cssRules),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i=_step.value;s+=_i.cssText;}}catch(err){_iterator.e(err);}finally{_iterator.f();}return function(t){return new h("string"==typeof t?t:t+"",void 0,i);}(s);}(t):t;},r=Object.is,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getPrototypeOf,f=globalThis,p=f.trustedTypes,v=p?p.emptyScript:"",g=f.reactiveElementPolyfillSupport,y=function y(t,s){return t;},b={toAttribute:function toAttribute(t,s){switch(s){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t;},fromAttribute:function fromAttribute(t,s){var i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i;}},m=function m(t,s){return!r(t,s);},S={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};(_Symbol$metadata=Symbol.metadata)!==null&&_Symbol$metadata!==void 0?_Symbol$metadata:Symbol.metadata=Symbol("metadata"),(_f$litPropertyMetadat=f.litPropertyMetadata)!==null&&_f$litPropertyMetadat!==void 0?_f$litPropertyMetadat:f.litPropertyMetadata=new WeakMap();w=/*#__PURE__*/function(_HTMLElement){function w(){var _this;_classCallCheck(this,w);_this=_callSuper(this,w),_this._$Ep=void 0,_this.isUpdatePending=!1,_this.hasUpdated=!1,_this._$Em=null,_this._$Ev();return _this;}_inherits(w,_HTMLElement);return _createClass(w,[{key:"_$Ev",value:function _$Ev(){var _this2=this,_this$constructor$l;this._$ES=new Promise(function(t){return _this2.enableUpdating=t;}),this._$AL=new Map(),this._$E_(),this.requestUpdate(),(_this$constructor$l=this.constructor.l)===null||_this$constructor$l===void 0?void 0:_this$constructor$l.forEach(function(t){return t(_this2);});}},{key:"addController",value:function addController(t){var _this$_$EO,_t$hostConnected;((_this$_$EO=this._$EO)!==null&&_this$_$EO!==void 0?_this$_$EO:this._$EO=new Set()).add(t),void 0!==this.renderRoot&&this.isConnected&&((_t$hostConnected=t.hostConnected)===null||_t$hostConnected===void 0?void 0:_t$hostConnected.call(t));}},{key:"removeController",value:function removeController(t){var _this$_$EO2;(_this$_$EO2=this._$EO)===null||_this$_$EO2===void 0||_this$_$EO2["delete"](t);}},{key:"_$E_",value:function _$E_(){var t=new Map(),s=this.constructor.elementProperties;var _iterator2=_createForOfIteratorHelper(s.keys()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i2=_step2.value;this.hasOwnProperty(_i2)&&(t.set(_i2,this[_i2]),delete this[_i2]);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}t.size>0&&(this._$Ep=t);}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$shadowRoot;var i=(_this$shadowRoot=this.shadowRoot)!==null&&_this$shadowRoot!==void 0?_this$shadowRoot:this.attachShadow(this.constructor.shadowRootOptions);return function(i,e){if(s)i.adoptedStyleSheets=e.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet;});else{var _iterator3=_createForOfIteratorHelper(e),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _s2=_step3.value;var _e=document.createElement("style"),_h=t.litNonce;void 0!==_h&&_e.setAttribute("nonce",_h),_e.textContent=_s2.cssText,i.appendChild(_e);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}(i,this.constructor.elementStyles),i;}},{key:"connectedCallback",value:function connectedCallback(){var _this$renderRoot,_this$_$EO3;(_this$renderRoot=this.renderRoot)!==null&&_this$renderRoot!==void 0?_this$renderRoot:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(_this$_$EO3=this._$EO)===null||_this$_$EO3===void 0?void 0:_this$_$EO3.forEach(function(t){var _t$hostConnected2;return(_t$hostConnected2=t.hostConnected)===null||_t$hostConnected2===void 0?void 0:_t$hostConnected2.call(t);});}},{key:"enableUpdating",value:function enableUpdating(t){}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$EO4;(_this$_$EO4=this._$EO)===null||_this$_$EO4===void 0||_this$_$EO4.forEach(function(t){var _t$hostDisconnected;return(_t$hostDisconnected=t.hostDisconnected)===null||_t$hostDisconnected===void 0?void 0:_t$hostDisconnected.call(t);});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,s,i){this._$AK(t,i);}},{key:"_$EC",value:function _$EC(t,s){var i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){var _i$converter;var _h2=(void 0!==((_i$converter=i.converter)===null||_i$converter===void 0?void 0:_i$converter.toAttribute)?i.converter:b).toAttribute(s,i.type);this._$Em=t,null==_h2?this.removeAttribute(e):this.setAttribute(e,_h2),this._$Em=null;}}},{key:"_$AK",value:function _$AK(t,s){var i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){var _t$converter;var _t=i.getPropertyOptions(e),_h3="function"==typeof _t.converter?{fromAttribute:_t.converter}:void 0!==((_t$converter=_t.converter)===null||_t$converter===void 0?void 0:_t$converter.fromAttribute)?_t.converter:b;this._$Em=e,this[e]=_h3.fromAttribute(s,_t.type),this._$Em=null;}}},{key:"requestUpdate",value:function requestUpdate(t,s,i){if(void 0!==t){var _i$hasChanged;if(i!==null&&i!==void 0?i:i=this.constructor.getPropertyOptions(t),!((_i$hasChanged=i.hasChanged)!==null&&_i$hasChanged!==void 0?_i$hasChanged:m)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}},{key:"P",value:function P(t,s,i){var _this$_$Ej;this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&((_this$_$Ej=this._$Ej)!==null&&_this$_$Ej!==void 0?_this$_$Ej:this._$Ej=new Set()).add(t);}},{key:"_$ET",value:function(){var _$ET2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isUpdatePending=!0;_context.prev=1;_context.next=4;return this._$ES;case 4:_context.next=9;break;case 6:_context.prev=6;_context.t0=_context["catch"](1);Promise.reject(_context.t0);case 9:t=this.scheduleUpdate();_context.t1=null!=t;if(!_context.t1){_context.next=14;break;}_context.next=14;return t;case 14:return _context.abrupt("return",!this.isUpdatePending);case 15:case"end":return _context.stop();}},_callee,this,[[1,6]]);}));function _$ET(){return _$ET2.apply(this,arguments);}return _$ET;}()},{key:"scheduleUpdate",value:function scheduleUpdate(){return this.performUpdate();}},{key:"performUpdate",value:function performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var _this$renderRoot2;if((_this$renderRoot2=this.renderRoot)!==null&&_this$renderRoot2!==void 0?_this$renderRoot2:this.renderRoot=this.createRenderRoot(),this._$Ep){var _iterator4=_createForOfIteratorHelper(this._$Ep),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),_t2=_step4$value[0],_s3=_step4$value[1];this[_t2]=_s3;}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}this._$Ep=void 0;}var _t3=this.constructor.elementProperties;if(_t3.size>0){var _iterator5=_createForOfIteratorHelper(_t3),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_s4=_step5$value[0],_i3=_step5$value[1];!0!==_i3.wrapped||this._$AL.has(_s4)||void 0===this[_s4]||this.P(_s4,this[_s4],_i3);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}}var t=!1;var s=this._$AL;try{var _this$_$EO5;t=this.shouldUpdate(s),t?(this.willUpdate(s),(_this$_$EO5=this._$EO)!==null&&_this$_$EO5!==void 0&&_this$_$EO5.forEach(function(t){var _t$hostUpdate;return(_t$hostUpdate=t.hostUpdate)===null||_t$hostUpdate===void 0?void 0:_t$hostUpdate.call(t);}),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s;}t&&this._$AE(s);}},{key:"willUpdate",value:function willUpdate(t){}},{key:"_$AE",value:function _$AE(t){var _this$_$EO6;(_this$_$EO6=this._$EO)!==null&&_this$_$EO6!==void 0&&_this$_$EO6.forEach(function(t){var _t$hostUpdated;return(_t$hostUpdated=t.hostUpdated)===null||_t$hostUpdated===void 0?void 0:_t$hostUpdated.call(t);}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}},{key:"_$EU",value:function _$EU(){this._$AL=new Map(),this.isUpdatePending=!1;}},{key:"updateComplete",get:function get(){return this.getUpdateComplete();}},{key:"getUpdateComplete",value:function getUpdateComplete(){return this._$ES;}},{key:"shouldUpdate",value:function shouldUpdate(t){return!0;}},{key:"update",value:function update(t){var _this3=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return _this3._$EC(t,_this3[t]);})),this._$EU();}},{key:"updated",value:function updated(t){}},{key:"firstUpdated",value:function firstUpdated(t){}}],[{key:"addInitializer",value:function addInitializer(t){var _this$l;this._$Ei(),((_this$l=this.l)!==null&&_this$l!==void 0?_this$l:this.l=[]).push(t);}},{key:"observedAttributes",get:function get(){return this.finalize(),this._$Eh&&_toConsumableArray(this._$Eh.keys());}},{key:"createProperty",value:function createProperty(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:S;if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){var _i4=Symbol(),_e2=this.getPropertyDescriptor(t,_i4,s);void 0!==_e2&&c(this.prototype,t,_e2);}}},{key:"getPropertyDescriptor",value:function getPropertyDescriptor(t,s,i){var _l;var _ref=(_l=l(this.prototype,t))!==null&&_l!==void 0?_l:{get:function get(){return this[s];},set:function set(t){this[s]=t;}},e=_ref.get,h=_ref.set;return{get:function get(){return e===null||e===void 0?void 0:e.call(this);},set:function set(s){var o=e===null||e===void 0?void 0:e.call(this);h.call(this,s),this.requestUpdate(t,o,i);},configurable:!0,enumerable:!0};}},{key:"getPropertyOptions",value:function getPropertyOptions(t){var _this$elementProperti;return(_this$elementProperti=this.elementProperties.get(t))!==null&&_this$elementProperti!==void 0?_this$elementProperti:S;}},{key:"_$Ei",value:function _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;var t=d(this);t.finalize(),void 0!==t.l&&(this.l=_toConsumableArray(t.l)),this.elementProperties=new Map(t.elementProperties);}},{key:"finalize",value:function finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){var _t4=this.properties,_s5=[].concat(_toConsumableArray(a(_t4)),_toConsumableArray(u(_t4)));var _iterator6=_createForOfIteratorHelper(_s5),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _i5=_step6.value;this.createProperty(_i5,_t4[_i5]);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}var t=this[Symbol.metadata];if(null!==t){var _s6=litPropertyMetadata.get(t);if(void 0!==_s6){var _iterator7=_createForOfIteratorHelper(_s6),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),_t5=_step7$value[0],_i6=_step7$value[1];this.elementProperties.set(_t5,_i6);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}}this._$Eh=new Map();var _iterator8=_createForOfIteratorHelper(this.elementProperties),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _step8$value=_slicedToArray(_step8.value,2),_t6=_step8$value[0],_s7=_step8$value[1];var _i7=this._$Eu(_t6,_s7);void 0!==_i7&&this._$Eh.set(_i7,_t6);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}this.elementStyles=this.finalizeStyles(this.styles);}},{key:"finalizeStyles",value:function finalizeStyles(t){var s=[];if(Array.isArray(t)){var _i8=new Set(t.flat(1/0).reverse());var _iterator9=_createForOfIteratorHelper(_i8),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t7=_step9.value;s.unshift(n(_t7));}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}else void 0!==t&&s.push(n(t));return s;}},{key:"_$Eu",value:function _$Eu(t,s){var i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[y("elementProperties")]=new Map(),w[y("finalized")]=new Map(),g!==null&&g!==void 0&&g({ReactiveElement:w}),((_f$reactiveElementVer=f.reactiveElementVersions)!==null&&_f$reactiveElementVer!==void 0?_f$reactiveElementVer:f.reactiveElementVersions=[]).push("2.0.4");/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */$=globalThis,_=$.trustedTypes,A=_?_.createPolicy("lit-html",{createHTML:function createHTML(t){return t;}}):void 0,C="$lit$",E="lit$".concat(Math.random().toFixed(9).slice(2),"$"),U="?"+E,x="<".concat(U,">"),M=document,P=function P(){return M.createComment("");},k=function k(t){return null===t||"object"!=_typeof(t)&&"function"!=typeof t;},T=Array.isArray,O="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,j=/>/g,z=RegExp(">|".concat(O,"(?:([^\\s\"'>=/]+)(").concat(O,"*=").concat(O,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),I=/'/g,L=/"/g,D=/^(?:script|style|textarea|title)$/i,_export("x",W=function(t){return function(s){for(var _len2=arguments.length,i=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){i[_key2-1]=arguments[_key2];}return{_$litType$:t,strings:s,values:i};};}(1)),B=Symbol["for"]("lit-noChange"),H=Symbol["for"]("lit-nothing"),J=new WeakMap(),Z=M.createTreeWalker(M,129);K=function K(t,s){var i=t.length-1,e=[];var h,o=2===s?"<svg>":3===s?"<math>":"",n=N;for(var _s8=0;_s8<i;_s8++){var _i9=t[_s8];var _r=void 0,_c=void 0,_l2=-1,_a=0;for(;_a<_i9.length&&(n.lastIndex=_a,_c=n.exec(_i9),null!==_c);)_a=n.lastIndex,n===N?"!--"===_c[1]?n=R:void 0!==_c[1]?n=j:void 0!==_c[2]?(D.test(_c[2])&&(h=RegExp("</"+_c[2],"g")),n=z):void 0!==_c[3]&&(n=z):n===z?">"===_c[0]?(n=h!==null&&h!==void 0?h:N,_l2=-1):void 0===_c[1]?_l2=-2:(_l2=n.lastIndex-_c[2].length,_r=_c[1],n=void 0===_c[3]?z:'"'===_c[3]?L:I):n===L||n===I?n=z:n===R||n===j?n=N:(n=z,h=void 0);var _u=n===z&&t[_s8+1].startsWith("/>")?" ":"";o+=n===N?_i9+x:_l2>=0?(e.push(_r),_i9.slice(0,_l2)+C+_i9.slice(_l2)+E+_u):_i9+E+(-2===_l2?_s8:_u);}return[q(t,o+(t[i]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),e];};V=/*#__PURE__*/function(){function V(_ref2,i){var t=_ref2.strings,s=_ref2._$litType$;_classCallCheck(this,V);var e;this.parts=[];var h=0,o=0;var n=t.length-1,r=this.parts,_K=K(t,s),_K2=_slicedToArray(_K,2),c=_K2[0],l=_K2[1];if(this.el=V.createElement(c,i),Z.currentNode=this.el.content,2===s||3===s){var _t8=this.el.content.firstChild;_t8.replaceWith.apply(_t8,_toConsumableArray(_t8.childNodes));}for(;null!==(e=Z.nextNode())&&r.length<n;){if(1===e.nodeType){if(e.hasAttributes()){var _iterator10=_createForOfIteratorHelper(e.getAttributeNames()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _t9=_step10.value;if(_t9.endsWith(C)){var _s9=l[o++],_i10=e.getAttribute(_t9).split(E),_n=/([.?@])?(.*)/.exec(_s9);r.push({type:1,index:h,name:_n[2],strings:_i10,ctor:"."===_n[1]?Y:"?"===_n[1]?tt:"@"===_n[1]?st:X}),e.removeAttribute(_t9);}else _t9.startsWith(E)&&(r.push({type:6,index:h}),e.removeAttribute(_t9));}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}if(D.test(e.tagName)){var _t10=e.textContent.split(E),_s10=_t10.length-1;if(_s10>0){e.textContent=_?_.emptyScript:"";for(var _i11=0;_i11<_s10;_i11++)e.append(_t10[_i11],P()),Z.nextNode(),r.push({type:2,index:++h});e.append(_t10[_s10],P());}}}else if(8===e.nodeType)if(e.data===U)r.push({type:2,index:h});else{var _t11=-1;for(;-1!==(_t11=e.data.indexOf(E,_t11+1));)r.push({type:7,index:h}),_t11+=E.length-1;}h++;}}return _createClass(V,null,[{key:"createElement",value:function createElement(t,s){var i=M.createElement("template");return i.innerHTML=t,i;}}]);}();G=/*#__PURE__*/function(){function G(t,s){_classCallCheck(this,G);this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s;}return _createClass(G,[{key:"parentNode",get:function get(){return this._$AM.parentNode;}},{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"u",value:function u(t){var _t$creationScope;var _this$_$AD=this._$AD,s=_this$_$AD.el.content,i=_this$_$AD.parts,e=((_t$creationScope=t===null||t===void 0?void 0:t.creationScope)!==null&&_t$creationScope!==void 0?_t$creationScope:M).importNode(s,!0);Z.currentNode=e;var h=Z.nextNode(),o=0,n=0,r=i[0];for(;void 0!==r;){var _r2;if(o===r.index){var _s11=void 0;2===r.type?_s11=new Q(h,h.nextSibling,this,t):1===r.type?_s11=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(_s11=new it(h,this,t)),this._$AV.push(_s11),r=i[++n];}o!==((_r2=r)===null||_r2===void 0?void 0:_r2.index)&&(h=Z.nextNode(),o++);}return Z.currentNode=M,e;}},{key:"p",value:function p(t){var s=0;var _iterator11=_createForOfIteratorHelper(this._$AV),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _i12=_step11.value;void 0!==_i12&&(void 0!==_i12.strings?(_i12._$AI(t,_i12,s),s+=_i12.strings.length-2):_i12._$AI(t[s])),s++;}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}}]);}();Q=/*#__PURE__*/function(){function Q(t,s,i,e){var _e$isConnected;_classCallCheck(this,Q);this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(_e$isConnected=e===null||e===void 0?void 0:e.isConnected)!==null&&_e$isConnected!==void 0?_e$isConnected:!0;}return _createClass(Q,[{key:"_$AU",get:function get(){var _this$_$AM$_$AU,_this$_$AM;return(_this$_$AM$_$AU=(_this$_$AM=this._$AM)===null||_this$_$AM===void 0?void 0:_this$_$AM._$AU)!==null&&_this$_$AM$_$AU!==void 0?_this$_$AM$_$AU:this._$Cv;}},{key:"parentNode",get:function get(){var _t12;var t=this._$AA.parentNode;var s=this._$AM;return void 0!==s&&11===((_t12=t)===null||_t12===void 0?void 0:_t12.nodeType)&&(t=s.parentNode),t;}},{key:"startNode",get:function get(){return this._$AA;}},{key:"endNode",get:function get(){return this._$AB;}},{key:"_$AI",value:function _$AI(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;t=F(this,t,s),k(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):function(t){return T(t)||"function"==typeof(t===null||t===void 0?void 0:t[Symbol.iterator]);}(t)?this.k(t):this._(t);}},{key:"O",value:function O(t){return this._$AA.parentNode.insertBefore(t,this._$AB);}},{key:"T",value:function T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}},{key:"_",value:function _(t){this._$AH!==H&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t;}},{key:"$",value:function $(t){var _this$_$AH;var s=t.values,i=t._$litType$,e="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=V.createElement(q(i.h,i.h[0]),this.options)),i);if(((_this$_$AH=this._$AH)===null||_this$_$AH===void 0?void 0:_this$_$AH._$AD)===e)this._$AH.p(s);else{var _t13=new G(e,this),_i13=_t13.u(this.options);_t13.p(s),this.T(_i13),this._$AH=_t13;}}},{key:"_$AC",value:function _$AC(t){var s=J.get(t.strings);return void 0===s&&J.set(t.strings,s=new V(t)),s;}},{key:"k",value:function k(t){T(this._$AH)||(this._$AH=[],this._$AR());var s=this._$AH;var i,e=0;var _iterator12=_createForOfIteratorHelper(t),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _h6=_step12.value;e===s.length?s.push(i=new Q(this.O(P()),this.O(P()),this,this.options)):i=s[e],i._$AI(_h6),e++;}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e);}},{key:"_$AR",value:function _$AR(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._$AA.nextSibling;var s=arguments.length>1?arguments[1]:undefined;for((_this$_$AP=this._$AP)===null||_this$_$AP===void 0?void 0:_this$_$AP.call(this,!1,!0,s);t&&t!==this._$AB;){var _this$_$AP;var _s12=t.nextSibling;t.remove(),t=_s12;}}},{key:"setConnected",value:function setConnected(t){var _this$_$AP2;void 0===this._$AM&&(this._$Cv=t,(_this$_$AP2=this._$AP)===null||_this$_$AP2===void 0?void 0:_this$_$AP2.call(this,t));}}]);}();X=/*#__PURE__*/function(){function X(t,s,i,e,h){_classCallCheck(this,X);this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=h,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String()),this.strings=i):this._$AH=H;}return _createClass(X,[{key:"tagName",get:function get(){return this.element.tagName;}},{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"_$AI",value:function _$AI(t){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;var i=arguments.length>2?arguments[2]:undefined;var e=arguments.length>3?arguments[3]:undefined;var h=this.strings;var o=!1;if(void 0===h)t=F(this,t,s,0),o=!k(t)||t!==this._$AH&&t!==B,o&&(this._$AH=t);else{var _e3=t;var _n2,_r3;for(t=h[0],_n2=0;_n2<h.length-1;_n2++)_r3=F(this,_e3[i+_n2],s,_n2),_r3===B&&(_r3=this._$AH[_n2]),o||(o=!k(_r3)||_r3!==this._$AH[_n2]),_r3===H?t=H:t!==H&&(t+=(_r3!==null&&_r3!==void 0?_r3:"")+h[_n2+1]),this._$AH[_n2]=_r3;}o&&!e&&this.j(t);}},{key:"j",value:function j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!==null&&t!==void 0?t:"");}}]);}();Y=/*#__PURE__*/function(_X){function Y(){var _this4;_classCallCheck(this,Y);_this4=_callSuper(this,Y,arguments),_this4.type=3;return _this4;}_inherits(Y,_X);return _createClass(Y,[{key:"j",value:function j(t){this.element[this.name]=t===H?void 0:t;}}]);}(X);tt=/*#__PURE__*/function(_X2){function tt(){var _this5;_classCallCheck(this,tt);_this5=_callSuper(this,tt,arguments),_this5.type=4;return _this5;}_inherits(tt,_X2);return _createClass(tt,[{key:"j",value:function j(t){this.element.toggleAttribute(this.name,!!t&&t!==H);}}]);}(X);st=/*#__PURE__*/function(_X3){function st(t,s,i,e,h){var _this6;_classCallCheck(this,st);_this6=_callSuper(this,st,[t,s,i,e,h]),_this6.type=5;return _this6;}_inherits(st,_X3);return _createClass(st,[{key:"_$AI",value:function _$AI(t){var _F;var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;if((t=(_F=F(this,t,s,0))!==null&&_F!==void 0?_F:H)===B)return;var i=this._$AH,e=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,h=t!==H&&(i===H||e);e&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}},{key:"handleEvent",value:function handleEvent(t){var _this$options$host,_this$options;"function"==typeof this._$AH?this._$AH.call((_this$options$host=(_this$options=this.options)===null||_this$options===void 0?void 0:_this$options.host)!==null&&_this$options$host!==void 0?_this$options$host:this.element,t):this._$AH.handleEvent(t);}}]);}(X);it=/*#__PURE__*/function(){function it(t,s,i){_classCallCheck(this,it);this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i;}return _createClass(it,[{key:"_$AU",get:function get(){return this._$AM._$AU;}},{key:"_$AI",value:function _$AI(t){F(this,t);}}]);}();et=$.litHtmlPolyfillSupport;et!==null&&et!==void 0&&et(V,Q),((_$$litHtmlVersions=$.litHtmlVersions)!==null&&_$$litHtmlVersions!==void 0?_$$litHtmlVersions:$.litHtmlVersions=[]).push("3.2.1");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */ht=/*#__PURE__*/function(_w){function ht(){var _this7;_classCallCheck(this,ht);_this7=_callSuper(this,ht,arguments),_this7.renderOptions={host:_assertThisInitialized(_this7)},_this7._$Do=void 0;return _this7;}_inherits(ht,_w);return _createClass(ht,[{key:"createRenderRoot",value:function createRenderRoot(){var _this$renderOptions,_this$renderOptions$r;var t=_superPropGet(ht,"createRenderRoot",this,3)([]);return(_this$renderOptions$r=(_this$renderOptions=this.renderOptions).renderBefore)!==null&&_this$renderOptions$r!==void 0?_this$renderOptions$r:_this$renderOptions.renderBefore=t.firstChild,t;}},{key:"update",value:function update(t){var s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_superPropGet(ht,"update",this,3)([t]),this._$Do=function(t,s,i,_i$renderBefore){var e=(_i$renderBefore=i===null||i===void 0?void 0:i.renderBefore)!==null&&_i$renderBefore!==void 0?_i$renderBefore:s;var h=e._$litPart$;if(void 0===h){var _i$renderBefore2;var _t14=(_i$renderBefore2=i===null||i===void 0?void 0:i.renderBefore)!==null&&_i$renderBefore2!==void 0?_i$renderBefore2:null;e._$litPart$=h=new Q(s.insertBefore(P(),_t14),_t14,void 0,i!==null&&i!==void 0?i:{});}return h._$AI(t),h;}(s,this.renderRoot,this.renderOptions);}},{key:"connectedCallback",value:function connectedCallback(){var _this$_$Do;_superPropGet(ht,"connectedCallback",this,3)([]),(_this$_$Do=this._$Do)===null||_this$_$Do===void 0?void 0:_this$_$Do.setConnected(!0);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$Do2;_superPropGet(ht,"disconnectedCallback",this,3)([]),(_this$_$Do2=this._$Do)===null||_this$_$Do2===void 0?void 0:_this$_$Do2.setConnected(!1);}},{key:"render",value:function render(){return B;}}]);}(w);ht._$litElement$=!0,ht.finalized=!0,(_globalThis$litElemen=globalThis.litElementHydrateSupport)===null||_globalThis$litElemen===void 0?void 0:_globalThis$litElemen.call(globalThis,{LitElement:ht});ot=globalThis.litElementPolyfillSupport;ot!==null&&ot!==void 0&&ot({LitElement:ht}),((_globalThis$litElemen2=globalThis.litElementVersions)!==null&&_globalThis$litElemen2!==void 0?_globalThis$litElemen2:globalThis.litElementVersions=[]).push("4.1.1");}};});
14
- //# sourceMappingURL=lit-element-b510b02d.cjs.js.map