proto-ikons-wc 0.0.110 → 0.0.113

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-f60de1b5.js');
5
+ const index = require('./index-5a0eb06e.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -124,6 +124,7 @@ const h = (nodeName, vnodeData, ...children) => {
124
124
  };
125
125
  walk(children);
126
126
  if (vnodeData) {
127
+ // normalize class / className attributes
127
128
  {
128
129
  const classData = vnodeData.className || vnodeData.class;
129
130
  if (classData) {
@@ -957,6 +958,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
957
958
  */
958
959
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
959
960
  try {
961
+ /**
962
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
963
+ * method, so we can call the method immediately. If not, check before calling it.
964
+ */
960
965
  instance = instance.render() ;
961
966
  {
962
967
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1065,6 +1070,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1065
1070
  * @returns a reference to the same constructor passed in (but now mutated)
1066
1071
  */
1067
1072
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1073
+ var _a;
1068
1074
  if (cmpMeta.$members$) {
1069
1075
  // It's better to have a const than two Object.entries()
1070
1076
  const members = Object.entries(cmpMeta.$members$);
@@ -1089,7 +1095,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1089
1095
  });
1090
1096
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1091
1097
  const attrNameToPropName = new Map();
1092
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1098
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1093
1099
  plt.jmp(() => {
1094
1100
  const propName = attrNameToPropName.get(attrName);
1095
1101
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1112,12 +1118,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1112
1118
  // customElements.define('my-component', MyComponent);
1113
1119
  // </script>
1114
1120
  // ```
1115
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1121
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1116
1122
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1117
1123
  // to the value that was set inline i.e. "some-value" from above example. When
1118
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1124
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1119
1125
  //
1120
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1126
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1121
1127
  // by connectedCallback as this attributeChangedCallback will not fire.
1122
1128
  //
1123
1129
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -1137,23 +1143,62 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1137
1143
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1138
1144
  return;
1139
1145
  }
1146
+ else if (propName == null) {
1147
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1148
+ // on a vanilla web component
1149
+ const hostRef = getHostRef(this);
1150
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1151
+ // We only want to trigger the callback(s) if:
1152
+ // 1. The instance is ready
1153
+ // 2. The watchers are ready
1154
+ // 3. The value has changed
1155
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1156
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1157
+ newValue !== oldValue) {
1158
+ const instance = hostRef.$lazyInstance$ ;
1159
+ const entry = cmpMeta.$watchers$[attrName];
1160
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1161
+ if (instance[callbackName] != null) {
1162
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1163
+ }
1164
+ });
1165
+ }
1166
+ return;
1167
+ }
1140
1168
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1141
1169
  });
1142
1170
  };
1143
- // create an array of attributes to observe
1144
- // and also create a map of html attribute name to js property name
1145
- Cstr.observedAttributes = members
1146
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1147
- .map(([propName, m]) => {
1148
- const attrName = m[1] || propName;
1149
- attrNameToPropName.set(attrName, propName);
1150
- return attrName;
1151
- });
1171
+ // Create an array of attributes to observe
1172
+ // This list in comprised of all strings used within a `@Watch()` decorator
1173
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1174
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1175
+ // an invalid attribute.
1176
+ Cstr.observedAttributes = Array.from(new Set([
1177
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1178
+ ...members
1179
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1180
+ .map(([propName, m]) => {
1181
+ const attrName = m[1] || propName;
1182
+ attrNameToPropName.set(attrName, propName);
1183
+ return attrName;
1184
+ }),
1185
+ ]));
1152
1186
  }
1153
1187
  }
1154
1188
  return Cstr;
1155
1189
  };
1156
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1190
+ /**
1191
+ * Initialize a Stencil component given a reference to its host element, its
1192
+ * runtime bookkeeping data structure, runtime metadata about the component,
1193
+ * and (optionally) an HMR version ID.
1194
+ *
1195
+ * @param elm a host element
1196
+ * @param hostRef the element's runtime bookkeeping object
1197
+ * @param cmpMeta runtime metadata for the Stencil component
1198
+ * @param hmrVersionId an (optional) HMR version ID
1199
+ */
1200
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1201
+ let Cstr;
1157
1202
  // initializeComponent
1158
1203
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1159
1204
  // Let the runtime know that the component has been initialized
@@ -1374,22 +1419,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1374
1419
  * @returns void
1375
1420
  */
1376
1421
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1422
+ /**
1423
+ * A WeakMap mapping runtime component references to their corresponding host reference
1424
+ * instances.
1425
+ */
1377
1426
  const hostRefs = /*@__PURE__*/ new WeakMap();
1427
+ /**
1428
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1429
+ *
1430
+ * @param ref the runtime ref of interest
1431
+ * @returns the Host reference (if found) or undefined
1432
+ */
1378
1433
  const getHostRef = (ref) => hostRefs.get(ref);
1434
+ /**
1435
+ * Register a lazy instance with the {@link hostRefs} object so it's
1436
+ * corresponding {@link d.HostRef} can be retrieved later.
1437
+ *
1438
+ * @param lazyInstance the lazy instance of interest
1439
+ * @param hostRef that instances `HostRef` object
1440
+ * @returns a reference to the host ref WeakMap
1441
+ */
1379
1442
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1380
- const registerHost = (elm, cmpMeta) => {
1443
+ /**
1444
+ * Register a host element for a Stencil component, setting up various metadata
1445
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1446
+ * metadata.
1447
+ *
1448
+ * @param hostElement the host element to register
1449
+ * @param cmpMeta runtime metadata for that component
1450
+ * @returns a reference to the host ref WeakMap
1451
+ */
1452
+ const registerHost = (hostElement, cmpMeta) => {
1381
1453
  const hostRef = {
1382
1454
  $flags$: 0,
1383
- $hostElement$: elm,
1455
+ $hostElement$: hostElement,
1384
1456
  $cmpMeta$: cmpMeta,
1385
1457
  $instanceValues$: new Map(),
1386
1458
  };
1387
1459
  {
1388
1460
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1389
- elm['s-p'] = [];
1390
- elm['s-rc'] = [];
1461
+ hostElement['s-p'] = [];
1462
+ hostElement['s-rc'] = [];
1391
1463
  }
1392
- return hostRefs.set(elm, hostRef);
1464
+ return hostRefs.set(hostElement, hostRef);
1393
1465
  };
1394
1466
  const isMemberInElement = (elm, memberName) => memberName in elm;
1395
1467
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f60de1b5.js');
5
+ const index = require('./index-5a0eb06e.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f60de1b5.js');
5
+ const index = require('./index-5a0eb06e.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.2.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.4.1 | 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,8 +122,8 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "4.2.0",
126
- "typescriptVersion": "5.1.6"
125
+ "version": "4.4.1",
126
+ "typescriptVersion": "5.2.2"
127
127
  },
128
128
  "collections": [],
129
129
  "bundles": []
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2cc584a9.js';
1
+ import { r as registerInstance, h } from './index-ca9b9204.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -102,6 +102,7 @@ const h = (nodeName, vnodeData, ...children) => {
102
102
  };
103
103
  walk(children);
104
104
  if (vnodeData) {
105
+ // normalize class / className attributes
105
106
  {
106
107
  const classData = vnodeData.className || vnodeData.class;
107
108
  if (classData) {
@@ -935,6 +936,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
935
936
  */
936
937
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
937
938
  try {
939
+ /**
940
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
941
+ * method, so we can call the method immediately. If not, check before calling it.
942
+ */
938
943
  instance = instance.render() ;
939
944
  {
940
945
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1043,6 +1048,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1043
1048
  * @returns a reference to the same constructor passed in (but now mutated)
1044
1049
  */
1045
1050
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1051
+ var _a;
1046
1052
  if (cmpMeta.$members$) {
1047
1053
  // It's better to have a const than two Object.entries()
1048
1054
  const members = Object.entries(cmpMeta.$members$);
@@ -1067,7 +1073,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1067
1073
  });
1068
1074
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1069
1075
  const attrNameToPropName = new Map();
1070
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1076
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1071
1077
  plt.jmp(() => {
1072
1078
  const propName = attrNameToPropName.get(attrName);
1073
1079
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1090,12 +1096,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1090
1096
  // customElements.define('my-component', MyComponent);
1091
1097
  // </script>
1092
1098
  // ```
1093
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1099
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1094
1100
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1095
1101
  // to the value that was set inline i.e. "some-value" from above example. When
1096
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1102
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1097
1103
  //
1098
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1104
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1099
1105
  // by connectedCallback as this attributeChangedCallback will not fire.
1100
1106
  //
1101
1107
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -1115,23 +1121,62 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1115
1121
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1116
1122
  return;
1117
1123
  }
1124
+ else if (propName == null) {
1125
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1126
+ // on a vanilla web component
1127
+ const hostRef = getHostRef(this);
1128
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1129
+ // We only want to trigger the callback(s) if:
1130
+ // 1. The instance is ready
1131
+ // 2. The watchers are ready
1132
+ // 3. The value has changed
1133
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1134
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1135
+ newValue !== oldValue) {
1136
+ const instance = hostRef.$lazyInstance$ ;
1137
+ const entry = cmpMeta.$watchers$[attrName];
1138
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1139
+ if (instance[callbackName] != null) {
1140
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1141
+ }
1142
+ });
1143
+ }
1144
+ return;
1145
+ }
1118
1146
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1119
1147
  });
1120
1148
  };
1121
- // create an array of attributes to observe
1122
- // and also create a map of html attribute name to js property name
1123
- Cstr.observedAttributes = members
1124
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1125
- .map(([propName, m]) => {
1126
- const attrName = m[1] || propName;
1127
- attrNameToPropName.set(attrName, propName);
1128
- return attrName;
1129
- });
1149
+ // Create an array of attributes to observe
1150
+ // This list in comprised of all strings used within a `@Watch()` decorator
1151
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1152
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1153
+ // an invalid attribute.
1154
+ Cstr.observedAttributes = Array.from(new Set([
1155
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1156
+ ...members
1157
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1158
+ .map(([propName, m]) => {
1159
+ const attrName = m[1] || propName;
1160
+ attrNameToPropName.set(attrName, propName);
1161
+ return attrName;
1162
+ }),
1163
+ ]));
1130
1164
  }
1131
1165
  }
1132
1166
  return Cstr;
1133
1167
  };
1134
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1168
+ /**
1169
+ * Initialize a Stencil component given a reference to its host element, its
1170
+ * runtime bookkeeping data structure, runtime metadata about the component,
1171
+ * and (optionally) an HMR version ID.
1172
+ *
1173
+ * @param elm a host element
1174
+ * @param hostRef the element's runtime bookkeeping object
1175
+ * @param cmpMeta runtime metadata for the Stencil component
1176
+ * @param hmrVersionId an (optional) HMR version ID
1177
+ */
1178
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1179
+ let Cstr;
1135
1180
  // initializeComponent
1136
1181
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1137
1182
  // Let the runtime know that the component has been initialized
@@ -1352,22 +1397,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1352
1397
  * @returns void
1353
1398
  */
1354
1399
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1400
+ /**
1401
+ * A WeakMap mapping runtime component references to their corresponding host reference
1402
+ * instances.
1403
+ */
1355
1404
  const hostRefs = /*@__PURE__*/ new WeakMap();
1405
+ /**
1406
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1407
+ *
1408
+ * @param ref the runtime ref of interest
1409
+ * @returns the Host reference (if found) or undefined
1410
+ */
1356
1411
  const getHostRef = (ref) => hostRefs.get(ref);
1412
+ /**
1413
+ * Register a lazy instance with the {@link hostRefs} object so it's
1414
+ * corresponding {@link d.HostRef} can be retrieved later.
1415
+ *
1416
+ * @param lazyInstance the lazy instance of interest
1417
+ * @param hostRef that instances `HostRef` object
1418
+ * @returns a reference to the host ref WeakMap
1419
+ */
1357
1420
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1358
- const registerHost = (elm, cmpMeta) => {
1421
+ /**
1422
+ * Register a host element for a Stencil component, setting up various metadata
1423
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1424
+ * metadata.
1425
+ *
1426
+ * @param hostElement the host element to register
1427
+ * @param cmpMeta runtime metadata for that component
1428
+ * @returns a reference to the host ref WeakMap
1429
+ */
1430
+ const registerHost = (hostElement, cmpMeta) => {
1359
1431
  const hostRef = {
1360
1432
  $flags$: 0,
1361
- $hostElement$: elm,
1433
+ $hostElement$: hostElement,
1362
1434
  $cmpMeta$: cmpMeta,
1363
1435
  $instanceValues$: new Map(),
1364
1436
  };
1365
1437
  {
1366
1438
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1367
- elm['s-p'] = [];
1368
- elm['s-rc'] = [];
1439
+ hostElement['s-p'] = [];
1440
+ hostElement['s-rc'] = [];
1369
1441
  }
1370
- return hostRefs.set(elm, hostRef);
1442
+ return hostRefs.set(hostElement, hostRef);
1371
1443
  };
1372
1444
  const isMemberInElement = (elm, memberName) => memberName in elm;
1373
1445
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-2cc584a9.js';
2
- export { s as setNonce } from './index-2cc584a9.js';
1
+ import { b as bootstrapLazy } from './index-ca9b9204.js';
2
+ export { s as setNonce } from './index-ca9b9204.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-2cc584a9.js';
2
- export { s as setNonce } from './index-2cc584a9.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-ca9b9204.js';
2
+ export { s as setNonce } from './index-ca9b9204.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.2.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ let n=!1,t=!1;const e="http://www.w3.org/1999/xlink",l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),r={},u=new WeakMap,a=n=>"sc-"+n.p,f=(n,t,l,s,i,c)=>{if(l!==s){let r=U(n,t),u=t.toLowerCase();if("class"===t){const t=n.classList,e=h(l),o=h(s);t.remove(...e.filter((n=>n&&!o.includes(n)))),t.add(...o.filter((n=>n&&!e.includes(n))))}else{const a=o(s);if((r||a&&null!==s)&&!i)try{if(n.tagName.includes("-"))n[t]=s;else{const e=null==s?"":s;"list"===t?r=!1:null!=l&&n[t]==e||(n[t]=e)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==s||!1===s?!1===s&&""!==n.getAttribute(t)||(f?n.removeAttributeNS(e,t):n.removeAttribute(t)):(!r||4&c||i)&&!a&&(s=!0===s?"":s,f?n.setAttributeNS(e,t,s):n.setAttribute(t,s))}}},d=/\s/,h=n=>n?n.split(d):[],y=(n,t,e,o)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||f(s,o,i[o],void 0,e,t.i);for(o in c)f(s,o,i[o],c[o],e,t.i)},p=(t,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(n||(n="svg"===o.u),s=o.h=z.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),y(null,o,n),o.o)for(c=0;c<o.o.length;++c)i=p(t,o,c),i&&s.appendChild(i);"svg"===o.u?n=!1:"foreignObject"===s.tagName&&(n=!0)}return s},w=(n,t,e,l,o,s)=>{let i,c=n;for(;o<=s;++o)l[o]&&(i=p(null,e,o),i&&(l[o].h=i,c.insertBefore(i,t)))},v=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},$=(n,t)=>n.u===t.u,m=(t,e)=>{const l=e.h=t.h,o=t.o,s=e.o,i=e.u,c=e.t;null===c?(n="svg"===i||"foreignObject"!==i&&n,y(t,e,n),null!==o&&null!==s?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:$(r,f)?(m(r,f),r=t[++s],f=l[++i]):$(u,d)?(m(u,d),u=t[--c],d=l[--a]):$(r,d)?(m(r,d),n.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):$(u,f)?(m(u,f),n.insertBefore(u.h,r.h),u=t[--c],f=l[++i]):(o=p(t&&t[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?w(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&v(t,s,c)})(l,o,e,s):null!==s?(null!==t.t&&(l.textContent=""),w(l,null,e,s,0,s.length-1)):null!==o&&v(o,0,o.length-1),n&&"svg"===i&&(n=!1)):t.t!==c&&(l.data=c)},b=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},g=(n,t)=>{if(n.i|=16,!(4&n.i))return b(n,n.$),Z((()=>j(n,t)));n.i|=512},j=(n,t)=>{const e=n.m;return S(void 0,(()=>k(n,e,t)))},S=(n,t)=>O(n)?n.then(t):t(),O=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.j,i=o["s-rc"];e&&(n=>{const t=n.S;((n,t)=>{var e;const l=a(t),o=V.get(l);if(n=11===n.nodeType?n:z,o)if("string"==typeof o){let t,i=u.get(n=n.head||n);if(i||u.set(n,i=new Set),!i.has(l)){{t=z.createElement("style"),t.innerHTML=o;const l=null!==(e=B.O)&&void 0!==e?e:s(z);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o])})(n.j.getRootNode(),t)})(n);M(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>x(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},M=(n,t,e,l)=>{try{t=t.render(),n.i&=-17,n.i|=2,((n,t,e=!1)=>{const l=n.j,o=n.k||c(null,null),s=(n=>n&&n.u===r)(t)?t:i(null,null,t);if(e&&s.l)for(const n of Object.keys(s.l))l.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(s.l[n]=l[n]);s.u=null,s.i|=4,n.k=s,s.h=o.h=l,m(o,s)})(n,t,l)}catch(t){W(t,n.j)}return null},x=n=>{const t=n.j,e=n.$;64&n.i||(n.i|=64,P(t),n.M(t),e||C()),n.v&&(n.v(),n.v=void 0),512&n.i&&Y((()=>g(n,!1))),n.i&=-517},C=()=>{P(z.documentElement),Y((()=>(n=>{const t=B.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return n.dispatchEvent(t),t})(_)))},P=n=>n.classList.add("hydrated"),A=(n,t,e)=>{var l;if(t.C){const s=Object.entries(t.C),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>F(this).P.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=F(n),i=s.P.get(t),c=s.i,r=s.m;e=((n,t)=>null==n||o(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.P.set(t,e),r&&2==(18&c)&&g(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){B.jmp((()=>{const s=e.get(n);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const e=F(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.m,i=t.A[n];null==i||i.forEach((t=>{null!=s[t]&&s[t].call(s,o,l,n)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.A)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},E=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=_.customElements,c=z.head,r=c.querySelector("meta[charset]"),u=z.createElement("style"),f=[];let d,h=!0;Object.assign(B,t),B.N=new URL(t.resourcesUrl||"./",z.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],C:t[2],T:t[3]};e.C=t[2];const s=e.p,c=class extends HTMLElement{constructor(n){super(n),R(n=this,e)}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):B.jmp((()=>(n=>{if(0==(1&B.i)){const t=F(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){b(t,t.$=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=H(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(A(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){W(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=a(e);if(!V.has(t)){const l=()=>{};((n,t,e)=>{let l=V.get(n);G&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>g(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>(async()=>{if(0==(1&B.i)){const n=F(this);(null==n?void 0:n.m)||(null==n?void 0:n.F)&&n.F.then((()=>{}))}})()))}componentOnReady(){return F(this).F}};e.L=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,A(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=B.O)&&void 0!==e?e:s(z);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):B.jmp((()=>d=setTimeout(C,30)))},N=n=>B.O=n,T=new WeakMap,F=n=>T.get(n),L=(n,t)=>T.set(t.m=n,t),R=(n,t)=>{const e={i:0,j:n,S:t,P:new Map};return e.F=new Promise((n=>e.M=n)),n["s-p"]=[],n["s-rc"]=[],T.set(n,e)},U=(n,t)=>t in n,W=(n,t)=>(0,console.error)(n,t),q=new Map,H=n=>{const t=n.p.replace(/-/g,"_"),e=n.L,l=q.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(q.set(e,n),n[t])),W)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},D=n=>Promise.resolve(n),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),I=[],J=[],K=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&B.i?Y(X):B.raf(X))},Q=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){W(n)}n.length=0},X=()=>{Q(I),Q(J),(t=I.length>0)&&B.raf(X)},Y=n=>D().then(n),Z=K(J,!0);export{E as b,i as h,D as p,L as r,N as s}