@everymatrix/lottery-ticket 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/cjs/{index-d550a71c.js → index-d6e1a914.js} +72 -207
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_3.cjs.entry.js +67 -232
  4. package/dist/cjs/lottery-ticket.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-ticket/lottery-ticket.js +16 -55
  7. package/dist/esm/{index-d2d50ea2.js → index-09f8a089.js} +72 -207
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_3.entry.js +67 -232
  10. package/dist/esm/lottery-ticket.js +3 -3
  11. package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
  12. package/dist/lottery-ticket/p-04eb942c.js +2 -0
  13. package/dist/lottery-ticket/{p-13f57056.entry.js → p-fc58bdf1.entry.js} +130 -132
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-ticket/p-383a9881.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-ticket';
2
- const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -155,6 +144,12 @@ var flush = () => {
155
144
  };
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
151
+ // src/utils/helpers.ts
152
+ var isDef = (v) => v != null;
158
153
  var isComplexType = (o) => {
159
154
  o = typeof o;
160
155
  return o === "object" || o === "function";
@@ -358,40 +353,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
353
  }
359
354
  if (!appliedStyles.has(scopeId2)) {
360
355
  {
361
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
356
+ styleElm = doc.createElement("style");
362
357
  styleElm.innerHTML = style;
363
358
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
364
359
  if (nonce != null) {
365
360
  styleElm.setAttribute("nonce", nonce);
366
361
  }
367
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
368
- if (styleContainerNode.nodeName === "HEAD") {
369
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
370
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
371
- styleContainerNode.insertBefore(
372
- styleElm,
373
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
- );
375
- } else if ("host" in styleContainerNode) {
376
- if (supportsConstructableStylesheets) {
377
- const stylesheet = new CSSStyleSheet();
378
- stylesheet.replaceSync(style);
379
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
380
- } else {
381
- const existingStyleContainer = styleContainerNode.querySelector("style");
382
- if (existingStyleContainer) {
383
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
384
- } else {
385
- styleContainerNode.prepend(styleElm);
386
- }
387
- }
388
- } else {
389
- styleContainerNode.append(styleElm);
390
- }
391
- }
392
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
393
- styleContainerNode.insertBefore(styleElm, null);
394
- }
362
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
395
363
  }
396
364
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
397
365
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -414,25 +382,23 @@ var attachStyles = (hostRef) => {
414
382
  const scopeId2 = addStyle(
415
383
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
416
384
  cmpMeta);
417
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
385
+ if (flags & 10 /* needsScopedEncapsulation */) {
418
386
  elm["s-sc"] = scopeId2;
419
387
  elm.classList.add(scopeId2 + "-h");
420
388
  }
421
389
  endAttachStyles();
422
390
  };
423
391
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
424
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
392
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
425
393
  if (oldValue !== newValue) {
426
394
  let isProp = isMemberInElement(elm, memberName);
427
395
  let ln = memberName.toLowerCase();
428
396
  if (memberName === "class") {
429
397
  const classList = elm.classList;
430
398
  const oldClasses = parseClassList(oldValue);
431
- let newClasses = parseClassList(newValue);
432
- {
433
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
- }
399
+ const newClasses = parseClassList(newValue);
400
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
401
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
402
  } else if (memberName === "style") {
437
403
  {
438
404
  for (const prop in oldValue) {
@@ -485,13 +451,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
485
451
  if (memberName === "list") {
486
452
  isProp = false;
487
453
  } else if (oldValue == null || elm[memberName] != n) {
488
- if (typeof elm.__lookupSetter__(memberName) === "function") {
489
- elm[memberName] = n;
490
- } else {
491
- elm.setAttribute(memberName, n);
492
- }
454
+ elm[memberName] = n;
493
455
  }
494
- } else if (elm[memberName] !== newValue) {
456
+ } else {
495
457
  elm[memberName] = newValue;
496
458
  }
497
459
  } catch (e) {
@@ -513,44 +475,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
513
475
  }
514
476
  };
515
477
  var parseClassListRegex = /\s/;
516
- var parseClassList = (value) => {
517
- if (typeof value === "object" && value && "baseVal" in value) {
518
- value = value.baseVal;
519
- }
520
- if (!value || typeof value !== "string") {
521
- return [];
522
- }
523
- return value.split(parseClassListRegex);
524
- };
478
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
525
479
  var CAPTURE_EVENT_SUFFIX = "Capture";
526
480
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
527
481
 
528
482
  // src/runtime/vdom/update-element.ts
529
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
483
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
530
484
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
531
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
532
- const newVnodeAttrs = newVnode.$attrs$ || {};
485
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
486
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
533
487
  {
534
488
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
535
489
  if (!(memberName in newVnodeAttrs)) {
536
- setAccessor(
537
- elm,
538
- memberName,
539
- oldVnodeAttrs[memberName],
540
- void 0,
541
- isSvgMode2,
542
- newVnode.$flags$);
490
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
543
491
  }
544
492
  }
545
493
  }
546
494
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
547
- setAccessor(
548
- elm,
549
- memberName,
550
- oldVnodeAttrs[memberName],
551
- newVnodeAttrs[memberName],
552
- isSvgMode2,
553
- newVnode.$flags$);
495
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
554
496
  }
555
497
  };
556
498
  function sortedAttrNames(attrNames) {
@@ -562,10 +504,13 @@ function sortedAttrNames(attrNames) {
562
504
  attrNames
563
505
  );
564
506
  }
507
+
508
+ // src/runtime/vdom/vdom-render.ts
509
+ var scopeId;
565
510
  var hostTagName;
566
511
  var useNativeShadowDom = false;
567
512
  var isSvgMode = false;
568
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
513
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
569
514
  const newVNode2 = newParentVNode.$children$[childIndex];
570
515
  let i2 = 0;
571
516
  let elm;
@@ -579,6 +524,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
579
524
  {
580
525
  updateElement(null, newVNode2, isSvgMode);
581
526
  }
527
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
528
+ elm.classList.add(elm["s-si"] = scopeId);
529
+ }
582
530
  if (newVNode2.$children$) {
583
531
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
584
532
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -708,9 +656,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
708
656
  if (!isInitialRender) {
709
657
  return leftVNode.$key$ === rightVNode.$key$;
710
658
  }
711
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
712
- leftVNode.$key$ = rightVNode.$key$;
713
- }
714
659
  return true;
715
660
  }
716
661
  return false;
@@ -733,10 +678,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
733
678
  elm.textContent = "";
734
679
  }
735
680
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
736
- } else if (
737
- // don't do this on initial render as it can cause non-hydrated content to be removed
738
- !isInitialRender && BUILD.updatable && oldChildren !== null
739
- ) {
681
+ } else if (oldChildren !== null) {
740
682
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
741
683
  }
742
684
  } else if (oldVNode.$text$ !== text) {
@@ -750,9 +692,8 @@ var nullifyVNodeRefs = (vNode) => {
750
692
  }
751
693
  };
752
694
  var insertBefore = (parent, newNode, reference) => {
753
- {
754
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
755
- }
695
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
696
+ return inserted;
756
697
  };
757
698
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
758
699
  const hostElm = hostRef.$hostElement$;
@@ -777,21 +718,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
777
718
  rootVnode.$flags$ |= 4 /* isHost */;
778
719
  hostRef.$vnode$ = rootVnode;
779
720
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
780
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
721
+ {
722
+ scopeId = hostElm["s-sc"];
723
+ }
724
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
781
725
  patch(oldVNode, rootVnode, isInitialLoad);
782
726
  };
783
727
 
784
728
  // src/runtime/update-component.ts
785
729
  var attachToAncestor = (hostRef, ancestorComponent) => {
786
730
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
787
- const index = ancestorComponent["s-p"].push(
788
- new Promise(
789
- (r) => hostRef.$onRenderResolve$ = () => {
790
- ancestorComponent["s-p"].splice(index - 1, 1);
791
- r();
792
- }
793
- )
794
- );
731
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
795
732
  }
796
733
  };
797
734
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -820,12 +757,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
820
757
  {
821
758
  hostRef.$flags$ |= 256 /* isListenReady */;
822
759
  if (hostRef.$queuedListeners$) {
823
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
760
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
824
761
  hostRef.$queuedListeners$ = void 0;
825
762
  }
826
763
  }
827
764
  {
828
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
765
+ maybePromise = safeCall(instance, "componentWillLoad");
829
766
  }
830
767
  }
831
768
  endSchedule();
@@ -894,7 +831,7 @@ var postUpdateComponent = (hostRef) => {
894
831
  const instance = hostRef.$lazyInstance$ ;
895
832
  const ancestorComponent = hostRef.$ancestorComponent$;
896
833
  {
897
- safeCall(instance, "componentDidRender", void 0, elm);
834
+ safeCall(instance, "componentDidRender");
898
835
  }
899
836
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
900
837
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -923,14 +860,17 @@ var postUpdateComponent = (hostRef) => {
923
860
  }
924
861
  };
925
862
  var appDidLoad = (who) => {
863
+ {
864
+ addHydratedFlag(doc.documentElement);
865
+ }
926
866
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
927
867
  };
928
- var safeCall = (instance, method, arg, elm) => {
868
+ var safeCall = (instance, method, arg) => {
929
869
  if (instance && instance[method]) {
930
870
  try {
931
871
  return instance[method](arg);
932
872
  } catch (e) {
933
- consoleError(e, elm);
873
+ consoleError(e);
934
874
  }
935
875
  }
936
876
  return void 0;
@@ -989,68 +929,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
989
929
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
990
930
  members.map(([memberName, [memberFlags]]) => {
991
931
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
992
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
993
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
994
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
995
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
996
- Object.defineProperty(prototype, memberName, {
997
- get() {
998
- {
999
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1000
- return getValue(this, memberName);
1001
- }
1002
- const ref = getHostRef(this);
1003
- const instance = ref ? ref.$lazyInstance$ : prototype;
1004
- if (!instance) return;
1005
- return instance[memberName];
1006
- }
1007
- },
1008
- configurable: true,
1009
- enumerable: true
1010
- });
1011
- }
1012
932
  Object.defineProperty(prototype, memberName, {
933
+ get() {
934
+ return getValue(this, memberName);
935
+ },
1013
936
  set(newValue) {
1014
- const ref = getHostRef(this);
1015
- if (origSetter) {
1016
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1017
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1018
- newValue = ref.$instanceValues$.get(memberName);
1019
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1020
- ref.$instanceValues$.set(memberName, currentValue);
1021
- }
1022
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1023
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1024
- setValue(this, memberName, newValue, cmpMeta);
1025
- return;
1026
- }
1027
- {
1028
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1029
- setValue(this, memberName, newValue, cmpMeta);
1030
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1031
- ref.$onReadyPromise$.then(() => {
1032
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1033
- ref.$lazyInstance$[memberName] = newValue;
1034
- }
1035
- });
1036
- }
1037
- return;
1038
- }
1039
- const setterSetVal = () => {
1040
- const currentValue = ref.$lazyInstance$[memberName];
1041
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1042
- ref.$instanceValues$.set(memberName, currentValue);
1043
- }
1044
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1045
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1046
- };
1047
- if (ref.$lazyInstance$) {
1048
- setterSetVal();
1049
- } else {
1050
- ref.$onReadyPromise$.then(() => setterSetVal());
1051
- }
1052
- }
1053
- }
937
+ setValue(this, memberName, newValue, cmpMeta);
938
+ },
939
+ configurable: true,
940
+ enumerable: true
1054
941
  });
1055
942
  }
1056
943
  });
@@ -1060,11 +947,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1060
947
  plt.jmp(() => {
1061
948
  var _a2;
1062
949
  const propName = attrNameToPropName.get(attrName);
1063
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
950
+ if (this.hasOwnProperty(propName)) {
1064
951
  newValue = this[propName];
1065
952
  delete this[propName];
1066
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1067
- this[propName] == newValue) {
953
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1068
954
  return;
1069
955
  } else if (propName == null) {
1070
956
  const hostRef = getHostRef(this);
@@ -1080,11 +966,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1080
966
  }
1081
967
  return;
1082
968
  }
1083
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1084
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1085
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1086
- this[propName] = newValue;
1087
- }
969
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1088
970
  });
1089
971
  };
1090
972
  Cstr.observedAttributes = Array.from(
@@ -1113,7 +995,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1113
995
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1114
996
  const bundleId = cmpMeta.$lazyBundleId$;
1115
997
  if (bundleId) {
1116
- const CstrImport = loadModule(cmpMeta, hostRef);
998
+ const CstrImport = loadModule(cmpMeta);
1117
999
  if (CstrImport && "then" in CstrImport) {
1118
1000
  const endLoad = uniqueTime();
1119
1001
  Cstr = await CstrImport;
@@ -1138,7 +1020,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1138
1020
  try {
1139
1021
  new Cstr(hostRef);
1140
1022
  } catch (e) {
1141
- consoleError(e, elm);
1023
+ consoleError(e);
1142
1024
  }
1143
1025
  {
1144
1026
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1147,7 +1029,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1147
1029
  hostRef.$flags$ |= 128 /* isWatchReady */;
1148
1030
  }
1149
1031
  endNewInstance();
1150
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1032
+ fireConnectedCallback(hostRef.$lazyInstance$);
1151
1033
  } else {
1152
1034
  Cstr = elm.constructor;
1153
1035
  const cmpTag = elm.localName;
@@ -1174,9 +1056,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1174
1056
  schedule();
1175
1057
  }
1176
1058
  };
1177
- var fireConnectedCallback = (instance, elm) => {
1059
+ var fireConnectedCallback = (instance) => {
1178
1060
  {
1179
- safeCall(instance, "connectedCallback", void 0, elm);
1061
+ safeCall(instance, "connectedCallback");
1180
1062
  }
1181
1063
  };
1182
1064
 
@@ -1212,15 +1094,15 @@ var connectedCallback = (elm) => {
1212
1094
  } else {
1213
1095
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1214
1096
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1215
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1097
+ fireConnectedCallback(hostRef.$lazyInstance$);
1216
1098
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1217
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1099
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1218
1100
  }
1219
1101
  }
1220
1102
  endConnected();
1221
1103
  }
1222
1104
  };
1223
- var disconnectInstance = (instance, elm) => {
1105
+ var disconnectInstance = (instance) => {
1224
1106
  };
1225
1107
  var disconnectedCallback = async (elm) => {
1226
1108
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1235,12 +1117,6 @@ var disconnectedCallback = async (elm) => {
1235
1117
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1236
1118
  }
1237
1119
  }
1238
- if (rootAppliedStyles.has(elm)) {
1239
- rootAppliedStyles.delete(elm);
1240
- }
1241
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1242
- rootAppliedStyles.delete(elm.shadowRoot);
1243
- }
1244
1120
  };
1245
1121
 
1246
1122
  // src/runtime/bootstrap-lazy.ts
@@ -1325,17 +1201,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1325
1201
  }
1326
1202
  disconnectedCallback() {
1327
1203
  plt.jmp(() => disconnectedCallback(this));
1328
- plt.raf(() => {
1329
- var _a3;
1330
- const hostRef = getHostRef(this);
1331
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1332
- if (i2 > -1) {
1333
- deferredConnectedCallbacks.splice(i2, 1);
1334
- }
1335
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1336
- delete hostRef.$vnode$.$elm$;
1337
- }
1338
- });
1339
1204
  }
1340
1205
  componentOnReady() {
1341
1206
  return getHostRef(this).$onReadyPromise$;
@@ -1399,7 +1264,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1399
1264
  }
1400
1265
  }
1401
1266
  } catch (e) {
1402
- consoleError(e, hostRef.$hostElement$);
1267
+ consoleError(e);
1403
1268
  }
1404
1269
  };
1405
1270
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-d2d50ea2.js';
2
- export { s as setNonce } from './index-d2d50ea2.js';
1
+ import { b as bootstrapLazy } from './index-09f8a089.js';
2
+ export { s as setNonce } from './index-09f8a089.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {