proto-ikons-wc 0.0.103 → 0.0.105

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ff45e4e4.js');
5
+ const index = require('./index-f60de1b5.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -301,6 +301,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
301
301
  *
302
302
  * Modified for Stencil's compiler and vdom
303
303
  */
304
+ /**
305
+ * When running a VDom render set properties present on a VDom node onto the
306
+ * corresponding HTML element.
307
+ *
308
+ * Note that this function has special functionality for the `class`,
309
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
310
+ * `onClick`, etc). All others are just passed through as-is.
311
+ *
312
+ * @param elm the HTMLElement onto which attributes should be set
313
+ * @param memberName the name of the attribute to set
314
+ * @param oldValue the old value for the attribute
315
+ * @param newValue the new value for the attribute
316
+ * @param isSvg whether we're in an svg context or not
317
+ * @param flags bitflags for Vdom variables
318
+ */
304
319
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
305
320
  if (oldValue !== newValue) {
306
321
  let isProp = isMemberInElement(elm, memberName);
@@ -766,11 +781,38 @@ const patch = (oldVNode, newVNode) => {
766
781
  * @param hostRef data needed to root and render the virtual DOM tree, such as
767
782
  * the DOM node into which it should be rendered.
768
783
  * @param renderFnResults the virtual DOM nodes to be rendered
784
+ * @param isInitialLoad whether or not this is the first call after page load
769
785
  */
770
- const renderVdom = (hostRef, renderFnResults) => {
786
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
771
787
  const hostElm = hostRef.$hostElement$;
772
788
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
789
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
790
+ // we need to call `h` again to wrap the children of our component in a
791
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
792
+ // implicitly that the top-level vdom node is 1) an only child and 2)
793
+ // contains attrs that need to be set on the host element.
773
794
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
795
+ // On the first render and *only* on the first render we want to check for
796
+ // any attributes set on the host element which are also set on the vdom
797
+ // node. If we find them, we override the value on the VDom node attrs with
798
+ // the value from the host element, which allows developers building apps
799
+ // with Stencil components to override e.g. the `role` attribute on a
800
+ // component even if it's already set on the `Host`.
801
+ if (isInitialLoad && rootVnode.$attrs$) {
802
+ for (const key of Object.keys(rootVnode.$attrs$)) {
803
+ // We have a special implementation in `setAccessor` for `style` and
804
+ // `class` which reconciles values coming from the VDom with values
805
+ // already present on the DOM element, so we don't want to override those
806
+ // attributes on the VDom tree with values from the host element if they
807
+ // are present.
808
+ //
809
+ // Likewise, `ref` and `key` are special internal values for the Stencil
810
+ // runtime and we don't want to override those either.
811
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
812
+ rootVnode.$attrs$[key] = hostElm[key];
813
+ }
814
+ }
815
+ }
774
816
  rootVnode.$tag$ = null;
775
817
  rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
776
818
  hostRef.$vnode$ = rootVnode;
@@ -856,6 +898,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
856
898
  */
857
899
  const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
858
900
  (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
901
+ /**
902
+ * Update a component given reference to its host elements and so on.
903
+ *
904
+ * @param hostRef an object containing references to the element's host node,
905
+ * VDom nodes, and other metadata
906
+ * @param instance a reference to the underlying host element where it will be
907
+ * rendered
908
+ * @param isInitialLoad whether or not this function is being called as part of
909
+ * the first render cycle
910
+ */
859
911
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
860
912
  var _a;
861
913
  const elm = hostRef.$hostElement$;
@@ -867,7 +919,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
867
919
  }
868
920
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
869
921
  {
870
- callRender(hostRef, instance);
922
+ callRender(hostRef, instance, elm, isInitialLoad);
871
923
  }
872
924
  if (rc) {
873
925
  // ok, so turns out there are some child host elements
@@ -891,7 +943,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
891
943
  }
892
944
  }
893
945
  };
894
- const callRender = (hostRef, instance, elm) => {
946
+ /**
947
+ * Handle making the call to the VDom renderer with the proper context given
948
+ * various build variables
949
+ *
950
+ * @param hostRef an object containing references to the element's host node,
951
+ * VDom nodes, and other metadata
952
+ * @param instance a reference to the underlying host element where it will be
953
+ * rendered
954
+ * @param elm the Host element for the component
955
+ * @param isInitialLoad whether or not this function is being called as part of
956
+ * @returns an empty promise
957
+ */
958
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
895
959
  try {
896
960
  instance = instance.render() ;
897
961
  {
@@ -906,7 +970,7 @@ const callRender = (hostRef, instance, elm) => {
906
970
  // or we need to update the css class/attrs on the host element
907
971
  // DOM WRITE!
908
972
  {
909
- renderVdom(hostRef, instance);
973
+ renderVdom(hostRef, instance, isInitialLoad);
910
974
  }
911
975
  }
912
976
  }
@@ -1158,6 +1222,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1158
1222
  schedule();
1159
1223
  }
1160
1224
  };
1225
+ const fireConnectedCallback = (instance) => {
1226
+ };
1161
1227
  const connectedCallback = (elm) => {
1162
1228
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1163
1229
  const hostRef = getHostRef(elm);
@@ -1196,12 +1262,25 @@ const connectedCallback = (elm) => {
1196
1262
  initializeComponent(elm, hostRef, cmpMeta);
1197
1263
  }
1198
1264
  }
1265
+ else {
1266
+ // fire off connectedCallback() on component instance
1267
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1268
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1269
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1270
+ }
1271
+ }
1199
1272
  endConnected();
1200
1273
  }
1201
1274
  };
1202
- const disconnectedCallback = (elm) => {
1275
+ const disconnectInstance = (instance) => {
1276
+ };
1277
+ const disconnectedCallback = async (elm) => {
1203
1278
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1204
- getHostRef(elm);
1279
+ const hostRef = getHostRef(elm);
1280
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1281
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1282
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
1283
+ }
1205
1284
  }
1206
1285
  };
1207
1286
  const bootstrapLazy = (lazyBundles, options = {}) => {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ff45e4e4.js');
5
+ const index = require('./index-f60de1b5.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
- if (typeof window === 'undefined') return Promise.resolve();
8
+ if (typeof window === 'undefined') return undefined;
9
9
  return index.bootstrapLazy([["acura-ikon_119.cjs",[[0,"acura-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"alfa-romeo-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"alfa-romeo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"alien-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"am-general-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"asterisk-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"aston-martin-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"aston-martin-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"audi-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"barcode-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"barcode-scan-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"bash-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"beaker-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"bently-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"bmw-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"bugatti-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"buick-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"cadillac-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"chart-bar-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-bubble-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-donut-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-donuts-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"check-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chevrolet-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"chevron-double-left-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chrysler-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"circular-saw-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"citroen-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"close-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"daewoo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"dodge-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"eagle-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"ferrari-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"fiat-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fiat-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"fingerprint-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fire-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fisker-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"flask-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ford-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"genesis-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"geo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"git-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"gmc-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"honda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"hummer-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"hyundai-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"infiniti-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"isuzu-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"jaguar-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jaguar-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"java-script-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jeep-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jeep-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"kia-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lamborghini-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"lamborghini-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"land-rover-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lexus-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lincoln-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lotus-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"lotus-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"maserati-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"maybach-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mazda-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mazda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mclaren-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mclaren-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mercedes-benz-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mercedes-benz-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mercury-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mini-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mini-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mitsubishi-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"nissan-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"oldsmobile-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"one-password-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"opel-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"panoz-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"paw-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"peugeot-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"peugeot-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"plymouth-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"pontiac-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"porsche-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"protocol-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"pulse-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"puzzle-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"qr-code-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"radio-2-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"radio-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ram-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ram-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"refresh-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"renault-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"renault-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"rolls-royce-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"saab-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"saab-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"saturn-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"scion-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"seat-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"skoda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"slug-icon",{"label":[1],"name":[1],"size":[2]}],[0,"smart-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"spider-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"spyker-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"spyker-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"subaru-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"subaru-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"suzuki-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"svg-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"tesla-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"toyota-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"vector-curve-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"volkswagen-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"volvo-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"volvo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"webhook-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}]]]], options);
10
10
  };
11
11
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ff45e4e4.js');
5
+ const index = require('./index-f60de1b5.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "4.0.1",
125
+ "version": "4.0.3",
126
126
  "typescriptVersion": "5.0.4"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-df7a8676.js';
1
+ import { r as registerInstance, h } from './index-2cc584a9.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -279,6 +279,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
279
279
  *
280
280
  * Modified for Stencil's compiler and vdom
281
281
  */
282
+ /**
283
+ * When running a VDom render set properties present on a VDom node onto the
284
+ * corresponding HTML element.
285
+ *
286
+ * Note that this function has special functionality for the `class`,
287
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
288
+ * `onClick`, etc). All others are just passed through as-is.
289
+ *
290
+ * @param elm the HTMLElement onto which attributes should be set
291
+ * @param memberName the name of the attribute to set
292
+ * @param oldValue the old value for the attribute
293
+ * @param newValue the new value for the attribute
294
+ * @param isSvg whether we're in an svg context or not
295
+ * @param flags bitflags for Vdom variables
296
+ */
282
297
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
283
298
  if (oldValue !== newValue) {
284
299
  let isProp = isMemberInElement(elm, memberName);
@@ -744,11 +759,38 @@ const patch = (oldVNode, newVNode) => {
744
759
  * @param hostRef data needed to root and render the virtual DOM tree, such as
745
760
  * the DOM node into which it should be rendered.
746
761
  * @param renderFnResults the virtual DOM nodes to be rendered
762
+ * @param isInitialLoad whether or not this is the first call after page load
747
763
  */
748
- const renderVdom = (hostRef, renderFnResults) => {
764
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
749
765
  const hostElm = hostRef.$hostElement$;
750
766
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
767
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
768
+ // we need to call `h` again to wrap the children of our component in a
769
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
770
+ // implicitly that the top-level vdom node is 1) an only child and 2)
771
+ // contains attrs that need to be set on the host element.
751
772
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
773
+ // On the first render and *only* on the first render we want to check for
774
+ // any attributes set on the host element which are also set on the vdom
775
+ // node. If we find them, we override the value on the VDom node attrs with
776
+ // the value from the host element, which allows developers building apps
777
+ // with Stencil components to override e.g. the `role` attribute on a
778
+ // component even if it's already set on the `Host`.
779
+ if (isInitialLoad && rootVnode.$attrs$) {
780
+ for (const key of Object.keys(rootVnode.$attrs$)) {
781
+ // We have a special implementation in `setAccessor` for `style` and
782
+ // `class` which reconciles values coming from the VDom with values
783
+ // already present on the DOM element, so we don't want to override those
784
+ // attributes on the VDom tree with values from the host element if they
785
+ // are present.
786
+ //
787
+ // Likewise, `ref` and `key` are special internal values for the Stencil
788
+ // runtime and we don't want to override those either.
789
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
790
+ rootVnode.$attrs$[key] = hostElm[key];
791
+ }
792
+ }
793
+ }
752
794
  rootVnode.$tag$ = null;
753
795
  rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
754
796
  hostRef.$vnode$ = rootVnode;
@@ -834,6 +876,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
834
876
  */
835
877
  const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
836
878
  (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
879
+ /**
880
+ * Update a component given reference to its host elements and so on.
881
+ *
882
+ * @param hostRef an object containing references to the element's host node,
883
+ * VDom nodes, and other metadata
884
+ * @param instance a reference to the underlying host element where it will be
885
+ * rendered
886
+ * @param isInitialLoad whether or not this function is being called as part of
887
+ * the first render cycle
888
+ */
837
889
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
838
890
  var _a;
839
891
  const elm = hostRef.$hostElement$;
@@ -845,7 +897,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
845
897
  }
846
898
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
847
899
  {
848
- callRender(hostRef, instance);
900
+ callRender(hostRef, instance, elm, isInitialLoad);
849
901
  }
850
902
  if (rc) {
851
903
  // ok, so turns out there are some child host elements
@@ -869,7 +921,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
869
921
  }
870
922
  }
871
923
  };
872
- const callRender = (hostRef, instance, elm) => {
924
+ /**
925
+ * Handle making the call to the VDom renderer with the proper context given
926
+ * various build variables
927
+ *
928
+ * @param hostRef an object containing references to the element's host node,
929
+ * VDom nodes, and other metadata
930
+ * @param instance a reference to the underlying host element where it will be
931
+ * rendered
932
+ * @param elm the Host element for the component
933
+ * @param isInitialLoad whether or not this function is being called as part of
934
+ * @returns an empty promise
935
+ */
936
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
873
937
  try {
874
938
  instance = instance.render() ;
875
939
  {
@@ -884,7 +948,7 @@ const callRender = (hostRef, instance, elm) => {
884
948
  // or we need to update the css class/attrs on the host element
885
949
  // DOM WRITE!
886
950
  {
887
- renderVdom(hostRef, instance);
951
+ renderVdom(hostRef, instance, isInitialLoad);
888
952
  }
889
953
  }
890
954
  }
@@ -1136,6 +1200,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1136
1200
  schedule();
1137
1201
  }
1138
1202
  };
1203
+ const fireConnectedCallback = (instance) => {
1204
+ };
1139
1205
  const connectedCallback = (elm) => {
1140
1206
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1141
1207
  const hostRef = getHostRef(elm);
@@ -1174,12 +1240,25 @@ const connectedCallback = (elm) => {
1174
1240
  initializeComponent(elm, hostRef, cmpMeta);
1175
1241
  }
1176
1242
  }
1243
+ else {
1244
+ // fire off connectedCallback() on component instance
1245
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1246
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1247
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1248
+ }
1249
+ }
1177
1250
  endConnected();
1178
1251
  }
1179
1252
  };
1180
- const disconnectedCallback = (elm) => {
1253
+ const disconnectInstance = (instance) => {
1254
+ };
1255
+ const disconnectedCallback = async (elm) => {
1181
1256
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1182
- getHostRef(elm);
1257
+ const hostRef = getHostRef(elm);
1258
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1259
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1260
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
1261
+ }
1183
1262
  }
1184
1263
  };
1185
1264
  const bootstrapLazy = (lazyBundles, options = {}) => {
@@ -1,8 +1,8 @@
1
- import { b as bootstrapLazy } from './index-df7a8676.js';
2
- export { s as setNonce } from './index-df7a8676.js';
1
+ import { b as bootstrapLazy } from './index-2cc584a9.js';
2
+ export { s as setNonce } from './index-2cc584a9.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
- if (typeof window === 'undefined') return Promise.resolve();
5
+ if (typeof window === 'undefined') return undefined;
6
6
  return bootstrapLazy([["acura-ikon_119",[[0,"acura-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"alfa-romeo-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"alfa-romeo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"alien-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"am-general-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"asterisk-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"aston-martin-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"aston-martin-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"audi-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"barcode-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"barcode-scan-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"bash-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"beaker-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"bently-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"bmw-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"bugatti-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"buick-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"cadillac-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"chart-bar-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-bubble-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-donut-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chart-donuts-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"check-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chevrolet-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"chevron-double-left-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"chrysler-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"circular-saw-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"citroen-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"close-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"daewoo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"dodge-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"eagle-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"ferrari-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"fiat-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fiat-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"fingerprint-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fire-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"fisker-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"flask-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ford-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"genesis-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"geo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"git-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"gmc-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"honda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"hummer-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"hyundai-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"infiniti-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"isuzu-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"jaguar-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jaguar-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"java-script-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jeep-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"jeep-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"kia-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lamborghini-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"lamborghini-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"land-rover-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lexus-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lincoln-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"lotus-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"lotus-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"maserati-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"maybach-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mazda-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mazda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mclaren-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mclaren-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mercedes-benz-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mercedes-benz-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mercury-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mini-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"mini-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"mitsubishi-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"nissan-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"oldsmobile-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"one-password-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"opel-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"panoz-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"paw-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"peugeot-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"peugeot-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"plymouth-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"pontiac-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"porsche-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"protocol-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"pulse-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"puzzle-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"qr-code-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"radio-2-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"radio-icon",{"selected":[4],"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ram-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"ram-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"refresh-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"renault-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"renault-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"rolls-royce-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"saab-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"saab-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"saturn-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"scion-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"seat-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"skoda-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"slug-icon",{"label":[1],"name":[1],"size":[2]}],[0,"smart-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"spider-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"spyker-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"spyker-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"subaru-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"subaru-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"suzuki-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"svg-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"tesla-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"toyota-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"vector-curve-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"volkswagen-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"volvo-alt-ikon",{"hex":[1],"label":[1],"name":[1],"size":[2]}],[0,"volvo-ikon",{"hex":[1],"name":[1],"size":[2]}],[0,"webhook-icon",{"hex":[1],"label":[1],"name":[1],"size":[2]}]]]], options);
7
7
  };
8
8
 
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-df7a8676.js';
2
- export { s as setNonce } from './index-df7a8676.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-2cc584a9.js';
2
+ export { s as setNonce } from './index-2cc584a9.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ let t=!1,n=!1;const e="http://www.w3.org/1999/xlink",l={},o=t=>"object"==(t=typeof t)||"function"===t;function s(t){var n,e,l;return null!==(l=null===(e=null===(n=t.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(t,n,...e)=>{let l=null,s=!1,i=!1;const r=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),n){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}const a=c(t,null);return a.l=n,r.length>0&&(a.o=r),a},c=(t,n)=>({i:0,u:t,t:n,h:null,o:null,l:null}),r={},u=new WeakMap,a=t=>"sc-"+t.p,f=(t,n,l,s,i,c)=>{if(l!==s){let r=U(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,e=h(l),o=h(s);n.remove(...e.filter((t=>t&&!o.includes(t)))),n.add(...o.filter((t=>t&&!e.includes(t))))}else{const a=o(s);if((r||a&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[n]=s;else{const e=null==s?"":s;"list"===n?r=!1:null!=l&&t[n]==e||(t[n]=e)}}catch(t){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,f=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(f?t.removeAttributeNS(e,n):t.removeAttribute(n)):(!r||4&c||i)&&!a&&(s=!0===s?"":s,f?t.setAttributeNS(e,n,s):t.setAttribute(n,s))}}},d=/\s/,h=t=>t?t.split(d):[],p=(t,n,e,o)=>{const s=11===n.h.nodeType&&n.h.host?n.h.host:n.h,i=t&&t.l||l,c=n.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,n.i);for(o in c)f(s,o,i[o],c[o],e,n.i)},y=(n,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.h=z.createTextNode(o.t);else{if(t||(t="svg"===o.u),s=o.h=z.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),t&&"foreignObject"===o.u&&(t=!1),p(null,o,t),o.o)for(c=0;c<o.o.length;++c)i=y(n,o,c),i&&s.appendChild(i);"svg"===o.u?t=!1:"foreignObject"===s.tagName&&(t=!0)}return s},w=(t,n,e,l,o,s)=>{let i,c=t;for(;o<=s;++o)l[o]&&(i=y(null,e,o),i&&(l[o].h=i,c.insertBefore(i,n)))},$=(t,n,e)=>{for(let l=n;l<=e;++l){const n=t[l];if(n){const t=n.h;t&&t.remove()}}},m=(t,n)=>t.u===n.u,v=(n,e)=>{const l=e.h=n.h,o=n.o,s=e.o,i=e.u,c=e.t;null===c?(t="svg"===i||"foreignObject"!==i&&t,p(n,e,t),null!==o&&null!==s?((t,n,e,l)=>{let o,s=0,i=0,c=n.length-1,r=n[0],u=n[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=n[++s]:null==u?u=n[--c]:null==f?f=l[++i]:null==d?d=l[--a]:m(r,f)?(v(r,f),r=n[++s],f=l[++i]):m(u,d)?(v(u,d),u=n[--c],d=l[--a]):m(r,d)?(v(r,d),t.insertBefore(r.h,u.h.nextSibling),r=n[++s],d=l[--a]):m(u,f)?(v(u,f),t.insertBefore(u.h,r.h),u=n[--c],f=l[++i]):(o=y(n&&n[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?w(t,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&$(n,s,c)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),w(l,null,e,s,0,s.length-1)):null!==o&&$(o,0,o.length-1),t&&"svg"===i&&(t=!1)):n.t!==c&&(l.data=c)},b=(t,n)=>{n&&!t.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>t.$=n)))},g=(t,n)=>{if(t.i|=16,!(4&t.i))return b(t,t.m),Z((()=>j(t,n)));t.i|=512},j=(t,n)=>{const e=t.v;return S(void 0,(()=>O(t,e,n)))},S=(t,n)=>k(t)?t.then(n):n(),k=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,O=async(t,n,e)=>{var l;const o=t.g,i=o["s-rc"];e&&(t=>{const n=t.j;((t,n)=>{var e;const l=a(n),o=V.get(l);if(t=11===t.nodeType?t:z,o)if("string"==typeof o){let n,i=u.get(t=t.head||t);if(i||u.set(t,i=new Set),!i.has(l)){{n=z.createElement("style"),n.innerHTML=o;const l=null!==(e=B.S)&&void 0!==e?e:s(z);null!=l&&n.setAttribute("nonce",l),t.insertBefore(n,t.querySelector("link"))}i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o])})(t.g.getRootNode(),n)})(t);M(t,n,o,e),i&&(i.map((t=>t())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>x(t);0===n.length?e():(Promise.all(n).then(e),t.i|=4,n.length=0)}},M=(t,n,e,l)=>{try{n=n.render(),t.i&=-17,t.i|=2,((t,n,e=!1)=>{const l=t.g,o=t.k||c(null,null),s=(t=>t&&t.u===r)(n)?n:i(null,null,n);if(e&&s.l)for(const t of Object.keys(s.l))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.l[t]=l[t]);s.u=null,s.i|=4,t.k=s,s.h=o.h=l,v(o,s)})(t,n,l)}catch(n){W(n,t.g)}return null},x=t=>{const n=t.g,e=t.m;64&t.i||(t.i|=64,P(n),t.O(n),e||C()),t.$&&(t.$(),t.$=void 0),512&t.i&&Y((()=>g(t,!1))),t.i&=-517},C=()=>{P(z.documentElement),Y((()=>(t=>{const n=B.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return t.dispatchEvent(n),n})(_)))},P=t=>t.classList.add("hydrated"),E=(t,n,e)=>{if(n.M){const l=Object.entries(n.M),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,t,{get(){return((t,n)=>F(this).C.get(n))(0,t)},set(e){((t,n,e,l)=>{const s=F(t),i=s.C.get(n),c=s.i,r=s.v;e=((t,n)=>null==t||o(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?parseFloat(t):1&n?t+"":t)(e,l.M[n][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.C.set(n,e),r&&2==(18&c)&&g(s,!1))})(this,t,e,n)},configurable:!0,enumerable:!0})})),1&e){const n=new Map;s.attributeChangedCallback=function(t,e,l){B.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,n])=>15&n[0])).map((([t,e])=>{const l=e[1]||t;return n.set(l,t),l}))}}return t},N=(t,n={})=>{var e;const l=[],o=n.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,h=!0;Object.assign(B,n),B.P=new URL(n.resourcesUrl||"./",z.baseURI).href,t.map((t=>{t[1].map((n=>{const e={i:n[0],p:n[1],M:n[2],N:n[3]};e.M=n[2];const s=e.p,c=class extends HTMLElement{constructor(t){super(t),R(t=this,e)}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):B.jmp((()=>(t=>{if(0==(1&B.i)){const n=F(t),e=n.j,l=()=>{};if(1&n.i)(null==n?void 0:n.v)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.i|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){b(n,n.m=e);break}}e.M&&Object.entries(e.M).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e,l,o)=>{if(0==(32&n.i)){n.i|=32;{if((o=H(e)).then){const t=()=>{};o=await o,t()}o.isProxied||(E(o,e,2),o.isProxied=!0);const t=()=>{};n.i|=8;try{new o(n)}catch(t){W(t)}n.i&=-9,t()}if(o.style){let t=o.style;const n=a(e);if(!V.has(n)){const l=()=>{};((t,n,e)=>{let l=V.get(t);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,V.set(t,l)})(n,t,!!(1&e.i)),l()}}}const s=n.m,i=()=>g(n,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,n,e)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>(async()=>{if(0==(1&B.i)){const t=F(this);(null==t?void 0:t.v)||(null==t?void 0:t.T)&&t.T.then((()=>{}))}})()))}componentOnReady(){return F(this).T}};e.A=t[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(e=B.S)&&void 0!==e?e:s(z);null!=t&&u.setAttribute("nonce",t),c.insertBefore(u,r?r.nextSibling:c.firstChild)}h=!1,f.length?f.map((t=>t.connectedCallback())):B.jmp((()=>d=setTimeout(C,30)))},T=t=>B.S=t,A=new WeakMap,F=t=>A.get(t),L=(t,n)=>A.set(n.v=t,n),R=(t,n)=>{const e={i:0,g:t,j:n,C:new Map};return e.T=new Promise((t=>e.O=t)),t["s-p"]=[],t["s-rc"]=[],A.set(t,e)},U=(t,n)=>n in t,W=(t,n)=>(0,console.error)(t,n),q=new Map,H=t=>{const n=t.p.replace(/-/g,"_"),e=t.A,l=q.get(e);return l?l[n]:import(`./${e}.entry.js`).then((t=>(q.set(e,t),t[n])),W)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,P:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},D=t=>Promise.resolve(t),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),I=[],J=[],K=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&B.i?Y(X):B.raf(X))},Q=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){W(t)}t.length=0},X=()=>{Q(I),Q(J),(n=I.length>0)&&B.raf(X)},Y=t=>D().then(t),Z=K(J,!0);export{N as b,i as h,D as p,L as r,T as s}