proto-table-wc 0.0.340 → 0.0.342

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a6d8dc88.js');
5
+ const index = require('./index-7559d0c1.js');
6
6
 
7
7
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
8
8
 
@@ -22,32 +22,18 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'proto-table-wc';
24
24
 
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
25
33
  let scopeId;
26
34
  let hostTagName;
27
35
  let isSvgMode = false;
28
36
  let queuePending = false;
29
- const win = typeof window !== 'undefined' ? window : {};
30
- const doc = win.document || { head: {} };
31
- const plt = {
32
- $flags$: 0,
33
- $resourcesUrl$: '',
34
- jmp: (h) => h(),
35
- raf: (h) => requestAnimationFrame(h),
36
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
37
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
38
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
39
- };
40
- const promiseResolve = (v) => Promise.resolve(v);
41
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
42
- try {
43
- new CSSStyleSheet();
44
- return typeof new CSSStyleSheet().replaceSync === 'function';
45
- }
46
- catch (e) { }
47
- return false;
48
- })()
49
- ;
50
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
51
37
  const createTime = (fnName, tagName = '') => {
52
38
  {
53
39
  return () => {
@@ -62,76 +48,7 @@ const uniqueTime = (key, measureText) => {
62
48
  };
63
49
  }
64
50
  };
65
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
66
- const registerStyle = (scopeId, cssText, allowCS) => {
67
- let style = styles.get(scopeId);
68
- if (supportsConstructableStylesheets && allowCS) {
69
- style = (style || new CSSStyleSheet());
70
- if (typeof style === 'string') {
71
- style = cssText;
72
- }
73
- else {
74
- style.replaceSync(cssText);
75
- }
76
- }
77
- else {
78
- style = cssText;
79
- }
80
- styles.set(scopeId, style);
81
- };
82
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
83
- let scopeId = getScopeId(cmpMeta);
84
- const style = styles.get(scopeId);
85
- // if an element is NOT connected then getRootNode() will return the wrong root node
86
- // so the fallback is to always use the document for the root node in those cases
87
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
88
- if (style) {
89
- if (typeof style === 'string') {
90
- styleContainerNode = styleContainerNode.head || styleContainerNode;
91
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
92
- let styleElm;
93
- if (!appliedStyles) {
94
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
95
- }
96
- if (!appliedStyles.has(scopeId)) {
97
- {
98
- {
99
- styleElm = doc.createElement('style');
100
- styleElm.innerHTML = style;
101
- }
102
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
103
- }
104
- if (appliedStyles) {
105
- appliedStyles.add(scopeId);
106
- }
107
- }
108
- }
109
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
110
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
111
- }
112
- }
113
- return scopeId;
114
- };
115
- const attachStyles = (hostRef) => {
116
- const cmpMeta = hostRef.$cmpMeta$;
117
- const elm = hostRef.$hostElement$;
118
- const flags = cmpMeta.$flags$;
119
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
120
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
121
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
122
- // only required when we're NOT using native shadow dom (slot)
123
- // or this browser doesn't support native shadow dom
124
- // and this host element was NOT created with SSR
125
- // let's pick out the inner content for slot projection
126
- // create a node to represent where the original
127
- // content was first placed, which is useful later on
128
- // DOM WRITE!!
129
- elm['s-sc'] = scopeId;
130
- elm.classList.add(scopeId + '-h');
131
- }
132
- endAttachStyles();
133
- };
134
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
51
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
135
52
  /**
136
53
  * Default style mode id
137
54
  */
@@ -225,6 +142,121 @@ const newVNode = (tag, text) => {
225
142
  };
226
143
  const Host = {};
227
144
  const isHost = (node) => node && node.$tag$ === Host;
145
+ /**
146
+ * Parse a new property value for a given property type.
147
+ *
148
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
149
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
150
+ * 1. `any`, the type given to `propValue` in the function signature
151
+ * 2. the type stored from `propType`.
152
+ *
153
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
154
+ *
155
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
156
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
157
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
158
+ * ```tsx
159
+ * <my-cmp prop-val={0}></my-cmp>
160
+ * ```
161
+ *
162
+ * HTML prop values on the other hand, will always a string
163
+ *
164
+ * @param propValue the new value to coerce to some type
165
+ * @param propType the type of the prop, expressed as a binary number
166
+ * @returns the parsed/coerced value
167
+ */
168
+ const parsePropertyValue = (propValue, propType) => {
169
+ // ensure this value is of the correct prop type
170
+ if (propValue != null && !isComplexType(propValue)) {
171
+ // redundant return here for better minification
172
+ return propValue;
173
+ }
174
+ // not sure exactly what type we want
175
+ // so no need to change to a different type
176
+ return propValue;
177
+ };
178
+ /**
179
+ * Helper function to create & dispatch a custom Event on a provided target
180
+ * @param elm the target of the Event
181
+ * @param name the name to give the custom Event
182
+ * @param opts options for configuring a custom Event
183
+ * @returns the custom Event
184
+ */
185
+ const emitEvent = (elm, name, opts) => {
186
+ const ev = plt.ce(name, opts);
187
+ elm.dispatchEvent(ev);
188
+ return ev;
189
+ };
190
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
191
+ const registerStyle = (scopeId, cssText, allowCS) => {
192
+ let style = styles.get(scopeId);
193
+ if (supportsConstructableStylesheets && allowCS) {
194
+ style = (style || new CSSStyleSheet());
195
+ if (typeof style === 'string') {
196
+ style = cssText;
197
+ }
198
+ else {
199
+ style.replaceSync(cssText);
200
+ }
201
+ }
202
+ else {
203
+ style = cssText;
204
+ }
205
+ styles.set(scopeId, style);
206
+ };
207
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
208
+ let scopeId = getScopeId(cmpMeta);
209
+ const style = styles.get(scopeId);
210
+ // if an element is NOT connected then getRootNode() will return the wrong root node
211
+ // so the fallback is to always use the document for the root node in those cases
212
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
213
+ if (style) {
214
+ if (typeof style === 'string') {
215
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
216
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
217
+ let styleElm;
218
+ if (!appliedStyles) {
219
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
220
+ }
221
+ if (!appliedStyles.has(scopeId)) {
222
+ {
223
+ {
224
+ styleElm = doc.createElement('style');
225
+ styleElm.innerHTML = style;
226
+ }
227
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
228
+ }
229
+ if (appliedStyles) {
230
+ appliedStyles.add(scopeId);
231
+ }
232
+ }
233
+ }
234
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
235
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
236
+ }
237
+ }
238
+ return scopeId;
239
+ };
240
+ const attachStyles = (hostRef) => {
241
+ const cmpMeta = hostRef.$cmpMeta$;
242
+ const elm = hostRef.$hostElement$;
243
+ const flags = cmpMeta.$flags$;
244
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
245
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
246
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
247
+ // only required when we're NOT using native shadow dom (slot)
248
+ // or this browser doesn't support native shadow dom
249
+ // and this host element was NOT created with SSR
250
+ // let's pick out the inner content for slot projection
251
+ // create a node to represent where the original
252
+ // content was first placed, which is useful later on
253
+ // DOM WRITE!!
254
+ elm['s-sc'] = scopeId;
255
+ elm.classList.add(scopeId + '-h');
256
+ }
257
+ endAttachStyles();
258
+ };
259
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
228
260
  /**
229
261
  * Production setAccessor() function based on Preact by
230
262
  * Jason Miller (@developit)
@@ -712,18 +744,6 @@ const renderVdom = (hostRef, renderFnResults) => {
712
744
  // synchronous patch
713
745
  patch(oldVNode, rootVnode);
714
746
  };
715
- /**
716
- * Helper function to create & dispatch a custom Event on a provided target
717
- * @param elm the target of the Event
718
- * @param name the name to give the custom Event
719
- * @param opts options for configuring a custom Event
720
- * @returns the custom Event
721
- */
722
- const emitEvent = (elm, name, opts) => {
723
- const ev = plt.ce(name, opts);
724
- elm.dispatchEvent(ev);
725
- return ev;
726
- };
727
747
  const attachToAncestor = (hostRef, ancestorComponent) => {
728
748
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
729
749
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -882,39 +902,6 @@ const then = (promise, thenFn) => {
882
902
  };
883
903
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
884
904
  ;
885
- /**
886
- * Parse a new property value for a given property type.
887
- *
888
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
889
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
890
- * 1. `any`, the type given to `propValue` in the function signature
891
- * 2. the type stored from `propType`.
892
- *
893
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
894
- *
895
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
896
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
897
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
898
- * ```tsx
899
- * <my-cmp prop-val={0}></my-cmp>
900
- * ```
901
- *
902
- * HTML prop values on the other hand, will always a string
903
- *
904
- * @param propValue the new value to coerce to some type
905
- * @param propType the type of the prop, expressed as a binary number
906
- * @returns the parsed/coerced value
907
- */
908
- const parsePropertyValue = (propValue, propType) => {
909
- // ensure this value is of the correct prop type
910
- if (propValue != null && !isComplexType(propValue)) {
911
- // redundant return here for better minification
912
- return propValue;
913
- }
914
- // not sure exactly what type we want
915
- // so no need to change to a different type
916
- return propValue;
917
- };
918
905
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
919
906
  const setValue = (ref, propName, newVal, cmpMeta) => {
920
907
  // check our new property value against our internal value
@@ -941,6 +928,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
941
928
  }
942
929
  }
943
930
  };
931
+ /**
932
+ * Attach a series of runtime constructs to a compiled Stencil component
933
+ * constructor, including getters and setters for the `@Prop` and `@State`
934
+ * decorators, callbacks for when attributes change, and so on.
935
+ *
936
+ * @param Cstr the constructor for a component that we need to process
937
+ * @param cmpMeta metadata collected previously about the component
938
+ * @param flags a number used to store a series of bit flags
939
+ * @returns a reference to the same constructor passed in (but now mutated)
940
+ */
944
941
  const proxyComponent = (Cstr, cmpMeta, flags) => {
945
942
  if (cmpMeta.$members$) {
946
943
  // It's better to have a const than two Object.entries()
@@ -1276,6 +1273,27 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1276
1273
  }, consoleError);
1277
1274
  };
1278
1275
  const styles = /*@__PURE__*/ new Map();
1276
+ const win = typeof window !== 'undefined' ? window : {};
1277
+ const doc = win.document || { head: {} };
1278
+ const plt = {
1279
+ $flags$: 0,
1280
+ $resourcesUrl$: '',
1281
+ jmp: (h) => h(),
1282
+ raf: (h) => requestAnimationFrame(h),
1283
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1284
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1285
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1286
+ };
1287
+ const promiseResolve = (v) => Promise.resolve(v);
1288
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1289
+ try {
1290
+ new CSSStyleSheet();
1291
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1292
+ }
1293
+ catch (e) { }
1294
+ return false;
1295
+ })()
1296
+ ;
1279
1297
  const queueDomReads = [];
1280
1298
  const queueDomWrites = [];
1281
1299
  const queueTask = (queue, write) => (cb) => {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a6d8dc88.js');
5
+ const index = require('./index-7559d0c1.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.18.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-a6d8dc88.js');
3
+ const index = require('./index-7559d0c1.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.18.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-table-wc.cjs.js', document.baseURI).href));
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "2.18.0",
8
+ "version": "2.18.1",
9
9
  "typescriptVersion": "4.7.4"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-db21c56b.js';
1
+ import { r as registerInstance, h } from './index-c0e084ef.js';
2
2
 
3
3
  const demoTableCss = ".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";
4
4
 
@@ -1,31 +1,17 @@
1
1
  const NAMESPACE = 'proto-table-wc';
2
2
 
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
3
11
  let scopeId;
4
12
  let hostTagName;
5
13
  let isSvgMode = false;
6
14
  let queuePending = false;
7
- const win = typeof window !== 'undefined' ? window : {};
8
- const doc = win.document || { head: {} };
9
- const plt = {
10
- $flags$: 0,
11
- $resourcesUrl$: '',
12
- jmp: (h) => h(),
13
- raf: (h) => requestAnimationFrame(h),
14
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
15
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
16
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
17
- };
18
- const promiseResolve = (v) => Promise.resolve(v);
19
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
20
- try {
21
- new CSSStyleSheet();
22
- return typeof new CSSStyleSheet().replaceSync === 'function';
23
- }
24
- catch (e) { }
25
- return false;
26
- })()
27
- ;
28
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
29
15
  const createTime = (fnName, tagName = '') => {
30
16
  {
31
17
  return () => {
@@ -40,76 +26,7 @@ const uniqueTime = (key, measureText) => {
40
26
  };
41
27
  }
42
28
  };
43
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
44
- const registerStyle = (scopeId, cssText, allowCS) => {
45
- let style = styles.get(scopeId);
46
- if (supportsConstructableStylesheets && allowCS) {
47
- style = (style || new CSSStyleSheet());
48
- if (typeof style === 'string') {
49
- style = cssText;
50
- }
51
- else {
52
- style.replaceSync(cssText);
53
- }
54
- }
55
- else {
56
- style = cssText;
57
- }
58
- styles.set(scopeId, style);
59
- };
60
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
61
- let scopeId = getScopeId(cmpMeta);
62
- const style = styles.get(scopeId);
63
- // if an element is NOT connected then getRootNode() will return the wrong root node
64
- // so the fallback is to always use the document for the root node in those cases
65
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
66
- if (style) {
67
- if (typeof style === 'string') {
68
- styleContainerNode = styleContainerNode.head || styleContainerNode;
69
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
70
- let styleElm;
71
- if (!appliedStyles) {
72
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
73
- }
74
- if (!appliedStyles.has(scopeId)) {
75
- {
76
- {
77
- styleElm = doc.createElement('style');
78
- styleElm.innerHTML = style;
79
- }
80
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
81
- }
82
- if (appliedStyles) {
83
- appliedStyles.add(scopeId);
84
- }
85
- }
86
- }
87
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
88
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
89
- }
90
- }
91
- return scopeId;
92
- };
93
- const attachStyles = (hostRef) => {
94
- const cmpMeta = hostRef.$cmpMeta$;
95
- const elm = hostRef.$hostElement$;
96
- const flags = cmpMeta.$flags$;
97
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
98
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
99
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
100
- // only required when we're NOT using native shadow dom (slot)
101
- // or this browser doesn't support native shadow dom
102
- // and this host element was NOT created with SSR
103
- // let's pick out the inner content for slot projection
104
- // create a node to represent where the original
105
- // content was first placed, which is useful later on
106
- // DOM WRITE!!
107
- elm['s-sc'] = scopeId;
108
- elm.classList.add(scopeId + '-h');
109
- }
110
- endAttachStyles();
111
- };
112
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
29
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
113
30
  /**
114
31
  * Default style mode id
115
32
  */
@@ -203,6 +120,121 @@ const newVNode = (tag, text) => {
203
120
  };
204
121
  const Host = {};
205
122
  const isHost = (node) => node && node.$tag$ === Host;
123
+ /**
124
+ * Parse a new property value for a given property type.
125
+ *
126
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
127
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
128
+ * 1. `any`, the type given to `propValue` in the function signature
129
+ * 2. the type stored from `propType`.
130
+ *
131
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
132
+ *
133
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
134
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
135
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
136
+ * ```tsx
137
+ * <my-cmp prop-val={0}></my-cmp>
138
+ * ```
139
+ *
140
+ * HTML prop values on the other hand, will always a string
141
+ *
142
+ * @param propValue the new value to coerce to some type
143
+ * @param propType the type of the prop, expressed as a binary number
144
+ * @returns the parsed/coerced value
145
+ */
146
+ const parsePropertyValue = (propValue, propType) => {
147
+ // ensure this value is of the correct prop type
148
+ if (propValue != null && !isComplexType(propValue)) {
149
+ // redundant return here for better minification
150
+ return propValue;
151
+ }
152
+ // not sure exactly what type we want
153
+ // so no need to change to a different type
154
+ return propValue;
155
+ };
156
+ /**
157
+ * Helper function to create & dispatch a custom Event on a provided target
158
+ * @param elm the target of the Event
159
+ * @param name the name to give the custom Event
160
+ * @param opts options for configuring a custom Event
161
+ * @returns the custom Event
162
+ */
163
+ const emitEvent = (elm, name, opts) => {
164
+ const ev = plt.ce(name, opts);
165
+ elm.dispatchEvent(ev);
166
+ return ev;
167
+ };
168
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
169
+ const registerStyle = (scopeId, cssText, allowCS) => {
170
+ let style = styles.get(scopeId);
171
+ if (supportsConstructableStylesheets && allowCS) {
172
+ style = (style || new CSSStyleSheet());
173
+ if (typeof style === 'string') {
174
+ style = cssText;
175
+ }
176
+ else {
177
+ style.replaceSync(cssText);
178
+ }
179
+ }
180
+ else {
181
+ style = cssText;
182
+ }
183
+ styles.set(scopeId, style);
184
+ };
185
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
186
+ let scopeId = getScopeId(cmpMeta);
187
+ const style = styles.get(scopeId);
188
+ // if an element is NOT connected then getRootNode() will return the wrong root node
189
+ // so the fallback is to always use the document for the root node in those cases
190
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
191
+ if (style) {
192
+ if (typeof style === 'string') {
193
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
194
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
195
+ let styleElm;
196
+ if (!appliedStyles) {
197
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
198
+ }
199
+ if (!appliedStyles.has(scopeId)) {
200
+ {
201
+ {
202
+ styleElm = doc.createElement('style');
203
+ styleElm.innerHTML = style;
204
+ }
205
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
206
+ }
207
+ if (appliedStyles) {
208
+ appliedStyles.add(scopeId);
209
+ }
210
+ }
211
+ }
212
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
213
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
214
+ }
215
+ }
216
+ return scopeId;
217
+ };
218
+ const attachStyles = (hostRef) => {
219
+ const cmpMeta = hostRef.$cmpMeta$;
220
+ const elm = hostRef.$hostElement$;
221
+ const flags = cmpMeta.$flags$;
222
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
223
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
224
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
225
+ // only required when we're NOT using native shadow dom (slot)
226
+ // or this browser doesn't support native shadow dom
227
+ // and this host element was NOT created with SSR
228
+ // let's pick out the inner content for slot projection
229
+ // create a node to represent where the original
230
+ // content was first placed, which is useful later on
231
+ // DOM WRITE!!
232
+ elm['s-sc'] = scopeId;
233
+ elm.classList.add(scopeId + '-h');
234
+ }
235
+ endAttachStyles();
236
+ };
237
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
206
238
  /**
207
239
  * Production setAccessor() function based on Preact by
208
240
  * Jason Miller (@developit)
@@ -690,18 +722,6 @@ const renderVdom = (hostRef, renderFnResults) => {
690
722
  // synchronous patch
691
723
  patch(oldVNode, rootVnode);
692
724
  };
693
- /**
694
- * Helper function to create & dispatch a custom Event on a provided target
695
- * @param elm the target of the Event
696
- * @param name the name to give the custom Event
697
- * @param opts options for configuring a custom Event
698
- * @returns the custom Event
699
- */
700
- const emitEvent = (elm, name, opts) => {
701
- const ev = plt.ce(name, opts);
702
- elm.dispatchEvent(ev);
703
- return ev;
704
- };
705
725
  const attachToAncestor = (hostRef, ancestorComponent) => {
706
726
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
707
727
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -860,39 +880,6 @@ const then = (promise, thenFn) => {
860
880
  };
861
881
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
862
882
  ;
863
- /**
864
- * Parse a new property value for a given property type.
865
- *
866
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
867
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
868
- * 1. `any`, the type given to `propValue` in the function signature
869
- * 2. the type stored from `propType`.
870
- *
871
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
872
- *
873
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
874
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
875
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
876
- * ```tsx
877
- * <my-cmp prop-val={0}></my-cmp>
878
- * ```
879
- *
880
- * HTML prop values on the other hand, will always a string
881
- *
882
- * @param propValue the new value to coerce to some type
883
- * @param propType the type of the prop, expressed as a binary number
884
- * @returns the parsed/coerced value
885
- */
886
- const parsePropertyValue = (propValue, propType) => {
887
- // ensure this value is of the correct prop type
888
- if (propValue != null && !isComplexType(propValue)) {
889
- // redundant return here for better minification
890
- return propValue;
891
- }
892
- // not sure exactly what type we want
893
- // so no need to change to a different type
894
- return propValue;
895
- };
896
883
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
897
884
  const setValue = (ref, propName, newVal, cmpMeta) => {
898
885
  // check our new property value against our internal value
@@ -919,6 +906,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
919
906
  }
920
907
  }
921
908
  };
909
+ /**
910
+ * Attach a series of runtime constructs to a compiled Stencil component
911
+ * constructor, including getters and setters for the `@Prop` and `@State`
912
+ * decorators, callbacks for when attributes change, and so on.
913
+ *
914
+ * @param Cstr the constructor for a component that we need to process
915
+ * @param cmpMeta metadata collected previously about the component
916
+ * @param flags a number used to store a series of bit flags
917
+ * @returns a reference to the same constructor passed in (but now mutated)
918
+ */
922
919
  const proxyComponent = (Cstr, cmpMeta, flags) => {
923
920
  if (cmpMeta.$members$) {
924
921
  // It's better to have a const than two Object.entries()
@@ -1254,6 +1251,27 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1254
1251
  }, consoleError);
1255
1252
  };
1256
1253
  const styles = /*@__PURE__*/ new Map();
1254
+ const win = typeof window !== 'undefined' ? window : {};
1255
+ const doc = win.document || { head: {} };
1256
+ const plt = {
1257
+ $flags$: 0,
1258
+ $resourcesUrl$: '',
1259
+ jmp: (h) => h(),
1260
+ raf: (h) => requestAnimationFrame(h),
1261
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1262
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1263
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1264
+ };
1265
+ const promiseResolve = (v) => Promise.resolve(v);
1266
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1267
+ try {
1268
+ new CSSStyleSheet();
1269
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1270
+ }
1271
+ catch (e) { }
1272
+ return false;
1273
+ })()
1274
+ ;
1257
1275
  const queueDomReads = [];
1258
1276
  const queueDomWrites = [];
1259
1277
  const queueTask = (queue, write) => (cb) => {
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-db21c56b.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c0e084ef.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.18.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
1
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-db21c56b.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c0e084ef.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.18.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ let e,t,n=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e,r=(e,t,...n)=>{let l=null,o=!1,r=!1;const i=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&r?i[i.length-1].t+=l:i.push(o?c(null,l):l),r=o)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=c(e,null);return a.l=t,i.length>0&&(a.o=i),a},c=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),i={},u=new WeakMap,a=e=>"sc-"+e.p,f=(e,t,n,l,o,r)=>{if(n!==l){let c=U(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=p(n),s=p(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const i=s(l);if((c||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&r||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):U(V,i)?i.slice(2):i[2]+t.slice(3),n&&z.rel(e,t,n,!1),l&&z.ael(e,t,l,!1)}},h=/\s/,p=e=>e?e.split(h):[],$=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,r=e&&e.l||o,c=t.l||o;for(l in r)l in c||f(s,l,r[l],void 0,n,t.i);for(l in c)f(s,l,r[l],c[l],n,t.i)},y=(t,l,o)=>{const s=l.o[o];let r,c,i=0;if(null!==s.t)r=s.h=_.createTextNode(s.t);else{if(n||(n="svg"===s.u),r=s.h=_.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),$(null,s,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),s.o)for(i=0;i<s.o.length;++i)c=y(t,s,i),c&&r.appendChild(c);"svg"===s.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},d=(e,n,l,o,s,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=y(null,l,s),c&&(o[s].h=c,i.insertBefore(c,n)))},m=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.h,g(l),o.remove())},w=(e,t)=>e.u===t.u,b=(e,t)=>{const l=t.h=e.h,o=e.o,s=t.o,r=t.u,c=t.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,$(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:w(i,f)?(b(i,f),i=t[++s],f=l[++r]):w(u,h)?(b(u,h),u=t[--c],h=l[--a]):w(i,h)?(b(i,h),e.insertBefore(i.h,u.h.nextSibling),i=t[++s],h=l[--a]):w(u,f)?(b(u,f),e.insertBefore(u.h,i.h),u=t[--c],f=l[++r]):(o=y(t&&t[r],n,r),f=l[++r],o&&i.h.parentNode.insertBefore(o,i.h));s>c?d(e,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&m(t,s,c)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),d(l,null,t,s,0,s.length-1)):null!==o&&m(o,0,o.length-1),n&&"svg"===r&&(n=!1)):e.t!==c&&(l.data=c)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},S=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},j=(e,t)=>{if(e.i|=16,!(4&e.i))return S(e,e.m),Z((()=>v(e,t)));e.i|=512},v=(e,t)=>{const n=e.g;let l;return t&&(l=x(n,"componentWillLoad")),L(l,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.S,o=l["s-rc"];n&&(e=>{const t=e.j,n=e.S,l=t.i,o=((e,t)=>{let n=a(t);const l=H.get(n);if(e=11===e.nodeType?e:_,l)if("string"==typeof l){let t,o=u.get(e=e.head||e);o||u.set(e,o=new Set),o.has(n)||(t=_.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);M(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>k(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},M=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.S,s=n.v||c(null,null),u=(e=>e&&e.u===i)(l)?l:r(null,null,l);t=o.tagName,u.u=null,u.i|=4,n.v=u,u.h=s.h=o.shadowRoot||o,e=o["s-sc"],b(s,u)})(n,l)}catch(e){q(e,n.S)}return null},k=e=>{const t=e.S,n=e.g,l=e.m;64&e.i||(e.i|=64,P(t),x(n,"componentDidLoad"),e.O(t),l||C()),e.$&&(e.$(),e.$=void 0),512&e.i&&Y((()=>j(e,!1))),e.i&=-517},C=()=>{P(_.documentElement),Y((()=>(e=>{const t=z.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(V)))},x=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){q(e)}},L=(e,t)=>e&&e.then?e.then(t):t(),P=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.M){const l=Object.entries(t.M),o=e.prototype;if(l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(o,e,{get(){return((e,t)=>W(this).k.get(t))(0,e)},set(t){((e,t,n)=>{const l=W(e),o=l.k.get(t),r=l.i,c=l.g;n=(e=>(null==e||s(e),e))(n),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(l.k.set(t,n),c&&2==(18&r)&&j(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){z.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},N=(e,t={})=>{const n=[],l=t.exclude||[],o=V.customElements,s=_.head,r=s.querySelector("meta[charset]"),c=_.createElement("style"),i=[];let u,f=!0;Object.assign(z,t),z.C=new URL(t.resourcesUrl||"./",_.baseURI).href,e.map((e=>{e[1].map((t=>{const s={i:t[0],p:t[1],M:t[2],L:t[3]};s.M=t[2];const r=s.p,c=class extends HTMLElement{constructor(e){super(e),R(e=this,s),1&s.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),f?i.push(this):z.jmp((()=>(e=>{if(0==(1&z.i)){const t=W(e),n=t.j,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(t,t.m=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.i)){{if(t.i|=32,(o=F(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(E(o,n,2),o.isProxied=!0);const e=()=>{};t.i|=8;try{new o(t)}catch(e){q(e)}t.i&=-9,e()}if(o.style){let e=o.style;const t=a(n);if(!H.has(t)){const l=()=>{};((e,t,n)=>{let l=H.get(e);G&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,H.set(e,l)})(t,e,!!(1&n.i)),l()}}}const s=t.m,r=()=>j(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return W(this).P}};s.N=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,E(c,s,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),f=!1,i.length?i.map((e=>e.connectedCallback())):z.jmp((()=>u=setTimeout(C,30)))},T=new WeakMap,W=e=>T.get(e),A=(e,t)=>T.set(t.g=e,t),R=(e,t)=>{const n={i:0,S:e,j:t,k:new Map};return n.P=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],T.set(e,n)},U=(e,t)=>t in e,q=(e,t)=>(0,console.error)(e,t),D=new Map,F=e=>{const t=e.p.replace(/-/g,"_"),n=e.N,l=D.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(D.set(n,e),e[t])),q)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,C:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},B=e=>Promise.resolve(e),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&z.i?Y(X):z.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){q(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&z.raf(X)},Y=e=>B().then(e),Z=K(J,!0);export{N as b,r as h,B as p,A as r}
@@ -1 +1 @@
1
- import{r as t,h as e}from"./p-9746b0d9.js";const r=class{constructor(r){t(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){t(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))}}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
1
+ import{r as t,h as e}from"./p-44c495c4.js";const r=class{constructor(r){t(this,r),this.fields=[{label:"Date",prop:"date"},{label:"List Price",prop:"price"},{label:"% of Market",prop:"market"},{label:"ProfitTime Score",prop:"score"}],this.items=[],this.table=void 0,this.renderDetails=t=>{const{tags:r=[]}=t;return e("div",{class:"detailWrapper"},e("span",null,r.length," details..."),e("ul",null,r.map((t=>e("li",null,t)))))}}componentWillLoad(){this.items=[{date:"08/30/2020",price:"$24,000",market:"98%",score:"No Score",tags:["one","two","three"]},{date:"08/31/2020",price:"$24,000",market:"99%",score:"No Score",tags:["uno","duo"]},{date:"09/01/2020",price:"$27,000",market:"102%",score:"Platinum"},{date:"09/02/2020",price:"$27,423",market:"104%",score:"Platinum",tags:["dog","cat","fish","hamster"]},{date:"09/03/2020",price:"$27,521",market:"106%",score:"Platinum",tags:["4wd","sports"]},{date:"09/04/2020",price:"$27,687",market:"107%",score:"Platinum",tags:["leather","chrome"]}]}componentDidLoad(){const{table:t,items:e,fields:r}=this;t.data=e,t.fields=r,t.details=this.renderDetails}render(){return e("proto-table",{ref:t=>this.table=t})}};r.style=".detailWrapper{font-weight:100;font-size:13px;display:flex;flex-direction:column;justify-items:start;padding:5px;padding-left:30px}";const s={down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z","arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z"},i={right:"show",down:"hide","arrow-up":"sort","arrow-down":"sort"},l=class{constructor(r){t(this,r),this.data=[],this.details=void 0,this.fields=[],this.expanded=void 0,this.sort=void 0,this.clicks=0,this.protoIcon=(t,r,l=24)=>{const o=s[t];return e("svg",{width:l,height:l,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},e("title",null,(t=>i[t])(t)),e("g",{fill:r},e("path",{d:o})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.handleCellClick=(t,e)=>()=>{0===t&&(this.expanded=this.expanded===e?void 0:e)},this.handleSortClick=t=>()=>{this.sort===t?2===this.clicks?(this.clicks=0,this.sort=void 0):this.clicks=this.clicks+1:(this.sort=t,this.clicks=1)},this.iconFor=t=>this.sort===t&&2===this.clicks?"arrow-up":"arrow-down",this.header=()=>{const{fields:t,iconFor:r,protoIcon:s}=this;return e("div",{class:"header"},t.map((({label:t},i)=>{const l=i===this.sort?"headerCell sort":"headerCell",o=r(i);return e("div",{class:l,onClick:this.handleSortClick(i)},s(o),e("span",null,t))})))},this.row=(t,r)=>{const{fields:s,protoIcon:i}=this;return e("div",{class:"rowContainer"},e("div",{class:this.expanded===r?"row expanded":"row"},s.map((({prop:s},l)=>e("div",{class:l===this.sort?"cell sort":"cell",onClick:this.handleCellClick(l,r)},i(0===l&&this.details?this.expanded===r?"down":"right":"pad"),t[s])))),this.details&&this.expanded===r&&this.details(t))}}render(){const t=this.data||[];return e("div",{class:"table"},this.header(),t.map(((t,e)=>this.row(t,e))))}};l.style=".table{font-weight:400;font-size:13px;display:flex;flex-direction:column;width:100%;border:1px solid var(--clrs-navy);border-radius:2px}.table svg{fill:var(--clrs-navy)}.header{display:flex}.headerCell{flex-basis:100%;display:flex;align-items:center;justify-items:start;border-right:1px solid var(--clrs-navy);border-bottom:1px solid var(--clrs-navy);padding:5px;cursor:pointer}.headerCell svg g{display:none}.headerCell.sort svg g{display:inline}.headerCell:hover svg g{display:inline}.headerCell:hover{background-color:var(--clrs-silver)}.headerCell:last-child{border-right:none}.cell{flex-basis:100%;display:flex;align-items:center;justify-items:start;padding:5px}.cell:first-child svg{cursor:pointer}.sort{background-color:var(--cx-column-sort)}.row{display:flex;justify-items:stretch;width:100%}.row.expanded{background-color:var(--cx-row-expanded)}.row.expanded svg{fill:var(--clrs-red)}.row:hover{background-color:var(--cx-row-hover)}";export{r as demo_table,l as proto_table}
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-9746b0d9.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((t=>a([["p-1f6f46a5",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],t)));
1
+ import{p as t,b as a}from"./p-44c495c4.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((t=>a([["p-767a4c79",[[1,"demo-table"],[0,"proto-table",{data:[16],details:[8],fields:[16],expanded:[32],sort:[32],clicks:[32]}]]]],t)));
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
225
226
  */
226
227
  export declare function getMode<T = string | undefined>(ref: any): T;
227
228
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
234
235
  /**
235
236
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
237
  * if the path needs to be customized.
238
+ * @param path the path to use in calculating the asset path. this value will be
239
+ * used in conjunction with the base asset path
237
240
  */
238
241
  export declare function getAssetPath(path: string): string;
239
242
  /**
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
246
249
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
250
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
251
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
252
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
253
  * will have to ensure the static assets are copied to its build directory.
254
+ * @param path the asset path to set
251
255
  */
252
256
  export declare function setAssetPath(path: string): string;
253
257
  /**
254
- * getElement
258
+ * Retrieve a Stencil element for a given reference
259
+ * @param ref the ref to get the Stencil element for
255
260
  */
256
261
  export declare function getElement(ref: any): HTMLStencilElement;
257
262
  /**
258
263
  * Schedules a new render of the given instance or element even if no state changed.
259
264
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
265
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
266
+ *
267
+ * @param ref the node/element to force the re-render of
261
268
  */
262
269
  export declare function forceUpdate(ref: any): void;
263
270
  /**
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
279
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
280
  *
274
281
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ *
283
+ * @param task the DOM-write to schedule
275
284
  */
276
285
  export declare function writeTask(task: RafCallback): void;
277
286
  /**
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
279
288
  * in the best moment to perform DOM reads without causing layout thrashing.
280
289
  *
281
290
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
291
+ *
292
+ * @param task the DOM-read to schedule
282
293
  */
283
294
  export declare function readTask(task: RafCallback): void;
284
295
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-table-wc",
3
- "version": "0.0.340",
3
+ "version": "0.0.342",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "2.18.0"
30
+ "@stencil/core": "2.18.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/jest": "29.1.1",
@@ -36,7 +36,7 @@
36
36
  "eslint": "8.24.0",
37
37
  "jest": "29.1.2",
38
38
  "prettier": "2.7.1",
39
- "puppeteer": "18.0.5",
39
+ "puppeteer": "18.1.0",
40
40
  "tslint": "6.1.3",
41
41
  "typescript": "4.8.4"
42
42
  },
@@ -1,2 +0,0 @@
1
- let e,t,n=!1,l=!1;const o="undefined"!=typeof window?window:{},s=o.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),u=new WeakMap,a=e=>"sc-"+e.o,f={},h=e=>"object"==(e=typeof e)||"function"===e,p=(e,t,...n)=>{let l=null,o=!1,s=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!h(l))&&(l+=""),o&&s?r[r.length-1].i+=l:r.push(o?$(null,l):l),s=o)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=$(e,null);return i.u=t,r.length>0&&(i.h=r),i},$=(e,t)=>({t:0,p:e,i:t,$:null,h:null,u:null}),y={},d=(e,t,n,l,s,c)=>{if(n!==l){let i=V(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=w(n),s=w(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=h(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):V(o,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},m=/\s/,w=e=>e?e.split(m):[],b=(e,t,n,l)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,s=e&&e.u||f,r=t.u||f;for(l in s)l in r||d(o,l,s[l],void 0,n,t.t);for(l in r)d(o,l,s[l],r[l],n,t.t)},g=(t,l,o)=>{const r=l.h[o];let c,i,u=0;if(null!==r.i)c=r.$=s.createTextNode(r.i);else{if(n||(n="svg"===r.p),c=r.$=s.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.p),n&&"foreignObject"===r.p&&(n=!1),b(null,r,n),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),r.h)for(u=0;u<r.h.length;++u)i=g(t,r,u),i&&c.appendChild(i);"svg"===r.p?n=!1:"foreignObject"===c.tagName&&(n=!0)}return c},S=(e,n,l,o,s,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=g(null,l,s),c&&(o[s].$=c,i.insertBefore(c,n)))},j=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.$,M(l),o.remove())},v=(e,t)=>e.p===t.p,O=(e,t)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.p,c=t.i;null===c?(n="svg"===r||"foreignObject"!==r&&n,b(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:v(i,f)?(O(i,f),i=t[++s],f=l[++r]):v(u,h)?(O(u,h),u=t[--c],h=l[--a]):v(i,h)?(O(i,h),e.insertBefore(i.$,u.$.nextSibling),i=t[++s],h=l[--a]):v(u,f)?(O(u,f),e.insertBefore(u.$,i.$),u=t[--c],f=l[++r]):(o=g(t&&t[r],n,r),f=l[++r],o&&i.$.parentNode.insertBefore(o,i.$));s>c?S(e,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&j(t,s,c)})(l,o,t,s):null!==s?(null!==e.i&&(l.textContent=""),S(l,null,t,s,0,s.length-1)):null!==o&&j(o,0,o.length-1),n&&"svg"===r&&(n=!1)):e.i!==c&&(l.data=c)},M=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(M)},k=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},C=(e,t)=>{if(e.t|=16,!(4&e.t))return k(e,e.g),Z((()=>x(e,t)));e.t|=512},x=(e,t)=>{const n=e.S;let l;return t&&(l=T(n,"componentWillLoad")),W(l,(()=>L(e,n,t)))},L=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=a(t);const l=G.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=u.get(e=e.head||e);o||u.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>E(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const o=n.j,s=n.O||$(null,null),r=(e=>e&&e.p===y)(l)?l:p(null,null,l);t=o.tagName,r.p=null,r.t|=4,n.O=r,r.$=s.$=o.shadowRoot||o,e=o["s-sc"],O(s,r)})(n,l)}catch(e){_(e,n.j)}return null},E=e=>{const t=e.j,n=e.S,l=e.g;64&e.t||(e.t|=64,A(t),T(n,"componentDidLoad"),e.M(t),l||N()),e.m&&(e.m(),e.m=void 0),512&e.t&&Y((()=>C(e,!1))),e.t&=-517},N=()=>{A(s.documentElement),Y((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(t),t})(o)))},T=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){_(e)}},W=(e,t)=>e&&e.then?e.then(t):t(),A=e=>e.classList.add("hydrated"),R=(e,t,n)=>{if(t.k){const l=Object.entries(t.k),o=e.prototype;if(l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(o,e,{get(){return((e,t)=>D(this).C.get(t))(0,e)},set(t){((e,t,n)=>{const l=D(e),o=l.C.get(t),s=l.t,r=l.S;n=(e=>(null==e||h(e),e))(n),8&s&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(l.C.set(t,n),r&&2==(18&s)&&C(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},U=(e,t={})=>{const n=[],l=t.exclude||[],c=o.customElements,u=s.head,f=u.querySelector("meta[charset]"),h=s.createElement("style"),p=[];let $,y=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],o:t[1],k:t[2],L:t[3]};o.k=t[2];const s=o.o,u=class extends HTMLElement{constructor(e){super(e),H(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),y?p.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=D(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(t,t.g=n);break}}n.k&&Object.entries(n.k).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=B(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(R(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){_(e)}t.t&=-9,e()}if(o.style){let e=o.style;const t=a(n);if(!G.has(t)){const l=()=>{};((e,t,n)=>{let l=G.get(e);i&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,G.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.g,r=()=>C(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>{}))}componentOnReady(){return D(this).P}};o.N=e[0],l.includes(s)||c.get(s)||(n.push(s),c.define(s,R(u,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),u.insertBefore(h,f?f.nextSibling:u.firstChild),y=!1,p.length?p.map((e=>e.connectedCallback())):r.jmp((()=>$=setTimeout(N,30)))},q=new WeakMap,D=e=>q.get(e),F=(e,t)=>q.set(t.S=e,t),H=(e,t)=>{const n={t:0,j:e,v:t,C:new Map};return n.P=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},V=(e,t)=>t in e,_=(e,t)=>(0,console.error)(e,t),z=new Map,B=e=>{const t=e.o.replace(/-/g,"_"),n=e.N,l=z.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(z.set(n,e),e[t])),_)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},G=new Map,I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?Y(X):r.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){_(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&r.raf(X)},Y=e=>c().then(e),Z=K(J,!0);export{U as b,p as h,c as p,F as r}