proto-ikons-wc 0.0.122 → 0.0.124

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-f1bf25d7.js');
5
+ const index = require('./index-5a3b525d.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -30,6 +30,7 @@ const NAMESPACE = 'proto-ikons-wc';
30
30
  *
31
31
  * Modified for Stencil's renderer and slot projection
32
32
  */
33
+ let hostTagName;
33
34
  let isSvgMode = false;
34
35
  let queuePending = false;
35
36
  const createTime = (fnName, tagName = '') => {
@@ -485,6 +486,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
485
486
  }
486
487
  }
487
488
  }
489
+ // This needs to always happen so we can hide nodes that are projected
490
+ // to another component but don't end up in a slot
491
+ elm['s-hn'] = hostTagName;
488
492
  return elm;
489
493
  };
490
494
  /**
@@ -605,8 +609,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
605
609
  * @param oldCh the old children of the parent node
606
610
  * @param newVNode the new VNode which will replace the parent
607
611
  * @param newCh the new children of the parent node
612
+ * @param isInitialRender whether or not this is the first render of the vdom
608
613
  */
609
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
614
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
610
615
  let oldStartIdx = 0;
611
616
  let newStartIdx = 0;
612
617
  let oldEndIdx = oldCh.length - 1;
@@ -630,25 +635,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
630
635
  else if (newEndVnode == null) {
631
636
  newEndVnode = newCh[--newEndIdx];
632
637
  }
633
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
638
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
634
639
  // if the start nodes are the same then we should patch the new VNode
635
640
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
636
641
  // indices to reflect that. We don't need to move any DOM Nodes around
637
642
  // since things are matched up in order.
638
- patch(oldStartVnode, newStartVnode);
643
+ patch(oldStartVnode, newStartVnode, isInitialRender);
639
644
  oldStartVnode = oldCh[++oldStartIdx];
640
645
  newStartVnode = newCh[++newStartIdx];
641
646
  }
642
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
647
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
643
648
  // likewise, if the end nodes are the same we patch new onto old and
644
649
  // decrement our end indices, and also likewise in this case we don't
645
650
  // need to move any DOM Nodes.
646
- patch(oldEndVnode, newEndVnode);
651
+ patch(oldEndVnode, newEndVnode, isInitialRender);
647
652
  oldEndVnode = oldCh[--oldEndIdx];
648
653
  newEndVnode = newCh[--newEndIdx];
649
654
  }
650
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
651
- patch(oldStartVnode, newEndVnode);
655
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
656
+ patch(oldStartVnode, newEndVnode, isInitialRender);
652
657
  // We need to move the element for `oldStartVnode` into a position which
653
658
  // will be appropriate for `newEndVnode`. For this we can use
654
659
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -670,8 +675,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
670
675
  oldStartVnode = oldCh[++oldStartIdx];
671
676
  newEndVnode = newCh[--newEndIdx];
672
677
  }
673
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
674
- patch(oldEndVnode, newStartVnode);
678
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
679
+ patch(oldEndVnode, newStartVnode, isInitialRender);
675
680
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
676
681
  // the same node, so since we're here we know that they are not. Thus we
677
682
  // can move the element for `oldEndVnode` _before_ the element for
@@ -725,9 +730,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
725
730
  *
726
731
  * @param leftVNode the first VNode to check
727
732
  * @param rightVNode the second VNode to check
733
+ * @param isInitialRender whether or not this is the first render of the vdom
728
734
  * @returns whether they're equal or not
729
735
  */
730
- const isSameVnode = (leftVNode, rightVNode) => {
736
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
731
737
  // compare if two vnode to see if they're "technically" the same
732
738
  // need to have the same element tag, and same key to be the same
733
739
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -742,8 +748,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
742
748
  *
743
749
  * @param oldVNode an old VNode whose DOM element and children we want to update
744
750
  * @param newVNode a new VNode representing an updated version of the old one
751
+ * @param isInitialRender whether or not this is the first render of the vdom
745
752
  */
746
- const patch = (oldVNode, newVNode) => {
753
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
747
754
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
748
755
  const oldChildren = oldVNode.$children$;
749
756
  const newChildren = newVNode.$children$;
@@ -766,7 +773,7 @@ const patch = (oldVNode, newVNode) => {
766
773
  if (oldChildren !== null && newChildren !== null) {
767
774
  // looks like there's child vnodes for both the old and new vnodes
768
775
  // so we need to call `updateChildren` to reconcile them
769
- updateChildren(elm, oldChildren, newVNode, newChildren);
776
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
770
777
  }
771
778
  else if (newChildren !== null) {
772
779
  // no old child vnodes, but there are new child vnodes to add
@@ -813,6 +820,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
813
820
  // implicitly that the top-level vdom node is 1) an only child and 2)
814
821
  // contains attrs that need to be set on the host element.
815
822
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
823
+ hostTagName = hostElm.tagName;
816
824
  // On the first render and *only* on the first render we want to check for
817
825
  // any attributes set on the host element which are also set on the vdom
818
826
  // node. If we find them, we override the value on the VDom node attrs with
@@ -839,7 +847,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
839
847
  hostRef.$vnode$ = rootVnode;
840
848
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
841
849
  // synchronous patch
842
- patch(oldVNode, rootVnode);
850
+ patch(oldVNode, rootVnode, isInitialLoad);
843
851
  };
844
852
  const attachToAncestor = (hostRef, ancestorComponent) => {
845
853
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f1bf25d7.js');
5
+ const index = require('./index-5a3b525d.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-f1bf25d7.js');
5
+ const index = require('./index-5a3b525d.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.9.0 | 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.8.1",
125
+ "version": "4.9.0",
126
126
  "typescriptVersion": "5.2.2"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-8f3312cf.js';
1
+ import { r as registerInstance, h } from './index-73342eec.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -8,6 +8,7 @@ const NAMESPACE = 'proto-ikons-wc';
8
8
  *
9
9
  * Modified for Stencil's renderer and slot projection
10
10
  */
11
+ let hostTagName;
11
12
  let isSvgMode = false;
12
13
  let queuePending = false;
13
14
  const createTime = (fnName, tagName = '') => {
@@ -463,6 +464,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
463
464
  }
464
465
  }
465
466
  }
467
+ // This needs to always happen so we can hide nodes that are projected
468
+ // to another component but don't end up in a slot
469
+ elm['s-hn'] = hostTagName;
466
470
  return elm;
467
471
  };
468
472
  /**
@@ -583,8 +587,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
583
587
  * @param oldCh the old children of the parent node
584
588
  * @param newVNode the new VNode which will replace the parent
585
589
  * @param newCh the new children of the parent node
590
+ * @param isInitialRender whether or not this is the first render of the vdom
586
591
  */
587
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
592
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
588
593
  let oldStartIdx = 0;
589
594
  let newStartIdx = 0;
590
595
  let oldEndIdx = oldCh.length - 1;
@@ -608,25 +613,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
608
613
  else if (newEndVnode == null) {
609
614
  newEndVnode = newCh[--newEndIdx];
610
615
  }
611
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
616
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
612
617
  // if the start nodes are the same then we should patch the new VNode
613
618
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
614
619
  // indices to reflect that. We don't need to move any DOM Nodes around
615
620
  // since things are matched up in order.
616
- patch(oldStartVnode, newStartVnode);
621
+ patch(oldStartVnode, newStartVnode, isInitialRender);
617
622
  oldStartVnode = oldCh[++oldStartIdx];
618
623
  newStartVnode = newCh[++newStartIdx];
619
624
  }
620
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
625
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
621
626
  // likewise, if the end nodes are the same we patch new onto old and
622
627
  // decrement our end indices, and also likewise in this case we don't
623
628
  // need to move any DOM Nodes.
624
- patch(oldEndVnode, newEndVnode);
629
+ patch(oldEndVnode, newEndVnode, isInitialRender);
625
630
  oldEndVnode = oldCh[--oldEndIdx];
626
631
  newEndVnode = newCh[--newEndIdx];
627
632
  }
628
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
629
- patch(oldStartVnode, newEndVnode);
633
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
634
+ patch(oldStartVnode, newEndVnode, isInitialRender);
630
635
  // We need to move the element for `oldStartVnode` into a position which
631
636
  // will be appropriate for `newEndVnode`. For this we can use
632
637
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -648,8 +653,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
648
653
  oldStartVnode = oldCh[++oldStartIdx];
649
654
  newEndVnode = newCh[--newEndIdx];
650
655
  }
651
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
652
- patch(oldEndVnode, newStartVnode);
656
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
657
+ patch(oldEndVnode, newStartVnode, isInitialRender);
653
658
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
654
659
  // the same node, so since we're here we know that they are not. Thus we
655
660
  // can move the element for `oldEndVnode` _before_ the element for
@@ -703,9 +708,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
703
708
  *
704
709
  * @param leftVNode the first VNode to check
705
710
  * @param rightVNode the second VNode to check
711
+ * @param isInitialRender whether or not this is the first render of the vdom
706
712
  * @returns whether they're equal or not
707
713
  */
708
- const isSameVnode = (leftVNode, rightVNode) => {
714
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
709
715
  // compare if two vnode to see if they're "technically" the same
710
716
  // need to have the same element tag, and same key to be the same
711
717
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -720,8 +726,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
720
726
  *
721
727
  * @param oldVNode an old VNode whose DOM element and children we want to update
722
728
  * @param newVNode a new VNode representing an updated version of the old one
729
+ * @param isInitialRender whether or not this is the first render of the vdom
723
730
  */
724
- const patch = (oldVNode, newVNode) => {
731
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
725
732
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
726
733
  const oldChildren = oldVNode.$children$;
727
734
  const newChildren = newVNode.$children$;
@@ -744,7 +751,7 @@ const patch = (oldVNode, newVNode) => {
744
751
  if (oldChildren !== null && newChildren !== null) {
745
752
  // looks like there's child vnodes for both the old and new vnodes
746
753
  // so we need to call `updateChildren` to reconcile them
747
- updateChildren(elm, oldChildren, newVNode, newChildren);
754
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
748
755
  }
749
756
  else if (newChildren !== null) {
750
757
  // no old child vnodes, but there are new child vnodes to add
@@ -791,6 +798,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
791
798
  // implicitly that the top-level vdom node is 1) an only child and 2)
792
799
  // contains attrs that need to be set on the host element.
793
800
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
801
+ hostTagName = hostElm.tagName;
794
802
  // On the first render and *only* on the first render we want to check for
795
803
  // any attributes set on the host element which are also set on the vdom
796
804
  // node. If we find them, we override the value on the VDom node attrs with
@@ -817,7 +825,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
817
825
  hostRef.$vnode$ = rootVnode;
818
826
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
819
827
  // synchronous patch
820
- patch(oldVNode, rootVnode);
828
+ patch(oldVNode, rootVnode, isInitialLoad);
821
829
  };
822
830
  const attachToAncestor = (hostRef, ancestorComponent) => {
823
831
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-8f3312cf.js';
2
- export { s as setNonce } from './index-8f3312cf.js';
1
+ import { b as bootstrapLazy } from './index-73342eec.js';
2
+ export { s as setNonce } from './index-73342eec.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-8f3312cf.js';
2
- export { s as setNonce } from './index-8f3312cf.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-73342eec.js';
2
+ export { s as setNonce } from './index-73342eec.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.9.0 | 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,t=!1,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o="http://www.w3.org/1999/xlink",s={},i=n=>"object"==(n=typeof n)||"function"===n;function c(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 r=(n,t,...e)=>{let l=null,o=!1,s=!1;const c=[],r=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(r(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=u(n,null);return a.l=t,c.length>0&&(a.o=c),a},u=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),a={},f=new WeakMap,d=n=>"sc-"+n.p,y=(n,t,e,l,s,c)=>{if(e!==l){let r=q(n,t),u=t.toLowerCase();if("class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else{const a=i(l);if((r||a&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(t)||(f?n.removeAttributeNS(o,t):n.removeAttribute(t)):(!r||4&c||s)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(o,t,l):n.setAttribute(t,l))}}},h=/\s/,p=n=>n?n.split(h):[],v=(n,t,e,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||s,c=t.l||s;for(l in i)l in c||y(o,l,i[l],void 0,e,t.i);for(l in c)y(o,l,i[l],c[l],e,t.i)},w=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.h=D.createTextNode(s.t);else{if(t||(t="svg"===s.u),i=s.h=D.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),v(null,s,t),s.o)for(r=0;r<s.o.length;++r)c=w(e,s,r),c&&i.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i["s-hn"]=n,i},$=(n,t,e,l,o,s)=>{let i,c=n;for(;o<=s;++o)l[o]&&(i=w(null,e,o),i&&(l[o].h=i,c.insertBefore(i,t)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},b=(n,t)=>n.u===t.u,g=(n,e,l=!1)=>{const o=e.h=n.h,s=n.o,i=e.o,c=e.u,r=e.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,v(n,e,t),null!==s&&null!==i?((n,t,e,l,o=!1)=>{let s,i=0,c=0,r=t.length-1,u=t[0],a=t[r],f=l.length-1,d=l[0],y=l[f];for(;i<=r&&c<=f;)null==u?u=t[++i]:null==a?a=t[--r]:null==d?d=l[++c]:null==y?y=l[--f]:b(u,d)?(g(u,d,o),u=t[++i],d=l[++c]):b(a,y)?(g(a,y,o),a=t[--r],y=l[--f]):b(u,y)?(g(u,y,o),n.insertBefore(u.h,a.h.nextSibling),u=t[++i],y=l[--f]):b(a,d)?(g(a,d,o),n.insertBefore(a.h,u.h),a=t[--r],d=l[++c]):(s=w(t&&t[c],e,c),d=l[++c],s&&u.h.parentNode.insertBefore(s,u.h));i>r?$(n,null==l[f+1]?null:l[f+1].h,e,l,c,f):c>f&&m(t,i,r)})(o,s,e,i,l):null!==i?(null!==n.t&&(o.textContent=""),$(o,null,e,i,0,i.length-1)):null!==s&&m(s,0,s.length-1),t&&"svg"===c&&(t=!1)):n.t!==r&&(o.data=r)},j=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.$),tn((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.m;return k(void 0,(()=>x(n,e,t)))},k=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,x=async(n,t,e)=>{var o;const s=n.$hostElement$,i=s["s-rc"];e&&(n=>{const t=n.j;((n,t)=>{var e;const o=d(t),s=z.get(o);if(n=11===n.nodeType?n:D,s)if("string"==typeof s){let i,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(o)){{i=D.createElement("style"),i.innerHTML=s;const t=null!==(e=G.S)&&void 0!==e?e:c(D);null!=t&&i.setAttribute("nonce",t),n.insertBefore(i,n.querySelector("link"))}4&t.i&&(i.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s])})(n.$hostElement$.getRootNode(),t)})(n);C(n,t,s,e),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>P(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(t,e,l,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,((t,e,l=!1)=>{const o=t.$hostElement$,s=t.O||u(null,null),i=(n=>n&&n.u===a)(e)?e:r(null,null,e);if(n=o.tagName,l&&i.l)for(const n of Object.keys(i.l))o.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(i.l[n]=o[n]);i.u=null,i.i|=4,t.O=i,i.h=s.h=o,g(s,i,l)})(t,e,o)}catch(n){H(n,t.$hostElement$)}return null},P=n=>{const t=n.$hostElement$,e=n.$;64&n.i||(n.i|=64,E(t),n.k(t),e||A()),n.v&&(n.v(),n.v=void 0),512&n.i&&nn((()=>S(n,!1))),n.i&=-517},A=()=>{E(D.documentElement),nn((()=>(n=>{const t=G.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return n.dispatchEvent(t),t})(B)))},E=n=>n.classList.add("hydrated"),N=(n,t,e)=>{var l;const o=n.prototype;if(t.M){const s=Object.entries(t.M);if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>R(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=R(n),s=o.C.get(t),c=o.i,r=o.m;e=((n,t)=>null==n||i(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.M[t][0]),8&c&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&S(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){G.jmp((()=>{var i;const c=e.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=R(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.m,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&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},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],i=B.customElements,r=D.head,u=r.querySelector("meta[charset]"),a=D.createElement("style"),f=[];let y,h=!0;Object.assign(G,t),G.A=new URL(t.resourcesUrl||"./",D.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],M:t[2],N:t[3]};4&e.i&&(p=!0),e.M=t[2];const l=e.p,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e)}connectedCallback(){y&&(clearTimeout(y),y=null),h?f.push(this):G.jmp((()=>(n=>{if(0==(1&G.i)){const t=R(n),e=t.j,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.$=e);break}}e.M&&Object.entries(e.M).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=_(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(N(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){H(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=d(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>S(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const n=R(this);(null==n?void 0:n.m)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return R(this).T}};e.F=n[0],s.includes(l)||i.get(l)||(o.push(l),i.define(l,N(c,e,1)))}))})),p&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=G.S)&&void 0!==e?e:c(D);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):G.jmp((()=>y=setTimeout(A,30)))},F=n=>G.S=n,L=new WeakMap,R=n=>L.get(n),U=(n,t)=>L.set(t.m=n,t),W=(n,t)=>{const e={i:0,$hostElement$:n,j:t,C:new Map};return e.T=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],L.set(n,e)},q=(n,t)=>t in n,H=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.p.replace(/-/g,"_"),e=n.F,l=V.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(V.set(e,n),n[t])),H)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,A:"",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)},I=n=>Promise.resolve(n),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),K=[],Q=[],X=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&G.i?nn(Z):G.raf(Z))},Y=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){H(n)}n.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},nn=n=>I().then(n),tn=X(Q,!0);export{T as b,r as h,I as p,U as r,F as s}